Feature dev

From sequenzia/agent-alchemy · View interactive version

Feature dev is an AI agent skill from the GitHub repository sequenzia/agent-alchemy. Feature development workflow with exploration, architecture, implementation, and review phases. Use for implementing new features or significant changes.

How to use this skill

Skill file

Feature Development Workflow

Execute a structured 7-phase feature development workflow. This workflow guides you through understanding, exploring, designing, implementing, and reviewing a feature.

Phase Overview

Execute these phases in order:

  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:
  1. Summarize your understanding to the user. Prompt the user 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:
  1. 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.
  1. Identify underspecified aspects:
  1. Ask clarifying questions:

Prompt the user 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 reference skills for this phase:
  1. Launch architecture agents:

Spawn 2-3 architecture design agents with different approaches:

Refer to the code-architect agent (from the core-tools package) for this role.

Each agent receives:

  1. Present approaches:
  1. User chooses approach:

Prompt the user to select an approach or request modifications.

  1. Generate ADR artifact:

Create an Architecture Decision Record documenting:

ADR Template:

```markdown

# ADR-NNNN: [Title]

Date: YYYY-MM-DD

Status: Accepted

Feature: [Feature name/description]

## Context

[Describe the situation: what problem, what constraints, what driving forces]

## Decision

[What approach, key architectural choices, technologies/patterns selected]

## Consequences

### Positive

### Negative

### Risks

## Alternatives Considered

### Alternative 1: [Name]

[Brief description]

## Implementation Notes

[Key files, patterns, integration points]

```


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.

  1. Read all relevant files:

Before making any changes, read the complete content of every file you'll modify.

  1. Implement the feature:
  1. Test if applicable:
  1. Proceed immediately to Phase 6.

Phase 6: Quality Review

Goal: Review the implementation for issues.

  1. Load reference skill for this phase:
  1. Launch code-reviewer agents:

Spawn 3 code-reviewer agents with different focuses:

Each agent receives:

  1. Aggregate findings:
  1. Present findings:

Show the user:

  1. User decides:

Prompt the user:

  1. If fixing: make the changes and re-review if needed.
  1. Proceed immediately to Phase 7.

Phase 7: Summary

Goal: Document and celebrate accomplishments.

  1. Summarize accomplishments:

Present to the user:

  1. Update CHANGELOG.md:

Create an entry under the [Unreleased] section following Keep a Changelog guidelines:

Changelog Entry Template:

```markdown

### Added

### Changed

### Fixed

```

Instructions:

Refer to the changelog-format skill for additional Keep a Changelog guidelines.

Categories Reference:

| Category | Use For |

|----------|---------|

| Added | New features |

| Changed | Changes to existing functionality |

| Deprecated | Features that will be removed in future |

| Removed | Features that were removed |

| Fixed | Bug fixes |

| Security | Security improvements |

  1. Final message:

Congratulate the user and offer next steps:


Error Handling

If any phase fails:

  1. Explain what went wrong
  2. Ask the user how to proceed:

Agent Coordination

Exploration and synthesis agent coordination is handled by the deep-analysis skill in Phase 2, which manages parallel exploration agents and a synthesis agent. Deep-analysis performs reconnaissance, composes a team plan, assembles the team, and manages the exploration/synthesis lifecycle.

When launching other parallel agents (code-architect from core-tools, code-reviewer):


Integration Notes

What this component does: Orchestrates a complete 7-phase feature development lifecycle: discovery, codebase exploration (via deep-analysis), clarifying questions, architecture design with multiple proposals, implementation, quality review, and summary with changelog update.

Capabilities needed: Shell execution, file reading/writing/editing, pattern search, sub-agent spawning (code-architect from core-tools, code-reviewer, deep-analysis from core-tools), user interaction.

Adaptation guidance: This skill depends heavily on sub-agent coordination. Phase 2 delegates to deep-analysis (core-tools). Phase 4 spawns architecture agents. Phase 6 spawns reviewer agents. Adapt agent spawning to your platform's sub-task mechanism. The ADR template and changelog entry template are inlined in this skill.

Sub-agent capabilities: Code-architect agents (from core-tools) need read-only file access and search for producing architecture proposals. Code-reviewer agents need read-only file access and search for producing review reports with confidence-scored findings.

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.