feature-dev
Feature development workflow with exploration, architecture, implementation, and review phases. Use for implementing new features or significant changes.
What this skill does
# Feature Development Workflow
Execute a structured 7-phase feature development workflow. This workflow guides you through understanding, exploring, designing, implementing, and reviewing a feature.
**CRITICAL: Complete ALL 7 phases.** The workflow is not complete until Phase 7: Summary is finished. After completing each phase, immediately proceed to the next phase without waiting for user prompts.
## Phase Overview
Execute these phases in order, completing ALL of them:
1. **Discovery** - Understand the feature requirements
2. **Codebase Exploration** - Map relevant code areas
3. **Clarifying Questions** - Resolve ambiguities
4. **Architecture Design** - Design the implementation approach
5. **Implementation** - Build the feature
6. **Quality Review** - Review for issues
7. **Summary** - Document accomplishments
---
## Phase 1: Discovery
**Goal:** Understand what the user wants to build.
1. Analyze the feature description from `$ARGUMENTS`:
- What is the core functionality?
- What are the expected inputs and outputs?
- Are there any constraints mentioned?
- What success criteria can you infer?
2. Summarize your understanding to the user. Use AskUserQuestion to confirm if your understanding is correct before proceeding.
---
## Phase 2: Codebase Exploration
**Goal:** Understand the relevant parts of the codebase.
1. **Run deep-analysis workflow:**
- Read `${CLAUDE_PLUGIN_ROOT}/../core-tools/skills/deep-analysis/SKILL.md` and follow its workflow
- Pass the feature description from Phase 1 as the analysis context
- This handles reconnaissance, team planning, approval (auto-approved when skill-invoked), team creation, parallel exploration (code-explorer agents), and synthesis (code-synthesizer agent)
- **Note:** Deep-analysis may return cached results if a valid exploration cache exists. In skill-invoked mode, cache hits are auto-accepted — this is expected behavior that avoids redundant exploration.
2. Present the synthesized analysis to the user.
---
## Phase 3: Clarifying Questions
**Goal:** Resolve any ambiguities before designing.
1. Review the feature requirements and exploration findings.
2. Identify underspecified aspects:
- Edge cases not covered
- Technical decisions that could go multiple ways
- Integration points that need clarification
- Performance or scale requirements
3. **Ask clarifying questions:**
Use AskUserQuestion to get answers for critical unknowns. Only ask questions that would significantly impact the implementation.
If no clarifying questions are needed, inform the user and proceed.
---
## Phase 4: Architecture Design
**Goal:** Design the implementation approach.
1. **Load skills for this phase:**
- Read `${CLAUDE_PLUGIN_ROOT}/skills/architecture-patterns/SKILL.md` and apply its guidance
- Read `${CLAUDE_PLUGIN_ROOT}/../core-tools/skills/language-patterns/SKILL.md` and apply its guidance
- Read `${CLAUDE_PLUGIN_ROOT}/../core-tools/skills/technical-diagrams/SKILL.md` and apply its styling rules for any Mermaid diagrams in architecture proposals
2. **Launch code-architect agents:**
Launch 2-3 code-architect agents (Opus) with different approaches:
```
Agent 1: Design a minimal, focused approach prioritizing simplicity
Agent 2: Design a flexible, extensible approach prioritizing future changes
Agent 3: Design an approach optimized for the project's existing patterns (if applicable)
```
Use the Task tool with `subagent_type: "agent-alchemy-core-tools:code-architect"`:
```
Feature: [feature description]
Design approach: [specific approach for this agent]
Based on the codebase exploration:
[Summary of relevant files and patterns]
Design an implementation that:
- Lists files to create/modify
- Describes the changes needed in each file
- Explains the data flow
- Identifies risks and mitigations
Return a detailed implementation blueprint.
```
3. **Present approaches:**
- Summarize each approach
- Compare trade-offs (simplicity, flexibility, performance, maintainability)
- Make a recommendation with justification
4. **User chooses approach:**
Use AskUserQuestion to let the user select an approach or request modifications.
5. **Generate ADR artifact:**
- Read the ADR template from `${CLAUDE_PLUGIN_ROOT}/skills/feature-dev/references/adr-template.md`
- Create an ADR documenting:
- Context: Why this feature is needed
- Decision: The chosen approach
- Consequences: Trade-offs and implications
- Alternatives: Other approaches considered
- Determine the next ADR number by checking existing files in `internal/docs/adr/`
- Save to `internal/docs/adr/NNNN-[feature-slug].md` (create `internal/docs/adr/` if needed)
- Inform the user of the saved ADR location
---
## Phase 5: Implementation
**Goal:** Build the feature.
1. **Require explicit approval:**
Ask the user: "Ready to begin implementation of [feature] using [chosen approach]?"
Wait for confirmation before proceeding.
2. **Read all relevant files:**
Before making any changes, read the complete content of every file you'll modify.
3. **Implement the feature:**
- Follow the chosen architecture design
- Match existing code patterns and conventions
- Create new files as needed
- Update existing files using Edit tool
- Add appropriate error handling
- Include inline comments only where logic isn't obvious
4. **Test if applicable:**
- If the project has tests, add tests for the new functionality
- Run existing tests to ensure nothing broke
5. **IMPORTANT: Proceed immediately to Phase 6.**
Do NOT stop here. Do NOT wait for user input. Implementation is complete, but the workflow requires Quality Review and Summary phases. Continue directly to Phase 6 now.
---
## Phase 6: Quality Review
**Goal:** Review the implementation for issues.
1. **Load skills for this phase:**
- Read `${CLAUDE_PLUGIN_ROOT}/skills/code-quality/SKILL.md` and apply its guidance
2. **Launch code-reviewer agents:**
Launch 3 code-reviewer agents (Opus) with different focuses:
```
Agent 1: Review for correctness and edge cases
Agent 2: Review for security and error handling
Agent 3: Review for maintainability and code quality
```
Use the Task tool with `subagent_type: "code-reviewer"`:
```
Review focus: [specific focus for this agent]
Files to review:
[List of files modified/created]
Review the implementation and report:
- Issues found with confidence scores (0-100)
- Suggestions for improvement
- Positive observations
Only report issues with confidence >= 80.
```
3. **Aggregate findings:**
- Collect results from all reviewers
- Deduplicate similar issues
- Prioritize by severity and confidence
4. **Present findings:**
Show the user:
- Critical issues (must fix)
- Moderate issues (should fix)
- Minor suggestions (nice to have)
5. **User decides:**
Use AskUserQuestion:
- "Fix all issues now"
- "Fix critical issues only"
- "Proceed without fixes"
- "I'll fix manually later"
6. If fixing: make the changes and re-review if needed.
7. **IMPORTANT: Proceed immediately to Phase 7.**
Do NOT stop here. The workflow requires a Summary phase to document accomplishments and update the CHANGELOG. Continue directly to Phase 7 now.
---
## Phase 7: Summary
**Goal:** Document and celebrate accomplishments.
1. **Summarize accomplishments:**
Present to the user:
- What was built
- Key files created/modified
- Architecture decisions made
- Architecture diagram (Mermaid flowchart showing the implemented structure)
- Any known limitations or future work
2. **Update CHANGELOG.md:**
- Read the entry template from `${CLAUDE_PLUGIN_ROOT}/skills/feature-dev/references/changelog-entry-template.md`
- Load the `changelog-format` skill for Keep a Changelog guidelines
- Create an entry under the Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.