Repo Architect — Commands
| Field | Value |
|---|---|
| Type | Agent Reference |
| Source | ~/.copilot/agents/_refs/repo-architect/commands.md |
| Description | Not specified |
Source Content
Repo Architect — Commands
Reference for the slash-style commands the Repo Architect agent supports. The agent body links here; do not duplicate inline.
/bootstrap — full project scaffolding
-
Detect environment
- Check for
.github/,.opencode/,AGENTS.md - Identify project language/framework
- Decide: VS Code, OpenCode CLI, or hybrid
- Check for
-
Create directory structure
.github/copilot-instructions.mdagents/instructions/prompts/skills/.opencode/ # if OpenCode CLI is in scopeopencode.jsonagents/skills/ -> ../.github/skills # symlink preferredAGENTS.md # symlink to .github/copilot-instructions.md (or distilled) -
Generate foundation files
copilot-instructions.mdwith project contextAGENTS.md(symlink or custom distilled version)- Starter
opencode.jsonif CLI is used
-
Add starter templates
- One sample agent for the primary stack
- One basic instructions file for code style
- Common prompts (test-gen, doc-gen, explain)
-
Suggest community resources — only if
awesome-copilotMCP tools are present.
/validate — structure validation
Focus on structure, not deep file inspection.
-
Required files & directories
-
.github/copilot-instructions.mdexists, non-empty -
AGENTS.mdexists if OpenCode CLI is in use -
.github/agents/,.github/prompts/,.github/instructions/,.github/skills/exist
-
-
Spot-check naming
- lowercase-with-hyphens
- correct extensions (
.agent.md,.prompt.md,.instructions.md)
-
Symlinks (hybrid setups)
- valid, pointing to existing files
-
Report — emit a status block:
Status: Valid | Warnings | IssuesFoundation Layer:OK copilot-instructions.md (1245 chars)OK AGENTS.md (symlink -> .github/copilot-instructions.md)Agents Layer:OK .github/agents/reviewer.mdWARN .github/agents/architect.md - missing 'model' fieldSkills Layer:OK .github/skills/git-workflow.mdERR .github/prompts/test-gen.prompt.md - missing 'description'
/migrate — migration from existing setup
Supported sources:
.cursor/rules →.github/.aider/config →.github/+.opencode/- Standalone
AGENTS.md→ full three-layer structure .vscode/settings → distilled into Copilot instructions
Always non-destructive: copy + diff first, never overwrite without confirmation.
/sync — synchronize VS Code and OpenCode
- Refresh symlinks
- Propagate updates from shared
skills/directory - Verify cross-environment consistency (foundation files in sync, no orphan files)
/suggest — community resource recommendations
Requires the awesome-copilot MCP server. If mcp_awesome-copil_* tools are
not detected, the agent skips this entirely and informs the user once.
Workflow when available:
- Detect MCP tools
- Use
mcp_awesome-copil_search_instructionswith stack keywords - Use
mcp_awesome-copil_list_collectionsto find curated collections - Recommend, e.g.:
typescript-mcp-developmentfor TS projectspython-mcp-developmentfor Python projectscsharp-dotnet-developmentfor .NET projectstesting-automationfor test-heavy projects
- Use
mcp_awesome-copil_load_collectionto fetch details, then provide install links for VS Code / VS Code Insiders, or offer direct download.
Scaffolding templates
copilot-instructions.md
# Project: {PROJECT_NAME}
## Overview{Brief project description}
## Tech Stack- Language: {LANGUAGE}- Framework: {FRAMEWORK}- Package Manager: {PACKAGE_MANAGER}
## Code Standards- Follow {STYLE_GUIDE}- Format with {FORMATTER}- Lint with {LINTER}
## Architecture{High-level architecture notes}
## Development Workflow1. {Step}2. {Step}
## Important Patterns- {Pattern}
## Do Not- {Anti-pattern}Agent (.agent.md)
---description: '{DESCRIPTION}'model: GPT-4.1tools: [{RELEVANT_TOOLS}]---
# {AGENT_NAME}
## Role## Capabilities## GuidelinesInstructions (.instructions.md)
---description: '{DESCRIPTION}'applyTo: '{FILE_PATTERNS}'---
# {LANGUAGE/DOMAIN} InstructionsPrompt (.prompt.md)
---agent: 'agent'description: '{DESCRIPTION}'---
{PROMPT_CONTENT}Skill (SKILL.md)
---name: '{skill-name}'description: '{DESCRIPTION - 10 to 1024 chars}'---
# {Skill Name}## Purpose## Instructions## AssetsFrontmatter requirements (reference)
| File type | Required | Recommended |
|---|---|---|
.agent.md | description | model, tools, name |
.prompt.md | agent, description | model, tools, name |
.instructions.md | description, applyTo | — |
SKILL.md | name, description | — |
Notes:
agentaccepts'agent','ask', or'Plan'.applyTouses glob patterns:'**/*.ts'or'**/*.ts, **/*.tsx'.SKILL.mdnamemust match the folder name (lowercase-hyphens).
Naming & size guidelines
- All files: lowercase with hyphens (
my-agent.agent.md); no spaces. - Skill folders: match the
namefield inSKILL.md. copilot-instructions.md: 500–3000 chars (keep focused).AGENTS.md: may be larger (CLI context window is cheaper).- Individual agents: 500–2000 chars.
- Skills: up to 5000 chars plus assets.
Language presets
- JavaScript/TypeScript — Biome (or ESLint+Prettier), Vitest, component generator
- Python — Ruff/Black, pytest, type-hint conventions
- Go — gofmt, table-driven tests, error wrapping
- Rust — Cargo, Clippy, ownership patterns
- .NET/C# — dotnet conventions, xUnit, async/await guidance