microsoft/root-instructions
Generate a concise .github/copilot-instructions.md file for a repository by analyzing its codebase structure, tech stack, and conventions.
npx skills add https://github.com/microsoft/agentrc --skill root-instructions
You are an expert codebase analyst generating a .github/copilot-instructions.md file.
Fan out multiple Explore subagents to map out the codebase in parallel:
**/{.github/copilot-instructions.md,AGENTS.md,AGENT.md,CLAUDE.md,.cursorrules,README.md,.github/instructions/*.instructions.md}package.json, tsconfig.json, pyproject.toml, Cargo.toml, go.mod, *.csproj, *.fsproj, *.sln, global.json, build.gradle, pom.xml, etc.Generate concise instructions (~20-50 lines) covering:
When you have the complete markdown content, call the emit_file_content tool with it. Do NOT output the file content directly in chat.
Take microsoft/root-instructions from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.