testdouble/han/plan-a-feature

Claude Code and agent skill by testdouble/han

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Builds a feature specification from scratch through a relentless, evidence-based interview that walks the design tree decision-by-decision, resolving dependencies as it goes. Use when the user wants to plan, design, scope, specify, or flesh out a new feature, capability, or system behavior before implementation. Produces a feature specification focused on system behaviors, not implementation detail. Does not plan a restructure of code that already exists — use plan-a-change. Does not refine or stress-test an existing plan — use iterative-plan-review. Does not document already-built features — use project-documentation. Does not design the contract for an interface — use design-an-api. Does not research open-ended options before there is a feature to specify — use research. Does not map the bounded contexts of existing code — use ddd-analysis.

Install

npx vskill@latest install testdouble/han/plan-a-feature

SKILL.md

The same SKILL.md was published earlier as testdouble/han/plan-a-feature.

Project Context

  • CLAUDE.md: !find . -maxdepth 1 -name "CLAUDE.md" -type f
  • project-discovery.md: !find . -maxdepth 3 -name "project-discovery.md" -type f
  • personal config directory: !bash "${CLAUDE_PLUGIN_ROOT}/scripts/han-config-dir.sh" 2>/dev/null || echo "$HOME/.claude"
  • project .han/config.md: !cat .han/config.md 2>/dev/null || echo ""

As your first action, use the Read tool on .han/config.md inside the personal config directory path above. A read that returns no file is no personal configuration: continue silently. When that file or the project .han/config.md probe supplies content, apply it per config-rule.md, which governs precedence between the two files, relative-path resolution, and what to do with a file that reads but cannot be used.

Operating Principles

  • Interview relentlessly, but explore first. If a question can be answered by reading the codebase, project docs,

coding standards, ADRs, or existing feature specs — or by querying a read-only tool already available to this session that authoritatively answers it (for example a connected schema or data-source tool) — explore instead of asking. Only surface questions that genuinely require the user's judgment. The connected-tool path is gated on availability, not on a fresh judgment: use it only when such a read-only tool is actually permitted to this skill; if none is available, ask the user as today (see Step 4).

  • Walk the design tree. Decisions have dependencies. Resolve foundational decisions first (what the feature does,

who uses it, what outcome it produces). Then descend into dependent decisions (flow, states, edge cases, coordination points). Never ask a dependent question before its parent is settled.

  • Recommend, then ask. For every question surfaced to the user, provide a recommended answer with rationale grounded

in evidence (code, docs, conventions, or stated goals). The user can accept, redirect, or provide a nuanced response.

  • Behavior, not implementation, in the spec. The specification captures WHAT the feature does, for WHOM, and WHY —

at a level a reader who has never opened the codebase can understand. Language primitives, file/line references, function or class names, library mechanics, implementation patterns, and internal env/flag names DO NOT appear in feature-specification.md. Product-level subsystem names ("events processing system", "backend service"), user-facing UI vocabulary (popover, modal, toast), URL paths, behavioral verbs, and user-observable states DO. Technology brand names generalize one level up (NATS → "events processing system"; PostgreSQL → "database"; Redis → "cache"). This rule is language-agnostic — it applies equally to Go, Rails, Node, Python, Swift, Kotlin, and frontend JavaScript code. Any examples given in references or templates are illustrative, not an exhaustive deny-list.

  • Load-bearing mechanics go in `feature-technical-notes.md`, not the spec. When a mechanic is load-bearing for a

behavior — meaning the behavioral commitment in the spec is only correct because of that mechanic (ordering, durability, consistency, visibility timing) — the behavioral consequence goes in the spec sentence, and the mechanic goes in a T# note linked inline from that sentence. The tech-notes file is LAZILY created — it exists only when at least one load-bearing mechanic qualified. Mechanics that are discoverable from the code repo (an existing pattern, an in-use library, a documented convention) do NOT belong in the tech-notes file either — plan-implementation will find them from the code. Mechanics that do not affect observable behavior are pure implementation and belong in the implementation plan, not here.

  • YAGNI is a first-class operating principle. Apply the evidence-based YAGNI rule in

yagni-rule.md to every commitment the spec carries. An item with no accepted evidence is demoted to ## Deferred (YAGNI) with its reopening trigger, never silently dropped and never silently kept. An item with evidence gets the simpler-version test.

YAGNI. YAGNI gates inclusion; this one characterizes the quality of what each commitment rests on, through trust classes, the corroboration gate on web claims, and a distinct label for no evidence at any tier.

  • The run stays inside the boundary it descends from. The skill records the work item's stated scope and exclusions

before the interview, per planning-boundary-rule.md. Every commitment is checked against it, and anything the boundary excludes lands in a visible cut list, per scope-justification-rule.md.

  • Visual material the user supplies is kept, and reaches every reviewer. Persist it beside the spec as it arrives,

never at document-write time, and pass its paths in every reviewer's brief. The session context is the only copy until it reaches disk, and a compaction destroys it. The boundary rule owns the convention.

  • Questions to the user arrive one at a time, led by the consequence. Per

operator-escalation-rule.md. The opening confirmation turn is the one exception, and the one turn that carries more than one ask.

Plan a Feature

Step 1: Capture the Feature Request and Output Location

Read the user's argument and conversation context to extract the feature being planned. If the request is too thin to start (e.g., just "plan a feature"), ask the user for a one-to-two-sentence description of what the feature does and what outcome it produces — nothing else yet.

Resolve the output location:

  • If the user specified a folder path, use it.
  • Otherwise, propose a folder name of 3 to 5 words in kebab-case (e.g., docs/features/user-invite-flow/,

docs/plans/bulk-export-jobs/). Prefer placing it under an existing documentation root discovered via CLAUDE.md's ## Project Discovery section, project-discovery.md, or Glob fallbacks (docs/features/, docs/plans/, docs/).

  • Confirm the folder name with the user before creating files. If the folder does not exist, create it.

Up to four files will be written. The primary spec lives at the root of {folder}/; the companion artifacts live in {folder}/artifacts/ to keep the planning folder uncluttered:

  • {folder}/feature-specification.md — the primary behavioral spec. Always written.
  • {folder}/artifacts/decision-log.md — the full decision history with rationale, evidence, and rejected alternatives.

Always written.

  • {folder}/artifacts/team-findings.md — review-team findings and how each was resolved. Always written.
  • {folder}/artifacts/feature-technical-notes.md — load-bearing mechanics that were captured because they were needed

to correctly specify a behavior. Lazily created — written only if at least one T# qualifies during the interview (Step 4) or finding resolution (Step 7). If no T# qualifies, the file is never created and the spec contains no T# links.

  • {folder}/artifacts/scope-boundary.md — the boundary record. Always written, by Step 1.5.

One more folder appears when the user supplies visual material:

  • {folder}/ui-designs/ — the visual material itself, one file per item, named for the state it depicts.

Create the artifacts/ subfolder before writing the companion files if it does not already exist.

The files cross-reference each other. The main spec cites decisions with inline parenthetical links like ([D4](artifacts/decision-log.md#d4-invite-expiration-window)) and cites technical notes (when the file exists) with inline parenthetical links like ([T3](artifacts/feature-technical-notes.md#t3-ack-ordering)). The decision log, findings log, and tech-notes file (all siblings inside artifacts/) cross-link through Driven by findings: / Linked technical notes: / Affected decisions: / Affected tech-notes: / Supports decisions: fields, and all reference back into the spec with ../feature-specification.md paths.

Step 1.5: Read and Record the Scope Boundary

Read ../../references/planning-boundary-rule.md for the record's name, its sections, and the accepted visual-material file set. Establish the boundary before you discover anything or ask anything.

A record already exists at {folder}/artifacts/scope-boundary.md. Read it and use it. Do not re-ask anything it answers, including the direction-of-travel question: a recorded answer of any kind is never re-asked.

No record exists. Identify the work item this feature descends from — a ticket, an issue, a pull request, or a written request the user typed — read it, and record its stated scope and exclusions word for word. When no work item exists, record that explicitly, along with the statement that the user's request is the only boundary this run has. The read does not traverse outward: a linked, sibling, or closed item is not scope evidence for the item in hand. There is no tool here that reads a tracker, so you will often be recording the user's own words; record which it was.

Then take one confirmation turn before Step 2 begins. It restates the recorded boundary in the user's own terms, names any visual material you kept, and asks the direction-of-travel question with its subjects named from the work item: are the specific things it named being deprecated, replaced, or migrated away from? This turn is a confirmation rather than an escalation, and the one turn that carries more than one ask. When the user hands you a work item that conflicts with the recorded one, surface the conflict here and ask which governs, rather than silently overwriting or trusting the record.

Persist every piece of visual material the user supplies into {folder}/ui-designs/ as it arrives, named for the state each one depicts, and note each item into the record's Visual Material Received section as you keep it. When the host never made an item reachable as a file, name which items you could not keep and ask for them through the single stop, while they are still recoverable.

Source the explanation standard by invoking han-communication:explanation-guidance before you write the confirmation turn, and again before any escalation or stop later in the run.

Step 2: Discover Before Asking

Before asking the user anything beyond the initial framing, explore the codebase and project documentation to gather context that will answer as many design-tree questions as possible. Use Glob and Grep to find:

  • CLAUDE.md, AGENTS.md, and any project-discovery.md — tech stack, constraints, conventions.
  • ADRs in docs/adr/ or docs/architecture/decisions/ — prior architectural decisions the feature must respect.
  • Coding standards in docs/coding-standards/ or .github/CODING_STANDARDS.md — rules the feature's design must align

with.

  • Existing feature specifications or PRDs — tone, structure, level of detail the team expects.
  • Code adjacent to what the feature touches — current behaviors, patterns, integration points.

A connected read-only tool that authoritatively answers a design-tree question counts as a source here, on the same terms the operating principles set: read-only, never writing or changing state.

Record what was found (file paths) and what was not found. Missing standards are themselves findings that inform the feature spec.

Step 3: Build the Design Tree

Enumerate the decisions the feature needs in dependency order. A decision is a question whose answer shapes behavior. Group them into tiers:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 93 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
155
Repository forks
17
7-day trend score
25

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/testdouble/han/plan-a-feature/badge)](https://verified-skill.com/skills/testdouble/han/plan-a-feature)

Something wrong with this skill or its page? Tell us.