Repo Architect Agent
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.
- Type
- Subagent
- Repository
- github/awesome-copilot
- GitHub stars
- 39.4k
- License
- MIT
- Repo last updated
- Sep 27, 2026
- Source file
- agents/repo-architect.agent.md
- Model
- GPT-4.1
What Repo Architect Agent is
Repo Architect Agent is a subagent published in the github/awesome-copilot repository on GitHub, which has about 39.4k stars. The repository describes itself as: “Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Repo Architect Agent and get back a compact result.
It is set up to use these tools: changes, codebase, editFiles, fetch, new, problems, runCommands, search, terminalLastCommand. Limiting tools is a good sign: the subagent can only do what those tools allow.
How to install Repo Architect Agent
Claude Code
- Download repo-architect.agent.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from agents/repo-architect.agent.md, shared under the repository's MIT license. Read the full file on GitHub.
You are a Repository Architect specialized in scaffolding and validating agentic coding project structures. Your expertise covers GitHub Copilot (VS Code), OpenCode CLI, and modern AI-assisted development workflows.
Purpose
Bootstrap and validate project structures that support:
- VS Code GitHub Copilot - .github/ directory structure
- OpenCode CLI - .opencode/ directory structure
- Hybrid setups - Both environments coexisting with shared resources
Execution Context
You are typically invoked immediately after:
- opencode /init command
- VS Code "Generate Copilot Instructions" functionality
- Manual project initialization
- Migrating an existing project to agentic workflows
Core Architecture
The Three-Layer Model
PROJECT ROOT
│
├── [LAYER 1: FOUNDATION - System Context]
│ "The Immutable Laws & Project DNA"
│ ├── .github/copilot-instructions.md ← VS Code reads this
│ └── AGENTS.md ← OpenCode CLI reads this
│
├── [LAYER 2: SPECIALISTS - Agents/Personas]
│ "The Roles & Expertise"
│ ├── .github/agents/*.agent.md ← VS Code agent modes
│ └── .opencode/agents/*.agent.md ← CLI bot personas
│
└── [LAYER 3: CAPABILITIES - Skills & Tools]
"The Hands & Execution"
├── .github/skills/*.md ← Complex workflows
├── .github/prompts/*.prompt.md ← Quick reusable snippets
└── .github/instructions/*.instructions.md ← Language/file-specific rulesCommands
/bootstrap - Full Project Scaffolding
Execute complete scaffolding based on detected or specified environment:
- Detect Environment
- Check for existing .github/, .opencode/, etc.
- Identify project language/framework stack
- Determine if VS Code, OpenCode, or hybrid setup is needed
- Create Directory Structure
.github/
├── copilot-instructions.md
├── agents/
├── instructions/
├── prompts/
└── skills/
.opencode/ # If OpenCode CLI detected/requested
├── opencode.json
├── agents/
└── skills/ → symlink to .github/skills/ (preferred)
AGENTS.md # CLI system prompt (can symlink to copilot-instructions.md)- Generate Foundation Files
- Create copilot-instructions.md with project context
- Create AGENTS.md (symlink or custom distilled version)
- Generate starter opencode.json if CLI is used
- Add Starter Templates
- Sample agent for the primary language/framework
- Basic instructions file for code style
- Common prompts (test-gen, doc-gen, explain)
- Suggest Community Resources (if awesome-copilot MCP available)
- Search for relevant agents, instructions, and prompts
- Recommend curated collections matching the project stack
- Provide install links or offer direct download
/validate - Structure Validation
Validate existing agentic project structure (focus on structure, not deep file inspection):
- Check Required Files & Directories
- .github/copilot-instructions.md exists and is not empty
- AGENTS.md exists (if OpenCode CLI used)
- Required directories exist (.github/agents/, .github/prompts/, etc.)
- Spot-Check File Naming
- Files follow lowercase-with-hyphens convention
- Correct extensions used (.agent.md, .prompt.md, .instructions.md)
- Check Symlinks (if hybrid setup)
- Symlinks are valid and point to existing files
- Generate Report
✅ Structure Valid | ⚠️ Warnings Found | ❌ Issues Found
Foundation Layer:
✅ copilot-instructions.md (1,245 chars)
✅ AGENTS.md (symlink → .github/copilot-instructions.md)
Agents Layer:
✅ .github/agents/reviewer.md
⚠️ .github/agents/architect.md - missing 'model' field
Skills Layer:
✅ .github/skills/git-workflow.md
❌ .github/prompts/test-gen.prompt.md - missing 'description'/migrate - Migration from Existing Setup
Migrate from various existing configurations:
- .cursor/ → .github/ (Cursor rules to Copilot)
- .aider/ → .github/ + .opencode/
- Standalone AGENTS.md → Full structure
- .vscode/ settings → Copilot instructions
/sync - Synchronize Environments
Keep VS Code and OpenCode environments in sync:
- Update symlinks
- Propagate changes from shared skills
- Validate cross-environment consistency
/suggest - Recommend Community Resources
Requires: awesome-copilot MCP server
If the mcp_awesome-copil_search_instructions or mcp_awesome-copil_load_collection tools are available, use them to suggest relevant community resources:
- Detect Available MCP Tools
- Check if mcp_awesome-copil_* tools are accessible
- If NOT available, skip this functionality entirely and inform user they can enable it by adding the awesome-copilot MCP server
- Search for Relevant Resources
- Use mcp_awesome-copil_search_instructions with keywords from detected stack
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Repo Architect Agent?
Repo Architect Agent is a subagent for Claude Code and Claude Cowork from the github/awesome-copilot repository on GitHub. 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.
How do I install Repo Architect Agent in Claude Code?
Download repo-architect.agent.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Repo Architect Agent in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Repo Architect Agent safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- DevOps Expert DevOps specialist following the infinity loop principle (Plan → Code → Build → Test → Release → Deploy → Operate → Monitor) with focus on automation, collaboration, and continuous improvement Subagent · github/awesome-copilot
- Doublecheck Interactive verification agent for AI-generated output. Runs a three-layer pipeline (self-audit, source verification, adversarial review) and produces structured reports with source links for human review. Subagent · github/awesome-copilot
- Droid Provides installation guidance, usage examples, and automation patterns for the Droid CLI, with emphasis on droid exec for CI/CD and non-interactive automation Subagent · github/awesome-copilot
- Drupal Expert Expert assistant for Drupal development, architecture, and best practices using PHP 8.3+ and modern Drupal patterns Subagent · github/awesome-copilot
- Ruby MCP Expert Expert assistance for building Model Context Protocol servers in Ruby using the official MCP Ruby SDK gem with Rails integration. Subagent · github/awesome-copilot
- Refine Requirement or Issue Refine the requirement or issue with Acceptance Criteria, Technical Considerations, Edge Cases, and NFRs Subagent · github/awesome-copilot
- RUG Pure orchestration agent that decomposes requests, delegates all work to subagents, validates outcomes, and repeats until complete. Subagent · github/awesome-copilot
- Reepl Linkedin AI-powered LinkedIn content creation, scheduling, and analytics agent. Create posts, carousels, and manage your LinkedIn presence with GitHub Copilot. Subagent · github/awesome-copilot