agentsclimarketplace

Feature

Skill duthaho/skillhub/.claude/skills/feature

A small collection of Claude Code skills I use and maintain.

Install
npx -y skills add duthaho/skillhub --skill feature

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

End-to-end feature workflow around the agent — spec by interview, a plan of 2–5-minute tasks, test-first execution with checkpoint commits, then an evidence-gated finish. Effort-scaled: a one-sentence diff skips straight to implementation; a real feature gets spec.md → plan.md → task-by-task TDD, with all state in out/dev/<change>/ so any later session resumes at the first unchecked task. Human-in-the-loop: the spec and the plan are approved (and editable) before any code is written, and nothing ships without the done gate. Use when the user wants to build, add, or implement a feature or start non-trivial coding work — e.g. "/feature add rate limiting", "implement X", "build a Y that Z", "resume the <change> feature". For fixing something broken use bugfix; for just the end-of-session shipping gate use done; for this whole loop end-to-end without approval stops, suggest the user run /autopilot (explicit invocation only).

SKILL.md

8.9 KB, as published. Nobody here has run it

feature — spec → plan → build, effort-scaled

/feature <description> — start (or resume) a piece of work /feature — list changes in flight under out/dev/

Answer one question: what is the smallest process that gets THIS change built correctly? The two documented failure modes of workflow suites are opposite: heavyweight gates firing on typo-sized changes, and freestyle sessions shipping unverified scope creep. This skill scales the process to the change — never the other way around.

Step 0 — Size the change (the escape hatch comes first)

Classify before doing anything else, and say which tier you picked:

  • Trivial — you could describe the exact diff in one sentence (typo, rename, config value, one-line fix). → No spec, no plan, no folder. Make the change, then run the done gate's evidence checklist inline. Stop here.
  • Small — one focused change, ≤ ~3 files, design obvious. → Skip the spec interview; write the plan directly in chat for approval, execute with the Step 3 rules, finish with done. No folder unless the user wants to pause and resume.
  • Standard — anything multi-file, multi-session, or with real design decisions. → Full loop below.

If the user explicitly asks for the full treatment ("spec this out"), honor it regardless of size. When genuinely unsure between tiers, pick the smaller one and say so — the plan contract (Step 3) catches scope growth and upgrades the tier if needed.

The change folder — state across sessions

out/dev/<change-slug>/ (<slug> = short change name, lowercased, hyphens; committing the folder is the user's call — it makes good shared history):

  • spec.md — what & why, agreed acceptance criteria, decisions/assumptions numbered (D1…/A1…). Written once, then stable.
  • plan.md — the task checklist. Checkboxes are flipped as tasks complete; never delete a task, strike it with a reason instead.
  • log.mdappend-only progress journal: one line per task/session (date · task · result · commit). Decisions and surprises go here too.

Resume ritual (any session, before touching code): read log.md, then plan.md, then git log --oneline -10; run the project's test command as a smoke check; continue at the first unchecked task. Never trust residual conversation memory over the files. When the change ships, move the folder to out/dev/archive/ — done changes are history, not clutter.

Step 1 — Spec by interview (standard tier)

Read the repo's CLAUDE.md/AGENTS.md (the map skill writes the latter) and nearby code first. Facts vs decisions, no third category: a fact that can be looked up (code, docs, git log) is never a question; a decision is the user's — put each one to them. Interview with one compact question set (AskUserQuestion) covering the decisions the request leaves genuinely open: the goal as observable behavior, what's explicitly out of scope, acceptance criteria, and the end-to-end check that will prove it works (a command, a flow to click through, a curl). When an answer would reshape the questions after it, drop to one at a time, each with a recommended answer.

Write spec.md — short, self-contained, decisions and assumptions numbered (D1…, A1…) so plan tasks can cite them. An assumption here is a default the user let stand, never a question dodged; in auto mode it's a gap evidence couldn't settle. The bar is checkable: an implementer could build from it without asking a single question — a question remaining means the spec isn't done. Then get explicit approval. The spec is the contract for the review in done; vagueness here becomes an argument later.

Step 2 — Plan as executable tasks

Explore first (read the relevant code; use Explore sub-agents for unfamiliar areas so the main context stays clean), then write plan.md:

  • Each task is 2–5 minutes of work, names the exact files it touches, cites the spec decision or assumption it implements ([D2, A1]) where one applies, and carries its own verification step (the command that proves this task done). Small enough that a fresh sub-agent with no context could execute one from its text alone.
  • Order by dependency; put the riskiest/unknown-most task first, not last.
  • End with the spec's end-to-end check as the final task.

Optional cross-model plan check (standard tier): before asking for approval, if another model's agent CLI is installed (command -v codex, command -v gemini — each checked separately, and look in ~/.local/bin too, which non-login shells drop from PATH), send the plan for one bounded review (~5-min timeout, prompt opening with "review only the plan below — don't read other files"): infeasible tasks, hidden dependencies or ordering problems, missing test coverage. Findings must quote the plan line they're about; present them alongside the plan as input to the user's approval, never as changes already applied. No CLI → skip silently — a same-model check would mostly approve its own plan. (Under autopilot, the critique loop that replaces this approval already holds a cross-model critic seat — don't run this twice.)

Show the plan, invite edits, get approval. Human edits to plan.md are welcome at any point — re-read it at every task boundary.

Step 3 — Execute: test-first, checkpoint, log

Per task, in order:

  1. Red: write the failing test that captures this task's behavior. Run it; confirm it fails for the right reason.
  2. Green: the minimal code to pass. Run the task's verification step.
  3. Commit: checkpoint with a descriptive message following the repo's convention. Tick the checkbox, append to log.md.

Hard rules for the whole phase:

  • The plan is the scope contract. Discovered a needed change outside the current task? Add it to plan.md as a new task (say so) — don't just do it. If additions start reshaping the design, stop and revisit the spec with the user.
  • Never edit or delete an existing test to make it pass. A test blocking you is information — bring it to the user.
  • No new TODOs, skipped tests, or commented-out code as a way of getting to green.
  • Two failed attempts at the same task → stop. Log what was tried, pick a different approach or ask — don't grind the same wall.

Long plan and the user wants speed? Offer sub-agent execution: dispatch a fresh agent per task (the plan's task text is its full briefing), review each diff as it lands. Default remains main-agent execution — it's simpler and usually right.

Auto mode — under autopilot

When the autopilot skill drives this loop (or the user explicitly asks for auto mode), the approval gates become self-approvals on the record: Step 1 interviews the codebase instead of the user — questions it can't answer become numbered assumptions (A1…) in spec.md — and Step 2's approval is a bounded critique loop of parallel critics instead of a human yes. Every gate decision lands in log.md with its reason. Everything else — sizing, TDD, the scope contract, the hard rules — is unchanged.

Step 4 — Finish

Run the done skill: evidence checklist, fresh-context two-stage review, then the commit/PR proposal. A feature is not finished because the last checkbox is ticked — it's finished when done says ship and the user agrees. Then archive the change folder.

Guardrails

  • Process serves the change. State the tier; never make a one-line fix wait for a spec, and never let a multi-file change skip the plan.
  • Approval gates are real. Spec and plan wait for an explicit yes — they're the user's cheapest chance to steer.
  • Evidence over claims at every level: failing test seen failing, passing test seen passing, verification commands actually run.
  • Files over memory. plan.md/log.md are the truth; update the moment reality changes.
  • Honest logging. log.md records failures and reversals too — the next session needs the real story, not a highlight reel.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.