Specification Driven Development AI agent installer with 20 specialized agents for Claude Code, GitHub Copilot, Cursor, Windsurf IDE, and AI CLIs (Gemini, Codex, Qwen)
npm install musuhiMusuhi is a specialized AI agent installer for Specification Driven Development (SDD) supporting Claude Code, GitHub Copilot, Cursor, Windsurf IDE, and AI CLIs (Gemini, Codex, Qwen). It provides 20 professional AI agents designed to support the entire software development lifecycle from requirements analysis to deployment and maintenance.
Specification Driven Development is a systematic approach where detailed specifications guide the entire development process. Musuhi's agents help you:
1. Define Clear Requirements - Requirements Analyst creates comprehensive specifications
2. Design Robust Architecture - System Architect and API Designer plan scalable solutions
3. Implement with Quality - Software Developer follows SOLID principles and best practices
4. Ensure Security & Performance - Security Auditor and Performance Optimizer verify quality
5. Deploy with Confidence - DevOps Engineer and Cloud Architect handle infrastructure
6. Maintain Excellence - Orchestrator coordinates all agents for continuous improvement
- ๐ฏ 20 Specialized Agents - Complete SDD workflow coverage
- ๐งญ Project Memory System - Steering context for consistent, context-aware development (v0.3.0)
- ๐ค Auto Context Awareness - All agents automatically check project memory before starting work (v0.4.4)
- ๐ Auto Steering Updates - Agents automatically update project memory after completing work (v0.4.9)
- ๐ EARS Format Support - Testable, verifiable requirements with Easy Approach to Requirements Syntax (v0.3.1)
- ๐ SDD Workflow Templates - Comprehensive templates for requirements, design, tasks, and research (v0.3.2)
- ๐ Incremental Document Generation - Generate documents one-by-one with visible progress and error recovery (v0.4.5)
- ๐ Multi-Platform Support - Works with Claude Code, GitHub Copilot, Cursor, Windsurf IDE, Gemini CLI, Codex CLI, and Qwen Code (v0.4.0)
- ๐ Quick Installation - One command via npx
- ๐ Orchestrator Agent - Coordinates multi-agent workflows
- ๐ง Fully Customizable - Adapt agents to your project needs
- ๐ Best Practices Built-in - SOLID, OWASP, C4 Model, ADR, and more
You can use Musuhi directly with npx without installing it globally:
``bash`
npx musuhi
Or install it globally:
`bash`
npm install -g musuhi
Run Musuhi without arguments for an interactive setup:
`bash`
npx musuhi
You'll be prompted to:
1. Choose your AI tool (Claude Code, GitHub Copilot, Cursor, Windsurf IDE, Gemini CLI, Codex CLI, or Qwen Code)
2. Specify the target directory (defaults to current directory)
Install agents directly with command-line arguments:
`bashFor Claude Code
npx musuhi install --tool claude-code
Directory Structure
$3
Agents are installed to .claude/agents/:`
your-project/
โโโ CLAUDE.md # Project configuration for Claude Code
โโโ steering/ # Project memory (shared context)
โ โโโ structure.md # Architecture patterns & directory organization
โ โโโ tech.md # Technology stack & framework decisions
โ โโโ product.md # Business context & product purpose
โ โโโ rules/ # Development guidelines
โ โ โโโ ears-format.md # EARS requirements syntax guide
โ โ โโโ workflow.md # SDD workflow guide (8 stages)
โ โ โโโ agent-validation-checklist.md # Agent quality validation
โ โโโ templates/ # Document templates
โ โโโ requirements.md # Requirements document template
โ โโโ design.md # Technical design template
โ โโโ tasks.md # Implementation plan template
โ โโโ research.md # Research document template
โโโ .claude/
โโโ README.md # Agent documentation
โโโ agents/ # 20 specialized agents
โโโ steering.md # Project memory manager
โโโ orchestrator.md
โโโ code-reviewer.md
โโโ software-developer.md
โโโ ... (16 more agents)
`The
CLAUDE.md file (in project root) provides Claude Code with project-specific context, including:
- Available agents and their purposes
- SDD workflow guidance
- Quick reference commands
- Best practices for using agents$3
Agents are installed to .github/agents/:`
your-project/
โโโ steering/ # Project memory (shared context)
โ โโโ structure.md # Architecture patterns & directory organization
โ โโโ tech.md # Technology stack & framework decisions
โ โโโ product.md # Business context & product purpose
โ โโโ rules/ # Development guidelines
โ โ โโโ ears-format.md # EARS requirements syntax guide
โ โ โโโ workflow.md # SDD workflow guide (8 stages)
โ โ โโโ agent-validation-checklist.md # Agent quality validation
โ โโโ templates/ # Document templates
โ โโโ requirements.md # Requirements document template
โ โโโ design.md # Technical design template
โ โโโ tasks.md # Implementation plan template
โ โโโ research.md # Research document template
โโโ .github/
โโโ copilot-instructions.md # Project configuration for GitHub Copilot
โโโ README.md # Agent documentation
โโโ agents/ # 20 specialized agents
โโโ steering.md # Project memory manager
โโโ orchestrator.md
โโโ code-reviewer.md
โโโ software-developer.md
โโโ ... (16 more agents)
`The
.github/copilot-instructions.md file provides GitHub Copilot with project-specific context, including:
- Available agents and their purposes
- SDD workflow guidance
- Quick reference commands
- Best practices for using agents$3
Agents are installed to .cursor/agents/:`
your-project/
โโโ .cursorrules # Project configuration for Cursor
โโโ steering/ # Project memory (shared context)
โ โโโ structure.md # Architecture patterns & directory organization
โ โโโ tech.md # Technology stack & framework decisions
โ โโโ product.md # Business context & product purpose
โ โโโ rules/ # Development guidelines
โ โ โโโ ears-format.md # EARS requirements syntax guide
โ โ โโโ workflow.md # SDD workflow guide (8 stages)
โ โ โโโ agent-validation-checklist.md # Agent quality validation
โ โโโ templates/ # Document templates
โ โโโ requirements.md # Requirements document template
โ โโโ design.md # Technical design template
โ โโโ tasks.md # Implementation plan template
โ โโโ research.md # Research document template
โโโ .cursor/
โโโ README.md # Agent documentation
โโโ agents/ # 20 specialized agents
โโโ steering.md # Project memory manager
โโโ orchestrator.md
โโโ code-reviewer.md
โโโ software-developer.md
โโโ ... (16 more agents)
`The
.cursorrules file provides Cursor with project-specific context and agent usage instructions.$3
Agents are installed to .windsurf/agents/:`
your-project/
โโโ .windsurfrules # Project configuration for Windsurf IDE
โโโ steering/ # Project memory (shared context)
โ โโโ structure.md # Architecture patterns & directory organization
โ โโโ tech.md # Technology stack & framework decisions
โ โโโ product.md # Business context & product purpose
โ โโโ rules/ # Development guidelines
โ โ โโโ ears-format.md # EARS requirements syntax guide
โ โ โโโ workflow.md # SDD workflow guide (8 stages)
โ โ โโโ agent-validation-checklist.md # Agent quality validation
โ โโโ templates/ # Document templates
โ โโโ requirements.md # Requirements document template
โ โโโ design.md # Technical design template
โ โโโ tasks.md # Implementation plan template
โ โโโ research.md # Research document template
โโโ .windsurf/
โโโ README.md # Agent documentation
โโโ agents/ # 20 specialized agents
โโโ steering.md # Project memory manager
โโโ orchestrator.md
โโโ code-reviewer.md
โโโ software-developer.md
โโโ ... (16 more agents)
`The
.windsurfrules file provides Windsurf IDE with project-specific context and agent usage instructions.$3
Agents are installed to .gemini/agents/, .codex/agents/, or .qwen/agents/:`
your-project/
โโโ gemini-config.md # Project configuration (or codex-config.md / qwen-config.md)
โโโ steering/ # Project memory (shared context)
โ โโโ structure.md # Architecture patterns & directory organization
โ โโโ tech.md # Technology stack & framework decisions
โ โโโ product.md # Business context & product purpose
โ โโโ rules/ # Development guidelines
โ โ โโโ ears-format.md # EARS requirements syntax guide
โ โ โโโ workflow.md # SDD workflow guide (8 stages)
โ โ โโโ agent-validation-checklist.md # Agent quality validation
โ โโโ templates/ # Document templates
โ โโโ requirements.md # Requirements document template
โ โโโ design.md # Technical design template
โ โโโ tasks.md # Implementation plan template
โ โโโ research.md # Research document template
โโโ .gemini/ # (or .codex/ or .qwen/)
โโโ README.md # Agent documentation
โโโ agents/ # 20 specialized agents
โโโ steering.md # Project memory manager
โโโ orchestrator.md
โโโ code-reviewer.md
โโโ software-developer.md
โโโ ... (16 more agents)
`The config markdown file provides the CLI tool with project-specific context and agent usage instructions. Invoke agents using
@ mentions (e.g., @orchestrator, @requirements-analyst).Project Memory (Steering System)
NEW in v0.3.0: Musuhi now includes a Project Memory system that acts as a shared context for all agents. This ensures consistent, context-aware development across your entire project.
$3
The
steering/ directory contains three core files that capture your project's "memory":-
structure.md - Architecture patterns, directory organization, naming conventions
- tech.md - Technology stack, frameworks, development tools, technical constraints
- product.md - Business context, product purpose, target users, core capabilities$3
1. Initial Setup: When you install Musuhi, template steering files are created
2. Bootstrap: Use the Steering Agent to analyze your codebase and generate project-specific steering files
3. Automatic Reference: All agents automatically read steering files to understand your project context
4. Consistency: Agents follow your architecture patterns, tech stack, and business requirements
5. Auto-Update: Agents automatically update steering files after completing their work (v0.4.9)
6. Sync: Use Steering Agent to review and validate changes
$3
NEW in v0.4.9: Agents now automatically update steering files after completing their work, keeping your project memory always up-to-date.
How It Works:
- Each agent updates relevant steering files based on their domain:
- Requirements Analyst โ Updates
product.md with features and requirements
- System Architect โ Updates structure.md with architecture patterns
- API Designer โ Updates tech.md with API stack information
- Database Schema Designer โ Updates tech.md with database configuration
- Cloud Architect โ Updates both tech.md (cloud services) and structure.md (infrastructure)
- UI/UX Designer โ Updates product.md with design system and user personas
- Project Manager โ Updates product.md with timeline and milestones
- Software Developer โ Updates structure.md with coding standards
- DevOps Engineer โ Updates tech.md with CI/CD and deployment tools
- Test Engineer โ Updates tech.md with testing frameworks
- Security Auditor โ Updates tech.md with security tools and compliance
- Database Administrator โ Updates tech.md with DB configuration
- AI/ML Engineer โ Updates tech.md with ML frameworks and pipelines
- Quality Assurance โ Updates tech.md with QA processesBenefits:
- โ
Always Current - Project memory stays synchronized with actual work
- โ
No Manual Updates - Agents handle steering updates automatically
- โ
Better Context - Subsequent agents have access to latest project state
- โ
Audit Trail - See what each agent added to project memory
$3
The Steering Agent manages your project memory:
`bash
First time: Bootstrap project memory from codebase analysis
@steering # (in Claude Code)Update: Sync steering files with codebase changes
@steering # Detects drift and suggests updatesReview: Check current steering context
@steering # View current project memory
`Modes:
- Bootstrap: Analyze codebase โ Generate steering files (first time)
- Sync: Compare code vs. steering โ Detect drift โ Update files
- Review: Display current steering context
$3
- โ
Consistent Architecture - All agents follow the same patterns
- โ
Tech Stack Awareness - Agents use your project's frameworks and tools
- โ
Business Context - Development aligned with product goals
- โ
Reduced Context Switching - Project knowledge persists across sessions
- โ
Team Alignment - Shared understanding of project structure and decisions
---
EARS Format for Requirements
NEW in v0.3.1: Musuhi now supports EARS (Easy Approach to Requirements Syntax), a standardized format for writing testable, verifiable acceptance criteria.
$3
EARS eliminates ambiguous requirements by providing structured patterns that ensure:
- โ
Testability - Every requirement can be verified with automated tests
- โ
Clarity - No ambiguous language like "should", "might", or "user-friendly"
- โ
Traceability - Direct mapping from requirements to test cases
- โ
Consistency - Standardized format across all requirements
$3
1. Event-Driven -
WHEN [event], the [system] SHALL [response]
- Example: WHEN user clicks "Submit", the Order System SHALL validate all form fields2. State-Driven -
WHILE [state], the [system] SHALL [response]
- Example: WHILE payment is processing, the Checkout UI SHALL display loading indicator3. Unwanted Behavior -
IF [error condition], THEN the [system] SHALL [response]
- Example: IF invalid card number is entered, THEN the Payment Form SHALL display "Invalid card number" error4. Optional Features -
WHERE [feature enabled], the [system] SHALL [response]
- Example: WHERE dark mode is enabled, the UI SHALL use dark color scheme5. Ubiquitous -
The [system] SHALL [response]
- Example: The User Service SHALL encrypt passwords using bcrypt with cost factor 12$3
`bash
Requirements Analyst creates requirements in EARS format
@requirements-analyst Create requirements for user authenticationResult: Acceptance criteria written as:
- WHEN user submits valid credentials, the Auth Service SHALL return JWT token
- IF user enters incorrect password 3 times, THEN the System SHALL lock account
- The Auth Service SHALL enforce password minimum 12 characters
Test Engineer converts EARS requirements directly to test cases
@test-engineer Generate tests from requirementsResult: Each EARS requirement becomes a test:
test_valid_login_returns_jwt()
test_three_failed_attempts_locks_account()
test_password_minimum_length_enforced()
`$3
- โ
Direct Req โ Test Mapping - EARS requirements translate 1:1 to test cases
- โ
No Ambiguity - Every requirement is specific and measurable
- โ
Better Coverage - All scenarios (happy path, errors, edge cases) are explicit
- โ
Faster Development - Developers know exactly what to build
- โ
Automated Validation - Acceptance criteria are machine-verifiable
$3
- Guidelines:
steering/rules/ears-format.md - Comprehensive EARS format documentation
- Template: steering/templates/requirements.md - Requirements document template with EARS examples
- Agents: Requirements Analyst, System Architect, and Test Engineer all support EARS format---
SDD Workflow Templates
NEW in v0.3.2: Musuhi now provides comprehensive document templates and workflow guidance to support the complete Specification Driven Development lifecycle.
$3
Musuhi implements a structured 8-stage workflow from research to deployment:
`
Research โ Requirements โ Design โ Tasks โ Implementation โ Testing โ Deployment โ Monitoring
`Workflow Guide:
steering/rules/workflow.md provides complete details on:
- Quality gates for each phase
- Agent handoff procedures
- Requirements traceability matrices
- Document lifecycle management
- Best practices (DO/DON'T lists)$3
All templates include bilingual support (English
.md and Japanese .ja.md versions):#### 1. Research Document (
steering/templates/research.md)
Purpose: Technical research and options analysis
When to use: Before starting requirements when technical decisions need investigationSections:
- Research questions and methodology
- Options analysis with pros/cons
- Comparison matrix
- Recommendation with rationale
- Risk assessment
#### 2. Requirements Document (
steering/templates/requirements.md)
Purpose: Define WHAT the system must do
Agent: @requirements-analystSections:
- Functional requirements in EARS format
- Non-functional requirements (performance, security, scalability)
- User stories with acceptance criteria
- Requirements traceability matrix
- MoSCoW prioritization
#### 3. Design Document (
steering/templates/design.md)
Purpose: Define HOW the system will be built
Agent: @system-architectSections:
- Architecture pattern selection (with justification)
- C4 model diagrams (context, container, component)
- Component specifications with EARS mapping
- API design, database schema, security design
- Sequence diagrams for major flows
- Technology stack alignment
- Appendix: EARS requirements cross-reference
#### 4. Tasks Document (
steering/templates/tasks.md)
Purpose: Break design into actionable implementation tasks
Agent: @project-manager or @software-developerSections:
- Phase-based task organization with dependencies
- Each task includes: Description, EARS-based acceptance criteria, subtasks, requirements mapped, design references
- Requirements coverage matrix (ensures 100% coverage)
- Team assignments and timeline (Gantt chart)
- Definition of Done checklist
- Appendix: EARS-to-test mapping guide
$3
All templates enforce bidirectional traceability:
`
Requirement โ Design Component โ Task โ Code โ Test
`Example:
-
REQ-001: WHEN user clicks submit, System SHALL validate
โ Design: FormValidator component (design.md section 4.2)
โ Task: Task 2.3 "Implement form validation"
โ Code: src/validators/FormValidator.ts:25
โ Test: tests/FormValidator.test.ts:test_submit_validation()$3
Each workflow stage has clear completion criteria:
- Requirements Gate: All requirements in EARS format, stakeholder approved
- Design Gate: All requirements mapped to design, architecture aligned with steering
- Implementation Gate: Code review passed, 80%+ test coverage, no critical bugs
- Testing Gate: All EARS requirements tested, all tests passing
- Deployment Gate: Staging deployment successful, monitoring configured
$3
`bash
1. (Optional) Research technical options
Create: research.md using template
2. Define requirements with Requirements Analyst
@requirements-analyst Create requirements for [feature]
Output: requirements.md with EARS acceptance criteria
3. Design architecture with System Architect
@system-architect Design [feature] based on requirements.md
Output: design.md with component specifications and EARS mapping
4. Create implementation plan
@project-manager Create tasks from design.md
Output: tasks.md with requirements coverage matrix
5. Implement with Software Developer
@software-developer Implement Task 2.1 from tasks.md
Developers reference requirement IDs in code comments
6. Test with Test Engineer
@test-engineer Generate tests from requirements.md
EARS requirements convert directly to test cases
7. Deploy
@devops-engineer Deploy following tasks.md timeline8. Monitor
@performance-optimizer Monitor production metrics
`$3
- Workflow Guide:
steering/rules/workflow.md - Complete 8-stage SDD workflow
- Validation: steering/rules/agent-validation-checklist.md - Agent quality validation framework
- Templates Directory: steering/templates/ - All document templates with examples$3
- โ
Structured Process - Clear workflow from requirements to deployment
- โ
Complete Traceability - Track every requirement through to code and tests
- โ
Quality Assurance - Quality gates prevent incomplete work from advancing
- โ
Team Coordination - Standardized documents improve handoffs between roles
- โ
Comprehensive Coverage - Requirements coverage matrix ensures nothing is missed
- โ
Bilingual Support - All templates available in English and Japanese
---
Available Agents (20 Specialists)
$3
- Orchestrator - Master coordinator managing all 19 specialized agents for Specification Driven Development workflows, handling task decomposition, agent selection, and result integration
- Steering Agent - ๐งญ Project memory manager that analyzes codebase to generate and maintain steering context (architecture patterns, tech stack, business context) for consistent development$3
- Requirements Analyst - Requirements analysis, user story creation, specification definition, SRS documents, and acceptance criteria
- Project Manager - Project planning, scheduling, risk management, progress tracking, and team coordination$3
- System Architect - Architecture design, C4 model diagrams, ADR creation, tradeoff analysis, and technology selection
- API Designer - REST/GraphQL/gRPC API design, OpenAPI specifications, API best practices, and endpoint documentation
- Database Schema Designer - ER diagrams, normalization, DDL generation, indexing strategies, and schema optimization
- UI/UX Designer - User interface design, wireframes, prototypes, design systems, and usability testing$3
- Software Developer - Multi-language code implementation (TypeScript, Python, Java, Go, etc.), SOLID principles, design patterns, and clean architecture
- Test Engineer - Unit, integration, and E2E testing across Jest, Pytest, Cypress, Playwright, and other frameworks$3
- Code Reviewer - Comprehensive code review focusing on quality, security, SOLID principles, performance, and best practices
- Bug Hunter - Bug investigation, root cause analysis, systematic debugging, and fix generation
- Quality Assurance - QA strategy, test planning, quality metrics, and comprehensive testing coordination$3
- Security Auditor - OWASP Top 10 checks, authentication/authorization review, encryption validation, and vulnerability detection
- Performance Optimizer - Performance analysis, bottleneck detection, optimization strategies, profiling, and benchmarking$3
- DevOps Engineer - CI/CD pipelines, Docker/Kubernetes deployment, infrastructure automation, and monitoring setup
- Cloud Architect - AWS/Azure/GCP architecture, IaC (Terraform/Bicep), cost optimization, and cloud-native design
- Database Administrator - Database operations, performance tuning, backup/recovery, monitoring, and high availability$3
- Technical Writer - Technical documentation, API docs, user guides, README files, and comprehensive project documentation
- AI/ML Engineer - Machine learning model development, training, evaluation, deployment, and MLOps practices$3
- Interactive Dialogue - Each agent uses structured 5-phase conversations to gather requirements
- Documentation Standards - English-first documentation with Japanese translations (.md and .ja.md)
- Best Practices - Built-in adherence to SOLID, OWASP, C4 Model, ADR, TDD, DDD, and more
- File Management - Organized output directories with progress tracking and traceabilityUsage Examples
$3
`
1. Requirements Analysis
@requirements-analyst I need to build a task management web application2. Architecture Design
@system-architect Design architecture for the task management system based on requirements-specification.md3. API Design
@api-designer Create REST API specifications for the task management endpoints4. Database Design
@database-schema-designer Design database schema based on the API specifications5. Implementation
@software-developer Implement the task API endpoints using TypeScript and Express6. Testing
@test-engineer Create comprehensive tests for the task management API7. Security Review
@security-auditor Audit the authentication and authorization implementation8. Deployment
@devops-engineer Set up CI/CD pipeline for the task management application
`$3
`
@orchestrator Create a complete e-commerce platform with user authentication,
product catalog, shopping cart, and payment integration. Start from requirements.
`Language Selection: When you first invoke the Orchestrator, it will ask you to choose your preferred language (English or Japanese) for console output. Your choice will be remembered throughout the session.
`
๐ญ Orchestrator AIWelcome! / ใใใใ๏ผ
Which language would you like to use for console output?
ใณใณใฝใผใซๅบๅใซใฉใกใใฎ่จ่ชใไฝฟ็จใใพใใ๏ผ
Please select / ้ธๆใใฆใใ ใใ:
a) English
b) ๆฅๆฌ่ช (Japanese)
`The Orchestrator will automatically:
- Select appropriate agents (Requirements Analyst โ System Architect โ API Designer โ Software Developer โ Test Engineer โ Security Auditor)
- Coordinate their execution
- Manage dependencies between tasks
- Integrate and validate outputs
$3
`
@code-reviewer Review the authentication module in src/auth/@bug-hunter Investigate the intermittent login failure issue
@performance-optimizer Analyze and optimize the product search query performance
`$3
`
@technical-writer Create API documentation based on the OpenAPI specification@technical-writer Generate user guide for the task management features
`Customization
After installation, you can customize the agent templates by editing the markdown files in the
agents/ directory. Add project-specific guidelines, coding standards, or modify the agent behavior to suit your needs.$3
1. Add Company-Specific Guidelines
- Edit
code-reviewer.md to include your coding standards
- Update security-auditor.md with company security policies2. Configure Agent Behavior
- Adjust the 5-phase dialogue flow
- Modify output directory structures
- Add custom checklists
3. Language Preferences
- All agents support English and Japanese documentation
- Customize the language policy in each agent file
Development
To contribute or modify Musuhi:
`bash
Clone the repository
git clone https://github.com/nahisaho/musuhi.git
cd musuhiInstall dependencies
npm installBuild the project
npm run buildTest locally
npm link
musuhi --help
``"Musuhi" (็ตใณ) is a Japanese word meaning "connection" or "binding". It represents the tool's purpose of connecting developers with AI agents, binding useful templates to your projects.
MIT
Contributions are welcome! Please feel free to submit a Pull Request.