{"card": 1, "name": "react", "version": "0.1.0", "description": "How the React repository runs its agents: deny rules that keep them on the right package manager, and skills for tests, Flow, feature flags and fixes.", "hash": "sha256:619a3248e30b9f8473b74450bd3d33db9c8887ddb9618e378fe3025b70c3e49f", "origin": {"repository": "https://github.com/facebook/react", "commit": "edae846a9a17442c00429f2b15375afbfa0376c9", "license": "MIT", "license_basis": "detected", "share_alike": false, "absorbed_at": "2026-11-26"}, "review": {"pieces": 9, "mention_project": 6}, "inside": {"hooks": [{"event": "SessionStart", "matcher": "", "runs": "if [[ \"$PWD\" != */compiler* ]]; then cat .claude/instructions.md 2>/dev/null ..."}], "rules": {"deny": ["Bash(yarn download-build:*)", "Bash(yarn download-build-for-head:*)", "Bash(npm:*)", "Bash(pnpm:*)", "Bash(bun:*)", "Bash(npx:*)"], "allow": ["Skill(extract-errors)", "Skill(feature-flags)", "Skill(fix)", "Skill(flags)", "Skill(flow)", "Skill(test)", "Skill(verify)", "Bash(yarn test:*)", "Bash(yarn test-www:*)", "Bash(yarn test-classic:*)", "Bash(yarn test-stable:*)", "Bash(yarn linc:*)", "Bash(yarn lint:*)", "Bash(yarn flow:*)", "Bash(yarn prettier:*)", "Bash(yarn build:*)", "Bash(yarn extract-errors:*)", "Bash(yarn flags:*)"]}, "skills": [{"name": "extract-errors", "description": "Use when adding new error messages to React, or seeing \"unknown error code\" warnings."}, {"name": "feature-flags", "description": "Use when feature flag tests fail, flags need updating, understanding @gate pragmas, debugging channel-specific test failures, or adding new flags to React."}, {"name": "fix", "description": "Use when you have lint errors, formatting issues, or before committing code to ensure it passes CI."}, {"name": "flags", "description": "Use when you need to check feature flag states, compare channels, or debug why a feature behaves differently across release channels."}, {"name": "flow", "description": "Use when you need to run Flow type checking, or when seeing Flow type errors in React code."}, {"name": "test", "description": "Use when you need to run tests for React core. Supports source, www, stable, and experimental channels."}, {"name": "verify", "description": "Use when you want to validate changes before committing, or when you need to check all React contribution requirements."}], "subagents": [], "mcp_servers": [], "instructions": 0}, "needs": [], "guards": [{"name": "deny rule Bash(yarn download-build:*) blocks `yarn download-build`", "expect": "block", "event": "PreToolUse", "tool": "Bash"}, {"name": "deny rule Bash(yarn download-build-for-head:*) blocks `yarn download-build-for-head`", "expect": "block", "event": "PreToolUse", "tool": "Bash"}, {"name": "deny rule Bash(npm:*) blocks `npm`", "expect": "block", "event": "PreToolUse", "tool": "Bash"}, {"name": "deny rule Bash(pnpm:*) blocks `pnpm`", "expect": "block", "event": "PreToolUse", "tool": "Bash"}, {"name": "deny rule Bash(bun:*) blocks `bun`", "expect": "block", "event": "PreToolUse", "tool": "Bash"}, {"name": "deny rule Bash(npx:*) blocks `npx`", "expect": "block", "event": "PreToolUse", "tool": "Bash"}, {"name": "a harmless command is allowed", "expect": "allow", "event": "PreToolUse", "tool": "Bash"}], "agents": {"claude": {"native": 9, "emulated": 0, "lost": 0, "pieces": [{"piece": "extract-errors", "kind": "skill", "status": "native", "note": ""}, {"piece": "feature-flags", "kind": "skill", "status": "native", "note": ""}, {"piece": "fix", "kind": "skill", "status": "native", "note": ""}, {"piece": "flags", "kind": "skill", "status": "native", "note": ""}, {"piece": "flow", "kind": "skill", "status": "native", "note": ""}, {"piece": "test", "kind": "skill", "status": "native", "note": ""}, {"piece": "verify", "kind": "skill", "status": "native", "note": ""}, {"piece": "permission rules", "kind": "permissions", "status": "native", "note": ""}, {"piece": "SessionStart → if", "kind": "hook", "status": "native", "note": ""}]}, "codex": {"native": 19, "emulated": 6, "lost": 5, "pieces": [{"piece": "extract-errors", "kind": "skill", "status": "native", "note": ""}, {"piece": "feature-flags", "kind": "skill", "status": "native", "note": ""}, {"piece": "fix", "kind": "skill", "status": "native", "note": ""}, {"piece": "flags", "kind": "skill", "status": "native", "note": ""}, {"piece": "flags: $ARGUMENTS", "kind": "skill option", "status": "lost", "note": "Codex does not substitute $ARGUMENTS; the agent reads the request instead"}, {"piece": "flow", "kind": "skill", "status": "native", "note": ""}, {"piece": "flow: $ARGUMENTS", "kind": "skill option", "status": "lost", "note": "Codex does not substitute $ARGUMENTS; the agent reads the request instead"}, {"piece": "test", "kind": "skill", "status": "native", "note": ""}, {"piece": "test: $ARGUMENTS", "kind": "skill option", "status": "lost", "note": "Codex does not substitute $ARGUMENTS; the agent reads the request instead"}, {"piece": "verify", "kind": "skill", "status": "native", "note": ""}, {"piece": "verify: $ARGUMENTS", "kind": "skill option", "status": "lost", "note": "Codex does not substitute $ARGUMENTS; the agent reads the request instead"}, {"piece": "SessionStart → if", "kind": "hook", "status": "native", "note": "same event; runs through the adapter, which sets CLAUDE_PROJECT_DIR"}, {"piece": "Bash(yarn download-build:*)", "kind": "permission (deny)", "status": "emulated", "note": "a Codex execution-policy rule (`forbidden`) and, as a second lock, a PreToolUse hook that blocks the command"}, {"piece": "Bash(yarn download-build-for-head:*)", "kind": "permission (deny)", "status": "emulated", "note": "a Codex execution-policy rule (`forbidden`) and, as a second lock, a PreToolUse hook that blocks the command"}, {"piece": "Bash(npm:*)", "kind": "permission (deny)", "status": "emulated", "note": "a Codex execution-policy rule (`forbidden`) and, as a second lock, a PreToolUse hook that blocks the command"}, {"piece": "Bash(pnpm:*)", "kind": "permission (deny)", "status": "emulated", "note": "a Codex execution-policy rule (`forbidden`) and, as a second lock, a PreToolUse hook that blocks the command"}, {"piece": "Bash(bun:*)", "kind": "permission (deny)", "status": "emulated", "note": "a Codex execution-policy rule (`forbidden`) and, as a second lock, a PreToolUse hook that blocks the command"}, {"piece": "Bash(npx:*)", "kind": "permission (deny)", "status": "emulated", "note": "a Codex execution-policy rule (`forbidden`) and, as a second lock, a PreToolUse hook that blocks the command"}, {"piece": "Bash(yarn test:*)", "kind": "permission (allow)", "status": "native", "note": "a Codex execution-policy rule (`allow`)"}, {"piece": "Bash(yarn test-www:*)", "kind": "permission (allow)", "status": "native", "note": "a Codex execution-policy rule (`allow`)"}, {"piece": "Bash(yarn test-classic:*)", "kind": "permission (allow)", "status": "native", "note": "a Codex execution-policy rule (`allow`)"}, {"piece": "Bash(yarn test-stable:*)", "kind": "permission (allow)", "status": "native", "note": "a Codex execution-policy rule (`allow`)"}, {"piece": "Bash(yarn linc:*)", "kind": "permission (allow)", "status": "native", "note": "a Codex execution-policy rule (`allow`)"}, {"piece": "Bash(yarn lint:*)", "kind": "permission (allow)", "status": "native", "note": "a Codex execution-policy rule (`allow`)"}, {"piece": "Bash(yarn flow:*)", "kind": "permission (allow)", "status": "native", "note": "a Codex execution-policy rule (`allow`)"}, {"piece": "Bash(yarn prettier:*)", "kind": "permission (allow)", "status": "native", "note": "a Codex execution-policy rule (`allow`)"}, {"piece": "Bash(yarn build:*)", "kind": "permission (allow)", "status": "native", "note": "a Codex execution-policy rule (`allow`)"}, {"piece": "Bash(yarn extract-errors:*)", "kind": "permission (allow)", "status": "native", "note": "a Codex execution-policy rule (`allow`)"}, {"piece": "Bash(yarn flags:*)", "kind": "permission (allow)", "status": "native", "note": "a Codex execution-policy rule (`allow`)"}, {"piece": "7 rule(s) for Skill", "kind": "permission (allow)", "status": "lost", "note": "Codex rules cover shell commands only. Nothing is less protected: Codex follows its own approval settings for these tools. The rules: Skill(extract-errors), Skill(feature-flags), Skill(fix), Skill(flags), Skill(flow), Skill(test), Skill(verify)"}]}, "copilot": {"native": 8, "emulated": 6, "lost": 1, "pieces": [{"piece": "extract-errors", "kind": "skill", "status": "native", "note": ""}, {"piece": "feature-flags", "kind": "skill", "status": "native", "note": ""}, {"piece": "fix", "kind": "skill", "status": "native", "note": ""}, {"piece": "flags", "kind": "skill", "status": "native", "note": ""}, {"piece": "flow", "kind": "skill", "status": "native", "note": ""}, {"piece": "test", "kind": "skill", "status": "native", "note": ""}, {"piece": "verify", "kind": "skill", "status": "native", "note": ""}, {"piece": "SessionStart → if", "kind": "hook", "status": "native", "note": "same event; runs through the adapter, which sets CLAUDE_PROJECT_DIR"}, {"piece": "Bash(yarn download-build:*)", "kind": "permission (deny)", "status": "emulated", "note": "a preToolUse hook that refuses the shell command (Copilot keeps its own permission rules outside the repository)"}, {"piece": "Bash(yarn download-build-for-head:*)", "kind": "permission (deny)", "status": "emulated", "note": "a preToolUse hook that refuses the shell command (Copilot keeps its own permission rules outside the repository)"}, {"piece": "Bash(npm:*)", "kind": "permission (deny)", "status": "emulated", "note": "a preToolUse hook that refuses the shell command (Copilot keeps its own permission rules outside the repository)"}, {"piece": "Bash(pnpm:*)", "kind": "permission (deny)", "status": "emulated", "note": "a preToolUse hook that refuses the shell command (Copilot keeps its own permission rules outside the repository)"}, {"piece": "Bash(bun:*)", "kind": "permission (deny)", "status": "emulated", "note": "a preToolUse hook that refuses the shell command (Copilot keeps its own permission rules outside the repository)"}, {"piece": "Bash(npx:*)", "kind": "permission (deny)", "status": "emulated", "note": "a preToolUse hook that refuses the shell command (Copilot keeps its own permission rules outside the repository)"}, {"piece": "18 rule(s)", "kind": "permission (allow)", "status": "lost", "note": "Copilot keeps allow and ask rules outside the repository (--allow-tool, its own approvals). Nothing is less protected: Copilot asks as it always does. The rules: Skill(extract-errors), Skill(feature-flags), Skill(fix), Skill(flags), Skill(flow), Skill(test), Skill(verify), Bash(yarn test:*), Bash(yarn test-www:*), Bash(yarn test-classic:*), Bash(yarn test-stable:*), Bash(yarn linc:*), Bash(yarn lint:*), Bash(yarn flow:*), Bash(yarn prettier:*), Bash(yarn build:*), Bash(yarn extract-errors:*), Bash(yarn flags:*)"}]}, "generic": {"native": 7, "emulated": 0, "lost": 8, "pieces": [{"piece": "extract-errors", "kind": "skill", "status": "native", "note": ""}, {"piece": "feature-flags", "kind": "skill", "status": "native", "note": ""}, {"piece": "fix", "kind": "skill", "status": "native", "note": ""}, {"piece": "flags", "kind": "skill", "status": "native", "note": ""}, {"piece": "flow", "kind": "skill", "status": "native", "note": ""}, {"piece": "test", "kind": "skill", "status": "native", "note": ""}, {"piece": "verify", "kind": "skill", "status": "native", "note": ""}, {"piece": "Bash(yarn download-build:*)", "kind": "permission (deny)", "status": "lost", "note": "written in AGENTS.md as an instruction; nothing enforces it"}, {"piece": "Bash(yarn download-build-for-head:*)", "kind": "permission (deny)", "status": "lost", "note": "written in AGENTS.md as an instruction; nothing enforces it"}, {"piece": "Bash(npm:*)", "kind": "permission (deny)", "status": "lost", "note": "written in AGENTS.md as an instruction; nothing enforces it"}, {"piece": "Bash(pnpm:*)", "kind": "permission (deny)", "status": "lost", "note": "written in AGENTS.md as an instruction; nothing enforces it"}, {"piece": "Bash(bun:*)", "kind": "permission (deny)", "status": "lost", "note": "written in AGENTS.md as an instruction; nothing enforces it"}, {"piece": "Bash(npx:*)", "kind": "permission (deny)", "status": "lost", "note": "written in AGENTS.md as an instruction; nothing enforces it"}, {"piece": "18 rule(s)", "kind": "permission (allow)", "status": "lost", "note": "your agent's own approval settings apply"}, {"piece": "SessionStart → if", "kind": "hook", "status": "lost", "note": "no hook system is assumed for this agent: the hook does not run. Install for Claude Code, Codex or GitHub Copilot to enforce it"}]}}, "proof": {"hash": "sha256:619a3248e30b9f8473b74450bd3d33db9c8887ddb9618e378fe3025b70c3e49f", "date": "2026-11-27", "cases": [{"name": "deny rule Bash(yarn download-build:*) blocks `yarn download-build`", "expect": "block", "claude": "block", "codex": "block", "copilot": "block"}, {"name": "deny rule Bash(yarn download-build-for-head:*) blocks `yarn download-build-for-head`", "expect": "block", "claude": "block", "codex": "block", "copilot": "block"}, {"name": "deny rule Bash(npm:*) blocks `npm`", "expect": "block", "claude": "block", "codex": "block", "copilot": "block"}, {"name": "deny rule Bash(pnpm:*) blocks `pnpm`", "expect": "block", "claude": "block", "codex": "block", "copilot": "block"}, {"name": "deny rule Bash(bun:*) blocks `bun`", "expect": "block", "claude": "block", "codex": "block", "copilot": "block"}, {"name": "deny rule Bash(npx:*) blocks `npx`", "expect": "block", "claude": "block", "codex": "block", "copilot": "block"}, {"name": "a harmless command is allowed", "expect": "allow", "claude": "allow", "codex": "allow", "copilot": "allow"}]}, "files": [{"path": "ABSORB_REPORT.md", "bytes": 2167, "sha256": "cc293cf4f383d7490026f20902b6f9076ec1f14f5a3fdd02fbf6cd0c803e2fac"}, {"path": "ATTRIBUTION.md", "bytes": 762, "sha256": "d3a5a76558ae610630b4c9888c19a420386a2cb2de773cdf370d848b5bdff8d5"}, {"path": "LICENSE", "bytes": 1088, "sha256": "da6d3703ed11cbe42bd212c725957c98da23cbff1998c05fa4b3d976d1a58e93"}, {"path": "harness.yaml", "bytes": 1693, "sha256": "d606ac70ba7db17f7deb417d9581729c52114979a252330e68889e190ff2e576"}, {"path": "selftest/cases.yaml", "bytes": 1093, "sha256": "0732fa30338b8f3168dfd51534c94d9baad877be0abd173c895b44f0d1a0d496"}, {"path": "skills/extract-errors/SKILL.md", "bytes": 285, "sha256": "70d61d42e5b5806e1eeb0ef2380b2f3d4d87237e848128e7da35929f78813e5f"}, {"path": "skills/feature-flags/SKILL.md", "bytes": 2618, "sha256": "b82f8ab67ebed3a34d71cb9f4ed7a0f94ab6129d23c171443ba10fef3f92adc1"}, {"path": "skills/fix/SKILL.md", "bytes": 495, "sha256": "a2edb0e8fb758efe98df7a4bc2bab1d82e46b1b40a5ad9cd45b60f44730e7c32"}, {"path": "skills/flags/SKILL.md", "bytes": 1016, "sha256": "8dfb38a708aff4cc90f633d048d9f1c556c5d4a8f15107ad60f0d8cf252dc30e"}, {"path": "skills/flow/SKILL.md", "bytes": 884, "sha256": "4dcef83a65a5b702866f98922af5c56466e81e3e71809cf69c9292e182c2a685"}, {"path": "skills/test/SKILL.md", "bytes": 2093, "sha256": "0972cfbc6d46bfda0c3914772e1611066917a1d9e7c604eab17e7d5b19bfbbfb"}, {"path": "skills/verify/SKILL.md", "bytes": 724, "sha256": "070d8a87c34b661d98c7b8d72b4443706c4f78386647b115476d34121e70d0be"}]}
