A comprehensive development workflow framework that leverages AI-powered role simulation to ensure high-quality software delivery through structured planning, implementation, and review processes.
Swarm Coding transforms the solo development experience by simulating a full development team through AI personas. Each role follows industry best practices and maintains specific quality principles, creating a robust feedback loop that catches issues early and ensures code quality.
- Structured Workflow: Move from chaotic development to organized, predictable delivery
- Quality First: Every role has built-in quality gates and review processes
- Best Practices: Incorporates TDD, SOLID principles, and security-first thinking
- Comprehensive Documentation: Every decision and implementation is well-documented
- GitHub Integration: Seamless workflow with issues, projects, and pull requests
- π 5 Specialized Development Roles: PM, Architect, Developer, Security Expert, and QA Tester
- π 6 Comprehensive Review Roles: Architecture, Security, Testing, Documentation, DevOps, and UX
- π Structured Workflow Pipeline: Clear progression from ideation to deployment
- π Security-First Approach: Built-in security reviews and vulnerability scanning
- π§ͺ Test-Driven Development: Comprehensive testing at every stage
- π GitHub Project Integration: Full kanban board workflow with automated status updates
- π€ AI-Powered Code Reviews: Intelligent analysis of architecture, security, and code quality
- π Automated PR Workflow: Smart validation and review before pull request creation
- Git
- GitHub CLI (
gh) authenticated - Bash shell (macOS/Linux)
- AI assistant with access to the role instructions and CLAUDE.md
- Clone the repository:
git clone https://github.com/yourusername/swarm-coding.git
cd swarm-coding- Install the PR workflow (optional):
./scripts/pr-workflow/install-pr-workflow.sh- Configure GitHub project settings:
# Edit project configuration
vim scripts/github/project_config.sh
# Get your project field IDs
./scripts/github/manage_project_items.sh get-fields- Start with Product Management:
# Create an epic
gh issue create --title "Epic: New Feature" --label "epic"
# AI uses PM role to refine requirements
# Reference: docs/dev-roles/ROLE_PM.md- Technical Architecture:
# AI uses Architect role to design solution
# Updates issues to "Dev Ready" status
./scripts/github/manage_project_items.sh set-dev-ready [issue-number]- Implementation:
# Developer picks up "Dev Ready" issues
# Implements with TDD approach
# Creates PR when complete
./scripts/pr-workflow/create-pr.sh- Gathers requirements and defines user stories
- Creates epics with clear business value
- Prioritizes backlog based on user needs
- Quality Principle: User-centric, clarity first
- Converts user stories into technical designs
- Ensures scalability and maintainability
- Reviews code for architectural compliance
- Quality Principle: No shortcuts, long-term thinking
- Implements features using TDD
- Writes clean, functional code
- Creates comprehensive tests
- Quality Principle: Craft code with pride
- Reviews code for vulnerabilities
- Implements security best practices
- Validates authentication and authorization
- Quality Principle: Security is non-negotiable
- Creates comprehensive test plans
- Executes manual and automated tests
- Validates acceptance criteria
- Quality Principle: Quality through verification
- Architect Review: Focus on design patterns and architectural compliance
- Security Review: Identify vulnerabilities and security issues
- Testing Review: Ensure comprehensive test coverage
- Documentation Review: Ensure clarity, completeness, and accuracy of documentation
- DevOps Review: Validate CI/CD, infrastructure, and deployment practices
- UX Review: Assess user experience, accessibility, and interface design
Comprehensive tool for managing GitHub project board items.
# Set up an epic with sub-issues
./scripts/github/manage_project_items.sh setup-epic 17 18 19 20
# Set work item types and statuses
./scripts/github/manage_project_items.sh set-dev-ready 18
./scripts/github/manage_project_items.sh set-epic 17
# View project fields
./scripts/github/manage_project_items.sh get-fieldsIntelligent PR creation with built-in validation.
# Standard PR with full validation
./scripts/pr-workflow/create-pr.sh
# Quick validation against develop branch
./scripts/pr-workflow/create-pr.sh --base develop --mode quick
# Create draft PR
./scripts/pr-workflow/create-pr.sh --draftFeatures:
- Runs relevant tests based on changed files
- Performs AI code review on PR scope
- Generates detailed PR descriptions
- Adds appropriate labels
Sets up the PR workflow in your development environment.
./scripts/pr-workflow/install-pr-workflow.shCreates a GitHub issue and immediately sets it to "Dev Ready" status.
./scripts/create_dev_ready_issue.sh "Issue Title" issue-body.mdAggregates multiple review results into a summary (used by PR workflow).
Edit scripts/github/project_config.sh:
# GitHub repository settings
REPO_OWNER="your-org"
REPO_NAME="your-repo"
# Project board settings
PROJECT_NUMBER="1"
PROJECT_NAME="Your Project"
PROJECT_ID="PVT_xxxxxxxxxxxx"
# Field IDs (get these from manage_project_items.sh get-fields)
STATUS_FIELD_ID="PVTF_xxxxxxxxxxxx"
WORK_ITEM_TYPE_FIELD_ID="PVTF_xxxxxxxxxxxx"Edit scripts/pr-workflow/.pr-workflow-config:
# Validation settings
DEFAULT_VALIDATION_MODE="full"
DEFAULT_BASE_BRANCH="main"
# Label configuration
VALIDATED_LABEL="validation-passed"
VALIDATION_FAILED_LABEL="validation-failed"
MODULE_LABEL_PREFIX="module:"swarm-coding/
βββ docs/
β βββ dev-roles/ # Development role instructions
β βββ review-roles/ # Review role specifications
β βββ instructions/ # Workflow and process guides
β βββ testing/ # Testing documentation
βββ scripts/
β βββ github/ # GitHub integration scripts
β βββ pr-workflow/ # PR creation and validation
β βββ *.py/*.sh # Utility scripts
βββ LICENSE # MIT License
We welcome contributions! Please follow these guidelines:
- Use the Swarm Coding workflow: All contributions should follow our role-based process
- Start with an issue: Create an issue describing your proposed change
- Follow the roles: Use the appropriate role instructions for each phase
- Create quality PRs: Use our PR workflow script for validation
- Be patient: Reviews follow our comprehensive process
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Follow the Swarm Coding workflow (PM β Architect β Developer)
- Run tests and validation:
./scripts/pr-workflow/create-pr.sh - Submit PR with detailed description
- Follow language-specific best practices
- Write comprehensive tests (TDD preferred)
- Document all public APIs
- Ensure security compliance
- Maintain backward compatibility
- Development Workflow: Complete guide to the development process
- GitHub Workflow: How we use GitHub for project management
- Testing Guide: Comprehensive testing documentation
- Role Guides: Detailed instructions for each role
- Always start with PM role for new features
- Never skip the Architect phase for complex changes
- Use TDD - write tests first
- Review thoroughly - use all applicable review roles
- Document decisions in issues and PRs
- Keep PRs small and focused
- Update status regularly on the project board
Script permissions:
chmod +x scripts/**/*.shGitHub CLI authentication:
gh auth loginProject field IDs not found:
# Get current field IDs
./scripts/github/manage_project_items.sh get-fields
# Update project_config.sh with new IDsTrack your team's performance:
- Cycle Time: Time from backlog to done
- Defect Rate: Bugs found post-review
- Test Coverage: Percentage of code tested
- Review Turnaround: Time to complete reviews
- Inspired by agile methodologies and XP practices
- Built for developers who value quality
- Powered by AI assistance
This project is licensed under the MIT License - see the LICENSE file for details.
Made with β€οΈ by developers, for developers
Remember: Quality is not an act, it's a habit.