Skip to main content
BeginnerDevelopmentEst. Time: 30-45 min

Feature Development

Build complex features end-to-end with visual architecture flow locking, incremental DoD checkpoints, and clean commits.

The Problem

AI models easily lose track of multi-file dependencies, leading to unfinished interfaces, broken contracts, or abandoned edge cases.

Who It Is For

Full-stack engineers building new endpoints, UI components, or domain services.

Prerequisites & Tools

Prerequisites Checklist:
  • Working local development environment
  • DevWorkflow MCP server connected
Tool / CommandTypeRole in Tutorial
create_feature_flowmcpRecord architecture Mermaid diagram
set_planmcpBreak feature down into 4-8 incremental steps
mark_dod_itemmcpProve each criterion with concrete output
commit_and_pushmcpCommit feature branch safely

Example Task Contract

Exact start_task payload representing this workflow in DevWorkflow local-first governance.

AI Tool Call: start_task payload
{
  "description": "Implement user profile avatar upload with client-side thumbnail resizing",
  "type": "feature",
  "plan": [
    "Add AvatarUploader domain service with max size validation",
    "Add image resizing utility using canvas API",
    "Add API endpoint route with auth guard",
    "Write integration tests and verify clean upload cycle"
  ],
  "definitionOfDone": [
    "Avatar files exceeding 5MB are rejected with readable error",
    "Resized thumbnail is generated at 256x256 dimensions",
    "Integration tests pass with zero memory leaks"
  ]
}

Step-by-Step Tutorial Workflow

Follow these sequential actions with validated copyable commands and expected outputs.

1

Architect the Feature Flow

Record data and state transitions in a Mermaid diagram to prevent token waste and hallucinations.

Code / Tool Payload
Execution Payload
{
  "description": "User profile avatar upload flow",
  "mermaidCode": "flowchart TD\n    A[Upload Dropzone] --> B[Client Image Resizer]\n    B --> C[Presigned URL S3 Upload]\n    C --> D[Backend Webhook Verification]\n    D --> E[User Profile Cache Invalidation]"
}
2

Build Incremental Steps

Implement domain logic, unit tests, and API routes step by step. Mark progress with mark_plan_step.

Copyable Command
Terminal Command
npm test && git status -s
Expected Terminal Output
M src/services/avatarUploader.js
M src/routes/user.js
?? tests/avatarUploader.test.js
3

Prove Definition of Done

Mark each DoD item with actual proof before running pre-commit checks.

Code / Tool Payload
Execution Payload
{
  "id": "dod-1",
  "evidence": "npm test passes 18/18 tests including 10MB image limit rejection test."
}

Verification Steps

Verify that your work genuinely satisfies the task contract before closing.

Run `check_ready_to_commit` to confirm all DoD items are checked
Run `npm run build` to confirm static and production builds compile cleanly

Limitations & Troubleshooting

Issue: check_ready_to_commit reports open DoD items
Resolution: Call `mark_dod_item` with concrete evidence or `waive_dod_item` with a written reason for items that genuinely no longer apply.