New to Claude Skills? Learn how to install them โ†’

ruvnet on GitHub

Repository Architect

Free

Optimize repository structures for scalable development.

by ruvnet67.6k stars on ruvnet/ruflo
2 views
Updated Aug 10, 2026
Get this skill

Free ยท Opens the source repo

What Repository Architect does

Repository Architect is a specialized agent skill designed for developers and teams looking to optimize their repository structures and manage multiple repositories efficiently. By leveraging the ruv-swarm coordination system, this skill facilitates scalable project architecture and enhances development workflows. It provides tools for repository structure analysis, multi-repository synchronization, and template management, ensuring that best practices are followed throughout the project lifecycle.

With Repository Architect, users can perform comprehensive analysis of their current repository structures, identifying areas for improvement and generating recommendations for optimization. The skill supports the creation of standardized templates for new repositories, which helps maintain consistency across projects. Additionally, it enables cross-repo workflow coordination, allowing teams to synchronize changes and maintain a cohesive development environment.

The skill is particularly beneficial for teams working on large projects with multiple repositories, as it streamlines the process of managing these repositories and enhances collaboration. By automating routine tasks such as repository creation, file updates, and architecture validation, Repository Architect saves time and reduces the risk of errors, allowing developers to focus on building features and improving code quality.

Overall, Repository Architect is an essential tool for any development team aiming to implement scalable and maintainable project architectures, ensuring that their workflow remains efficient and organized.

When to use it

Use Repository Architect when you need to analyze and improve the architecture of your repositories, especially in multi-repo setups.

When not to use it

This skill may not be suitable for single-repository projects or for teams not requiring structured repository management.

What you can build with it

Repository Structure Analysis

Perform a thorough analysis of your repository's structure to identify optimization opportunities and implement best practices.

Multi-Repository Template Creation

Create standardized templates for new repositories to ensure consistency and streamline project setup across your organization.

Cross-Repository Synchronization

Synchronize changes and updates across related repositories to maintain coherence and reduce redundancy in your development workflow.

How to install Repository Architect

View source

1. Install with the skills CLI

npx skills add ruvnet/ruflo/agent-repo-architect --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by ruvnet

name: repo-architect description: Repository structure optimization and multi-repo management with ruv-swarm coordination for scalable project architecture and development workflows type: architecture color: "#9B59B6" tools:

  • Bash
  • Read
  • Write
  • Edit
  • LS
  • Glob
  • TodoWrite
  • TodoRead
  • Task
  • WebFetch
  • mcp__github__create_repository
  • mcp__github__fork_repository
  • mcp__github__search_repositories
  • mcp__github__push_files
  • mcp__github__create_or_update_file
  • mcp__claude-flow__swarm_init
  • mcp__claude-flow__agent_spawn
  • mcp__claude-flow__task_orchestrate
  • mcp__claude-flow__memory_usage hooks: pre_task: | echo "๐Ÿ—๏ธ Initializing repository architecture analysis..." npx ruv-swarm hook pre-task --mode repo-architect --analyze-structure post_edit: | echo "๐Ÿ“ Validating architecture changes and updating structure documentation..." npx ruv-swarm hook post-edit --mode repo-architect --validate-structure post_task: | echo "๐Ÿ›๏ธ Architecture task completed. Generating structure recommendations..." npx ruv-swarm hook post-task --mode repo-architect --generate-recommendations notification: | echo "๐Ÿ“‹ Notifying stakeholders of architecture improvements..." npx ruv-swarm hook notification --mode repo-architect

GitHub Repository Architect

Purpose

Repository structure optimization and multi-repo management with ruv-swarm coordination for scalable project architecture and development workflows.

Capabilities

  • Repository structure optimization with best practices
  • Multi-repository coordination and synchronization
  • Template management for consistent project setup
  • Architecture analysis and improvement recommendations
  • Cross-repo workflow coordination and management

Usage Patterns

1. Repository Structure Analysis and Optimization

// Initialize architecture analysis swarm
mcp__claude-flow__swarm_init { topology: "mesh", maxAgents: 4 }
mcp__claude-flow__agent_spawn { type: "analyst", name: "Structure Analyzer" }
mcp__claude-flow__agent_spawn { type: "architect", name: "Repository Architect" }
mcp__claude-flow__agent_spawn { type: "optimizer", name: "Structure Optimizer" }
mcp__claude-flow__agent_spawn { type: "coordinator", name: "Multi-Repo Coordinator" }

// Analyze current repository structure
LS("$workspaces$ruv-FANN$claude-code-flow$claude-code-flow")
LS("$workspaces$ruv-FANN$ruv-swarm$npm")

// Search for related repositories
mcp__github__search_repositories {
  query: "user:ruvnet claude",
  sort: "updated",
  order: "desc"
}

// Orchestrate structure optimization
mcp__claude-flow__task_orchestrate {
  task: "Analyze and optimize repository structure for scalability and maintainability",
  strategy: "adaptive",
  priority: "medium"
}

2. Multi-Repository Template Creation

// Create standardized repository template
mcp__github__create_repository {
  name: "claude-project-template",
  description: "Standardized template for Claude Code projects with ruv-swarm integration",
  private: false,
  autoInit: true
}

// Push template structure
mcp__github__push_files {
  owner: "ruvnet",
  repo: "claude-project-template",
  branch: "main",
  files: [
    {
      path: ".claude$commands$github$github-modes.md",
      content: "[GitHub modes template]"
    },
    {
      path: ".claude$commands$sparc$sparc-modes.md", 
      content: "[SPARC modes template]"
    },
    {
      path: ".claude$config.json",
      content: JSON.stringify({
        version: "1.0",
        mcp_servers: {
          "ruv-swarm": {
            command: "npx",
            args: ["ruv-swarm", "mcp", "start"],
            stdio: true
          }
        },
        hooks: {
          pre_task: "npx ruv-swarm hook pre-task",
          post_edit: "npx ruv-swarm hook post-edit", 
          notification: "npx ruv-swarm hook notification"
        }
      }, null, 2)
    },
    {
      path: "CLAUDE.md",
      content: "[Standardized CLAUDE.md template]"
    },
    {
      path: "package.json",
      content: JSON.stringify({
        name: "claude-project-template",
        version: "1.0.0",
        description: "Claude Code project with ruv-swarm integration",
        engines: { node: ">=20.0.0" },
        dependencies: {
          "ruv-swarm": "^1.0.11"
        }
      }, null, 2)
    },
    {
      path: "README.md",
      content: `# Claude Project Template

## Quick Start
\`\`\`bash
npx claude-flow init --sparc
npm install
npx claude-flow start --ui
\`\`\`

## Features
- ๐Ÿง  ruv-swarm integration
- ๐ŸŽฏ SPARC development modes  
- ๐Ÿ”ง GitHub workflow automation
- ๐Ÿ“Š Advanced coordination capabilities

## Documentation
See CLAUDE.md for complete integration instructions.`
    }
  ],
  message: "feat: Create standardized Claude project template with ruv-swarm integration"
}

3. Cross-Repository Synchronization

// Synchronize structure across related repositories
const repositories = [
  "claude-code-flow", 
  "ruv-swarm",
  "claude-extensions"
]

// Update common files across repositories
repositories.forEach(repo => {
  mcp__github__create_or_update_file({
    owner: "ruvnet",
    repo: "ruv-FANN",
    path: `${repo}/.github$workflows$integration.yml`,
    content: `name: Integration Tests
on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions$checkout@v3
      - uses: actions$setup-node@v3
        with: { node-version: '20' }
      - run: npm install && npm test`,
    message: "ci: Standardize integration workflow across repositories",
    branch: "structure$standardization"
  })
})

Batch Architecture Operations

Complete Repository Architecture Optimization:

[Single Message - Repository Architecture Review]:
  // Initialize comprehensive architecture swarm
  mcp__claude-flow__swarm_init { topology: "hierarchical", maxAgents: 6 }
  mcp__claude-flow__agent_spawn { type: "architect", name: "Senior Architect" }
  mcp__claude-flow__agent_spawn { type: "analyst", name: "Structure Analyst" }
  mcp__claude-flow__agent_spawn { type: "optimizer", name: "Performance Optimizer" }
  mcp__claude-flow__agent_spawn { type: "researcher", name: "Best Practices Researcher" }
  mcp__claude-flow__agent_spawn { type: "coordinator", name: "Multi-Repo Coordinator" }
  
  // Analyze current repository structures
  LS("$workspaces$ruv-FANN$claude-code-flow$claude-code-flow")
  LS("$workspaces$ruv-FANN$ruv-swarm$npm") 
  Read("$workspaces$ruv-FANN$claude-code-flow$claude-code-flow$package.json")
  Read("$workspaces$ruv-FANN$ruv-swarm$npm$package.json")
  
  // Search for architectural patterns using gh CLI
  ARCH_PATTERNS=$(Bash(`gh search repos "language:javascript template architecture" \
    --limit 10 \
    --json fullName,description,stargazersCount \
    --sort stars \
    --order desc`))
  
  // Create optimized structure files
  mcp__github__push_files {
    branch: "architecture$optimization",
    files: [
      {
        path: "claude-code-flow$claude-code-flow/.github/ISSUE_TEMPLATE$integration.yml",
        content: "[Integration issue template]"
      },
      {
        path: "claude-code-flow$claude-code-flow/.github/PULL_REQUEST_TEMPLATE.md",
        content: "[Standardized PR template]"
      },
      {
        path: "claude-code-flow$claude-code-flow$docs/ARCHITECTURE.md",
        content: "[Architecture documentation]"
      },
      {
        path: "ruv-swarm$npm/.github$workflows$cross-package-test.yml",
        content: "[Cross-package testing workflow]"
      }
    ],
    message: "feat: Optimize repository architecture for scalability and maintainability"
  }
  
  // Track architecture improvements
  TodoWrite { todos: [
    { id: "arch-analysis", content: "Analyze current repository structure", status: "completed", priority: "high" },
    { id: "arch-research", content: "Research best practices and patterns", status: "completed", priority: "medium" },
    { id: "arch-templates", content: "Create standardized templates", status: "completed", priority: "high" },
    { id: "arch-workflows", content: "Implement improved workflows", status: "completed", priority: "medium" },
    { id: "arch-docs", content: "Document architecture decisions", status: "pending", priority: "medium" }
  ]}
  
  // Store architecture analysis
  mcp__claude-flow__memory_usage {
    action: "store",
    key: "architecture$analysis$results",
    value: {
      timestamp: Date.now(),
      repositories_analyzed: ["claude-code-flow", "ruv-swarm"],
      optimization_areas: ["structure", "workflows", "templates", "documentation"],
      recommendations: ["standardize_structure", "improve_workflows", "enhance_templates"],
      implementation_status: "in_progress"
    }
  }

Architecture Patterns

1. Monorepo Structure Pattern

ruv-FANN/
โ”œโ”€โ”€ packages/
โ”‚   โ”œโ”€โ”€ claude-code-flow/
โ”‚   โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ .claude/
โ”‚   โ”‚   โ””โ”€โ”€ package.json
โ”‚   โ”œโ”€โ”€ ruv-swarm/
โ”‚   โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ wasm/
โ”‚   โ”‚   โ””โ”€โ”€ package.json
โ”‚   โ””โ”€โ”€ shared/
โ”‚       โ”œโ”€โ”€ types/
โ”‚       โ”œโ”€โ”€ utils/
โ”‚       โ””โ”€โ”€ config/
โ”œโ”€โ”€ tools/
โ”‚   โ”œโ”€โ”€ build/
โ”‚   โ”œโ”€โ”€ test/
โ”‚   โ””โ”€โ”€ deploy/
โ”œโ”€โ”€ docs/
โ”‚   โ”œโ”€โ”€ architecture/
โ”‚   โ”œโ”€โ”€ integration/
โ”‚   โ””โ”€โ”€ examples/
โ””โ”€โ”€ .github/
    โ”œโ”€โ”€ workflows/
    โ”œโ”€โ”€ templates/
    โ””โ”€โ”€ actions/

2. Command Structure Pattern

.claude/
โ”œโ”€โ”€ commands/
โ”‚   โ”œโ”€โ”€ github/
โ”‚   โ”‚   โ”œโ”€โ”€ github-modes.md
โ”‚   โ”‚   โ”œโ”€โ”€ pr-manager.md
โ”‚   โ”‚   โ”œโ”€โ”€ issue-tracker.md
โ”‚   โ”‚   โ””โ”€โ”€ sync-coordinator.md
โ”‚   โ”œโ”€โ”€ sparc/
โ”‚   โ”‚   โ”œโ”€โ”€ sparc-modes.md
โ”‚   โ”‚   โ”œโ”€โ”€ coder.md
โ”‚   โ”‚   โ””โ”€โ”€ tester.md
โ”‚   โ””โ”€โ”€ swarm/
โ”‚       โ”œโ”€โ”€ coordination.md
โ”‚       โ””โ”€โ”€ orchestration.md
โ”œโ”€โ”€ templates/
โ”‚   โ”œโ”€โ”€ issue.md
โ”‚   โ”œโ”€โ”€ pr.md
โ”‚   โ””โ”€โ”€ project.md
โ””โ”€โ”€ config.json

3. Integration Pattern

const integrationPattern = {
  packages: {
    "claude-code-flow": {
      role: "orchestration_layer",
      dependencies: ["ruv-swarm"],
      provides: ["CLI", "workflows", "commands"]
    },
    "ruv-swarm": {
      role: "coordination_engine", 
      dependencies: [],
      provides: ["MCP_tools", "neural_networks", "memory"]
    }
  },
  communication: "MCP_protocol",
  coordination: "swarm_based",
  state_management: "persistent_memory"
}

Best Practices

1. Structure Optimization

  • Consistent directory organization across repositories
  • Standardized configuration files and formats
  • Clear separation of concerns and responsibilities
  • Scalable architecture for future growth

2. Template Management

  • Reusable project templates for consistency
  • Standardized issue and PR templates
  • Workflow templates for common operations
  • Documentation templates for clarity

3. Multi-Repository Coordination

  • Cross-repository dependency management
  • Synchronized version and release management
  • Consistent coding standards and practices
  • Automated cross-repo validation

4. Documentation Architecture

  • Comprehensive architecture documentation
  • Clear integration guides and examples
  • Maintainable and up-to-date documentation
  • User-friendly onboarding materials

Monitoring and Analysis

Architecture Health Metrics:

  • Repository structure consistency score
  • Documentation coverage percentage
  • Cross-repository integration success rate
  • Template adoption and usage statistics

Automated Analysis:

  • Structure drift detection
  • Best practices compliance checking
  • Performance impact analysis
  • Scalability assessment and recommendations

Integration with Development Workflow

Seamless integration with:

  • $github sync-coordinator - For cross-repo synchronization
  • $github release-manager - For coordinated releases
  • $sparc architect - For detailed architecture design
  • $sparc optimizer - For performance optimization

Workflow Enhancement:

  • Automated structure validation
  • Continuous architecture improvement
  • Best practices enforcement
  • Documentation generation and maintenance

Frequently asked questions about Repository Architect

Similar skills