/microfactory:refine-storyfrom microfactory
Runs one unattended refinement iteration: picks a vague item, resolves what the codebase already answers, posts remaining product questions as a task comment, then stops. Designed as a /loop target.
Ships in microfactory. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
One refinement iteration: pick an item → answer what the code answers → post the remaining questions as a comment → stop.
This skill runs unattended. Never use AskUserQuestion and never wait for a reply — the human answers in the task backend, in their own time. All communication goes through issue comments, because the backend is the single source of truth.
This skill never edits the item. It asks; the product owner decides. The questions and the answers live in the comment thread, and plan-next and implement-next read that thread when they claim the item. Rewriting somebody's story into decisions is not this skill's job, and neither is deciding when a story is ready — a human removes the needs-refinement tag when they are satisfied with the answers.
Act on at most one item per iteration.
Read .microfactory/config.yaml; if it does not exist, tell the user to run /microfactory:init-factory and stop. Load the tasks skill — you need its list, view, comments, and comment subcommands, and nothing else. Load the overrides skill for refine-story and follow what it returns.
With an issue key argument: work that item.
Without one: list open, unassigned items in the factory's scope (list open scoped) that are eligible for refinement, in backlog order —
needs-refinement, orRefinement never assigns the item, never transitions it, and never updates it. An assigned item is not claimable by plan-next or implement-next, and refining is not claiming. The questions comment is what tells another session this item has been handled.
Fetch the item and its comments. A questions comment posted by this skill always opens with the marker line **Refinement questions** and closes with the _Posted by microfactory refine-story…_ footer.
If that marker is there, skip the item — asked is asked, whether or not anybody has replied yet. (Given an explicit issue key, say the item has already been asked, point at the existing comment, and stop; do not post a second round.) Re-asking a question a human already answered wastes their attention, and asking a second round on top of an unanswered first one buries the questions that mattered. One round per item is the whole of this skill's budget; anything the round did not settle is the product owner's to pursue.
Rely on the marker, not on comment authorship — the todo backend records no authors, and on a shared Jira, GitHub or Azure DevOps project a teammate's reply may come from any account. Ignore comments other factory skills left (plan links, implementation notes).
If every eligible item already carries the marker, say "No refinement work available." and end the iteration — the humans have the ball, and the loop cadence handles waiting.
Never ask a human something the repository already answers. Before drafting a single question:
Keep a note of what you concluded and what you concluded it from. These are not questions — they go into the comment as a short list of what you took as given, so the product owner can correct any of them in the same reply.
Ask about what the product does and what the user sees:
Do not ask implementation questions. Which library, which pattern, how to structure the module, where the code lives — those are yours to decide, or plan-next's. The exception is a story that is itself technical (a performance target, a refactoring, a dependency upgrade, a migration): there the technical choices are the product choices, so ask about them — expected gain, acceptable regressions, what must not change, what may break.
Now delete questions. This step matters more than the drafting.
Drop a question when:
Asking nothing is a perfectly good outcome. If nothing survives the prune, still post a comment — the marker line, what you took as given, and one line saying no human input is needed. That records the reasoning, closes the item to further refinement rounds, and tells the product owner they can drop the tag.
Cap it at 4 questions. If more survive, keep the four whose answers change the most and drop the rest — earlier answers usually kill later questions anyway, and there is no second round. A story with two open trivia and a clear goal is refined; twelve questions is an interrogation, and a worse outcome than a slightly vague story.
In this order, always preferring the form higher up the list:
Every question states its default — what gets built if nobody answers. That is what makes silence a safe answer.
Post one comment with the tasks skill's comment:
**Refinement questions**
Reply in a comment, answering by number (e.g. `1: yes`, `2: b`, `3: keep the old ones read-only`).
Skip anything you have no opinion on — the default applies. Correct anything wrong under
"Taken as given" the same way. Drop the `needs-refinement` tag when this is settled enough to build.
**Taken as given** (from the code — say so if any of these is wrong):
- Invites are sent by email only; there is no invite link to share (matches `ProjectInvite`).
- An invite expires after 7 days, like every other token in the project.
**1.** Should an expired invite link show the sign-up page with an "expired" notice, rather than a 404?
*Default: yes.*
**2.** What does the member list show for a team with nobody in it yet?
**a.** Empty state with an "Invite someone" button — matches the projects list *(recommended, default)*
**b.** The list with only the current user in it
**c.** Hide the list until there are two members — fewer states, but no obvious way to invite
_Posted by microfactory refine-story. Answering here unblocks this story._
Leave out Taken as given when there is nothing worth stating, and leave out the questions when none survived the prune — the marker line and the footer are the only fixed parts.
Then end the iteration. Do not plan, do not implement, do not touch the item — an unanswered question is not a decision, and the story belongs to whoever wrote it. The product owner answers in the thread and removes needs-refinement when they are satisfied; plan-next and implement-next read the thread when they claim the item.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
17 skills in this plugin
/breakdown-featureTurn a feature description or requirements document into a sequenced set of implementable stories and create the approved ones in the task backend — lean vertical slices, each sized to a single implementation iteration, with open questions marked for refinement. Use when the user has a spec, PRD, feature brief, or requirements doc to break down into backlog items./customizeAdd, change, list, explain, extract and remove the project's microfactory override files (.microfactory/overrides/general.md and <skill>.md) from a plain-language request such as "always run make e2e-smoke after implementing". Interactive — shows the exact change and asks before writing; checks each override against the factory's invariants and the real step titles. Use when the user wants to add extra instructions for a microfactory skill, or asks what an existing override does or why one applies or is being ignored. Not run by loops; not for config.yaml settings (that is init-factory) or for general questions about how the factory works./find-design-improvementsAnalyze the project and report candidate software design improvements — refactorings, architectural fixes, misplaced responsibilities, missing abstractions, pattern inconsistencies. Read-only: it proposes, it does not change code or create tasks. Use when the user asks what could be improved in the project's design, structure, or architecture./find-improvementsSweep the project for improvements and turn the chosen ones into backlog tasks — runs the design, testing, library, and UI finders, merges and ranks their findings, then creates the ones the user approves in the configured task backend. Use when the user wants to generate a backlog, find work for the factory, or top up the task list./find-library-improvementsAnalyze the project's dependencies and report candidate library improvements — vulnerable or unmaintained packages, worthwhile upgrades, redundant or oversized dependencies to drop, and gaps a library would genuinely fill. Read-only: it proposes, it does not touch manifests or create tasks. Use when the user asks about dependencies, upgrades, or library choices./find-testing-improvementsAnalyze the project's tests and report candidate testing improvements — missing coverage of important behaviors, missing or inverted pyramid layers, flaky and slow tests, tests that cannot run. Read-only: it proposes, it does not write tests or create tasks. Use when the user asks how the project's testing could be improved.npx claudepluginhub jaksa76/microfactory --plugin microfactoryOther plugins' skills for the same job