Dev swarm code development

From X-School-Academy/skill-pilot · View interactive version

Dev swarm code development is an AI agent skill from the GitHub repository X-School-Academy/skill-pilot. Complete backlog implementation in feature-driven development. Read backlog requirements, reference implemented features, design approach, implement code, and document. Use when implementing features, changes, bug fixes, or improvements.

How to use this skill

Skill file

AI Builder - Code Development

This skill implements backlogs through a structured feature-driven approach. As a Software Engineer expert, you'll read backlog requirements, reference existing features, design implementation approach, write code, and create comprehensive documentation for the features knowledge base.

When to Use This Skill

Prerequisites

This skill requires:

Feature-Driven Development Workflow

CRITICAL: This skill follows a strict feature-driven approach where feature-name is the index for the entire project:

For Each Backlog:

  1. Read backlog from 10-sprints/SPRINT-XX-descriptive-name/[BACKLOG_TYPE]-XX-[feature-name]-<sub-feature>.md
  2. Extract the feature-name from the backlog file name
  3. Read features/features-index.md to find the feature file
  4. Read feature documentation in this order:
  1. Locate source code at {SRC}/ using features/impl/[feature-name].md
  2. Implement the code following 07-tech-specs/
  3. Update backlog with development notes

This approach ensures AI developers can work on large projects without reading all code at once.

Your Roles in This Skill

See dev-swarm/docs/general-dev-stage-rule.md for role selection guidance.

Role Communication

See dev-swarm/docs/general-dev-stage-rule.md for the required role announcement format.

Instructions

Follow these steps in order for coding development:

Step 0: Verify Prerequisites and Gather Context

IMPORTANT: Follow this exact order to efficiently locate all relevant context:

  1. Identify the backlog:

```

10-sprints/

└── SPRINT-XX-descriptive-name/

└── [BACKLOG_TYPE]-XX-[feature-name]-<sub-feature>.md

```

  1. Read the backlog file:
  1. Read source code structure standards:
  1. Read PRD and tech specs:
  1. Read feature documentation (using feature-name as index):
  1. Locate existing source code:
  1. Understand codebase patterns:

DO NOT read the entire codebase. Use features/impl/[feature-name].md to find only relevant files in {SRC}/.

Step 1: Design the Implementation

Before writing code, create the feature design document:

  1. Create/Update file features/{feature-name}.md
  1. Create/update flow and contract files if it is needed
  1. Present design to user for approval

Step 2: Implement the Code (After User Confirms)

Once user approves the design:

  1. Organize code in {SRC}/:
  1. Write the code:
  1. Code quality guidelines:
  1. What NOT to do:
  1. For different backlog types:

Feature (new functionality):

Change (modify existing feature):

Bug (fix defect):

Improve (optimize existing code):

Step 3: Create Implementation Documentation

After code is complete, create implementation documentation:

  1. Create features/impl/{feature-name}.md

Files Changed:

Implementation Details:

Code Structure:

Key Functions/APIs:

Reference for Developers:

  1. Update features/{feature-name}.md if needed
  1. Update features/features-index.md if needed
  1. Update or create {SRC}/README.md (Project Documentation):

Step 4: Verify Against Test Plan

Before marking complete:

  1. Review backlog test plan:
  1. Self-test (if possible):
  1. Document test status:

Step 5: Finalize and Commit

CRITICAL: Follow this process to safely commit changes and update tracking:

  1. Update Tracking Files:
  1. Request Human Review:
  1. Commit the Code (Content):
  1. Update Backlog with Commit ID:
  1. Commit the Backlog (Metadata):
  1. Notify user:

This two-step commit process ensures code history is preserved before the backlog is updated with the commit reference.

Expected File Structure

project-root/
├── 10-sprints/
│   └── SPRINT-XX-descriptive-name/
│       └── [BACKLOG_TYPE]-XX-[feature-name]-<sub-feature>.md # Backlog entry point
│
├── features/                                # Features knowledge base
│   ├── features-index.md                   # Index of all features
│   ├── [feature-name].md                   # Feature definition (WHAT/WHY/SCOPE)
│   ├── flows/
│   │   └── [feature-name].md               # User flows (if needed)
│   ├── contracts/
│   │   └── [feature-name].md               # API contracts (if needed)
│   └── impl/
│       └── [feature-name].md               # Implementation notes (code locations)
│
└── {SRC}/                                     # Source code
    ├── README.md                            # Project documentation (maintained by developers)
    └── [organized per dev-swarm/docs/source-code-structure.md guidelines]

File Templates

  1. features-index.md
# Features Index

- [feature name a](feature-name-a.md)
- [feature name b](feature-name-b.md)
  1. feature.md
# Title

## Description

[The overview for this feature's implementation, for approval, codeo review, trouble shooting or further development]

## References
The details of this feature's implementation

* [flow](flows/feature-name.md)
* [contract](contracts/feature-name.md)
* [Implement](impl/feature-name.md)
  1. flows/feature-name.md - help to understand the code logic
  1. contracts/feature-name.md - the interface between services, pacakges, workflows
  1. impl/feature-name.md - help to find the code location in the source code file for codeo review, trouble shooting or further development
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.