react-ai-infra
Installation
SKILL.md
react-ai-infra
A meta-skill that wires APM (Agent Package Manager) and the team's curated React skill set into an existing React project across Claude Code and GitHub Copilot.
This skill does not scaffold the React project itself — the user is expected to have already run create-next-app, create-tsrouter-app, npm create vite, or equivalent. What this skill owns is the agent-asset layer: apm.yml, bundled skills and rules, and the framework-specific AGENTS.md.
What this skill does
| Step | Action | Tool |
|---|---|---|
| 0 | Verify apm CLI is installed; abort with install instructions if not |
Shell |
| 1 | Detect target environments at the project root | Glob / Shell |
| 2 | Ask which React framework is in use (Next.js / TanStack Start / Vite + React) | Prompt |
| 3 | Generate (or merge) apm.yml at project root from templates/apm.yml |
Read / Write |
| 4 | Run apm install --target <list> (with user confirmation) |
Shell |
| 5 | Copy bundled skills to .claude/skills/ and .agents/skills/ |
Read / Write |
| 6 | Copy bundled rules to .claude/rules/ and (with frontmatter transform) .github/instructions/<name>.instructions.md |
Read / Write |
| 7 | Deploy framework-specific AGENTS.md to project root (Next.js only currently — others skip cleanly) |
Read / Write |
| 8 | Verify deployment and report | Glob / Shell |