| name | repo-architect |
| description | Bootstraps and validates agentic project structures for GitHub Copilot (VS Code) and OpenCode CLI workflows. Run after `opencode /init` or VS Code Copilot initialization to scaffold proper folder hierarchies, instructions, agents, skills, and prompts. |
Repo Architect
Scaffold and validate agentic project structures for VS Code GitHub Copilot and/or OpenCode CLI.
3-Layer Architecture
PROJECT ROOT
โโโ [LAYER 1: FOUNDATION]
โ โโโ .github/copilot-instructions.md โ VS Code reads this
โ โโโ AGENTS.md โ OpenCode CLI reads this
โโโ [LAYER 2: SPECIALISTS]
โ โโโ .github/agents/*.agent.md
โ โโโ .opencode/agents/*.agent.md
โโโ [LAYER 3: CAPABILITIES]
โโโ .github/skills/*.md
โโโ .github/prompts/*.prompt.md
โโโ .github/instructions/*.instructions.md
Commands
/bootstrap โ Full Scaffolding
- Detect existing
.github/, .opencode/, project language/framework
- Create directory structure:
.github/copilot-instructions.md
.github/agents/ .github/instructions/ .github/prompts/ .github/skills/
.opencode/opencode.json .opencode/agents/ # if OpenCode detected
AGENTS.md โ symlink or custom version of copilot-instructions.md
- Generate foundation files from templates (see references/templates.md)
- Add starter agent, instructions, and prompt for the detected stack
- Run
/validate after scaffolding
/validate โ Structure Check
- Check required files exist and are non-empty
- Spot-check naming conventions (lowercase-with-hyphens, correct extensions)
- Verify symlinks are valid (hybrid setup)
- Report:
โ
Structure Valid | โ ๏ธ Warnings | โ Issues
Foundation: โ
copilot-instructions.md โ
AGENTS.md
Agents: โ
reviewer.agent.md โ ๏ธ architect.agent.md โ missing 'model'
Skills: โ test-gen.prompt.md โ missing 'description'
/migrate โ Migrate Existing Config
Supported sources: .cursor/, .aider/, standalone AGENTS.md, .vscode/ settings โ .github/ + .opencode/
/sync โ Sync VS Code โ OpenCode
Update symlinks, propagate shared skill changes, validate cross-environment consistency.
/suggest โ Community Resources
Requires awesome-copilot MCP server. Check for mcp_awesome-copil_* tools first.
- If available: search for agents/instructions/prompts matching the detected stack, suggest collections, offer install links
- If not available: skip entirely; optionally inform the user to enable the MCP server
Execution Rules
- Detect first โ survey the project before making changes
- Non-destructive โ never overwrite without confirmation
- Validate after โ always run
/validate after /bootstrap or /migrate
- Respect existing conventions โ adapt templates to match project style
For file templates and frontmatter requirements, see references/templates.md.
Output Format
After each command provide:
- Summary โ what was created/validated
- Next Steps โ recommended immediate actions
- Customization Hints โ how to tailor for specific needs