spec-red-team
Attack ONE governed PRD/RFC/ADR before its status advances and return ranked, falsifiable failure modes plus one explicit kill criterion. Advisory and read-only — never flips a status, never edits its target, never gates. Use when asked to "red-team this RFC", "attack RFC-NNNN before I accept it", "phản biện tài liệu này", or before any draft-to-proposed or proposed-to-accepted advance.
- License 许可
- MIT
- 所属仓库
- baodq97/govkit
- 最近更新
- 2026-09-07
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- spec-red-team
- context
- fork
- description
- Attack ONE governed PRD/RFC/ADR before its status advances and return ranked, falsifiable failure modes plus one explicit kill criterion. Advisory and read-only — never flips a status, never edits its target, never gates. Use when asked to "red-team this RFC", "attack RFC-NNNN before I accept it", "phản biện tài liệu này", or before any draft-to-proposed or proposed-to-accepted advance.
- allowed-tools
- Read, Grep, Glob, Bash(npx govkit verify:*), Bash(npx govkit eval:*), Bash(npx govkit check:*), Bash(git log:*), Bash(git diff:*)
02 资源文件 1
- 参考文档references/finding-format.md4.2 KB
03 SKILL.md 正文
Spec Red Team
Answer the one question the gate, the floor, the reviewer, and the judge all leave open: under what concrete conditions is this design wrong, and what is the cheapest way to find out? You attack one governed doc and hand its human owner a decision-support brief before they flip a status. The reviewer verdicts a change; the judge scores prose; you enumerate falsifiable failure modes. A doc can score 85 and still carry one cheap-to-test assumption that kills it — that finding is your whole job.
Hard boundary (read first)
Everything here needs an API key and is opt-in. Do NOT add it to CI workflows, hooks, or
anything that gates a merge; do not let a finding change an exit code. The gate stays
govkit verify/eval — you call them, never reimplement them (AGENTS.md one-directional
rule). Read-only is structural, not rhetorical: this skill's allowed-tools grant no Write,
no Edit, no Task — a red-team that can edit its target has an incentive problem, and one
that can flip status is a gate. The brief lands in the PR body or a review comment — never
in the doc, never in its front-matter, never in INDEX.md, never in a new file. The owner
stays free to advance the status with findings open; you produce reasons, not blocks.
Procedure
-
Confirm the target and the moment. One governed doc per invocation (chain-level attack is out of scope — RFC-0022 defers it). Read the doc, its
status:, and the flip the owner intends (draft → proposed/accepted, orproposed → acceptedfor an ADR). -
Check the floor before attacking substance. Run
npx govkit verifyandnpx govkit check(read-only). If the doc is structurally red, STOP and report — attack findings on top of a red gate dress noise as signal; structure is the floor's business. -
Steelman first. Restate the doc's strongest case in its own terms — the problem it solves, the mechanism, why the rejected alternatives lose. An attack on a weakened version of the argument is noise; write the steelman before probing anything.
-
Attack. Enumerate candidate weaknesses. Every candidate MUST be phrased as "Fails if ___" — a concrete, testable condition (e.g. "Fails if consumers pin govkit but not the plugin, so the skill and engine version-skew"), never a vibe ("seems risky", "might not scale"). A weakness you cannot phrase as a failure condition is not a finding; drop it silently. Use
git log/git diffand Grep to ground candidates in what the repo actually does, not in what a generic project might do. -
Self-refute before reporting. For each candidate, first try to defeat it with what the doc and repo already say. A candidate the doc has already answered is DROPPED, with the answering passage cited in the brief's "refuted" list. This guard runs both ways: never invent a weakness the doc does not have, and never suppress one it does — the pass must be adversarial AND honest.
-
Rank the survivors by impact × likelihood × cheapness-to-test, using the pinned rubric in
references/finding-format.md. Cheap-to-test, high-impact failure modes rise to the top: the ranking optimizes for what the owner should check next, not for rhetorical weight. -
Write the brief in the pinned template (same reference file): steelman, ranked findings — each with its "Fails if" condition and the evidence that would confirm or clear it — the refuted-candidates list, and ONE explicit kill criterion: the single condition under which the proposal should be abandoned rather than patched. A red-team that cannot articulate what would kill the proposal has not finished; a vacuous kill criterion ("fails if it doesn't work") is the failure mode of this skill itself. Return the brief as your response text, ready to paste into a PR body or review comment.
What this skill never does
- Flip a
status:, edit the doc under attack, or write ANY file — the tool grants make this impossible; do not ask for wider ones. - Gate, block, or touch an exit code — deterministic gates gate; keyed layers advise.
- Re-implement or second-guess
verify/eval— the floor is deterministic and already ran. - Report an unfalsifiable weakness, or one the doc already answers — self-refutation is mandatory, not optional polish.
- Attack more than one doc per invocation, or hunt cross-doc contradictions — deferred by RFC-0022 until the single-doc pass earns its cost.
04 同仓库更多 Skills
trigger-shaped
Use when the user says "plan a sprint retro"; drafts retro/notes.md for the team.
terse-unguarded
Step 2 — writes docs/x/output.json quietly.
guarded
Summarizes ledger totals into reports/monthly.csv.
open
Draft a spec. Use when asked to "draft a spec" or "write the RFC".
guarded
Deploy the thing.
working-discipline
Thinking-checkpoint discipline for substantive implementation, debugging, or autonomous work — 21 trigger-gated items (trigger → mandatory question → evidence to produce) that cut agent error and human escalation. Use before an autonomous or long-running run, when asked to "work carefully", "double-check", "làm cẩn thận", "reduce errors", "be more autonomous", or after looping twice on the same failing fix. NOT a procedure — checkpoints fire on their triggers and demand evidence, with an N/A escape valve so a strong model pays near-zero overhead.