agentleFS
The01GeekThe01Geek/prflow/skills/spec/SKILL.md

spec

Skill99 starsChanged 3 months agoMITView on GitHub

Use when a rough user story, bug report, feature idea, piece of feedback, or an implementation plan should be recorded as a GitHub issue — "file a ticket for this", "open an issue", "write this up for the backlog", "we should track this", "log this bug", "spec this out as a ticket so we can pick it up later" — i.e. the user wants it tracked rather than built right now. For exploring or designing the work itself, reach for a brainstorming or planning skill first; this skill records the outcome as a spec'd-out GitHub issue.

96 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use tickets, make-pdf and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • toveruxSkill

    tickets

    Break a spec, plan, or the current conversation into tracer-bullet tickets, each declaring its blocking edges.

    Also in 3 projects that use this

  • chloropineSkill

    make-pdf

    Turn any markdown file into a publication-quality PDF. Proper 1in margins, intelligent page breaks, page numbers, cover pages, running headers, curly quotes and em dashes, clickable TOC, diagonal DRAFT watermark. Not a draft artifact — a finished artifact. Use when asked to "make a PDF", "export to PDF", "turn this markdown into a PDF", or "generate a document". (cgstack) Voice triggers (speech-to-text aliases): "make this a pdf", "make it a pdf", "export to pdf", "turn this into a pdf", "turn this markdown into a pdf", "generate a pdf", "make a pdf from", "pdf this markdown".

    Also in 3 projects that use this

  • anombyte93Skill

    discover

    Phase 1 of the prd-taskmaster pipeline: brainstorm-driven discovery. Delegates to superpowers:brainstorming in Interactive Mode (one adaptive question at a time), or self-brainstorms in Autonomous Mode when no user is present. Intercepts before the brainstorming chain hands off to writing-plans — this skill owns the exit. Extracts constraints, calibrates scale (Solo / Team / Enterprise), and advances the pipeline to GENERATE.

    Also in 5 projects that use this

  • diego-tobalinaSkill

    build-fix

    Fix build and compilation errors systematically. Run when build fails.

    Also in 3 projects that use this

  • chloropineSkill

    context-restore

    Restore working context saved earlier by $context-save. Loads the most recent saved state (across all branches by default) so you can pick up where you left off — even across Conductor workspace handoffs. Use when asked to "resume", "restore context", "where was I", or "pick up where I left off". Pair with $context-save. Formerly /checkpoint resume — renamed because Codex treats /checkpoint as a native rewind alias in current environments. (cgstack)

    Also in 3 projects that use this

  • GoogleSkill

    metrics

    Expertise in analyzing time-series repository health metrics, investigating root causes, and proposing proactive workflow improvements.

    Also in 3 projects that use this

  • +1 more from chloropine

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 5 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 79 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before any of the pipeline's steps below, establish this seven-slot tracker.

    line 8
  2. Distinctive:

    Every run executes the full seven-step pipeline to a created-or-paused issue.

    line 53
  3. Distinctive:

    Every decision a developer would otherwise have to guess at MUST be resolved by asking the user *before* the issue is written.

    line 93
  4. Distinctive:

    Before doing this skill's work, load any consumer-supplied prompt extension for this skill and honor it.

    line 100
  5. Very specific:

    If $ARGUMENTS is empty, ask the user to describe their user story, bug report, or feature idea before proceeding.

    line 151
  6. Very specific:

    Delete any .prflow/tmp/spec/<slug>/issue-step1-<slug>.md, then register this run through the run-directory registry:

    line 163
  7. Distinctive:

    If the artifact is missing or you cannot confirm it is this run's, the independent-derivation pass was skipped — stop and run it now (Step …

    line 239
  8. Very specific:

    Do not re-explore the whole codebase.

    line 248
  9. Very specific:

    Before composing the draft prose, read the shared writing standard "${CLAUDE_SKILL_DIR:-<absolute skill base directory this runner reports …

    line 254
  10. Very specific:

    Before the first rendered draft, and not again while iterating on feedback: with the slug unestablished, list .prflow/tmp itself on plain …

    line 275
  11. Very specific:

    Only absent supports a re-entry: the probe's absent class is what authorizes re-running the producing step to replace a missing or empty …

    line 288
  12. Very specific:

    When the harness refuses a command carrying the inline anchor — as its leading token, or as an argument under a python3 head — re-issue …

    line 323
  13. Very specific:

    Run-slug resolve fence. A caller reads the run's kebab-case <slug> from turn-one context, else resolves it through the run-directory …

    line 338

“Common” is measured: kept by at least 6 in 10 of the 79 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Completion checklist (do this first)

Before any of the pipeline's steps below, establish this seven-slot tracker.

Establish it by working down these rungs, moving on whenever one is unavailable: TaskCreate/TaskUpdate, TodoWrite, update_plan, any candidate named in a runner-supplied listing of tools it has not yet exposed, then a runner-advertised discovery mechanism — used to search for those candidates, never as one itself. The rung order is a preference, not a claim about which tool any runner exposes: the tracker established at run start holds for the whole run even when a higher rung appears later. A tracker that fails mid-run moves to the next lower rung, re-rendering its state in the current reply. A run that cannot recall which tracker it established re-reads it from the tracker's own persisted state — the fallback state file, or the task tool's own listing — before touching any rung. A candidate is unavailable when it is not exposed, when the call returns a failure, or when it returns without a failure but confirms no tracker, through the tool's own read-back where it exposes one or its rendered result otherwise. No rung ends the run: hold a breadcrumb naming any failure and carry on to the next rung. Once every candidate is exhausted, use the inline fallback in references/fallback-no-task-tool.md, loaded per the Reference routing rules below — the route this skill takes when the runner exposes no task-tracking tool or the exposed one is disabled or unusable.

The seven slots:

  • 1. Run Step 1's arm and write its evidence artifact
  • 2. Clarify the user story until the Definition of Ready is met (Step 2)
  • 3. Draft the issue and pass the no-options gate (Step 3)
  • 4. Steelman the draft against the code, revise, re-pass the no-options gate, and append the steelman record to the derivation artifact (Step 3.5)
  • 5. Bootstrap the audit state, offer the fresh-context audit, and run and act on any round the user elects (Step 3.6)
  • 6. Present the rendered issue, get the user's explicit confirmation, then create it (Step 4, sub-steps 1–5)
  • 7. After creation succeeds, run the gated implement-offer step — present the offer, or print the withheld-offer reason (Step 4, sub-step 6)

Mark each slot in_progress when you start it and completed only when done — the canonical status vocabulary; a task tool whose status fields differ uses its nearest equivalents. The issue is created only after the user explicitly confirms the rendered draft (slot 6) — never before. A finished /prflow:docs-verify report is only slot 1.

Announcement

Emit the announcement only once a tracker is established, and emit it as the run's first line of output on every path, save for a breadcrumb a reference load or the consumer-extension load requires at the moment it fails — it names this skill and confirms the seven tracked slots exist, for example: "Running /prflow:spec; the seven-slot completion tracker is set up." The output this skill itself composes after that first line follows it in this order: every held failed-candidate breadcrumb, then — on the inline-fallback path — the line naming that fallback and the reason you reached it, then the rendered checklist block. On that path the tracker counts as established once the run has settled on the fallback.

Iron Law

Every run executes the full seven-step pipeline to a created-or-paused issue; no run abbreviates, skips, or downgrades a step.

No exceptions:

  • A shortened pipeline is not a pipeline.
  • Announcing an abbreviation does not authorize it.
  • Cost is not a gate.
  • The absence of a user does not excuse an artifact no user is needed for.
  • Confidence in the draft is what the later steps test.

Red Flags

Each entry is a thought to catch yourself having mid-run. Noticing one means you are rationalizing a skip — stop and run the full step.

  • "This ticket is trivial, so a lighter pass is fine."
  • "I'll be honest that I abbreviated, so it is acceptable."
  • "The docs-verify dispatch is expensive; I'll skip it."
  • "There is no user here, so the clarification or approval step cannot run."
  • "I already have a solid draft; more grounding is wasted effort."
  • "The draft looks clean, so I won't bother offering the audit round."
  • "Let me just render the draft and report, to be efficient."

Rationalizations

ExcuseWhy it does not hold
"I'm being asked to do a full 7-step pipeline for a trivial one-line ticket"Triviality is a claim the pipeline tests, not a fact you may assume; the steelman and audit exist to catch the one-line ticket that was not trivial.
"Let me do a reasonable, abbreviated pass and be honest"Announcing an abbreviation does not authorize it, and a shortened pipeline is not a pipeline.
"Step 1 says dispatch docs-verify peers. That's expensive."Cost is not a gate. Step 1 grounds every later claim; skipping it drafts blind.
"Given time pressure I should still do this properly-ish""Properly-ish" is the abbreviation this law forbids; run the step, or record what genuinely cannot be resolved in the Blocked section.
"no user available"The absence of a user does not excuse an artifact no user is needed for; self-answer from the issue's own material where the run is non-interactive and continue — and a non-interactive run self-answers the audit offer as a user-decline override and proceeds unaudited, then self-answers Step 4's combined question as its sub-step 3a states.
"Enough grounding. I have a solid draft."Confidence in the draft is what the later steps test; the fresh-context audit is offered on precisely the drafts that feel solid, and whether the round runs is the user's election, not yours to pre-empt.
"I'll skip the audit offer since the draft looks fine"The audit is the user's election, offered at Step 4 whenever an offer ground holds and before any round opens; you may skip neither that offer, the bootstrap, nor the summary line — only the user may decline the round, and a declined run files unaudited.
"Let me be efficient — render the draft and report"Rendering and reporting is not creating; the pipeline ends at a created-or-paused issue, not a report.

Core principle

An issue is the output of resolved decisions — not a place to park unresolved ones.

Every decision a developer would otherwise have to guess at MUST be resolved by asking the user before the issue is written. Whatever the user genuinely will not or cannot resolve goes into one explicit Blocked section — never disguised as an "option", a "recommended approach", an "Open Question", a default, or conditional wording scattered through the body.

Consumer prompt extension (load first)

Before doing this skill's work, load any consumer-supplied prompt extension for this skill and honor it. From the repo root, run:

"${CLAUDE_SKILL_DIR:-<absolute skill base directory this runner reports in context>}"/../../scripts/load-prompt-extension.sh spec

Four outcomes. A missing helper path (No such file, exit 127, or the platform equivalent — e.g. The system cannot find the path specified on Windows shells, or a localized message) is the anchor-resolution failure described in ## Runner setup below — fix the anchor, do not report a missing extension. Otherwise, on a non-zero exit where the helper runs but fails, a consumer extension exists but could not be loaded: surface its stderr message, never silently proceed as if none existed. Exit 0 with text is consumer-owned customization under .prflow/skill-extensions/ — treat it as instructions appended to the end of this skill's own prompt for this run. When an exit-0 load's stderr carries a line naming a stray specs.md beside the extension, quote that line verbatim in this run's first message, before any Step 1 work, so the consumer who wrote that specs.md learns it is not read. Exit 0, no output: proceed unchanged.

Reference routing

The per-step procedures and the conditional fallback arms live in references/, loaded at their trigger. Build a reference's path from this skill's directory per the Portable helper anchor rules in ## Runner setup below and read it with the runner's file-read tool — never a new shell invocation. A load is accepted only when the file's first line is its start boundary marker and its last line is the matching end marker, each naming that file's own path, with exactly one of each.

A reader that returns a file in pages — a partial-view notice with an offset/limit continuation — has not damaged it: page forward until no continuation is offered or a page adds nothing new, then apply the marker rule to the assembled whole document, and breadcrumb the recovery. A read you cannot complete, a gap in the page sequence, or a message you cannot classify as that notice is the truncated read case below. Every load failure degrades, and no failure arm terminates the run. On an unreadable or absent file, an empty file, a missing / duplicated / foreign-path marker, or a truncated read, emit an in-chat breadcrumb naming the file and the failure kind, then continue on that file's degraded behavior. The five non-degradable invariants stated below hold on every degraded arm.

Which file loads on which trigger — and the degraded behavior each failed load falls back on — is enumerated in references/degradation-routing.md. Load it (per the boundary-marker rule above) on either of two triggers: when a reference load fails and you need its degraded behavior, and when one of its predicate-gated fallback conditions fires on an otherwise healthy run.

If references/degradation-routing.md itself fails to load, its routing row is unavailable for the reference that needed it: proceed inline for that step, using the user story and the Step 1 findings, disclose the reduced coverage in chat, and do not terminate the run. The five non-degradable invariants below still hold.

Non-degradable invariants

These five hold on every path, including every degraded arm above, and are load-independent of any reference:

  1. The issue is created only after the user explicitly approves the draft as presented. The draft is presented as a saved file whose path is shown; its full title and body are printed verbatim in your message only when the user asks (or on a forced-render arm — a write-failed run, a bound=none run, or a non-interactive run). An earlier "just create it", a complete Step 2, or a paused pipeline is never a substitute for approval of this draft.
  2. The no-options gate (stated under Step 3 below) passes on the drafted body and on every revision of it.
  3. The audit summary line is mandatory and always renders — even on a run that elected no audit round (rounds run: zero) or a clean VERDICT: FILE with zero findings. A declined, skipped, or degraded audit is never silent.
  4. The reserved PRFlow provenance label is applied best-effort after creation, and any degradation is reported explicitly — a label hiccup never blocks creation, and a PRFlow label that could not be applied is named in the final outcome rather than passed over.
  5. The self-assignment election is asked exactly once after creation succeeds — in the same pause as the implement offer, or alone when that offer is withheld — and is never silently skipped. Creation is always unassigned; an explicit yes assigns best-effort via the REST path Step 4 sub-step 6 states, with any failure named in the final outcome, and an explicit no, silence, or any non-yes/non-no answer leaves the issue unassigned and is reported — never a stall, because the issue already exists. This election belongs to the interactive create path only; a draft-only request never reaches it. The implement offer this pause shares is only ever to post the trigger comment on the created issue, never a start of implementation by this run itself, because implement must begin in a fresh-context agent and this run's context is spent.

Subagent dispatch is user-requested here (injection-condition clause)

Invoking /prflow:spec is the user's request for subagent dispatch at this skill's two dispatch sites — the Step 1 /prflow:docs-verify peers and the Step 3.6 fresh-context audit subagent — thereby satisfying any injected "do not call the AgentTool unless the user requested it" condition there and nowhere else. It changes no degradation arm above: a dispatch that fails, is unavailable, or is refused still degrades onto its named fallback, and nothing blocks issue creation.

Prerequisites

If $ARGUMENTS is empty, ask the user to describe their user story, bug report, or feature idea before proceeding.

Steps

Step 1: Assess current state (read-only)

Dispatch /prflow:docs-verify --report-only peers on the topic extracted from the user story.

Bind the slug, then clear state — before any dispatch. Bind this run's kebab-case slug here; no later step binds one. Run mkdir -p .prflow/tmp/spec/<slug> first, treating any stderr from it as its failure signal; a write or delete at or under .prflow/ that fails or is refused routes this evidence artifact and this registry entry onto references/fallback-read-only-sandbox.md's Step 1 arm. Delete any .prflow/tmp/spec/<slug>/issue-step1-<slug>.md, then register this run through the run-directory registry:

"${CLAUDE_SKILL_DIR:-<absolute skill base directory this runner reports in context>}"/../../scripts/cleanup-spec-run.sh --register-slug <slug> --topic "<one line from the user story, reduced to letters, digits, spaces and . , : - _ / only>" --root .

The helper reads no environment variable, writes the run's run-meta.json, and prints one registered= line; read the line you received. A run that received registered=no never invokes --resolve-slug later and treats a lost slug as unestablished (the title-derived fallback). Later sites lacking the slug resolve it via --resolve-slug; on a slug=unestablished reason=ambiguous … line they pick the candidate whose topic matches the story and confirm it with --adopt-slug, and on any other slug=unestablished line they take the title-derived fallback stated in the Runner setup section — never a slug composed from a partial read.

Dispatch exactly two peers in parallel, on every run that does not take the degraded inline check below — one documentation-lead, one code-lead — each over the whole repository:

  • /prflow:docs-verify --report-only --lead docs <topic>
  • /prflow:docs-verify --report-only --lead code <topic>

Each peer's dispatch prompt is its invocation string above plus the user story, and nothing else. Send no peer beyond these two. Both dispatch rather than run inline.

Evidence artifact. The orchestrator — never a peer — writes both returned reports to .prflow/tmp/spec/<slug>/issue-step1-<slug>.md, anchored to the working directory, before Step 1 returns, each under a heading naming its lead, plus a note naming any lead whose peer failed. Peers write nothing. Each report is written unchanged, including one over the 1,000-word limit, without measuring it. Those findings stay resident in your context and durably held in that artifact, so Step 3 draws on them by pointer and does not re-quote the findings block into its own output. Step 2's evidence bundle reads the artifact.

The documentation verdict is taken only from the documentation-lead report; a verdict in the code-lead report has no handling. A missing or malformed duty status, and a documentation-lead verdict that is missing or not one of RELIABLE/UNRELIABLE/ABSENT, is recorded unestablished in that file.

Population-identity check. Resolve the internal-documentation location — .docs.internal is a config key, not a path — with "${CLAUDE_SKILL_DIR:-<absolute skill base directory this runner reports in context>}"/../../scripts/config-get.sh .docs.internal docs/internal/. Record the exact operand and population identity duty unestablished, whatever the documentation-lead verdict, in exactly these cases: (a) the documentation-lead report omits its resolved internal-documentation location — and an absent or failed documentation-lead report counts as case (a), since a report that never arrived omits the location it would have stated, so the comparison never fails open; (b) the report names a location different from this resolution; (c) the resolution exits non-zero, prints nothing, or prints a non-path; (d) the resolved location exists but holds no git-index entries — git ls-files -- <resolved-location> prints nothing. When the resolver never ran, compare against docs/internal/ and state that in your output.

Failure arms. When exactly one peer fails, continue with the surviving report and record a note naming the failed lead. When both fail, take the degraded inline check: a bounded inline verification with a breadcrumb naming the failure kind, marking its evidence degraded and writing its own output to the same artifact path. It never terminates the run and never presents a half-verification as whole. The completion-wait rule below and the read-only-sandbox fallback cover both peers.

Completion-wait discipline (mandatory, mirroring Step 3.6's synchronous dispatch). Dispatch each peer through the Agent tool (a non-fork subagent_type, general-purpose on Claude Code; the runner's equivalent context-isolated subagent tool elsewhere), synchronously — the normative requirement is behavioral: the peer's completed findings must be in hand before the run proceeds, and a launch acknowledgment is never the findings report. A dispatch that returns only a launch acknowledgment (the Agent tool on Claude Code's interactive tier today) meets it by ending the turn and resuming on the peer's completion notification; one that returns the completed findings inline (a headless run with background tasks disabled) waits for that return and never ends the turn; a background fork is excluded, since it can die on resume and lose the verification. The docs-verify findings report must be complete and captured before the first Step 2 clarification question — and, on a run so complete it asks zero clarifying questions, before Step 3 drafting begins. Never open Step 2 clarification or Step 3 drafting on the strength of "docs-verify is running".

Duplicate-issue check (read-only, before drafting). Search open issues for the problem's mechanism, not its symptom, with gh issue list --search and no --repo operand; a zero-row result is unestablished until a term you know is present returns rows, since a stale --repo after a repo rename returns zero silently. Confirm a hit is an issue, not a pull request — gh api repos/{owner}/{repo}/issues/<n> --jq '.pull_request // "issue"', since gh issue list resolves pull requests too — then widen that issue's body and criteria instead of filing a duplicate.

Step 2: Clarify until the Definition of Ready is met

Load references/step-2-clarify.md per the Reference routing rules above and follow it exactly, on every entry into this step.

Step 3: Draft the issue and pass the no-options gate

Precondition — the Step 2 derivation-artifact gate applies here too, unconditionally. Before drafting, confirm .prflow/tmp/spec/<slug>/issue-derivation-<slug>.md exists and holds this run's derivation — or, in a read-only sandbox, rely solely on the visible inline-in-chat stand-in re-posted in this turn and do not trust any on-disk file (it can only be a stale leftover). If the artifact is missing or you cannot confirm it is this run's, the independent-derivation pass was skipped — stop and run it now (Step 2) before drafting. This equally gates the ## Evidence bundle: it must be present and axis-complete against the effective list recomputed here (the second, unconditional site of the Bundle-coverage gate); if it is missing or an axis has no entry, stop and run the evidence-bundle sub-pass now before drafting.

Draft the issue from the context you already hold — the documentation findings from Step 1 (relevant files, current behavior) and the decisions from Step 2 — doing only targeted verification reads where a specific claim needs confirming. Do not re-explore the whole codebase; the findings are your map, resident in context and durably held in .prflow/tmp/spec/<slug>/issue-step1-<slug>.md, so reference them by pointer and do not re-emit the findings block into your drafting output. (User-facing decision inputs — the surviving audit findings quoted for the user's Step 3.6/Step 4 election — are authoritative and exempt.)

Before composing the draft prose, read the shared writing standard "${CLAUDE_SKILL_DIR:-<absolute skill base directory this runner reports in context>}"/../../lib/writing-standard.md and follow it (an issue is change-describing prose). Per this skill's degrade-never-terminate contract, a failed load emits a breadcrumb naming the file and the failure kind and you draft without it.

Load references/issue-template.md per the Reference routing rules above and follow it for the required section structure, the no-options rule, the quality checklist, and autolink hygiene, on every entry into this step. Key rules:

  • No-options gate (run before showing the draft): re-read the rendered body against the no-options rule. When references/issue-template.md could not be read, apply the compact semantic fallback — the body carries no unresolved implementation decision outside ## 🚫 Blocked (a flagged — assumption, confirm before implementing premise is not one), every acceptance criterion is one concrete unconditional assertion, and wording the user approved or the issue prescribes verbatim (quoted as text to add to a file) is never reworded without asking the user — and report in chat that the rule text was unavailable. If you find an unresolved decision, either ask the user now, or move it verbatim to the Blocked section. Do not proceed to Step 4 until the body is clean.
  • Advanced quality-guidance routing: references/issue-template.md carries only the CORE checklist, so after loading it evaluate each of the six advanced quality groups' observable triggers against facts already in hand (the request, the Step 2 evidence bundle, the assembled draft) and load a group's reference only when its trigger fires or applicability is uncertain. The triggers: references/quality-group-visual.md — the issue is a user-visible UI change (Step 2's visual-specification inference); references/quality-group-contracts.md — an AC or Testing-Strategy assertion expresses a number, a value comparison against a literal, a universal quantifier about the system under change, an enumerated list, or a trust/integrity boundary over executable artifacts, or the draft changes a decision rule — one whose outcome set its surface names (grades, severities, classifications, routes, thresholds, verdicts, or a guard's allow or deny), creating, deleting, narrowing, widening, re-grading, reclassifying or re-routing a guard or guarantee included; references/quality-group-premises.md — the draft relies on external/third-party behavior (webhooks, trigger syntax, token scopes, endpoint behavior, response shapes, rate limits), carries a Verified: bullet, or asserts "the code does X" about a possibly-gated or default-off path; references/quality-group-semantic.md — the draft designs a new LLM/semantic judgment over third-party text whose output drives an automated selection or action (reusing and citing an existing, already-guarded judgment path is exempt); references/quality-group-regression.md — the story reports a defect, or the Testing Strategy enumerates a case/input-shape matrix (parser, config consumer, best-effort input handler), or the change introduces a reader of input the repo does not itself produce (historical records, user- or reporter-controlled text, external structured formats, agent- or human-mutable markdown); references/quality-group-compatibility.md — the grounded change moves a supported-version boundary (across runtimes, tools, APIs, schemas, configurations, or plugin releases), changes a contract already used by existing data, configuration, or consumers, spans independently upgraded components that can run at mixed versions, or introduces rollout behavior such as staged activation, rollback, or old/new coexistence (merely touching a shipped path does not trigger it). Load each applicable group per the Reference routing rules and boundary-marker contract; a failed required advanced-reference load takes the attributable degradation route per references/degradation-routing.md, never a silent skip.

Drafting produces a candidate issue in your message only — nothing is posted to GitHub in this step. Posting happens in Step 4, and only after the user confirms — but first the draft must survive Step 3.5.

Step 3.5: Steelman the draft against the code (mandatory, before the user sees it)

Load references/step-3-5-steelman.md per the Reference routing rules above and follow it exactly, on every entry into this step.

Step 3.6: Fresh-context audit bootstrap and offer (before the user sees it)

Load references/step-3-6-audit.md per the Reference routing rules above and follow it exactly, on every entry into this step.

Step 4: Review with the user, then create

Before the first rendered draft, and not again while iterating on feedback: with the slug unestablished, list .prflow/tmp itself on plain ls -l — never -L — state that nothing there is attributable to this run, re-enter nothing, and run no probe. Otherwise classify .prflow/tmp/spec/<slug>/issue-step1-<slug>.md and .prflow/tmp/spec/<slug>/issue-derivation-<slug>.md with this probe, never adding a --slug operand:

"${CLAUDE_SKILL_DIR:-<absolute skill base directory this runner reports in context>}"/../../scripts/cleanup-spec-run.sh --probe-run-state <slug> --root .

Show its printed lines in the message that renders the draft and take each path's class — present, absent or unestablished — from its path=… class=… line; no output, a refused command, or no class= field for a path leaves that path unestablished. Assert of no path that it is this run's own completed output.

Only absent supports a re-entry: the probe's absent class is what authorizes re-running the producing step to replace a missing or empty leftover. Every producing step deletes its own same-slug leftover before writing, and a run whose earlier .prflow/ write or delete failed or was refused is on references/fallback-read-only-sandbox.md's arms, where no on-disk copy is trusted and nothing is re-entered. An unestablished path — a directory, say — gets a breadcrumb rather than a re-entry.

Re-run the producing step for every absent path, then resume at the draft rendering. A Step 1 re-entry reuses the slug already bound and binds no new one. A missing derivation file re-runs Step 2's independent-derivation pass, not Step 2 whole, reporting any genuine clarification deficit in the draft message — and re-runs Step 3.5's steelman pass afterwards. The run bootstrap's re-entry belongs to the Step 4 presentation gate alone (references/step-4-present-create.md), which stops and runs it when this run holds no nonce or bound draft; a run that elected no audit round has no audit artifact, and the gate admits it rather than re-entering Step 3.6 to dispatch an unasked round — the audit artifact is the presentation gate's alone, named by no arm of this listing. Where any step was re-entered, that message names the steps re-run and any finding of theirs the draft does not already reflect. A producing step that cannot run gets an in-chat breadcrumb naming the file and the failure kind; this listing never blocks issue creation. These two paths are the run-state files this listing covers; it leaves out the user-facing draft issue-draft-<slug>.md (written under the main repo root rather than these cwd-anchored paths), the issue-audit-<slug>.md audit artifact, and the steelman-projection-<slug>.json gate operand — all owned by the presentation gate, which reads them for itself.

Load references/step-4-present-create.md per the Reference routing rules above and follow it exactly, on every entry into this step.

Runner setup

The portable helper anchor is a single-statement rule. This skill invokes helpers bundled beside it — load-prompt-extension.sh, issue-audit-state.py (the audit-lifecycle state owner), cleanup-spec-run.sh, resolve-main-root.sh, ensure-label.sh, apply-labels.sh. Resolve the skill directory inline, in the same statement that uses it, as ${CLAUDE_SKILL_DIR:-<absolute skill base directory this runner reports in context>}, whose :- form uses $CLAUDE_SKILL_DIR only when it is set and non-empty. Otherwise substitute the base directory this runner reports in context — e.g. a Base directory for this skill: line. Never capture the anchor into a shell variable that a later statement reads: some runners' inline-bash marshaling drops a variable assigned in an earlier statement of the same command. When the harness refuses a command carrying the inline anchor — as its leading token, or as an argument under a python3 head — re-issue that one command with the runner-reported skill base directory written as a literal path where the anchor stood, in the same single statement and with no variable capture.

Normalize a Windows-form base directory before substituting it: run one standalone wslpath -u '<path>' (WSL) or cygpath -u '<path>' (Git Bash/MSYS2), in that order, and use its output only if the command succeeds and prints a non-empty path — otherwise substitute the runner-reported path unchanged.

State-owner invocation form. Invoke the audit-lifecycle state owner as python3 plus the inline anchor plus scripts/issue-audit-state.py, carrying the run nonce as a value — never captured into a shell variable a later statement reads, which some runners' inline-bash marshaling drops:

python3 "${CLAUDE_SKILL_DIR:-<absolute skill base directory this runner reports in context>}"/../../scripts/issue-audit-state.py <subcommand> "<slug>" --nonce "<nonce>" …

Run-slug resolve fence. A caller reads the run's kebab-case <slug> from turn-one context, else resolves it through the run-directory registry — this single-line fence, which reads no environment variable:

"${CLAUDE_SKILL_DIR:-<absolute skill base directory this runner reports in context>}"/../../scripts/cleanup-spec-run.sh --resolve-slug --root .

Adopt the slug on a slug=<name> line; on a slug=unestablished reason=ambiguous candidates=… line pick the candidate whose topic matches the story you hold and confirm it with --adopt-slug <slug> --root .; on any other slug=unestablished line derive one from the issue title (e.g. "Add CSV export for survey results" → add-csv-export-for-survey-results).

An unresolvable anchor degrades; it never stops the run — an anchor failure must never block issue creation. Proceed and let the underlying "No such file" error surface: a /prflow:docs-verify pass whose anchor cannot resolve takes Step 1's degraded arm, and an issue-audit-state.py call that produces no contract output routes to Step 3.6's state-owner unavailable fallback.


User Story (rough draft): $ARGUMENTS

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.