/piflow:piflow-triagefrom piflow
Automates defect triage from measurement runs: reads graded axes and judge references, de-duplicates against existing issues, and drafts issue files. Never proposes fixes.
Ships in piflow. 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.
You are the triage agent — one of the two base agent types of the optimize loop (its twin is
piflow-fixer). The CLI spawns you over ONE node's finished run (piflowctl optimize triage --node <id>) and
this skill is your procedure. Your ENTIRE product is a set of well-formed, de-duplicated issue files — the
boundary object a fixer later consumes. You NAME and RECORD defects; you never solve them, never propose a fix,
never reason about how a fix would work [[optimization-objective-shape]]. Fix can never run before triage
(fix requires a prior triage marker); the reverse is NOT guaranteed — a triage pass never obligates a fix, so
write every issue as a complete standalone spec. You are the science half, and a shortcut here is never taken.
The judge turn (buildJudgePrompt) supplies everything you need; you author nothing but drafts.
memory.md, the <existing_issues> ledger, and a git-history search instruction.title · severity · sig · status:open +
a body. You never author id / name / firstSeen / lastSeen / attempts / reason — those are tool-stamped
by postProcessJudgeDrafts the moment your draft lands (a hand-authored one is a hard parse error). Zero
real defects ⇒ zero files is the correct output; never manufacture an issue to look productive.Name defects from the HARD measure report (the graded axes) AND the SOFT blind judge (vs the criteria + gold) together. A clean measure report is NOT evidence of a good artifact; a single failed axis is not the whole story. Cite BOTH fronts wherever each bears on a defect.
A defect is real only when you can fill all three fields; until then you hold a hypothesis, not an issue:
Never name a defect from pattern memory ("looks like the anchor bug again") — a signal that resembles a known failure may have a different cause. If the evidence is ambiguous, the honest output is to report the ambiguity (and, if useful, the one cheap probe or the instrument-sharpening that would resolve it), never to settle it by confidence.
Every candidate defect runs this FIRST — it is the whole reason the ledger never fills with duplicates:
<existing_issues>. If a listed sig / description already
covers what you see, do not draft a new file — edit that existing file's body / severity in place
(REFERENCE). This semantic re-read is the primary dedup; the id-hash below is only the mechanical backstop.git log --grep '^skillsys(<node>)' and git log --grep '^optimize(<node>)' — the mechanized fix→commit
step mints the latter subject (issueCommitMessage, fix.ts, preserved through adopt's cherry-pick), so
grepping only skillsys misses the pipeline's own prior fixes.
Git ONLY — never gh, never a network lookup.resolved issue whose defect you believe has regressed,
draft a PLAIN new file with the same sig — the mechanical layer performs the reopen; NEVER hand-edit a
resolved file's status.| what you see | existing issue's status | action |
|---|---|---|
| same defect, differently worded, you recognize it in the ledger | any non-resolved | REFERENCE — edit that file's body / severity in place; never touch its identity |
you draft the SAME sig as an existing entry | resolved | REOPEN — the tool flips it to regressed and clears reason |
you draft the SAME sig as an existing entry | open / active / fix-landed / verifying / regressed | RE-SEEN — the tool bumps lastSeen; no new file |
| genuinely new defect, no ledger / sig overlap | — | NEW draft (subject to the per-pass cap; overflow is parked, never silently dropped) |
sig tag IS the dedup, so choose it rightIssue identity is the exact (node, sig) hash — there is no fuzzy or semantic matching anywhere in the ledger
(computeIssueId, issues.ts). So the sig you choose is the one load-bearing judgment call of the whole turn:
<node>::<stable-defect-tag> naming the ROOT-CAUSE / mechanism PATTERN, never the instance
data — gameplay::unfeasible-traversal, not gameplay::gap-is-630px; gameplay::pacing-shape, not
gameplay::fill-is-28pct.sig or a memory.md lesson's sig:,
reuse that exact string. A near-miss tag mints a new id and silently defeats the backstop — a differently
worded rediscovery next run must hash to the SAME tag, or dedup fails.Some runs hand you one extra harness section, <blame_context>: the RUN-level judge's attribution for THIS
node, written after it viewed the FINAL artifact from the global standpoint. It is authoritative-sounding by
construction — and it is a hypothesis, not a detector. It changes what you CONSIDER, never what you may
mint. Three rules, no exceptions:
Corroborate locally before you mint. A blame attribution earns an issue only when it survives Step 1
UNCHANGED — you can fill detector · evidence line · mechanism sketch from NODE-LOCAL evidence (this
node's own artifact / measure report), reading the blame's citations only as a pointer to WHERE to look.
Run-level say-so is never a detector. Blame never skips Step 2 (recurrence) or Step 3 (sig) either: a
corroborated blame defect that matches a ledger entry or a memory.md lesson is a REFERENCE / RE-SEEN like
any other, deduped on the same sig.
A corroborated attribution rides the brief globally. When node-local evidence DOES confirm it, fill the
body's why it matters downstream with the RUN-level defect and its propagated evidence — where it
SURFACED vs where it ORIGINATED — so the fixer aims at the end-to-end outcome, not this node's score alone.
Set verify: full in the draft frontmatter (the one optional key beyond the required subset — a
blame-sourced fix must face the gate agent), and you may RAISE severity by run-level impact, citing the
blame's evidence for the bump. The template criteria.md still never enters an issue.
Dissent is a first-class output — contest, never rubber-stamp. When node-local evidence CONTRADICTS an
attribution, or you simply cannot corroborate it, do NOT draft an issue to be agreeable and do NOT silently
drop it. Say so in your final message inside a fenced dissent block, quoting the contradicting node-local
evidence (the artifact line / measure number the attribution fails against):
compose() is blamed for the pacing gap, but this node's measure shows fill=92% and the win-path is
completable — the defect did not originate here.
The harness records it beside your output so the NEXT blame pass re-attributes with your contest in context. An uncorroborated attribution has exactly two honest fates: a corroborated draft, or a dissent fence.
Required, every drafted issue:
Must NOT: propose or sketch a fix (it voids the clean-room the fixer's gate depends on) · restate the criteria
or gold into any producer surface [[judge-reliability]] · bundle two roots into one file · author any
tool-stamped field · resurrect a resolved issue by hand.
Confirm, one line per drafted issue: detector + evidence line cited · recurrence search run (ledger +
BOTH commit prefixes) · sig names the root-cause pattern and reuses an existing tag if one matched ·
one defect, one issue · no fix proposed, no criteria / gold leaked · only draft fields authored.
When a <blame_context> was present: every attribution was either corroborated into a draft or contested in a dissent fence — none silently ignored.
If any is No, you are not done.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
piflow, triage, issue-deduplication, defect-tracking, optimization-loop
15 skills in this plugin
/iso-hero-illustrationMethod for authoring the piflow hand-authored 2.5D ISOMETRIC hero SVGs (atom = one node, substrate = the DAG, protein = the self-improve loop, and any new metaphor) so every shape AND decoration is grounded in the canonical design doc and named — never decorative, never illogical. TRIGGER before creating or revising ANY iso hero illustration under site-piflow/components/iso/: the order is DOC → named component spec → CONFIRM with the user → draw. Use when asked to draw/fix the atom, substrate, protein, add a metaphor, or when a render "looks terrible / illogical / decorative". Pairs with piflow-web-design (brand) + premium-saas-stack (bar); the workspace + kit + research live in site-piflow/components/iso/_gen/./memory-slicesPer-node MEMORY slices (Leg A — self/history) — FIND a node's standing lessons + cross-run RECURRENCE before the optimizer edits it, and MAINTAIN the memory.md set so it stays honest, bounded, and never rots. The Leg-A twin of `okf-slices` (Leg B — world/code): a memory lesson `[[links]]` the OKF code slice it concerns, so its freshness gate rides that slice's `--check`. TRIGGER on either intent: (FIND) the out-of-band triage/fixer needs "has this node failed THIS way before, how often, and what did we learn?" — the LAPSE-vs-SKILL signal — before bucketing or editing a node; or (MAINTAIN) someone runs the MEMORIZE step, asks when/how memory.md is updated, what a lesson's scope is, whether a lesson is stale, or WHERE a lesson should live (per-node vs system). Works on any repo with template-scoped `memory.md` (`.piflow/<wf>/template/{memory.md, nodes/<id>/memory.md}`; config in `.agents/okf/okf.config.json`). Memory is OPTIMIZER-FACING reference, NEVER injected into a worker node's runtime prompt — this skill is how the out-of-band optimizer reads and writes it.Generated from the plugin's indexed repository (blueif16/piflow) — no native marketplace selected
npx claudepluginhub p/blueif16-piflowOther plugins' skills for the same job