Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add asteroid-belt/skulto --skill "superplan"
Install specific skill from multi-skill repository
# Description
Use when starting significant features, epics, or complex tasks. Creates multi-phase implementation plans with parallelizable phases, poker estimates, TDD-first acceptance criteria, and quality gates. Detects tech stack from CLAUDE.md/AGENTS.md (bypassing internet research if complete) or via codebase scan.
# SKILL.md
name: superplan
description: Use when starting significant features, epics, or complex tasks. Creates multi-phase implementation plans with parallelizable phases, poker estimates, TDD-first acceptance criteria, and quality gates. Detects tech stack from CLAUDE.md/AGENTS.md (bypassing internet research if complete) or via codebase scan.
metadata:
version: "2.1"
generated-at: "2025-01-21"
compatibility: Internet access used for best practices research (bypassed if CLAUDE.md/AGENTS.md provides complete tech stack). Works with any codebase.
Superplan: Comprehensive Feature Planning
Overview
Superplan creates detailed, executable implementation plans that enable parallel agent execution. Each plan includes everything needed to implement a feature: requirements, architecture, code changes, tests, and acceptance criteria.
When to Use Superplan
- Starting a new feature or epic
- Complex tasks requiring multiple phases
- Tasks that could benefit from parallel execution by multiple agents
- When you need comprehensive documentation of implementation decisions
- When the team needs to understand the full scope before committing
Core Workflow
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β SUPERPLAN WORKFLOW β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 1. INTAKE β Gather story/requirements from user β
β 2. DETECT β Check CLAUDE.md/AGENTS.md first, then scan β
β (BYPASS codebase scan if docs complete) β
β 3. INTERVIEW β Ask clarifying questions β
β 4. RESEARCH β Look up best practices for DETECTED STACK β
β (BYPASS if CLAUDE.md/AGENTS.md was complete) β
β 5. EXPLORE β Understand existing codebase patterns β
β (ALWAYS runs - never bypassed) β
β 6. REFACTOR ASSESS β Evaluate if refactoring should precede work β
β 7. ARCHITECT β Design solution with diagrams β
β 8. PHASE β Break into parallelizable phases + ESTIMATES β
β 9. DETAIL β Specify code deltas per phase β
β 10. TEST β Define failing tests per phase (TDD) β
β 11. DOCUMENT β Write plan to docs/<feature>-plan.md β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
CRITICAL: Parallel Execution with Sub-Agents
YOU MUST USE SUB-AGENTS OR PARALLEL TASKS for every parallelizable operation:
| Operation | How to Execute |
|---|---|
| Independent file reads | Launch multiple Read tasks in single message |
| Code searches | Use Task tool with multiple Explore agents in parallel |
| Parallel phases (1A, 1B, 1C) | Execute using parallel sub-agents |
| Independent test suites | Run unit/integration/e2e concurrently |
Example: "Launch 3 sub-agents in parallel to implement Phases 1A, 1B, and 1C"
IMPORTANT: Each sub-agent MUST return its conventional commit message upon completion. The main agent MUST output all commit messages to the user. See Phase Completion: Conventional Commit Message.
Poker Planning Estimates
All tasks and phases MUST include Fibonacci estimates: 1, 2, 3, 5, 8, 13, 21
| Size | Meaning | Example |
|---|---|---|
| 1 | Trivial | Config value, typo fix |
| 2 | Small | Single file, simple function |
| 3 | Medium | Multi-file, new component |
| 5 | Large | Feature module, API endpoint |
| 8 | X-Large | Complex feature with dependencies |
| 13 | Epic chunk | Major subsystem change |
| 21 | Too big | Split into smaller tasks |
Phase 1: INTAKE - Gather Requirements
What You're Doing
Collecting the feature requirements from the user through story input.
Actions
- Ask the user to provide their story/requirements using one of these methods:
- Copy/paste the story text directly
- Provide a link to a ticket/story (Jira, Linear, GitHub Issue, etc.)
- Use an MCP tool to fetch the story if available
-
Describe the feature verbally
-
Capture the raw input exactly as provided
-
Identify the story type:
- User Story (
As a <role>, I want <capability>, so that <benefit>) - Technical Task (implementation-focused)
- Bug Fix (problem/solution)
- Epic (large feature with sub-stories)
Output
Document: Source, Type, Raw Requirements, Initial Understanding (1-2 sentences).
Phase 2: DETECT - Technology Stack Analysis
What You're Doing
Identifying the technology, programming language, and major frameworks to inform best practices research and quality gate setup.
Detection Flow
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β DETECT PHASE FLOW β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 1. CHECK for CLAUDE.md or AGENTS.md in project root β
β ββ Found & Complete? β BYPASS codebase scanning for tech stack β
β β β BYPASS internet research (Phase 4) β
β β β Proceed directly to INTERVIEW (Phase 3) β
β ββ Not Found or Incomplete? β Continue with Detection Actions below β
β β
β NOTE: This does NOT bypass EXPLORE phase (Phase 5) - always scan codebase β
β for patterns and integration points regardless of CLAUDE.md presence β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Step 1: Check for Project Documentation Files
FIRST, check for CLAUDE.md or AGENTS.md at project root:
# Check for these files (in priority order):
1. CLAUDE.md # Claude Code's project documentation
2. AGENTS.md # Codex's project documentation
If found, parse for these tech stack elements:
| Element | What to Look For |
|---|---|
| Languages | "TypeScript", "Python", "Go", etc. in project description |
| Frameworks | Framework mentions: React, Next.js, FastAPI, Django, etc. |
| Build Tools | Package manager, bundler references: npm, pnpm, vite, etc. |
| Quality Tools | Linter/formatter/type checker config mentions |
| Testing Tools | Test framework references: jest, pytest, vitest, etc. |
| Dependencies | Key libraries and their versions |
Completeness Check
A project documentation file is COMPLETE for tech stack if it answers ALL of:
- [ ] Primary language(s) identified
- [ ] Major framework(s) identified (if applicable)
- [ ] Build/package tools identified
- [ ] Quality tools identified (linter, formatter, type checker)
- [ ] Test framework identified
If ALL boxes can be checked from the file β Skip to Step 3 (output) and mark RESEARCH phase (Phase 4) as BYPASSED
If ANY box is missing β Continue with Step 2 (codebase detection)
Step 2: Detection Actions (USE PARALLEL SUB-AGENTS)
Only execute if CLAUDE.md/AGENTS.md is missing or incomplete.
Launch parallel Explore agents to detect:
- Languages - Primary language(s): TypeScript, Python, Go, Rust, Java, etc.
- Frameworks - Major frameworks: React, Next.js, FastAPI, Django, Express, etc.
- Build Tools - Package managers, bundlers: npm, pnpm, yarn, webpack, vite, etc.
- Quality Tools - Existing linters, formatters, type checkers:
- Linters: eslint, ruff, golint, pylint
- Formatters: prettier, black, gofmt, rustfmt
- Type checkers: tsc (TypeScript), mypy (Python), go vet
- Testing Tools - Test frameworks: jest, pytest, go test, vitest, playwright
Quality Tools Assessment
| Tool Type | If Present | If Missing |
|---|---|---|
| Linter | Note config path | Add to Phase 0 Bootstrap |
| Formatter | Note config path | Add to Phase 0 Bootstrap |
| Type Checker | Note config path | Add to Phase 0 Bootstrap |
| Test Framework | Note config path | Add to Phase 0 Bootstrap |
Step 3: Output
Document:
- Source: CLAUDE.md/AGENTS.md or codebase scan
- Languages, frameworks, build tools, quality tools (present/missing), testing setup
- Bootstrap requirements
- Research bypass status: If CLAUDE.md/AGENTS.md provided complete info, note "RESEARCH PHASE BYPASSED - tech stack from project documentation"
Phase 3: INTERVIEW - Clarifying Questions
What You're Doing
Asking targeted questions to fill gaps in requirements before planning.
Question Categories
Ask questions in these categories (select relevant ones):
- Scope & Boundaries - MVP, out of scope, related features
- User Experience - Primary users, user flow, mockups/designs
- Technical Constraints - Performance, security, compliance, integrations
- Data & State - Data sources, storage, migrations
- Testing & Validation - Success criteria, test scenarios, sign-off
- Dependencies - Blockers, external services, sequencing
- Quality Gates - Existing CI/CD, required checks, coverage thresholds
How to Interview
Ask 3-5 most relevant questions, then wait for answers before proceeding.
See Interview Guide for comprehensive question templates and strategies by feature size.
Phase 4: RESEARCH - Best Practices Lookup
What You're Doing
Researching current best practices as of TODAY'S DATE for the DETECTED technology stack.
BYPASS Condition
If DETECT phase found complete tech stack info in CLAUDE.md or AGENTS.md, this phase is BYPASSED.
Skip directly to EXPLORE (Phase 5). The project documentation provides authoritative tech stack information.
Otherwise, proceed with research actions below.
Research Actions (USE PARALLEL WEB SEARCHES)
Launch parallel web searches targeting the detected stack:
- [Language] [YEAR] best practices - e.g., "TypeScript 2025 best practices"
- [Framework] [YEAR] patterns - e.g., "React 2025 patterns"
- [Framework] security guidelines - e.g., "Next.js security OWASP"
- [Language] testing best practices - e.g., "Python pytest 2025"
Research Areas
- Industry Standards - Current best practices, security (OWASP), accessibility (WCAG)
- Technology-Specific - Framework patterns, library versions, known gotchas
- Architecture Patterns - Recommended patterns, anti-patterns, scalability
- Quality Tool Configs - Recommended linter/formatter configs for detected stack
Output
Document: Sources consulted, key findings by topic, specific recommendations for this feature.
Phase 5: EXPLORE - Codebase Analysis
What You're Doing
Understanding existing patterns, conventions, and integration points in the codebase.
Exploration Targets
- Existing Patterns - How similar features are implemented, conventions, testing patterns
- Integration Points - Files/modules to touch, API contracts, shared utilities
- Technical Debt - Areas needing refactoring, known issues affecting this work
Output
Document: Relevant files table, patterns to follow, integration points, technical debt notes.
Phase 6: REFACTOR/REWRITE ASSESSMENT
What You're Doing
Evaluating whether the feature/fix would benefit from refactoring or rewriting existing code BEFORE implementation. This phase synthesizes your research on best practices with your exploration of the codebase to make a data-driven refactoring decision.
CRITICAL: Be Bold
This phase empowers you to proactively recommend refactoring. Don't be timidβif the code needs work, say so. Use the Q&A system to discuss major refactoring opportunities with the user.
Assessment Process (USE PARALLEL WEB SEARCHES)
Step 1: Research Refactoring for Detected Stack
Launch parallel web searches for stack-specific refactoring:
- [Language] refactoring patterns 2025 - e.g., "TypeScript refactoring patterns 2025"
- [Framework] code smells - e.g., "React code smells anti-patterns"
- [Dependency] migration guide - For major dependencies that may need updating
Step 2: Apply Code Smell Detection
Using your exploration results, check for these smells in affected areas:
| Category | Smells to Check |
|---|---|
| Bloaters | Long methods, large classes, primitive obsession, data clumps |
| OO Abusers | Switch statements on types, parallel inheritance hierarchies |
| Change Preventers | Divergent change, shotgun surgery |
| Dispensables | Duplicate code, dead code, speculative generality |
| Couplers | Feature envy, inappropriate intimacy, message chains |
Step 3: Architecture Assessment
Evaluate:
- Does the current architecture cleanly support this feature?
- Will implementing this feature increase technical debt?
- Are there architectural patterns being violated?
- Is there a cleaner abstraction that would help?
Step 4: Future Roadmap Interview
ASK THE USER about upcoming features that might tip the scales toward refactoring:
"Before I finalize the plan, I want to understand your roadmap:
1. What other features are planned for this area in the next 6 months?
2. How often does this part of the codebase change?
3. Are there pain points here that slow down development?
4. What's your risk tolerance for refactoring vs. shipping fast?"
This information is CRITICAL for making the right refactoring decision.
Decision Framework
| Scenario | Recommendation |
|---|---|
| Feature adds code to messy area | Refactor first |
| Feature touches well-structured code | Implement directly |
| Multiple upcoming features need same area | Refactor first |
| Team struggles to understand the code | Refactor first |
| One-off change to stable code | Implement directly |
| Tight deadline, low complexity | Implement, document debt |
| Tight deadline, high complexity | Discuss trade-offs with user |
Refactoring Confidence Levels
Based on your assessment, declare a confidence level:
| Level | Description | Action |
|---|---|---|
| LOW | Code is clean, feature fits naturally | Proceed to ARCHITECT |
| MEDIUM | Some smells present, feature workable | Note debt, ask user preference |
| HIGH | Significant issues, feature will worsen debt | Recommend refactor phases |
| CRITICAL | Major rewrite needed, current approach unsustainable | Propose rewrite with Mikado/Strangler Fig |
When Confidence is HIGH or CRITICAL
If you determine refactoring should precede the feature work:
-
Ask permission explicitly:
"Based on my analysis, I recommend refactoring [specific area] BEFORE implementing [feature]. This would involve:
- [Refactoring task 1]
- [Refactoring task 2]Benefits: [list benefits]
Risks of NOT refactoring: [list risks]Do you want me to add refactoring phases to the plan?"
-
If approved, prepend refactoring phases (Phase 0A, 0B, etc.) before feature phases
-
Select appropriate methodology:
- Mikado Method: For complex, interconnected changes where you need to discover dependencies
- Strangler Fig: For replacing entire subsystems incrementally
- Branch by Abstraction: For swapping implementations behind interfaces
- Standard Refactoring: For isolated code smell fixes
Output
Document:
- Code smells found (with file locations)
- Architecture assessment summary
- Future roadmap impact analysis
- Refactoring confidence level (LOW/MEDIUM/HIGH/CRITICAL)
- Recommended refactoring methodology (if applicable)
- User's decision on refactoring
See Refactoring Research for comprehensive methodology details, code smell catalogs, and technology-specific patterns.
Phase 7: ARCHITECT - Solution Design
What You're Doing
Designing the technical solution with diagrams.
Architecture Components
- High-Level Architecture - System/component diagram, data flow
- API Design (if applicable) - Endpoints, request/response schemas, error handling
- Data Model (if applicable) - Schema changes, migrations
- Component Design (if applicable) - Component hierarchy, state management, interfaces
Diagram Format
Use ASCII/text diagrams for portability. See Plan Template for diagram examples.
Phase 8: PHASE - Parallel Work Breakdown with Estimates
What You're Doing
Breaking work into phases with poker estimates that can be executed in parallel where possible.
Phase Design Principles
- Independence: Phases executable without waiting for others when possible
- Testability: Each phase independently testable
- Clear Boundaries: Well-defined inputs and outputs
- Estimated Size: Each phase with poker estimate (target: 3-8 points)
- Quality Gated: Each phase includes Definition of Done
Parallelization Rules (CRITICAL: USE SUB-AGENTS)
- CAN parallelize: Independent components, separate API endpoints, unrelated tests
- Execute with parallel sub-agents
- CANNOT parallelize: Sequential dependencies, shared state setup, migrations before data access
Output
Create a phase dependency diagram showing:
- Phase 0 (Bootstrap/Setup) at top - CONDITIONAL: only if quality tools missing
- Parallel phases branching out
- Integration phase at bottom
Include dependency table with estimates:
| Phase | Name | Depends On | Parallel With | Estimate | Status |
|---|---|---|---|---|---|
Phase 9: DETAIL - Code Deltas Per Phase
What You're Doing
Specifying exact code changes for each phase.
Code Delta Format
For each file, specify:
- File path and action: (CREATE) or (MODIFY)
- Full file contents for new files
- Diff format for modifications (show context lines with +/- changes)
See Plan Template for full code delta examples.
Phase 10: TEST - TDD Acceptance Criteria
What You're Doing
Defining failing tests for each phase BEFORE implementation.
Testing Pyramid
Follow the pyramid - more unit tests, fewer integration, even fewer E2E:
- Unit Tests (80%): Business logic, utilities - fast, many
- Integration Tests (15%): API contracts, database - medium
- E2E Tests (5%): Critical user journeys only - slow, few
Test-First Workflow
For each phase:
1. Write tests FIRST (they will fail)
2. Run tests to confirm they fail
3. Implement the code
4. Run tests to confirm they pass
5. All existing tests must still pass
Durable vs Brittle Tests
Write durable tests that test behavior/outcomes, not implementation details:
- Test what the function DOES, not HOW it does it
- Test public API, not internal state
- Tests should survive refactoring without changes
See Testing Pyramid for comprehensive test examples and strategies.
Definition of Done (Quality Gate) - REQUIRED PER PHASE
Every phase MUST include this Definition of Done checklist:
### Definition of Done
- [ ] Code passes linter ([detected linter]: eslint/ruff/golint)
- [ ] Code passes formatter check ([detected formatter]: prettier/black/gofmt)
- [ ] Code passes type checker ([detected checker]: tsc/mypy/go vet)
- [ ] All new code has test coverage (target: 80%+)
- [ ] All new tests pass
- [ ] All existing tests still pass
- [ ] No new warnings introduced
- [ ] All tasks completed in this phase are checked off in the plan document
IF QUALITY TOOLS MISSING: Plan must include Phase 0: Quality Bootstrap before any implementation phases.
Phase Completion: Conventional Commit Message - REQUIRED PER PHASE
CRITICAL: At the end of EVERY phase, you MUST output a conventional commit message.
Rules
- OUTPUT ONLY - Print the commit message to the console. NEVER stage files. NEVER create commits. The user will handle all git operations.
- Conventional Format - Follow the Conventional Commits specification
- Comprehensive Context - Include all files changed, what was done, and relevant context
- BUBBLE UP FROM SUB-AGENTS - When phases run in sub-agents or background tasks, the conventional commit message MUST be returned to the main process. The main agent MUST output all commit messages to the user so they can make commits for each phase.
Commit Message Format
<type>(<scope>): <short summary>
<body - detailed description of changes>
Files changed:
- path/to/file1.ts (CREATE/MODIFY/DELETE)
- path/to/file2.ts (CREATE/MODIFY/DELETE)
<footer - breaking changes, issue references, etc.>
Types
| Type | When to Use |
|---|---|
feat |
New feature or capability |
fix |
Bug fix |
refactor |
Code restructuring without behavior change |
test |
Adding or updating tests |
docs |
Documentation changes |
style |
Formatting, linting (no code change) |
chore |
Build, config, dependencies |
perf |
Performance improvements |
Example Output
At the end of a phase, output:
PHASE 1A COMPLETE - Conventional Commit Message:
βββββββββββββββββββββββββββββββββββββββββββββββ
feat(auth): implement JWT token validation middleware
Add middleware to validate JWT tokens on protected routes.
Includes token parsing, signature verification, and expiry checks.
Extracts user claims and attaches to request context.
Files changed:
- src/middleware/auth.ts (CREATE)
- src/types/auth.ts (CREATE)
- src/routes/protected.ts (MODIFY)
- tests/middleware/auth.test.ts (CREATE)
Refs: #123
βββββββββββββββββββββββββββββββββββββββββββββββ
β οΈ DO NOT COMMIT - User will handle git operations
IMPORTANT: Always include the warning that the user will handle git operations. Never assume you will commit or stage files.
Sub-Agent and Background Task Handling
When phases execute in parallel using sub-agents or background tasks:
- Sub-Agent Responsibility: Each sub-agent MUST include its conventional commit message in its return output
- Main Agent Responsibility: The main agent MUST:
- Collect all commit messages from completed sub-agents/background tasks
- Output each commit message to the user immediately upon sub-agent completion
- Clearly label which phase each commit message belongs to
Example - Parallel Phase Completion:
PARALLEL PHASES COMPLETE (1A, 1B, 1C)
βββββββββββββββββββββββββββββββββββββββββββββββ
PHASE 1A - Commit Message:
βββββββββββββββββββββββββββββββββββββββββββββββ
feat(auth): implement JWT token validation
Files changed:
- src/middleware/auth.ts (CREATE)
- tests/middleware/auth.test.ts (CREATE)
βββββββββββββββββββββββββββββββββββββββββββββββ
PHASE 1B - Commit Message:
βββββββββββββββββββββββββββββββββββββββββββββββ
feat(api): add user profile endpoints
Files changed:
- src/routes/profile.ts (CREATE)
- src/types/user.ts (MODIFY)
- tests/routes/profile.test.ts (CREATE)
βββββββββββββββββββββββββββββββββββββββββββββββ
PHASE 1C - Commit Message:
βββββββββββββββββββββββββββββββββββββββββββββββ
feat(ui): create settings page component
Files changed:
- src/components/Settings.tsx (CREATE)
- src/styles/settings.css (CREATE)
βββββββββββββββββββββββββββββββββββββββββββββββ
β οΈ DO NOT COMMIT - User will handle git operations for each phase
Phase 11: DOCUMENT - Write the Plan
What You're Doing
Writing the complete plan to docs/<feature>-plan.md.
Plan Execution
Once the plan is complete, ask the user:
Would you like me to execute this plan with
/superbuild, or do you want to review/modify it first?
If the user wants to execute and has superbuild installed, invoke it directly with the plan path.
If superbuild is not installed, direct them to install it from: https://github.com/adamos486/skills
Multi-File Strategy
Large plans may exceed file size limits (~25,000 tokens). When this happens:
- Split by logical boundaries:
- File 1 (
-plan-1.md): Executive Summary, Requirements, Research, Architecture - File 2 (
-plan-2.md): Phase 0 and Phase 1 (parallelizable phases) -
File 3+ (
-plan-N.md): Remaining phases, Testing Strategy, Assumptions, Appendix -
Each file must be self-contained:
- Include header referencing the plan set
- Include navigation links to other parts
-
Include Table of Contents for that file
-
Size thresholds (~4 tokens per word):
- Under ~4,000 lines / ~20,000 tokens: Single file
- Over ~4,000 lines / ~20,000 tokens: Split into multiple files
Multi-File Header
# [Feature Name] Implementation Plan - Part [N] of [Total]
> **Plan Set**: `docs/<feature>-plan-*.md`
> **This File**: Part [N] - [Section Names]
> **Navigation**: [Part 1](feature-plan-1.md) | [Part 2](feature-plan-2.md) | ...
Plan Structure
See Plan Template for the complete plan file structure including all sections, formats, and examples.
Chunked Writing
For large plans, write in chunks to prevent context loss:
1. Write Overview + Requirements β Save
2. Write Architecture β Save
3. Write each Phase separately β Save after each
4. Write Assumptions + Appendix β Save
Execution Flow
Quick Reference
- Intake β Ask for requirements, capture raw input, identify type
- Detect β Check CLAUDE.md/AGENTS.md first; if complete, BYPASS scan + RESEARCH
- Interview β Ask 3-5 clarifying questions, wait for answers
- Research β Web search best practices (BYPASSED if CLAUDE.md/AGENTS.md complete)
- Explore β Analyze codebase patterns and integration points (ALWAYS RUNS)
- Refactor Assess β Evaluate code smells, interview on roadmap, decide if refactoring needed
- Architect β Design solution with diagrams
- Phase β Break into parallelizable phases WITH POKER ESTIMATES
- Detail β Specify code deltas per phase WITH DEFINITION OF DONE
- Test β Define failing tests (TDD) per phase
- Document β Write to
docs/<feature>-plan.md
PHASE COMPLETION (after each phase during execution):
- Check off all completed tasks in the plan document
- Output conventional commit message (NEVER commit, user handles git)
Status Updates
Use checkpoint summaries after each major phase to show progress. Examples:
DETECT COMPLETE (from CLAUDE.md)
- Source: CLAUDE.md β
- Language: TypeScript
- Framework: Next.js 14
- Quality Tools: eslint β
, prettier β
, tsc β
, jest β
- Bootstrap Required: No
- RESEARCH PHASE: BYPASSED (tech stack from project documentation)
DETECT COMPLETE (from codebase scan)
- Source: Codebase scan (no CLAUDE.md/AGENTS.md found)
- Language: TypeScript
- Framework: Next.js 14
- Quality Tools: eslint β
, prettier β
, tsc β
, jest β
- Bootstrap Required: No
- RESEARCH PHASE: Required
REFACTOR ASSESSMENT COMPLETE
- Confidence: HIGH
- Code smells found: Long methods (3), duplicate code (2), feature envy (1)
- Future roadmap: 2 related features planned next quarter
- Recommendation: Refactor UserService before feature implementation
- User decision: APPROVED - Adding Phase 0A (refactor) to plan
PHASES DEFINED (with estimates)
- Total phases: 6 (including refactor phase)
- Total estimate: 31 points
- Refactor phase: 0A (5pts) - must complete first
- Parallelizable: 1A (8pts), 1B (5pts), 1C (3pts) - USE SUB-AGENTS
- Sequential: Phase 0A β Phase 1s β Phase 2 (5pts)
PHASE 1A COMPLETE
β
Tasks checked off in plan document
β
All Definition of Done criteria met
Conventional Commit Message:
ββββββββββββββββββββββββββββ
feat(api): add user authentication endpoints
Implement login, logout, and token refresh endpoints.
Add request validation and error handling.
Files changed:
- src/routes/auth.ts (CREATE)
- src/middleware/validate.ts (MODIFY)
- tests/routes/auth.test.ts (CREATE)
ββββββββββββββββββββββββββββ
β οΈ DO NOT COMMIT - User will handle git operations
See Execution Guide for full execution instructions, prompts, and checkpoint templates.
References
For detailed guidance on specific topics:
- Interview Guide - Comprehensive question templates by category and feature size
- Refactoring Research - Refactoring methodologies (Mikado, Strangler Fig, Branch by Abstraction), code smells catalog, decision frameworks
- Plan Template - Full plan file structure with all sections and examples
- Testing Pyramid - TDD workflow, test examples, durable vs brittle tests
- Execution Guide - Step-by-step execution flow and checkpoint templates
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.