A comprehensive collection of development workflow commands for Claude Code, designed to streamline software development processes from planning to deployment.
ClaudePreference provides a suite of specialized commands that automate and optimize common development workflows. These commands integrate seamlessly with Claude Code to provide intelligent assistance for:
- Development Lifecycle Management: From requirements analysis to deployment
- Code Quality Assurance: Automated reviews, testing, and security scanning
- Project Maintenance: Cleanup, documentation, and branch management
- Architecture Planning: Strategic design decisions and code analysis
Multi-agent development workflow with coordinated dev-review cycles.
Usage: Deploy three specialized agents (Orchestrator, Developer, Reviewer) for collaborative development in the current directory.
Features:
- Strategic planning with research validation
- Code implementation with review cycles
- Build verification and quality gates
- Evidence-based decision making
Automated commit and push workflow with intelligent message generation.
Parameters: [message] (optional)
Examples:
m-commit-push "feat: add user authentication"m-commit-push "fix: resolve memory leak"m-commit-push(auto-generates conventional commit message)
Comprehensive bug analysis, reproduction, and fix workflow.
Parameters: [source] (optional) - issue number, error text, screenshot, log file, or description
Examples:
m-bug-fix #123- Fix GitHub issuem-bug-fix "NullPointerException in login"m-bug-fix screenshot.png- Fix from error screenshotm-bug-fix logs/error.log- Analyze log file
Comprehensive security vulnerability scanning and assessment.
Parameters: [scope] (optional) - dependencies, auth, data-handling, full, or specific paths
Examples:
m-security-scan dependencies- Scan only dependenciesm-security-scan auth- Focus on authentication securitym-security-scan src/api- Scan specific directory
Automated test case generation with coverage analysis.
Parameters: [type] [target] [coverage] (optional)
Examples:
m-test-generation unit src/auth 90%- Generate unit tests with 90% coveragem-test-generation integration api- Generate integration testsm-test-generation e2e user-flow- Generate end-to-end tests
Tactical code review with quality assessment and reporting.
Parameters: [target] [depth] [focus] (optional)
Examples:
m-review-code src/auth deep security- Deep security reviewm-review-code PR#123 quick- Quick PR reviewm-review-code components standard performance- Performance review
Analyze requirements and generate structured implementation plans.
Parameters: [target] (optional) - requirement documents or project scope
Features:
- Requirements analysis and task decomposition
- Dependency mapping and sequencing
- Implementation strategy design
- Visual task flow diagrams
Generate comprehensive Test-Driven Development plans.
Parameters: [target] (optional) - requirement documents
Features:
- Test strategy design and framework selection
- Red-Green-Refactor cycle planning
- Test pyramid structure definition
- JSON-formatted implementation plan
Analyze current development status and generate prioritized action plans.
Parameters: [priority] (optional) - high, medium, low
Features:
- Documentation and tracker scanning
- Git history analysis for pending work
- Priority ranking and dependency assessment
- Comprehensive status reporting
Compile comprehensive task lists and background information.
Parameters: [target] (optional) - project scope or conversation context
Features:
- Project background analysis
- Task extraction and classification
- Supporting material collection
- Ambiguity detection and clarification
Automated project hygiene and maintenance workflow.
Parameters: [scope] (optional) - code, dependencies, structure, artifacts, config, all
Features:
- Dead code elimination
- Dependency pruning and updates
- Codebase formatting and linting
- Structural reorganization
Automated documentation maintenance and updates.
Parameters: [scope] (optional) - api, readme, changelog, comments, all, or specific paths
Features:
- API documentation refresh
- README and changelog updates
- Code comment validation
- Documentation consistency checks
Comprehensive branch management and cleanup workflow.
Features:
- Branch analysis and documentation
- Merged branch cleanup
- Functionality testing across versions
- Sequential merge operations
Lightweight branch cleanup without testing.
Parameters: [target_branch] (optional) - specific branch to prune
Features:
- Individual branch analysis
- Merged branch cleanup
- Specific worktree and branch removal
- Sequential merge operations
Strategic architecture review and analysis workflow.
Parameters: [target] (optional) - modules, directories, or "all"
Features:
- System-wide pattern identification
- Structural design issue detection
- Strategic "-ilities" evaluation
- High-level refactoring proposals
Tactical code review with detailed implementation analysis.
Parameters: [target] [depth] [focus] (optional)
Features:
- Code implementation analysis
- Implementation-level issue identification
- Coding standards compliance verification
- Line-level feedback generation
-
Prerequisites:
- Claude Code CLI installed and configured
- Appropriate development environment setup
- Appropriate MCP environment setup (e.g.
context7)
-
Usage:
# Navigate to your project directory cd /path/to/your/code git clone https://github.com/penwyp/ClaudePreference.git cd ClaudePreference cp commands/* ~/.claude/commands/ # Run another claude code command claude # User Slah "/" to select the command you want to run
# Start with task planning
/m-task-planner requirements.md
# Dev-Review Cycle
/m-orchestrated-dev requirements.md
# Generate tests for new features
/m-test-generation unit src/newfeature 85%
# Run security scan
/m-security-scan
# Commit and push changes
/m-commit-push "feat: implement user dashboard"# Analyze and fix bug
/m-bug-fix #456
# Generate regression tests
/m-test-generation unit src/bugfix
# Review and commit fix
/m-review-code src/bugfix standard
/m-commit-push "fix: resolve login timeout issue"# Comprehensive testing
/m-test-generation integration
# Update documentation
/m-document-update
# Security assessment
/m-security-scan full
# Clean up branches
/m-branch-prune# Strategic architecture analysis
/m-debate-architecture src/core
# Tactical code review
/m-debate-code src/api deep security
# Generate improvement plan
m-task-planner architecture-improvements.md- Command Sequencing: Use commands in logical order for optimal results
- Parameter Usage: Leverage optional parameters for targeted operations
- Regular Maintenance: Run cleanup and security scans regularly
- Documentation: Keep documentation updated after significant changes
- Testing: Generate comprehensive tests before major releases
Command Not Found:
- Ensure Claude Code CLI is properly installed
- Verify you're in the correct project directory
- Check that the commands/ directory exists
Permission Errors:
- Ensure proper Git permissions
- Verify write access to project files
- Check Claude Code authentication
Build Failures:
- Run
m-project-cleanupto resolve dependency issues - Ensure all prerequisites are installed
- Check for conflicting dependencies
For additional support:
- Check command-specific documentation in the
commands/directory - Review error messages for specific guidance
- Ensure your development environment meets all requirements
ClaudePreference/
βββ README.md # This file
βββ commands/ # Command definitions
β βββ README.md # Command usage guide (Chinese)
β βββ m-orchestrated-dev.md # Multi-agent development
β βββ m-commit-push.md # Commit and push workflow
β βββ m-bug-fix.md # Bug fix workflow
β βββ m-security-scan.md # Security scanning
β βββ m-test-generation.md # Test generation
β βββ m-review-code.md # Code review
β βββ m-task-planner.md # Task planning
β βββ m-tdd-planner.md # TDD planning
β βββ m-next-task.md # Next task analysis
β βββ m-next-context.md # Context compilation
β βββ m-project-cleanup.md # Project cleanup
β βββ m-document-update.md # Documentation updates
β βββ m-branch-prune.md # Branch cleanup
β βββ m-branch-prune-lite.md # Lightweight branch cleanup
β βββ m-debate-architecture.md # Architecture review
β βββ m-debate-code.md # Code review debate
βββ docs/ # Generated reports and documentation
βββ workspaces/ # Workflow output files
This project is designed to evolve with your development needs. Feel free to:
- Customize commands for your specific workflows
- Add new commands following the established patterns
- Improve existing command documentation
- Share your workflow optimizations
This project is open source and available under standard software development practices.
Built for developers who value intelligent automation and comprehensive workflow management.