AgentSkillsCN

dev-feature

针对复杂且需多轮交互的功能,执行功能开发工作流。适用于启动新功能、进行架构变更、实施重构项目,或任何需要经历调研、设计与实施三大阶段的工作时使用。可由“新功能”、“实现功能”、“启动功能开发”、“复杂功能”、“多轮交互型工作”等指令触发。

SKILL.md
--- frontmatter
name: dev-feature
description: >-
  Execute the feature development workflow for complex, multi-session features.
  Use when starting new features, architecture changes, refactoring projects,
  or any work requiring research, design, and implementation phases.
  Invoked by: "new feature", "implement feature", "start feature development",
  "complex feature", "multi-session work".

Feature Development Workflow SOP

Version: 1.0.0 Last Updated: 2026-01-11 Status: Active


Overview

Purpose

This workflow enables complex, multi-session feature development using AI agents with persistent documentation. It ensures continuity across sessions, tracks progress systematically, and allows any agent (or human) to pick up work exactly where the previous session left off.

When to Use

ALWAYS: Multi-day features, architecture changes, projects requiring research + design + implementation phases, work spanning multiple sessions SKIP: Tasks completable in a single session, simple bug fixes, minor updates


Process Workflow

Flow Diagram

code
[New Feature Request]
        |
[Phase 1: Setup] --> Create feature folder + INDEX.md
        |
[Phase 2: Research] --> Spawn Explore agent --> research/*.md
        |
[Phase 3: Design] --> design/DESIGN_##_*.md
        |
[Phase 4: Planning] --> development/EXECUTION_##_*.md
        |
[Phase 5: Execute] --> Spawn sub-agents --> Implement
        |
[Phase 6: Validate] --> TypeScript + Review + Tests
        |
[Phase 7: Handoff] --> Update SESSION_HANDOFF.md

Phase Summary

PhaseObjectiveDeliverableDuration
1. SetupCreate folder structureFeature folder with INDEX.md15-30 min
2. ResearchUnderstand current stateGap analysis, research notes1-4 hours
3. DesignCreate solution designsDesign documents per component2-6 hours
4. PlanningBreak into executable tasksExecution documents with checkboxes1-2 hours
5. ExecutionImplement via sub-agentsWorking code (pending validation)Variable
6. ValidationVerify correctnessValidated code, updated docs15-30 min
7. HandoffDocument session stateUpdated SESSION_HANDOFF.md10-15 min

Quick Start

Starting a New Feature

  1. Create Feature Folder

    code
    /docs/ignored/{feature-name}/
    ├── INDEX.md                    # Central navigation + status
    ├── SESSION_HANDOFF.md          # Session continuity
    ├── research/                   # Research and analysis
    ├── design/                     # Design documents
    └── development/                # Execution plans
    
  2. Create INDEX.md using INDEX_TEMPLATE.md

  3. Create SESSION_HANDOFF.md using SESSION_HANDOFF_TEMPLATE.md

  4. Begin Research Phase - Invoke /design-research skill

Resuming a Feature

  1. Read INDEX.md for overall project status
  2. Read SESSION_HANDOFF.md for last session context
  3. Check dependency graph for next available task
  4. Read relevant DESIGN + EXECUTION docs
  5. Continue execution

Key Principles

  1. Index as Single Source of Truth - INDEX.md is the authoritative reference for project status
  2. Session Handoff Continuity - Every session ends with updated SESSION_HANDOFF.md
  3. Atomic Execution Documents - Each execution is self-contained with clear inputs/outputs
  4. Agent Specialization - Use Explore for research, general-purpose for implementation
  5. Documentation-Driven Progress - Work isn't "done" until docs reflect completion

Detailed Workflow

See WORKFLOW.md for complete phase-by-phase instructions including:

  • Step-by-step procedures for each phase
  • Agent spawning patterns
  • Validation checklists
  • Troubleshooting guidance

Templates

TemplatePurposeLocation
INDEX_TEMPLATECentral navigation and status trackingtemplates/INDEX_TEMPLATE.md
SESSION_HANDOFF_TEMPLATESession continuitytemplates/SESSION_HANDOFF_TEMPLATE.md
EXECUTION_TEMPLATEStep-by-step implementation plantemplates/EXECUTION_TEMPLATE.md

Agent Spawn Patterns

Research Phase (Explore Agent)

code
Use Task tool with subagent_type: "Explore"
- Codebase questions
- Finding files/patterns
- Understanding architecture

Implementation Phase (General-Purpose Agent)

code
Use Task tool with subagent_type: "general-purpose"
- Creating files
- Modifying code
- Running validations

Quick Reference

Folder Structure

TypeLocation
Feature Docs/docs/ignored/{feature}/
Index/docs/ignored/{feature}/INDEX.md
Handoff/docs/ignored/{feature}/SESSION_HANDOFF.md
Research/docs/ignored/{feature}/research/
Design/docs/ignored/{feature}/design/
Execution/docs/ignored/{feature}/development/

Validation Commands

bash
# TypeScript check
npx tsc --noEmit

# Format and lint
task format-all

# Run tests
task test

Status Indicators

SymbolMeaning
░░░░░░░░░░Not started (0%)
█████░░░░░In progress (50%)
██████████Complete (100%)

Troubleshooting

IssueSolution
Agent lacks contextProvide full design doc content in prompt
Dependency not metCheck INDEX.md dependency graph before starting
Lost session stateRead SESSION_HANDOFF.md to restore context
Stale documentationRun documentation update agent after code changes

Related Skills

SkillPurposeWhen to Use
/design-researchResearch and designPhase 2-3: Research and Design
/review-codeCode reviewPhase 6: Validation
/testTestingPhase 6: Validation
/git-prCreate pull requestsAfter feature complete

Note: Skill paths (/skill-name) work after deployment. In the template repo, skills are in domain folders.


End of SOP