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
- Working local development environment
- DevWorkflow MCP server connected
| Tool / Command | Type | Role in Tutorial |
|---|---|---|
| create_feature_flow | mcp | Record architecture Mermaid diagram |
| set_plan | mcp | Break feature down into 4-8 incremental steps |
| mark_dod_item | mcp | Prove each criterion with concrete output |
| commit_and_push | mcp | Commit feature branch safely |
Example Task Contract
Exact start_task payload representing this workflow in DevWorkflow local-first governance.
{
"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.
Architect the Feature Flow
Record data and state transitions in a Mermaid diagram to prevent token waste and hallucinations.
{
"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]"
}Build Incremental Steps
Implement domain logic, unit tests, and API routes step by step. Mark progress with mark_plan_step.
npm test && git status -sM src/services/avatarUploader.js
M src/routes/user.js
?? tests/avatarUploader.test.jsProve Definition of Done
Mark each DoD item with actual proof before running pre-commit checks.
{
"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.