Code development and quality assurance tools for systematic analysis, testing, debugging, and review. The Development plugin provides essential tools for building high-quality code. It includes commands for codebase analysis, test-driven development, debugging, code execution, and comprehensive code review. Three specialized agents provide expert assistance for architecture, testing, and code qual
Add this skill
npx mdskills install applied-artificial-intelligence/developmentComprehensive development toolkit with well-structured commands, excellent documentation, and clear usage examples
1# Development Plugin23Code development and quality assurance tools for systematic analysis, testing, debugging, and review.45## Overview67The Development plugin provides essential tools for building high-quality code. It includes commands for codebase analysis, test-driven development, debugging, code execution, and comprehensive code review. Three specialized agents provide expert assistance for architecture, testing, and code quality.89## Features1011- **Deep Analysis**: Semantic codebase understanding with architecture insights12- **Test-Driven Development**: Comprehensive TDD workflow with test generation13- **Universal Debugging**: Fix errors, bugs, and code issues with semantic analysis14- **Safe Execution**: Run scripts and code with monitoring and timeout control15- **Code Review**: Systematic review for bugs, design flaws, and quality issues16- **External Review Prep**: Package codebase for external review with RepoMix integration1718## Commands1920### `/analyze [focus_area] [--with-thinking] [--semantic]`21Analyze ANY project to understand its structure and architecture with semantic code intelligence and structured reasoning.2223**What it does**:24- Analyzes codebase structure and organization25- Identifies architectural patterns and design choices26- Maps dependencies and relationships27- Highlights potential issues and improvements28- Generates comprehensive analysis report2930**Usage**:31```bash32/analyze # Full project analysis33/analyze src/auth # Analyze specific area34/analyze --with-thinking # Use structured reasoning35/analyze --semantic # Use Serena semantic analysis36/analyze src/api --with-thinking --semantic # Deep analysis with all tools37```3839**Analysis Types**:40- **Structure**: Directory organization, module layout41- **Architecture**: Design patterns, architectural style42- **Dependencies**: Internal and external dependencies43- **Quality**: Code quality metrics, technical debt44- **Security**: Potential security issues45- **Performance**: Performance bottlenecks4647**Output**:48- Comprehensive analysis document49- Architectural diagrams (textual)50- Dependency maps51- Recommendations for improvements5253**When to use**:54- ✅ New codebase familiarization55- ✅ Architecture review56- ✅ Before major refactoring57- ✅ Technical debt assessment58- ✅ Onboarding new team members5960### `/test [tdd] [pattern]`61Test-driven development workflow using test-engineer agent. Create tests, analyze coverage, and ensure quality.6263**What it does**:64- Creates comprehensive test suites65- Analyzes test coverage66- Identifies untested code paths67- Generates test cases from specifications68- Runs tests and reports results6970**Usage**:71```bash72/test # Run existing tests73/test tdd # Start TDD workflow74/test src/auth/* # Test specific pattern75/test --coverage # Generate coverage report76```7778**TDD Workflow**:791. **Write test first**: Define expected behavior802. **Run test** (should fail initially)813. **Implement code**: Make test pass824. **Refactor**: Improve while keeping tests green835. **Repeat**: Next feature8485**Test Types Supported**:86- Unit tests87- Integration tests88- End-to-end tests89- Property-based tests90- Mutation tests9192**When to use**:93- ✅ New feature development (TDD)94- ✅ Bug fixes (regression tests)95- ✅ Refactoring (safety net)96- ✅ Coverage improvements97- ✅ Quality assurance9899### `/fix [error|review|audit|all] [file/pattern]`100Universal debugging and fix application with semantic code analysis. Debug errors or apply review fixes automatically.101102**What it does**:103- Analyzes errors and exceptions104- Identifies root causes105- Proposes and applies fixes106- Applies code review suggestions107- Fixes audit findings108109**Usage**:110```bash111/fix # Fix latest error112/fix error src/auth/login.js # Fix specific file errors113/fix review # Apply review suggestions114/fix audit # Fix audit findings115/fix all # Fix everything116```117118**Fix Sources**:119- **error**: Runtime errors, exceptions, crashes120- **review**: Code review feedback121- **audit**: Audit findings and compliance issues122- **test**: Test failures123- **lint**: Linter warnings and errors124125**Fix Process**:1261. Identify issue and context1272. Analyze root cause1283. Propose fix with explanation1294. Apply fix (with user confirmation if risky)1305. Verify fix resolves issue1316. Run tests to prevent regression132133**When to use**:134- ✅ Debugging runtime errors135- ✅ Addressing review feedback136- ✅ Fixing test failures137- ✅ Resolving linter issues138- ✅ Quick fixes with confidence139140### `/review [file/directory] [--spec requirements.md] [--systematic] [--semantic]`141Standard code review focused on bugs, design flaws, dead code, and code quality with prioritized action plan.142143**What it does**:144- Reviews code for bugs and logic errors145- Identifies design flaws and anti-patterns146- Finds dead code and unused variables147- Checks code quality and maintainability148- Provides prioritized recommendations149150**Usage**:151```bash152/review # Review recent changes153/review src/auth # Review directory154/review src/auth/login.js # Review specific file155/review --spec @requirements.md # Review against spec156/review --systematic # Use structured reasoning157/review --semantic # Use semantic code analysis158```159160**Review Focus Areas**:1611. **Bugs**: Logic errors, edge cases, null checks1622. **Design**: Architecture, patterns, coupling1633. **Dead Code**: Unused functions, variables, imports1644. **Quality**: Readability, maintainability, naming1655. **Security**: Vulnerabilities, input validation1666. **Performance**: Inefficiencies, optimization opportunities1677. **Testing**: Test coverage, test quality168169**Output Format**:170```171HIGH Priority:172- [BUG] Null pointer in login.js:45173- [SECURITY] SQL injection risk in query.js:120174175MEDIUM Priority:176- [DESIGN] God class in UserService.js177- [PERFORMANCE] N+1 query in getUsers()178179LOW Priority:180- [QUALITY] Inconsistent naming in helpers.js181- [DEAD CODE] Unused import in utils.js182```183184**When to use**:185- ✅ Before pull request submission186- ✅ After completing feature187- ✅ Regular code quality checks188- ✅ Onboarding review189- ✅ Security audits190191### `/prepare-review [focus_area_or_context]`192Prepare external code review package using RepoMix with intelligent file selection and token-efficient formatting.193194**What it does**:195- Intelligently selects relevant files for review196- Includes project documentation (README, specs, PRDs)197- Generates comprehensive review prompt198- Creates RepoMix package in XML format (no line numbers)199- Keeps token count <100k for external reviewer submission200201**Usage**:202```bash203/prepare-review # Generic quality review204/prepare-review "API authentication layer" # Focus on specific area205/prepare-review "Data pipeline error handling" # Focus on specific concerns206```207208**Review Package Includes**:2091. **Review Prompt**: Clear guidance on what to review and how2102. **Project Context**: README and specs (summarized if lengthy)2113. **Codebase**: Token-efficient RepoMix package (XML, no line numbers)212213**Output Location**:214```215.claude/external_reviews/YYYY-MM-DD-HHMM/216└── review_package.md # Complete package ready to share217```218219**Token Efficiency**:220- Target: <100,000 tokens (ideally much less)221- XML format for clean separation222- No line numbers (saves 20-30% tokens)223- Intelligent file selection (exclude utilities if not relevant)224- Documentation summarization (50 pages → 5 pages when appropriate)225226**File Selection Intelligence**:227- **Always Include**: Main entry points, core logic, API definitions, key architecture228- **Usually Exclude**: Tests, build artifacts, dependencies, simple utilities229- **Focus-Dependent**: Includes files relevant to specified focus area230231**Review Focus Areas** (default):232- Architecture and overall design233- Completeness (gaps, errors, omissions)234- Best practices for stated goals235- Maintainability and code quality236- Component integration and logic237238**When to use**:239- ✅ Before major architecture decisions240- ✅ External expert review needed241- ✅ Complex system requiring fresh perspective242- ✅ Onboarding senior engineer for review243- ✅ Pre-production quality gate244245**Requirements**:246- RepoMix installed (`npm install -g repomix`) or available via `npx`247- See: https://repomix.com248249**Example Output**:250```251✅ External review package prepared!252253Location: .claude/external_reviews/2025-11-14-0530/review_package.md254255Package Summary:256- Focus: API authentication layer257- Files included: 12 files (core auth modules)258- Token count: ~47,000 tokens ✅259- Format: XML (no line numbers)260261Next Steps:2621. Review the package2632. Copy entire review_package.md2643. Submit to external reviewer265```266267## Agents268269### Architect (`architect.md`)270System design and architectural decisions specialist. Provides high-level design guidance.271272**Expertise**:273- System architecture and design patterns274- Technology selection and evaluation275- Scalability and performance architecture276- Security architecture277- API design and integration patterns278279**Capabilities**:280- ✅ Structured reasoning for complex decisions281- ✅ Trade-off analysis for technology choices282- ✅ Architectural blueprint creation283- ✅ Design review and recommendations284- ✅ Technical specification writing285286**When to use**:287```bash288/agent architect "Design authentication system for multi-tenant SaaS"289/agent architect "Evaluate microservices vs monolith for our use case"290/agent architect "Review proposed API architecture"291```292293### Test Engineer (`test-engineer.md`)294Test creation, coverage analysis, and quality assurance specialist.295296**Expertise**:297- Test-driven development (TDD)298- Test suite design and organization299- Coverage analysis and improvement300- Testing strategies (unit, integration, e2e)301- Test framework selection302303**Capabilities**:304- ✅ Semantic code understanding for test generation305- ✅ Coverage gap identification306- ✅ Test case generation from specs307- ✅ Testing best practices308- ✅ Test quality assessment309310**When to use**:311```bash312/agent test-engineer "Create comprehensive tests for auth module"313/agent test-engineer "Analyze test coverage and suggest improvements"314/agent test-engineer "Design testing strategy for new feature"315```316317### Code Reviewer (`code-reviewer.md`)318Code review, documentation quality, and security audit specialist.319320**Expertise**:321- Code quality and maintainability322- Security vulnerability detection323- Documentation completeness324- Best practices enforcement325- Refactoring recommendations326327**Capabilities**:328- ✅ Structured reasoning for complex reviews329- ✅ Semantic code analysis330- ✅ Security-focused review331- ✅ Performance optimization suggestions332- ✅ Comprehensive feedback with priorities333334**When to use**:335```bash336/agent code-reviewer "Review authentication implementation for security"337/agent code-reviewer "Assess code quality of new payment module"338/agent code-reviewer "Review PR #123 for merge readiness"339```340341## Integration with Other Plugins342343### Core Plugin344- Uses `/agent` for invoking development agents345- Uses `/system:status` to show analysis and review progress346- Uses `/performance` for execution metrics347348### Workflow Plugin349- `/analyze` used during `/explore` phase350- `/test` and `/review` used during `/ship` validation351- `/fix` helps resolve issues blocking `/next`352353### Git Plugin354- `/review` provides feedback before git commit355- `/fix` applies changes that git commit includes356- Quality gates integrated with git workflow357358## Configuration359360### Analysis Defaults (`.claude/config.json`)361```json362{363 "development": {364 "analyze": {365 "defaultMode": "semantic",366 "useStructuredReasoning": true,367 "depthLevel": "comprehensive"368 }369 }370}371```372373### Test Defaults374```json375{376 "development": {377 "test": {378 "framework": "auto-detect",379 "coverageThreshold": 80,380 "runBeforeCommit": true381 }382 }383}384```385386### Review Defaults387```json388{389 "development": {390 "review": {391 "autoReview": false,392 "focusAreas": ["bugs", "security", "design"],393 "severityThreshold": "medium"394 }395 }396}397```398399## Dependencies400401### Required Plugins402- **claude-code-system** (^1.0.0): System status and configuration403404### Optional MCP Tools405- **Sequential Thinking**: Enhances architect and code-reviewer structured reasoning406- **Serena**: Enables semantic code understanding (70-90% token reduction for code ops)407- **Context7**: Library documentation access for best practices408409**Graceful Degradation**: All commands work without MCP tools.410411## Best Practices412413### Analysis Workflow414```bash415# 1. Start with high-level analysis416/analyze417418# 2. Deep-dive into specific areas419/analyze src/auth --semantic --with-thinking420421# 3. Review findings and plan improvements422```423424### TDD Workflow425```bash426# 1. Start TDD mode427/test tdd428429# 2. Write test first430# (test-engineer helps generate test cases)431432# 3. Run test (should fail)433npm test434435# 4. Implement feature436437# 5. Run test (should pass)438npm test439440# 6. Refactor441442# 7. Repeat443```444445### Review Workflow446```bash447# 1. Self-review before PR448/review --semantic449450# 2. Fix HIGH priority issues451/fix review452453# 3. Address MEDIUM priority454# (make changes manually or with /fix)455456# 4. Re-review to verify457/review458459# 5. Submit PR when clean460```461462## Performance Considerations463464### Serena Semantic Analysis465When Serena MCP is available:466- **Token Reduction**: 70-90% fewer tokens for code operations467- **Accuracy**: More precise symbol understanding468- **Speed**: Faster code navigation and search469470**Enable Serena**:471472Serena is enabled via MCP configuration (not a wrapper command). See [docs/mcp-setup.md](../../docs/mcp-setup.md) for setup instructions.473474### Sequential Thinking475When Sequential Thinking is available:476- **Quality**: +20-30% better architectural decisions477- **Tokens**: +15-30% more tokens (but worth it for complex decisions)478479**Automatic**: Used automatically by architect and code-reviewer when available480481## Troubleshooting482483### /analyze finds no issues484- Try `--with-thinking` for deeper analysis485- Use `--semantic` if Serena available486- Specify focus area: `/analyze src/problem-area`487488### /test can't find test files489- Verify test framework installed490- Check test file patterns in config491- Ensure tests exist in standard locations492493### /fix doesn't find errors494- Specify error source: `/fix error [file]`495- Try `/fix review` after running `/review`496- Check recent command output for errors497498### /review gives too much feedback499- Set severity threshold in config500- Focus on specific areas: `/review src/module`501- Address HIGH priority first, iterate on others502503## Metrics and Quality504505The development plugin tracks:506- **Code quality**: Issues found, severity distribution507- **Test coverage**: Percentage covered, gaps identified508- **Review metrics**: Issues per 1000 lines, time to review509- **Fix success**: Fixes applied, tests passing after fix510511View with:512```bash513/system:status verbose514/performance515```516517## Examples518519### Example 1: New Feature with TDD520```bash521# Start TDD workflow522/test tdd523524# Test-engineer generates test cases525# Implement feature to pass tests526527# Run tests528npm test529530# Review implementation531/review src/new-feature532533# Fix any issues534/fix review535536# Ship it537/ship --commit538```539540### Example 2: Bug Investigation541```bash542# Analyze problem area543/analyze src/buggy-module --semantic544545# Review code for bugs546/review src/buggy-module547548# Fix identified issues549/fix review550551# Run tests552npm test553554# Verify fix555/test src/buggy-module556```557558### Example 3: Architecture Review559```bash560# Get architect input561/agent architect "Review proposed microservices architecture"562563# Analyze current architecture564/analyze --with-thinking565566# Identify issues567/review --systematic568569# Plan improvements based on findings570```571572## Support573574- **Documentation**: [Development Guide](../../docs/guides/development.md)575- **Issues**: [GitHub Issues](https://github.com/applied-artificial-intelligence/claude-code-toolkit/issues)576- **Discussions**: [GitHub Discussions](https://github.com/applied-artificial-intelligence/claude-code-toolkit/discussions)577578## License579580MIT License - see [LICENSE](../../LICENSE) for details.581582---583584**Version**: 1.0.0585**Category**: Development586**Commands**: 7 (analyze, docs, fix, git, prepare-review, review, test)587**Agents**: 3 (architect, test-engineer, code-reviewer)588**Dependencies**: core (^1.0.0)589**MCP Tools**: Optional (sequential-thinking, serena, context7)590
Full transparency — inspect the skill content before installing.