Feature planner

From excatt/superclaude-plusplus · View interactive version

Feature planner is an AI agent skill from the GitHub repository excatt/superclaude-plusplus. Phase-based feature planning with quality gates and incremental delivery structure. Use when breaking down features, organizing work, or structuring roadmaps.

How to use this skill

Skill file

Feature Planner

Purpose

Generate structured, phase-based plans where:

Planning Workflow

Step 1: Requirements Analysis

  1. Read relevant files to understand codebase architecture
  2. Identify dependencies and integration points
  3. Assess complexity and risks
  4. Determine appropriate scope (small/medium/large)

Step 2: Phase Breakdown with TDD Integration

Break feature into 3-7 phases where each phase:

Phase Structure:

1. RED Tasks: Write failing tests first

2. GREEN Tasks: Implement minimal code to make tests pass

3. REFACTOR Tasks: Improve code quality while tests stay green

Step 3: Plan Document Creation

Use plan-template.md to generate: docs/plans/PLAN_<feature-name>.md

Include:

Step 4: User Approval

CRITICAL: Use AskUserQuestion to get explicit approval before proceeding.

Ask:

Only create plan document after user confirms approval.

Step 5: Document Generation

  1. Create docs/plans/ directory if not exists
  2. Generate plan document with all checkboxes unchecked
  3. Add clear instructions in header about quality gates
  4. Inform user of plan location and next steps

Quality Gate Standards

Each phase MUST validate these items before proceeding to next phase:

Build & Compilation:

Test-Driven Development (TDD):

Testing:

Code Quality:

Functionality:

Security & Performance:

Documentation:

Progress Tracking Protocol

Add this to plan document header:

**CRITICAL INSTRUCTIONS**: After completing each phase:
1. ✅ Check off completed task checkboxes
2. 🧪 Run all quality gate validation commands
3. ⚠️ Verify ALL quality gate items pass
4. 📅 Update "Last Updated" date
5. 📝 Document learnings in Notes section
6. ➡️ Only then proceed to next phase

⛔ DO NOT skip quality gates or proceed with failing checks

Phase Sizing Guidelines

Small Scope (2-3 phases, 3-6 hours total):

Medium Scope (4-5 phases, 8-15 hours total):

Large Scope (6-7 phases, 15-25 hours total):

Risk Assessment

Identify and document:

For each risk, specify:

Rollback Strategy

For each phase, document how to revert changes if issues arise.

Consider:

Test Specification Guidelines

Test-First Development Workflow

For Each Feature Component:

  1. Specify Test Cases (before writing ANY code)
  1. Write Tests (Red Phase)
  1. Implement Code (Green Phase)
  1. Refactor (Blue Phase)

Test Types

Unit Tests:

Integration Tests:

End-to-End (E2E) Tests:

Test Coverage Calculation

Coverage Thresholds (adjust for your project):

Coverage Commands by Ecosystem:

# JavaScript/TypeScript
jest --coverage
nyc report --reporter=html

# Python
pytest --cov=src --cov-report=html
coverage report

# Java
mvn jacoco:report
gradle jacocoTestReport

# Go
go test -cover ./...
go tool cover -html=coverage.out

# .NET
dotnet test /p:CollectCoverage=true /p:CoverageReporter=html
reportgenerator -reports:coverage.xml -targetdir:coverage

# Ruby
bundle exec rspec --coverage
open coverage/index.html

# PHP
phpunit --coverage-html coverage

Common Test Patterns

Arrange-Act-Assert (AAA) Pattern:

test 'description of behavior':
  // Arrange: Set up test data and dependencies
  input = createTestData()

  // Act: Execute the behavior being tested
  result = systemUnderTest.method(input)

  // Assert: Verify expected outcome
  assert result == expectedOutput

Given-When-Then (BDD Style):

test 'feature should behave in specific way':
  // Given: Initial context/state
  given userIsLoggedIn()

  // When: Action occurs
  when userClicksButton()

  // Then: Observable outcome
  then shouldSeeConfirmation()

Mocking/Stubbing Dependencies:

test 'component should call dependency':
  // Create mock/stub
  mockService = createMock(ExternalService)
  component = new Component(mockService)

  // Configure mock behavior
  when(mockService.method()).thenReturn(expectedData)

  // Execute and verify
  component.execute()
  verify(mockService.method()).calledOnce()

Test Documentation in Plan

In each phase, specify:

  1. Test File Location: Exact path where tests will be written
  2. Test Scenarios: List of specific test cases
  3. Expected Failures: What error should tests show initially?
  4. Coverage Target: Percentage for this phase
  5. Dependencies to Mock: What needs mocking/stubbing?
  6. Test Data: What fixtures/factories are needed?

Supporting Files Reference

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.