AGENT SKILL

refine

Refinement with the developer — grill the next candidate items or a new idea, propose stories and tasks in the tracker, and agree or reject them on the developer's word, so tomorrow's planning has agreed tasks to pick. Use after the retro at the end of the day, or when the developer asks to refine or plan the next work.

License 许可
MIT
最近更新
2026-11-04
Stars
★ 0
Forks
0

01 前言 Front Matter

name
refine
description
Refinement with the developer — grill the next candidate items or a new idea, propose stories and tasks in the tracker, and agree or reject them on the developer's word, so tomorrow's planning has agreed tasks to pick. Use after the retro at the end of the day, or when the developer asks to refine or plan the next work.

03 SKILL.md 正文

Refinement

The last part of the end-of-day block (review, retro, refinement). It is where the chain's gates happen on the planning calendar. Stories, with their scenarios, and tasks, with their done criteria, are proposed here and agreed by the developer. Only agreed tasks reach a planning.

Refinement proposes stories and tasks. An epic is agreed at the SRS gate, with its sentence, and is not proposed here.

1. The tracker has to be on

Run:

${CLAUDE_PLUGIN_ROOT}/bin/needs-tracker

If it exits non-zero, tell the developer the line it printed, word for word, and stop.

2. The agenda

Run:

${CLAUDE_PLUGIN_ROOT}/bin/refine-candidates

It lists:

  • proposals awaiting agreement;
  • agreed stories with no agreed task (nothing in a planning can come from them yet);
  • agreed debts with no agreed task (their fix is not planned yet);
  • stories and debts awaiting verification: their tasks are done, and none is open;
  • tasks with no done criterion (the planning would refuse them);
  • what tomorrow's planning can already pick.

Awaiting verification is not work to plan. For each one, ask the developer whether it was verified live. With a yes, close it with bd close <id> --reason "…", saying how it was verified. Otherwise leave it as it is. Never propose a task for it to get it off the list.

Ask the developer what to refine: something from the agenda, or a new idea of theirs.

3. Grill before writing

For each item, before writing anything, ask about:

  • the problem: what is wrong or missing, for whom, and how it shows;
  • who it is for;
  • edge cases;
  • risks;
  • what is out of scope;
  • how it will be known to be done. For a task, this becomes its done criterion. For a story, its scenarios.

Ask instead of assuming. Where a requirement is unclear, ask the developer. Never fill the gap yourself.

A task that would not fit in one day is split into tasks that each fit in a day.

4. Propose

Write the body and the acceptance to files, then run:

${CLAUDE_PLUGIN_ROOT}/bin/refine-propose story <epic-id> "<title>" <body-file> <scenarios-file>
${CLAUDE_PLUGIN_ROOT}/bin/refine-propose task <story-or-debt-id> "<title>" <body-file> <criterion-file> [<id it waits on>...]
  • A story's acceptance is its scenarios, in Gherkin (Scenario: / Given / When / Then), in the project's documentation language.
  • A task's acceptance is its done criterion.

A debt is like a story: its fix is proposed as tasks under it, the debt's regression scenario playing the part a story's scenarios play.

The script refuses a story outside an agreed epic, a task outside an agreed story or debt, a task with no criterion, and a story with no scenario. Fix what it names.

5. The developer's word

Show each proposal and let the developer answer:

  • Agreed:
    ${CLAUDE_PLUGIN_ROOT}/bin/refine-agree <id>...
    
  • Rejected, with their reason:
    ${CLAUDE_PLUGIN_ROOT}/bin/refine-reject <id> "<why>"
    
    This closes it and never deletes it, so the same draft does not come back.
  • Changed: change it with bd update, then ask again.

Agree a story before proposing tasks under it. The chain is agreed in order.

6. Hand over

Run refine-candidates again and show its Agreed and ready section: that is what tomorrow's planning can pick. Then stop.

04 同仓库更多 Skills

TheHefty
TheHefty/jvsl.env.agents.container

study

Build study material for a topic the developer wants to understand before writing about it — a guide in docs/study/<slug>/, tracked as a study task. Use when the developer asks to study a topic, to turn a blog candidate or a report topic into study material, or to prepare before writing a post. Never writes the post.

★ 0
TheHefty
TheHefty/jvsl.env.agents.container

split-markdown

Split a Markdown file that reached the size limit (50 KiB) into a folder of its subjects — one file per top-level section, a README.md index, every inbound link updated — the way the rules prescribe. Use when check-md-size or the pre-commit hook refuses a file, or when the developer asks to split a Markdown file that grew too large. Shows the plan and writes nothing until the developer agrees.

★ 0
TheHefty
TheHefty/jvsl.env.agents.container

review

End-of-day review with the developer — show each task worked today against its done criterion, and record the developer's acceptance or reopen it with what is missing. Use when the developer asks to review the day or close out today's work, or as the first part of the end-of-day block.

★ 0
TheHefty
TheHefty/jvsl.env.agents.container

retro

The day's retrospective with the developer — report what was discovered, what surprised, what went wrong and what was decided without asking, take the developer's own "what I want to learn" line and elaborate on it, grounded in the day's work, and write the day's journal entry. Use after the review at the end of the day, or when the developer asks for the retro. Never skipped.

★ 0
TheHefty
TheHefty/jvsl.env.agents.container

project-report

A read-only report on the project — overview, decisions documented and implicit, critical areas, quality and tests, a study list by risk, and topics worth writing about — written to docs/REPORT.md, which git ignores. Use when the developer asks for a project report, an overview of the codebase, what to study, or what is worth writing about.

★ 0
TheHefty
TheHefty/jvsl.env.agents.container

planning

Start the working day with the developer — read the tracker and yesterday's journal, propose today's tasks, and claim only what the developer confirms. Use when the developer asks to start the day, plan the day, or plan today's work. Writes no code.

★ 0