Skip to content

Commit 316c676

Browse files
committed
[repo] init claude config (facebook#35617)
## Overview Adds a claude setup that works with the nested /compiler setup. The constraints are: - when working in the root repo, don't use the compiler configs (easy) - when working in the compiler/ don't use the parent contigs (hard) The first one is easy: there's a claude.md and .claude directory in /compiler that is only loaded when you start a session from /compuler. The second one is hard, because if you start a session from /compiler, the parent claude files and skills are loaded. I was able to deny the permissions to the parent skills in settings.json, but the descriptions are still loaded into context and I don't think that's avoidable. To keep the parent claude file out of context, I created a hook hack: I moved all the non-compiler claude file context to instructions.md and added a SessionStart hook to cat the file into context if the cwd isn't the /compiler. Works well, but won't show it as part of the `/context` slash command. ## Skills I also added a number of skills specific to the React repo: | Skill | Description | |-------|-------------| | `/extract-errors` | `yarn extract-errors` | | `/feature-flags` | how feature flags work and `@gate` | | `/fix` | linc and prettier | | `/flags` | `yarn flags` | | `/flow` | `yarn flow <variant>` | | `/test` | `yarn test-*` | | `/verify` | `run all the lints/tests/flow to verify` | ### Example: Flow | before | after | |-----|-----| | <img width="1076" height="442" alt="flow-before" src="https://github.com/user-attachments/assets/73eec143-d0af-4771-b501-c9dc29cc09ac" /> | <img width="1076" height="273" alt="flow-after" src="https://github.com/user-attachments/assets/292d33af-1d98-4252-9c08-744b33e88b86" /> | ### Example: Tests | before | after | |-----|-----| | <img width="1048" height="607" alt="test-before" src="https://github.com/user-attachments/assets/aa558ccf-2cee-4d22-b1f1-e4221c5a59dd" /> | <img width="1075" height="359" alt="test-after" src="https://github.com/user-attachments/assets/eb795392-6f46-403f-b9bb-8851ed790165" /> | DiffTrain build for [a056625](facebook@a056625)
1 parent 0a47de0 commit 316c676

23 files changed

+804
-4440
lines changed

compiled-rn/VERSION_NATIVE_FB

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19.3.0-native-fb-03613cd6-20260123
1+
19.3.0-native-fb-a0566250-20260123

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<ea58d16ab1cec81306b2409c6be6739c>>
10+
* @generated SignedSource<<9b78d1da2d2a73ff1bb26ae7bcd78213>>
1111
*/
1212

1313
"use strict";
@@ -410,5 +410,5 @@ __DEV__ &&
410410
exports.useFormStatus = function () {
411411
return resolveDispatcher().useHostTransitionStatus();
412412
};
413-
exports.version = "19.3.0-native-fb-03613cd6-20260123";
413+
exports.version = "19.3.0-native-fb-a0566250-20260123";
414414
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<5062819edadf01c986c7e09603d9ad40>>
10+
* @generated SignedSource<<69f9e675e8e6253229d23c1592b169c1>>
1111
*/
1212

1313
"use strict";
@@ -209,4 +209,4 @@ exports.useFormState = function (action, initialState, permalink) {
209209
exports.useFormStatus = function () {
210210
return ReactSharedInternals.H.useHostTransitionStatus();
211211
};
212-
exports.version = "19.3.0-native-fb-03613cd6-20260123";
212+
exports.version = "19.3.0-native-fb-a0566250-20260123";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<5062819edadf01c986c7e09603d9ad40>>
10+
* @generated SignedSource<<69f9e675e8e6253229d23c1592b169c1>>
1111
*/
1212

1313
"use strict";
@@ -209,4 +209,4 @@ exports.useFormState = function (action, initialState, permalink) {
209209
exports.useFormStatus = function () {
210210
return ReactSharedInternals.H.useHostTransitionStatus();
211211
};
212-
exports.version = "19.3.0-native-fb-03613cd6-20260123";
212+
exports.version = "19.3.0-native-fb-a0566250-20260123";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<62b0f28cf3728d535459cb8a8c088cdc>>
10+
* @generated SignedSource<<ac839c282b906ae480f725b7a265428b>>
1111
*/
1212

1313
/*
@@ -30267,11 +30267,11 @@ __DEV__ &&
3026730267
};
3026830268
(function () {
3026930269
var isomorphicReactPackageVersion = React.version;
30270-
if ("19.3.0-native-fb-03613cd6-20260123" !== isomorphicReactPackageVersion)
30270+
if ("19.3.0-native-fb-a0566250-20260123" !== isomorphicReactPackageVersion)
3027130271
throw Error(
3027230272
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
3027330273
(isomorphicReactPackageVersion +
30274-
"\n - react-dom: 19.3.0-native-fb-03613cd6-20260123\nLearn more: https://react.dev/warnings/version-mismatch")
30274+
"\n - react-dom: 19.3.0-native-fb-a0566250-20260123\nLearn more: https://react.dev/warnings/version-mismatch")
3027530275
);
3027630276
})();
3027730277
("function" === typeof Map &&
@@ -30308,10 +30308,10 @@ __DEV__ &&
3030830308
!(function () {
3030930309
var internals = {
3031030310
bundleType: 1,
30311-
version: "19.3.0-native-fb-03613cd6-20260123",
30311+
version: "19.3.0-native-fb-a0566250-20260123",
3031230312
rendererPackageName: "react-dom",
3031330313
currentDispatcherRef: ReactSharedInternals,
30314-
reconcilerVersion: "19.3.0-native-fb-03613cd6-20260123"
30314+
reconcilerVersion: "19.3.0-native-fb-a0566250-20260123"
3031530315
};
3031630316
internals.overrideHookState = overrideHookState;
3031730317
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -30461,5 +30461,5 @@ __DEV__ &&
3046130461
listenToAllSupportedEvents(container);
3046230462
return new ReactDOMHydrationRoot(initialChildren);
3046330463
};
30464-
exports.version = "19.3.0-native-fb-03613cd6-20260123";
30464+
exports.version = "19.3.0-native-fb-a0566250-20260123";
3046530465
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<6214ebe37edaf2acf682957ec919a3d8>>
10+
* @generated SignedSource<<e69d867bc4b1009ac74c5420f5f17fa0>>
1111
*/
1212

1313
/*
@@ -17710,14 +17710,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1771017710
};
1771117711
var isomorphicReactPackageVersion$jscomp$inline_2054 = React.version;
1771217712
if (
17713-
"19.3.0-native-fb-03613cd6-20260123" !==
17713+
"19.3.0-native-fb-a0566250-20260123" !==
1771417714
isomorphicReactPackageVersion$jscomp$inline_2054
1771517715
)
1771617716
throw Error(
1771717717
formatProdErrorMessage(
1771817718
527,
1771917719
isomorphicReactPackageVersion$jscomp$inline_2054,
17720-
"19.3.0-native-fb-03613cd6-20260123"
17720+
"19.3.0-native-fb-a0566250-20260123"
1772117721
)
1772217722
);
1772317723
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17739,10 +17739,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1773917739
};
1774017740
var internals$jscomp$inline_2638 = {
1774117741
bundleType: 0,
17742-
version: "19.3.0-native-fb-03613cd6-20260123",
17742+
version: "19.3.0-native-fb-a0566250-20260123",
1774317743
rendererPackageName: "react-dom",
1774417744
currentDispatcherRef: ReactSharedInternals,
17745-
reconcilerVersion: "19.3.0-native-fb-03613cd6-20260123"
17745+
reconcilerVersion: "19.3.0-native-fb-a0566250-20260123"
1774617746
};
1774717747
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1774817748
var hook$jscomp$inline_2639 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17849,4 +17849,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1784917849
listenToAllSupportedEvents(container);
1785017850
return new ReactDOMHydrationRoot(initialChildren);
1785117851
};
17852-
exports.version = "19.3.0-native-fb-03613cd6-20260123";
17852+
exports.version = "19.3.0-native-fb-a0566250-20260123";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<38f188ff742ba48902e3c9c114f084ca>>
10+
* @generated SignedSource<<369620992369f6333a3d38e4e69ffcc2>>
1111
*/
1212

1313
/*
@@ -19844,14 +19844,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1984419844
};
1984519845
var isomorphicReactPackageVersion$jscomp$inline_2376 = React.version;
1984619846
if (
19847-
"19.3.0-native-fb-03613cd6-20260123" !==
19847+
"19.3.0-native-fb-a0566250-20260123" !==
1984819848
isomorphicReactPackageVersion$jscomp$inline_2376
1984919849
)
1985019850
throw Error(
1985119851
formatProdErrorMessage(
1985219852
527,
1985319853
isomorphicReactPackageVersion$jscomp$inline_2376,
19854-
"19.3.0-native-fb-03613cd6-20260123"
19854+
"19.3.0-native-fb-a0566250-20260123"
1985519855
)
1985619856
);
1985719857
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -19873,10 +19873,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1987319873
};
1987419874
var internals$jscomp$inline_2383 = {
1987519875
bundleType: 0,
19876-
version: "19.3.0-native-fb-03613cd6-20260123",
19876+
version: "19.3.0-native-fb-a0566250-20260123",
1987719877
rendererPackageName: "react-dom",
1987819878
currentDispatcherRef: ReactSharedInternals,
19879-
reconcilerVersion: "19.3.0-native-fb-03613cd6-20260123",
19879+
reconcilerVersion: "19.3.0-native-fb-a0566250-20260123",
1988019880
getLaneLabelMap: function () {
1988119881
for (
1988219882
var map = new Map(), lane = 1, index$336 = 0;
@@ -19999,4 +19999,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1999919999
listenToAllSupportedEvents(container);
2000020000
return new ReactDOMHydrationRoot(initialChildren);
2000120001
};
20002-
exports.version = "19.3.0-native-fb-03613cd6-20260123";
20002+
exports.version = "19.3.0-native-fb-a0566250-20260123";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<718eccb89478601cac2f550c87232e82>>
10+
* @generated SignedSource<<82e68a06f703e7512e1123f7debfa4e3>>
1111
*/
1212

1313
/*
@@ -30329,11 +30329,11 @@ __DEV__ &&
3032930329
};
3033030330
(function () {
3033130331
var isomorphicReactPackageVersion = React.version;
30332-
if ("19.3.0-native-fb-03613cd6-20260123" !== isomorphicReactPackageVersion)
30332+
if ("19.3.0-native-fb-a0566250-20260123" !== isomorphicReactPackageVersion)
3033330333
throw Error(
3033430334
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
3033530335
(isomorphicReactPackageVersion +
30336-
"\n - react-dom: 19.3.0-native-fb-03613cd6-20260123\nLearn more: https://react.dev/warnings/version-mismatch")
30336+
"\n - react-dom: 19.3.0-native-fb-a0566250-20260123\nLearn more: https://react.dev/warnings/version-mismatch")
3033730337
);
3033830338
})();
3033930339
("function" === typeof Map &&
@@ -30370,10 +30370,10 @@ __DEV__ &&
3037030370
!(function () {
3037130371
var internals = {
3037230372
bundleType: 1,
30373-
version: "19.3.0-native-fb-03613cd6-20260123",
30373+
version: "19.3.0-native-fb-a0566250-20260123",
3037430374
rendererPackageName: "react-dom",
3037530375
currentDispatcherRef: ReactSharedInternals,
30376-
reconcilerVersion: "19.3.0-native-fb-03613cd6-20260123"
30376+
reconcilerVersion: "19.3.0-native-fb-a0566250-20260123"
3037730377
};
3037830378
internals.overrideHookState = overrideHookState;
3037930379
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -30839,7 +30839,7 @@ __DEV__ &&
3083930839
exports.useFormStatus = function () {
3084030840
return resolveDispatcher().useHostTransitionStatus();
3084130841
};
30842-
exports.version = "19.3.0-native-fb-03613cd6-20260123";
30842+
exports.version = "19.3.0-native-fb-a0566250-20260123";
3084330843
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
3084430844
"function" ===
3084530845
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<f35dd9f404385d2166fb7e08525daf79>>
10+
* @generated SignedSource<<d08e48798af9dcd07d7e1d021df17580>>
1111
*/
1212

1313
/*
@@ -17727,14 +17727,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1772717727
};
1772817728
var isomorphicReactPackageVersion$jscomp$inline_2055 = React.version;
1772917729
if (
17730-
"19.3.0-native-fb-03613cd6-20260123" !==
17730+
"19.3.0-native-fb-a0566250-20260123" !==
1773117731
isomorphicReactPackageVersion$jscomp$inline_2055
1773217732
)
1773317733
throw Error(
1773417734
formatProdErrorMessage(
1773517735
527,
1773617736
isomorphicReactPackageVersion$jscomp$inline_2055,
17737-
"19.3.0-native-fb-03613cd6-20260123"
17737+
"19.3.0-native-fb-a0566250-20260123"
1773817738
)
1773917739
);
1774017740
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17756,10 +17756,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1775617756
};
1775717757
var internals$jscomp$inline_2641 = {
1775817758
bundleType: 0,
17759-
version: "19.3.0-native-fb-03613cd6-20260123",
17759+
version: "19.3.0-native-fb-a0566250-20260123",
1776017760
rendererPackageName: "react-dom",
1776117761
currentDispatcherRef: ReactSharedInternals,
17762-
reconcilerVersion: "19.3.0-native-fb-03613cd6-20260123"
17762+
reconcilerVersion: "19.3.0-native-fb-a0566250-20260123"
1776317763
};
1776417764
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1776517765
var hook$jscomp$inline_2642 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -18019,4 +18019,4 @@ exports.useFormState = function (action, initialState, permalink) {
1801918019
exports.useFormStatus = function () {
1802018020
return ReactSharedInternals.H.useHostTransitionStatus();
1802118021
};
18022-
exports.version = "19.3.0-native-fb-03613cd6-20260123";
18022+
exports.version = "19.3.0-native-fb-a0566250-20260123";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-profiling.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<34417215f2c17dba2d724b89ff91f9a3>>
10+
* @generated SignedSource<<30385554ce70d085355e267de83b1055>>
1111
*/
1212

1313
/*
@@ -19865,14 +19865,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1986519865
};
1986619866
var isomorphicReactPackageVersion$jscomp$inline_2377 = React.version;
1986719867
if (
19868-
"19.3.0-native-fb-03613cd6-20260123" !==
19868+
"19.3.0-native-fb-a0566250-20260123" !==
1986919869
isomorphicReactPackageVersion$jscomp$inline_2377
1987019870
)
1987119871
throw Error(
1987219872
formatProdErrorMessage(
1987319873
527,
1987419874
isomorphicReactPackageVersion$jscomp$inline_2377,
19875-
"19.3.0-native-fb-03613cd6-20260123"
19875+
"19.3.0-native-fb-a0566250-20260123"
1987619876
)
1987719877
);
1987819878
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -19894,10 +19894,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1989419894
};
1989519895
var internals$jscomp$inline_2384 = {
1989619896
bundleType: 0,
19897-
version: "19.3.0-native-fb-03613cd6-20260123",
19897+
version: "19.3.0-native-fb-a0566250-20260123",
1989819898
rendererPackageName: "react-dom",
1989919899
currentDispatcherRef: ReactSharedInternals,
19900-
reconcilerVersion: "19.3.0-native-fb-03613cd6-20260123",
19900+
reconcilerVersion: "19.3.0-native-fb-a0566250-20260123",
1990119901
getLaneLabelMap: function () {
1990219902
for (
1990319903
var map = new Map(), lane = 1, index$336 = 0;
@@ -20173,7 +20173,7 @@ exports.useFormState = function (action, initialState, permalink) {
2017320173
exports.useFormStatus = function () {
2017420174
return ReactSharedInternals.H.useHostTransitionStatus();
2017520175
};
20176-
exports.version = "19.3.0-native-fb-03613cd6-20260123";
20176+
exports.version = "19.3.0-native-fb-a0566250-20260123";
2017720177
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2017820178
"function" ===
2017920179
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)