Develop feature

From janekbaraniewski/openusage · View interactive version

Develop feature is an AI agent skill from the GitHub repository janekbaraniewski/openusage. End-to-end feature development — from idea to pull request in a single command.

How to use this skill

Skill file

Skill: Develop Feature

End-to-end feature development — from idea to pull request in a single command.

When to use

When you want to design, implement, validate, and ship a feature without manually invoking each skill. This skill orchestrates the full development lifecycle.

What it does

Chains these skills in order, with user decision points between each:

/design-feature    → Design doc + implementation tasks
       ↓
/review-design     → Validate design against codebase
       ↓
/implement-feature → Execute implementation tasks
       ↓
/validate-feature  → Verify completeness and quality
       ↓
/iterate-feature   → Fix issues (if needed, may loop)
       ↓
/finalize-feature  → Branch, commit, PR

Phases

Phase 0 — Intake

  1. Accept the feature name/description from the user.
  2. Check if a design doc already exists for this feature (search docs/*_DESIGN.md).
  1. Ask: "Full lifecycle (design → PR), or start from a specific phase?"

Phase 1 — Design

Skill: /design-feature

  1. Execute the design-feature skill for the given feature name.
  2. This produces docs/<FEATURE_NAME>_DESIGN.md with problem statement, design, and implementation tasks.
  3. Decision point: Present the design doc summary to user.

Phase 2 — Review

Skill: /review-design

  1. Execute the review-design skill against the design doc.
  2. This validates the design against the actual codebase and fixes discrepancies.
  3. Decision point: After review completes:

Phase 3 — Implement

Skill: /implement-feature

  1. Execute the implement-feature skill for the feature.
  2. This includes: loading design, codebase analysis, pre-implementation quiz, execution plan, task implementation with tests, integration checks.
  3. Decision point: After implementation summary:

Phase 4 — Validate

Skill: /validate-feature

  1. Execute the validate-feature skill.
  2. This checks: build, tests, design compliance, code quality, integration.
  3. Decision point: Based on verdict:

Phase 5 — Iterate

Skill: /iterate-feature

  1. Execute the iterate-feature skill with the issues from validation.
  2. This triages issues, plans fixes, executes them, and re-validates.
  3. Loop: If re-validation still shows issues:
  1. Maximum 3 iteration rounds before requiring user decision on whether to continue.
  2. After clean re-validation: ask "All issues resolved. Finalize?"

Phase 5.5 — Docs sweep (mandatory, before finalize)

Every feature ships a docs update. After a clean validation, audit

docs/site/docs/ for pages that need to change because of this work and

create new pages where required. The full procedure is documented as

Phase 0.5 in /finalize-feature — this phase exists in the parent

flow as a hard gate so that finalize doesn't have to recover from a

"no docs touched" situation.

  1. Diff the implementation against the user-facing surface (providers,

CLI, settings.json, daemon, integrations, TUI, paths, env vars).

  1. Update or create the relevant pages under docs/site/docs/.
  2. Build the docs site (DOCS_PREVIEW=1 npm run build in docs/site/)

and confirm [SUCCESS] with no broken-link warnings.

  1. If you find no docs change is needed, write a one-line justification

that goes in the PR description ("no docs change required because

…").

This phase is not optional and not deferrable. A PR that ships code

without the matching docs update gets bounced.

Phase 6 — Finalize

Skill: /finalize-feature

  1. Execute the finalize-feature skill.
  2. This creates the branch, commits with proper message, and opens a PR.
  3. The PR description must include a "Docs impact" section produced

in Phase 5.5.

  1. Report the PR URL.

Phase 7 — Summary

Produce a lifecycle summary:

## Development Complete

Feature: <name>
Design doc: <path>
PR: <url>

### Lifecycle
| Phase | Status | Duration |
|-------|--------|----------|
| Design | COMPLETE | — |
| Review | COMPLETE | — |
| Implementation | COMPLETE (N tasks) | — |
| Validation | PASS | — |
| Iteration | 1 round (3 fixes) | — |
| Finalization | PR #123 opened | — |

### Files Changed
<count> files across <count> packages

### Tests Added
<count> new test functions

### Design Doc
<path> (updated during implementation)

Decision Points Summary

The skill pauses at these points for user input:

  1. After intake: Full lifecycle or specific phase?
  2. After design: Review or skip to implementation?
  3. After review: Ready to implement?
  4. After implementation: Run validation?
  5. After validation: Finalize or iterate?
  6. After iteration: Finalize or iterate again?
  7. After finalization: Done!

Each pause is a natural stopping point. Users can exit at any phase and resume later using the individual skill commands.

Rules

  1. Always pause at decision points — never auto-proceed through the full lifecycle without user confirmation.
  2. If any phase fails catastrophically (build broken, design fundamentally flawed), stop and report. Don't try to push through.
  3. Respect phase skip requests — if user says "skip design, I already have a design doc", start from review or implementation.
  4. Maximum 3 iteration rounds before escalating — if issues persist after 3 rounds, something is fundamentally wrong.
  5. Each phase follows its own skill's rules completely — this skill only orchestrates, it doesn't override individual skill behavior.
  6. If the user interrupts or changes direction mid-lifecycle, adapt gracefully. The lifecycle is a guide, not a cage.
  7. Track which phases completed so the user can resume from where they left off if the session ends.

Quick Reference

# Full lifecycle
/develop-feature "daily spend trends"

# Skip design (design doc already exists)
/develop-feature "daily spend trends"
→ "Design doc exists. Skip design phase and start from review/implementation?"
→ "implement"

# Just validate + iterate + finalize
/develop-feature "daily spend trends"
→ "Start from a specific phase?"
→ "validate"
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.