Systematic feature builder

From abcnuts/manus-skills · View interactive version

Systematic feature builder is an AI agent skill from the GitHub repository abcnuts/manus-skills. Systematic approach to implementing features with detailed planning, tracking, and testing. Use when building new features, adding functionality to existing projects, implementing multi-step requirements, or when user requests organized, methodical development workflow.

How to use this skill

Skill file

Systematic Feature Builder

Implement features systematically with detailed planning, progress tracking, and comprehensive testing.

When to Use This Skill

Use this skill when:

Core Workflow

Follow these five phases in order:

  1. Requirements Analysis - Understand what needs to be built
  2. Implementation Planning - Create detailed, step-by-step plan
  3. Systematic Implementation - Execute plan with progress tracking
  4. Testing & Verification - Validate at multiple levels
  5. Documentation & Checkpoint - Create comprehensive checkpoint

Phase 1: Requirements Analysis

Gather Information

Extract clear requirements from user input:

Identify Dependencies

Determine what exists and what needs to be created:

Clarify Ambiguities

Ask targeted questions if requirements are unclear:

Phase 2: Implementation Planning

Create Detailed Plan

Use the implementation plan template:

# Copy template to project
cp /home/ubuntu/skills/systematic-feature-builder/templates/implementation-plan-template.md \
   <project-path>/docs/plans/YYYY-MM-DD-feature-name.md

Plan Structure:

Break Down Into Atomic Tasks

Each task should:

Example Task Breakdown:

### Task 1: Add Database Field (15 min)
1. Update schema.ts with new field
2. Run `pnpm db:push` to migrate
3. Verify field exists in database

### Task 2: Create Backend Endpoint (30 min)
1. Add endpoint to router
2. Implement business logic
3. Add input validation
4. Write unit tests

### Task 3: Build Frontend Component (45 min)
1. Create component file
2. Add tRPC integration
3. Implement UI with shadcn/ui
4. Handle loading/error states

Update todo.md

Add all planned tasks to project's todo.md:

## [Feature Name]

- [ ] Task 1: Database changes
- [ ] Task 2: Backend endpoint
- [ ] Task 3: Frontend component
- [ ] Task 4: Testing
- [ ] Task 5: Documentation

Phase 3: Systematic Implementation

Execute Plan Sequentially

Implement tasks in order, following the plan:

  1. Start with backend/data layer (database, APIs)
  2. Then business logic (endpoints, services)
  3. Finally UI layer (components, pages)

This order minimizes rework and allows incremental testing.

Track Progress in todo.md

Mark tasks complete as you finish them:

## [Feature Name]

- [x] Task 1: Database changes
- [x] Task 2: Backend endpoint
- [ ] Task 3: Frontend component  ← Currently working on this
- [ ] Task 4: Testing
- [ ] Task 5: Documentation

Use file tool's edit action to update checkboxes efficiently.

Handle Deviations

If you deviate from the plan:

Communicate Progress

For long implementations, send info messages at milestones:

Phase 4: Testing & Verification

Three-Level Testing

Test at all three levels before checkpoint:

1. Unit Tests

2. Integration Tests

3. Manual Verification

Webdev-Specific Testing

For webdev projects:

# Run automated tests
pnpm test

# Check dev server health
# (use webdev_check_status tool)

# Manual browser testing
# - Open dev server URL
# - Test feature in browser
# - Check console for errors
# - Verify responsive design

Refer to references/testing-strategies.md for detailed testing approaches.

Verify Completion

Before creating checkpoint, verify all tasks complete:

python /home/ubuntu/skills/systematic-feature-builder/scripts/verify_completion.py \
  <project-path>/todo.md

This script checks for incomplete [ ] items and reports them.

Phase 5: Documentation & Checkpoint

Update Documentation

Ensure documentation reflects changes:

Create Comprehensive Checkpoint

Follow checkpoint guidelines in references/checkpoint-guidelines.md.

Checkpoint Description Template:

[Feature name]: [brief summary]

## Features Added

### 1. [Feature Name]
- Key capability 1
- Key capability 2
- Location/integration point

## Technical Details

**Database Changes:**
- [Schema changes]

**New Files:**
- [Important new files and their purpose]

**Dependencies:**
- [New packages added]

## Testing
- [X] tests passing
- [Y] tests failing (if any, explain why)

## Next Steps
- [Suggested follow-up actions]

Webdev Checkpoint Checklist

Before creating webdev checkpoint:

Webdev-Specific Guidance

Database Changes

Always follow this sequence:

  1. Edit drizzle/schema.ts
  2. Run pnpm db:push to apply migration
  3. Verify migration succeeded
  4. Test database operations

File Organization

Create files in this order:

  1. Database layer: drizzle/schema.ts
  2. Data access: server/db.ts (query helpers)
  3. Business logic: server/*-router.ts (tRPC endpoints)
  4. Frontend: client/src/components/*.tsx, client/src/pages/*.tsx

Testing Pattern

// server/feature.test.ts
import { describe, it, expect } from 'vitest';

describe('Feature Tests', () => {
  it('should handle valid input', async () => {
    // Arrange
    const input = { /* test data */ };
    
    // Act
    const result = await endpoint(input);
    
    // Assert
    expect(result).toMatchObject({ expected });
  });
  
  it('should handle error cases', async () => {
    // Test error scenarios
  });
});

Common Patterns

Adding a Feature:

  1. Plan → Update todo.md
  2. Schema → Database migration
  3. Backend → tRPC endpoint + tests
  4. Frontend → Component + integration
  5. Test → Manual verification
  6. Checkpoint → Comprehensive description

Fixing a Bug:

  1. Reproduce → Document steps
  2. Identify → Root cause analysis
  3. Fix → Minimal change
  4. Test → Verify fix + no regressions
  5. Checkpoint → Explain bug and fix

Best Practices

Do

✅ Write plans before coding - Saves time, reduces rework

✅ Update todo.md actively - Provides clear progress tracking

✅ Test incrementally - Catch issues early

✅ Document decisions - Future you will thank present you

✅ Create detailed checkpoints - Enable easy rollback and review

Don't

❌ Skip planning - Leads to disorganized implementation

❌ Implement everything at once - Hard to debug, test, and review

❌ Forget to update todo.md - Loses track of progress

❌ Skip testing - Bugs slip into production

❌ Create vague checkpoints - Useless for rollback or review

Templates and Scripts

Available Resources

Templates (templates/):

Scripts (scripts/):

References (references/):

Using Templates

Copy templates to your project:

# Implementation plan
cp /home/ubuntu/skills/systematic-feature-builder/templates/implementation-plan-template.md \
   <project>/docs/plans/$(date +%Y-%m-%d)-feature-name.md

# Todo file (if project doesn't have one)
cp /home/ubuntu/skills/systematic-feature-builder/templates/todo-template.md \
   <project>/todo.md

Examples

Example: Adding Bulk CSV Import Feature

Phase 1: Requirements

Phase 2: Plan

### Task 1: Backend Endpoint (30 min)
1. Add bulkImportRepCodes to admin-router.ts
2. Parse CSV data from input
3. Validate each row
4. Update database
5. Return results with errors

### Task 2: Frontend Component (45 min)
1. Create BulkRepCodeImport.tsx
2. Add file upload input
3. Integrate Papa Parse
4. Show import results
5. Add CSV template download

### Task 3: Integration (15 min)
1. Add component to Admin page
2. Test with sample CSV
3. Verify error handling

Phase 3: Implementation

Phase 4: Testing

Phase 5: Checkpoint

Title: Add bulk rep code CSV import

## Features Added
- Admin endpoint for bulk importing rep codes
- BulkRepCodeImport component with file upload
- Papa Parse integration
- Detailed error reporting

## Technical Details
**New Files:**
- server/admin-router.ts: bulkImportRepCodes endpoint
- client/src/components/BulkRepCodeImport.tsx

**Dependencies:**
- papaparse, @types/papaparse

## Testing
- 52 tests passing

Troubleshooting

"Plan is too detailed/taking too long"

→ Reduce granularity. Focus on major steps, not every line of code.

"Implementation deviating from plan"

→ Update plan document with deviations and reasoning. Adjust todo.md.

"Tests failing after implementation"

→ Fix tests before checkpoint. Document any intentional test changes.

"Checkpoint description too long"

→ Focus on what changed and why. Move detailed technical notes to plan document.

Summary

This skill provides a systematic, organized approach to feature implementation:

  1. Analyze requirements thoroughly
  2. Plan implementation with detailed steps
  3. Implement systematically with progress tracking
  4. Test at multiple levels
  5. Document comprehensively in checkpoint

The result: high-quality, well-tested features with clear documentation and easy rollback capability.

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.