Develop

From TheBushidoCollective/han · View interactive version

Develop is an AI agent skill from the GitHub repository TheBushidoCollective/han. Guides end-to-end feature development through 8 phases: discover requirements, explore codebase patterns, clarify ambiguities with the user, design architecture, implement with TDD, run multi-agent code review, validate all quality gates, and write a blog post. Use when asked to add a feature, imple

How to use this skill

Skill file

Feature Development Workflow

Structured 8-phase process for building new features from requirement gathering through documentation. Each phase produces a concrete output that feeds the next.

Overview

  1. Discover - Understand requirements and context
  2. Explore - Analyze existing codebase patterns
  3. Clarify - Resolve ambiguities with user input
  4. Design - Create architecture with specialized agents
  5. Implement - Build with TDD and quality practices
  6. Review - Multi-agent quality review with confidence scoring
  7. Validate - Run all verification hooks and summarize
  8. Document - Write blog post announcing the feature

Phase 1: Discover

Understand requirements and gather context

Objective: Establish clear understanding of what needs to be built and why.

  1. Review the feature request:
  1. Identify impacted areas:
  1. Check for similar features:

```bash

# Search for similar implementations

grep -r "similar_feature_name" .

```

  1. Review project documentation:

Output: Clear problem statement and high-level approach.


Phase 2: Explore (Parallel Agent Execution)

Analyze codebase with specialized agents

Objective: Understand existing patterns and identify integration points.

Launch multiple Explore agents in PARALLEL (single message with multiple Task calls):

  1. Code Explorer: Map existing features
  1. Pattern Analyzer: Identify conventions
  1. Dependency Mapper: Understand relationships

Consolidation: Synthesize findings from all agents into a cohesive understanding.

Output: Comprehensive map of existing codebase patterns and integration points.


Phase 3: Clarify (Human Decision Point)

Resolve ambiguities before implementation

Objective: Get user input on unclear requirements and design choices.

Use AskUserQuestion tool to resolve:

  1. Architecture decisions:
  1. Scope clarifications:
  1. Integration choices:

IMPORTANT: Do not proceed with assumptions. Get explicit user answers.

Output: Clear, unambiguous requirements with user-approved approach.


Phase 4: Design (Parallel Agent Execution)

Create architecture with specialized agents

Objective: Design the implementation before coding.

Select appropriate specialized agent(s) based on feature type:

Launch agents in PARALLEL for multi-disciplinary features:

Agent responsibilities:

Consolidation: Review all design proposals, resolve conflicts, select final approach.

Output: Detailed implementation plan with module structure and interfaces.


Phase 5: Implement (TDD with Quality Enforcement)

Build the feature using test-driven development

Objective: Implement the designed solution with quality practices.

Apply TDD cycle (use tdd:test-driven-development skill):

For each component:
1. Write failing test (Red)
2. Implement minimum code to pass (Green)
3. Refactor for quality (Refactor)
4. Repeat

Implementation guidelines:

Integration:

Output: Working implementation with comprehensive tests.


Phase 6: Review (Parallel Multi-Agent Review)

Quality review with confidence-based filtering

Objective: Identify high-confidence issues before final validation.

Launch review agents in PARALLEL (single message with multiple Task calls):

  1. Code Reviewer (han-core:code-reviewer skill):
  1. Security Engineer (security:security-engineer):
  1. Discipline-Specific Agent:

Review consolidation:

Present findings to user with options:

Found 3 critical and 5 important issues.

Options:
1. Fix all issues now (recommended)
2. Fix critical only, defer important
3. Review findings and decide per-issue

Output: Consolidated review with high-confidence issues only.


Phase 7: Validate & Summarize

Final verification and change summary

Objective: Ensure all quality gates pass and document the change.

Run all validation hooks:

# All validation plugins automatically run on Stop
# Verify: tests, linting, type checking, etc.

Validation checklist:

Generate change summary:

  1. What changed: Files modified and why
  2. How to test: Steps to verify functionality
  3. Breaking changes: None, or list with migration guide
  4. Follow-up tasks: Any deferred work or tech debt

Create TODO list (using TaskCreate tool):

Output: Ready-to-commit feature with comprehensive documentation.


Phase 8: Document (Blog Post)

Write a blog post announcing the feature

Objective: Share the new feature with the community and explain its value.

Blog post creation:

  1. Research context (optional):
  1. Write the blog post:

Location: website/content/blog/{feature-slug}.md

```markdown


title: "{Feature Name}: {Compelling subtitle}"

description: "{One-line description of what problem this solves}"

date: "{YYYY-MM-DD}"

author: "The Bushido Collective"

tags: ["{relevant}", "{tags}"]

category: "Feature"


{Opening hook - what problem does this solve?}

## The Problem

{Describe the pain point this feature addresses}

## The Solution

{Explain how the feature works}

### Key Capabilities

{List main features with examples}

## Getting Started

{How to use the feature}

## What's Next

{Future improvements or related features}

```

  1. Writing guidelines:

IMPORTANT: Every significant feature should have a blog post. This is not optional.

Output: Published blog post in website/content/blog/.


Best Practices

DO

DON'T


Example Workflow

User: /feature-dev Add pagination to user list API

Phase 1: Discover
- Feature: Add pagination to GET /api/users
- Acceptance: Support page/limit query params, return total count
- Impact: Backend API, database queries

Phase 2: Explore (parallel agents)
- Found existing pagination in products API
- Pattern: Uses offset/limit with total count in response
- Testing: Integration tests verify pagination logic

Phase 3: Clarify
Q: Should we use cursor-based or offset-based pagination?
A: [User selects offset-based for consistency]

Phase 4: Design
- Agent: backend:api-designer
- Design: Extend existing UserService with pagination
- Interface: getUsersPaginated(page, limit) -> { users, total }

Phase 5: Implement
- Write test for pagination
- Implement pagination logic
- Test passes ✅

Phase 6: Review (parallel agents)
- Code reviewer: No issues (confidence N/A)
- Security engineer: No issues (confidence N/A)
- Backend architect: No issues (confidence N/A)

Phase 7: Validate
- Tests: ✅ Pass
- Linting: ✅ Pass
- Types: ✅ Pass
- Ready to commit

Phase 8: Document
- Blog post: website/content/blog/user-list-pagination.md
- Title: "Pagination: Handling Large Data Sets Gracefully"
- Tags: [api, pagination, performance]

Summary: Added pagination to user list API
Files: services/user.service.ts, tests/user.service.test.ts, website/content/blog/user-list-pagination.md
Testing: Run GET /api/users?page=1&limit=10

See Also

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.