Skip to content
Back to skills

Skill Extraction Workflow

ASecurity

复盘 / 沉淀 / 总结经验 / 补进技能 / 技能缺陷 / 流程优化 / would other teammates hit this / will we forget next time / teamwide recurrence / extract skill / post-mortem / 深度 review·审计技能仓库 / 对标外部技能包找 gap(benchmark superpowers·gstack 等) / 核查全局安装点(~/.config/opencode 等)旧快照是否遮蔽本仓技能 / 本仓(ccl-skills 等共享技能仓)OpenCode 项目配置·命令治理 → turn reusable lessons into durable CCL skills.

  • 6 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 2, 2026
ai-agentsrustgonodeawstestingdebuggingcode-reviewapifrontendbackend

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 19 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add ccoalm/ccl-skills --skill skill-extraction-workflow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Skill Extraction Workflow?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Skill Extraction Workflow
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ccoalm-skill-extraction-workflow/badge)](https://www.skillsdirectory.com/skills/ccoalm-skill-extraction-workflow)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: skill-extraction-workflow
description: 复盘 / 沉淀 / 总结经验 / 补进技能 / 技能缺陷 / 流程优化 / would other teammates hit this / will we forget next time / teamwide recurrence / extract skill / post-mortem / 深度 review·审计技能仓库 / 对标外部技能包找 gap(benchmark superpowers·gstack 等) / 核查全局安装点(~/.config/opencode 等)旧快照是否遮蔽本仓技能 / 本仓(ccl-skills 等共享技能仓)OpenCode 项目配置·命令治理 → turn reusable lessons into durable CCL skills.
---

# Skill Extraction Workflow

Turn observed experience into reusable skills without business-specific details. `writing-skills` and `skill-creator` define format and authoring discipline; this skill covers mining, filtering, generalizing, validating and landing. When shared-skill changes are ready, invoke `code-review` automatically before completion. Apply `code-review/references/development-completion.md` and this owner's required review/challenge gate.

## Start here (30 秒定位)

1. **跑流程**:`references/extraction-quickstart.md`(charter → source register → 分批 → draft / sibling-map / sanitize / dual-track / commit → closeout)。任何新提炼先读它。
2. **三道必读闸**(任何 shared-skill 改动都过):
   - R0 泄漏审计零命中 → `references/r0-leakage-audit.md`
   - dual-track 评审 = 独立 review + 对抗 challenge → `references/dual-track-review-gate.md`
   - 生命周期/provenance 隔离(WIP 进 per-host scratch,shared 树只放 label 化规则)→ `references/extraction-lifecycle-handoff.md`
3. **长尾方法**:按场景查底部 `## Reference Loading`。

`## Core Rules` 持有红线/不变式定义,`## Extraction Workflow` 持有 Step 0–6 有序流程;两者互相指引、不重复抄写,**同一 facet 双写即 drift 缺陷**(冲突以 `## Core Rules` 为准,改写/删除既有规则按 `references/rule-consolidation.md` 零损失义务表治理)。

## Core Rules

### Sanitization, provenance & naming(脱敏 / provenance / 命名)

- **R0 (mandatory clean-landing gate)**: Before marking any skill or reference change `R0-clean`, `landing-clean`, merge-ready, or cleanly landed, run the leakage audit (`audit_cmd` from the maintainer's private alias YAML) and require **zero hits** across all leakage categories — design-source file keys/URLs/node-ids, project/team identifiers, real subproject paths / repo / branch names, contributor names/emails, ticket ids, internal domains/hosts, and any non-distilled business/product noun pointing to one specific organization. **False-green guard**: the public fallback is public interim evidence only — the private alias audit (`alias_audit_ok`) has NOT run when those tokens print, so record `interim / R0 pending` and never treat `ccl_skill_check_ok`, `ccl_skill_check_interim_ok`, `generic_r0_leak_scan_ok`, or `alias_audit_unavailable` as clean-landing R0 evidence; the clean-landing signal is `ccl_skill_check_clean_ok` (`r0_status=private-ok`); no project alias is not a waiver (use the generic process-retro profile when no product corpus applies; neither the generic fallback nor an ad-hoc `grep` is the clean-landing gate). Before running R0 or recording `r0_status`/`interim`, read `references/r0-leakage-audit.md`.
- **Pre-draft example domain selection** (preempts retroactive R0 cleanup cycles): R0 catches identifier leakage at audit time; this rule catches **scenario-domain leakage** at drafting time — scenario shape (entities + verbs + invariants together) reads as source-shaped to adversarial review even when identifiers are sanitized, so apply BOTH axes. Read `references/example-domain-preselect.md` before drafting an example set.
- **Extraction lifecycle handoff**: project-specific provenance NEVER enters the shared skill tree — three phases (WIP in per-host scratch → closed-batch provenance in per-host private alias → shared tree carries only label-based capability rules); the shared-repo history (commit messages, branch names, and the entire MR/PR record) is itself shared tree and names only sanitized labels, never real source artifacts — when unsure a surface is shared, sanitize. Read `references/extraction-lifecycle-handoff.md` for phase migration, `known_debt`, and plugin-install rules.
- Name extracted skills and reference files by reusable capability, not by the source artifact, source page, project nickname, migration task, or original UI label. Read `references/extraction-lifecycle-handoff.md` for provenance stripping, private alias lookup, and rename generalization.

### Evidence, RCA, charter & attribution(证据 / RCA / charter / 出处核实)

- **Charter-before-editing red-line**: do not read sources or edit skills until the complete charter in `references/source-to-skill-extraction.md#extraction-charter` is filled cell-by-cell. A remembered field subset is not a charter. Step 0 owns the procedure; this rule owns the hard stop. Core-Rule canonicality governs same-facet drift only and never narrows that field set to this bullet.
- Classify every result — including task/session summaries and lessons-learned requests, not only failures — as **failure/correction**, **stable success**, or **unstable/insufficient evidence**. Before recording the class, read `references/incident-postmortem-extraction.md` — §Result Classification (the default class, and who may accept a relabel) and §Success reviews (work-as-done and re-examination triggers).
- **RCA must go wider than one 5-Why chain.** 5 Why is the entry technique to get past a symptom, but a single linear chain to one "root cause" is its documented failure mode: real process/agent failures need multiple concurrent causes, the stop point is arbitrary, and "why" drifts toward "who"/blame. Read `references/source-to-skill-extraction.md#deep-rca-for-extraction` and `references/incident-postmortem-extraction.md` before running non-trivial RCA.
- Task-retrospective extraction must inspect the whole delivery chain, not only the final fix. Read `references/source-to-skill-extraction.md#task-retrospective-extraction` and `references/incident-postmortem-extraction.md` for LARGE multi-batch and delivery-state axes.
- A blocked verification item is not closed by naming the blockage. Read `references/validation-and-landing.md` before recording `unavailable` or `pending`.
  - `check-ccl-skills.sh` blocks, on every host, an added evidence-record line (a round's `<round>/evidence/` Markdown) that records a step as unable to run without an `attempted:` command and `rc=<n>`, or cites an identifier, repository script or flag absent from the repository and not marked `(external)` or `(absent)`. Write records from run output, never the plan; the mechanics are in `references/validation-and-landing.md` (Step 6 checklist).
  - **A landed CONCLUSION is a hypothesis until an operation that could have falsified it has been run** — a claim that a tool / capability / lane is unavailable, impossible, or must permanently fail-closed ("fail-closed is the safe default" does not waive the in-env attempt), a DIAGNOSIS of why an observed failure happened, and a **MEASUREMENT reported as a finding about the subject** — run the falsifying operation first — exercise the suspected mechanism on the failing path for an observation only IT predicts, or build a paired control differing in exactly ONE variable — **only within existing sandbox/permission, non-destructive, synthetic-target, and credential-safety boundaries** (never unsafe mutation, prod/live credentials, secret-bearing state, or a permission-boundary bypass — trading this rule for the security/authority/data-loss axis). Forms and failure shapes: `references/validation-and-landing.md` (Behavioral Validation).
- A blocked source read is not closed by naming the blockage. If Figma, code, document, API, or repository reads time out, return partial output, or fail transport, switch to a smaller or different read strategy before extracting rules — and when the source is **missing rather than unreadable**, change WHERE you enumerate instead. Both ladders: `references/source-to-skill-extraction.md#blocked-verification-and-source-read-remediation`. Failed or timed-out reads do not count as coverage.
  - **Large reads can lose the middle with no reliable signal — chunk by tool semantics.** Contiguous `ByteOffset` `read_file` tools echoing `Showing lines`/`Partial read` (800-line/46,080B) read to cap, continue `ByteOffset` to `E=Z` per range, then `StartLine` to `B=T`; other outputs >~256 lines / ~10 KiB silently head+tail truncate unmarked, so one `cat`/whole-file read is never coverage — for whole-file, no-findings/absence, or load-bearing views, chunk under **both ~200 lines AND ~8 KiB** and confirm mid-file ingestion. Detail: `references/source-to-skill-extraction.md#read-in-chunks-large-reads-lose-the-middle`.
- **Product-agnostic / industry-practice skills require an external authoritative source class in the evidence plan, not internal corpus alone.** An extraction sourced only from one internal corpus (an SOP, one repo, one project doc) shows what *this org* does, not whether the skill matches the public state of the art. Read `references/external-practice-controls.md` whenever a rule claims industry/public best practice.
- **Implementing or depending on a named external convention/spec/format verifies it against the primary source FIRST — before building, not after.** This fires on *implementing the named thing itself* — a convention/spec/standard/file-format/protocol such as `AGENTS.md`/CODEOWNERS placement, an RFC, a wire or file format, or a tool's config contract — even with no best-practice claim (distinct from the industry-practice trigger above, which fires on a state-of-the-art *claim*). Read `references/external-practice-controls.md` before encoding or extending any named external convention, spec, or format.
- **A curated digest is one source class, not the repo — its exhaustion is not the repo's exhaustion (digest-masks-corpus trap).** A maintainer digest (`AGENTS.md`/`CLAUDE.md`, README, CONTRIBUTING, architecture/design doc) that *summarizes* a larger corpus is a **distinct source class** from that corpus, and the invariant under every shape is **an exhaustion claim must be scoped to a unit you actually enumerated** — the rule keeps its `digest-masks-corpus` name for continuity, so do not skip it just because no digest is present. Gate detail (the per-gate unit lists, the (a0)/(4) obligation text) and the worked failure shapes (50KB-digest "exhausted" / multi-repo "fully summarized" / benchmark "already covered" / channel set "mined out"): `references/coverage-exhaustion-traps.md`.
- Never fabricate evidence, source links, quotes, validation output, or install status to satisfy a gate. Record the gap honestly and state what would close it.
- For repository evidence, do not conclude a source is empty or unavailable from the checked-out default branch alone. Read `references/coverage-exhaustion-traps.md` for non-default branch, full-coverage source-register, sampling, and evidence-gap rules.
- **LLM consultation output is hypothesis-grade evidence, not verdict** (asymmetric corollary to the dual-track gate). Read `references/external-practice-controls.md` before citing or trusting any LLM consultation, review, or challenge output.
- **Verify named attribution before drafting from memory** — memory-grade attribution is not evidence; author/method pairings ("X 提出 Y", "X is known for Y", "X cheatsheet/heuristic") drafted from recollection have a high error rate. An unverified pairing is recorded as `attribution pending` (blocks the complete/final claim) until resolved — verify, downgrade by removing the authority, or finalize `interim`. Read `references/attribution-verification.md` whenever a claim names origin, chronology, standard version, authority, or lineage.

### Triggers, routing surfaces & isolation(触发 / 路由面 / 隔离)

- **Missed-extraction diagnosis**: if the user asks why extraction did not trigger or how to repair a missed extraction gate, treat that as a `skill-extraction-workflow` correction task first. Read `references/extraction-quickstart.md` before diagnosing a missed extraction gate.
- **Per-round re-invocation**: every new extraction round (different target skill / different domain / different source corpus / "提炼 X" / "extract industry best practices for X" / "borrow industry thinking for X") MUST start with a fresh `skill-extraction-workflow` Skill invocation by the agent, even when the workflow was invoked earlier in the same session. Read `references/extraction-quickstart.md` for per-round charter/closeout-gate verification.
- **Concurrent-session isolation applies before the FIRST edit, not merely before commit** — this is delivery-wide and owned by `product-rd-workflow`'s concurrent-session isolation rule (route there; it covers the host-install-symlink masking and the do-not-commit-unreviewed-to-dodge-clobber clause). Read `references/extraction-quickstart.md` when concurrent sessions or agents may touch the repo.
- **Routing-surface change gate**: any change touching a routing surface MUST pass the Tier-1 static routing analyzer (`make eval-routing`; also wired into `check-ccl-skills.sh`) with zero blocking findings before landing. Read `references/eval-routing.md` for routing-surface scope and blocking-vs-advisory policy.
- **A routing-miss fix must cover three axes, not only the executor's canonical phrase.** Enumerate all three before landing any `description`/trigger edit — **(a) coordinator-vs-executor**, **(b) utterance-variant**, **(c) listing budget**; a repeated miss of the same request type across two rounds is evidence the prior fix skipped an axis — re-run the check before claiming the routing class is closed. **(b) Utterance-variant:** the same delivery type arrives as the canonical name PLUS restart/redo/from-scratch/continue variants; "the trigger exists but the utterance class is uncovered" is a validation-gate defect — enumerate the variants and add the high-value ones within the 800-char cap (route overflow to the body entry-precedence text). Failure shapes, the variant list, and the axis checklist: `references/description-authoring.md` (routing-miss fix checklist); the budget mechanism, the cold-start trap, and the levers: `references/skill-listing-budget.md`.
- **A deep review / benchmark of the skill repo is an extraction once it produces durable skill-change findings.** Reviewing or auditing the ccl-skills repo — especially benchmarking it against external/reference skill packs (`superpowers` / `gstack` / etc) — becomes an extraction the moment the output is meant to change reusable skill behavior (a target-output map, a gap list, or a remediation plan). Read `references/coverage-exhaustion-traps.md` before benchmarking or reviewing the skill repo.
  - The benchmarked external packs are reference-only: route a missing method/tool-layer capability to that pack; only land a ccl-layer rule (domain/governance/cross-cutting) here, never a copy of the external skill. Verdicts: P/I/M/W, grep-anchored; M needs the functional-equivalent check.
- Treat remembered tool, script, installed-skill, repo-root, validator, and executable paths as stale until re-resolved in the current workspace. Read `references/extraction-quickstart.md` before probing or executing any remembered tool/script path.

### Owner-generalization, target-output & impact-chain mapping(owner / 目标映射 / impact-chain)

- **Map every owner/target before the first edit; verify the diff against it at closeout.** Every non-wording extraction needs, before editing, a target-output / owner-generalization map listing every plausible owning skill/reference/workflow — **derived from lifecycle impact** (product intent, design/UX, implementation, debugging, testing, launch, iteration, onboarding, no-source-access usage), not from memory — each marked `updated`, `unchanged`, `routed`, `not-applicable`, or `pending`. Before drafting or closing any target-output, editability, sibling, external-pack, class-wide, or provenance-to-target map, read `references/l0-l1-l2-routing.md`.
- Prefer updating the smallest existing skill over creating a new one unless the trigger, owner, and workflow are clearly different; different runtime tools, release gates, or verification surfaces are evidence that the workflow may be different enough to split.
- **Impact-chain: a decision-surface edit must map BOTH directions.** When the changed skill owns or executes an upstream decision surface (architecture, design, product workflow, testing strategy, release, observability, security), the map must span the whole chain: an implementation/dev edit checks the **upstream** owner (architecture for cross-boundary semantics, service boundaries, contracts, storage ownership, shared-package decisions; design for UI/UX judgment; testing-strategy for layer selection; product-rd-workflow for cross-stage gates), and an upstream-owner edit checks the **downstream** executable owners (implementation, client/runtime, test-case/test-mechanics, release/runbook, and the review gates that make the rule real). Upstream-owner changes require a non-empty impact-chain row in `references/source-register.md` (enforced by `scripts/check-ccl-skills.sh`); read `references/l0-l1-l2-routing.md`.
- **Class-wide routing/trigger changes require COMPLETE-set coverage in one pass — the immediate-neighbor scan (`references/l0-l1-l2-routing.md`) does NOT apply.** The neighbor scan covers a *single discovered miss*; a change whose rule is "every skill of class C should advertise / scope / carry X" is out of its scope. Read `references/l0-l1-l2-routing.md` and `references/source-to-skill-extraction.md#member-join-inheritance` for COMPLETE-set enumeration and install-drift rules.

### What to extract, content placement & domain (UI/UX) judgment(抽什么 / 内容放置 / 领域判断)

- Extract behavior, decision rules, quality gates, evidence patterns, and routing boundaries; do not extract business nouns, repo names, IDs, one-off incidents, or stale implementation details.
- Keep the skill entrypoint as the trigger and routing surface; move detailed variants, source-derived patterns, and examples into reference files. Each reference links one level from the entrypoint and stays inside the reference line budget; `references/attention-budget-ratchet.md` owns that budget, the write-side authoring norms, and the design invariants any size/budget gate must satisfy.
- A skill must be executable, not only directional. For design, client, testing, debugging, or review skills, include concrete workflow steps, decision points, state/checklist coverage, and verification evidence so future agents do not produce work that is compliant but weak.
- UI/UX, Figma, frontend, app, miniapp, or client sources carry six entrypoint-level obligations — cover the four judgment layers (aesthetics / interaction / behavioral / psychology) from source evidence before any layout/component/breakpoint/test rule; use observable proxies, never adjectives — read state families, navigation/entry/return paths, disabled reasons, recovery controls, timing/feedback, accessibility, responsive/device variants, and code state machines before claiming a behavioral or psychology rule; route each lesson across design / web / app / miniapp / testing / product-workflow owners via `references/uiux-routing-map.md` (for mini-program lessons `testing-strategy` owns layer/scenario selection while `miniapp-product-dev` owns host-platform implementation, developer-tool or real-device evidence, review/release mechanics, and runtime constraints); name per-layer what changed (new / confirmed / narrowed / no new evidence) and say so when a pass only improves execution/validation rather than implying new judgment knowledge; walk the judgment-dimension enumeration instead of re-deriving it; and never close a judgment-delta row whose visual direction/tokens fields were not inspected — mark it `pending` or `out of scope` and do not claim design-judgment extraction. Their canonical, verbatim text is `references/uiux-judgment-extraction.md` §Entrypoint obligations (relocated from this entrypoint; low-frequency detail per the placement rule above) — load it before drafting any design/client rule; Step 6's UI/UX validation rows point there.

### Retrospectives, corrections & auto-triggered learning(复盘 / 纠正 / 自触发学习)

- A reported `recurring cross-project agent failure` plus a question about a proposed prevention is a correction/extraction trigger. Read `references/correction-routing-map.md` for RCA, firing-path proof, self-defect, and repeated-correction escalation.
- **复盘 / 纠正 / retro / postmortem / bug-hunt / review-follow-up is an extraction by default, not a chat-only retro**. Before handling any 复盘 / retro / postmortem / user correction, read `references/correction-routing-map.md`.
- **Correction-type routing for test / verifier / real-evidence corrections** is canonical, verbatim, in `references/correction-routing-map.md` (relocated from this entrypoint): a deferred-evidence over-polishing correction — a delivery that keeps hardening tests/verifiers after real/external evidence was unavailable, blocked, unreachable, deferred, skipped, or mock-substituted, or that reports such evidence as complete — must name `product-rd-workflow`'s `DFE-CONT` in the target-output map (a bare mention of runtime or external access is not enough; a test-hardening / coverage / test-order correction with no deferral element defaults to `testing-strategy`; both signals → both owners, test-case-first still mandatory; validate by confirming the `DFE-CONT` block and its non-completion rule are present in the installed `product-rd-workflow` skill's `SKILL.md`, and keep this routing token in sync if that block is renamed); if a retrospective correction says tests were run before test cases, the target-output map must include `testing-strategy` and any coordinating workflow such as `product-rd-workflow`, and a final answer without a durable test-case-first prevention rule, validation command, and challenge or explicit no-update reason is only `interim`. Consult that map whenever a correction names tests, verifiers, coverage, or unreachable real evidence.
- **A reusable lesson must land in a SHARED artifact, and `skill-extraction-workflow` itself gets a prevention point**. Read `references/correction-routing-map.md` for path (i) exposure-by-failure-class vs path (ii) explicit-ask rules.
  - Either way the landing must be a **shared** artifact — CCL skill, shared reference, validator, checklist, or project template — naming the exact trigger/gate teammates will hit; for a reusable routing/process/team failure, classify a memory-only landing as insufficient — local-only and "I'll remember next time" count the same (local memory supplements user/workspace context only).
- For any analysis-parse-fix-test-challenge loop, separate five stages explicitly: analysis, parse/decompose, fix, test/verification, and challenge. See `references/analysis-parse-fix-test-challenge-replay.md` for the replay validation runbook.
  - **One self-detectable firing point does exist and must be used: the moment YOUR OWN output names 沉淀 / 提炼 / 复盘 / "distil this into a skill", OR **enumerates what an external source has that we lack** (a gap list vs another pack), that naming is a trigger to RECOGNISE the owner and load it** — not a licence to widen scope: when the user's request covered only a status review or a narrow fix, the extraction is recorded `pending` with the owner named, and the shared-skill edit waits for authority you were actually given.
  - **Firing-point-placement corollary:** when the SAME meta-class (a precise gate walked past at the routing → pre-code/design transition) recurs at a *new* lifecycle sub-point despite prior bootstrap-salience + the closeout gate, the durable lever is **moving the owning gate's firing point ONTO the transition itself** (pre-substance-draft AND pre-first-impl-edit) and sharpening *name→invoke* at the SAME transition — naming/knowing an owner is NOT invoking/loading it, and a named-but-unloaded owner's mechanical rules never fire — NOT another bootstrap/per-case bullet or more prose. The self-detect firing point's authority boundary and observed shape, the output-shape and option-set siblings, the invoke-bar set-diff mechanics, the worked recurrence-chain, and the landed owner-dispatch implementation: `references/firing-point-placement.md`.
  - **Run your own adversary to convergence BEFORE any "done / fixed / passing / covered / converged / complete" claim — your own such claim is the least-trustworthy thing you emit.** For any non-trivial completion/coverage/convergence claim, you must have already run — **yourself, not deferred to the user** — the verification or adversarial pass that would catch its failure, to a **clean fresh result** (a first clean pass on the current candidate, never a "confirm my fix" pass), OR **downgrade the claim to `interim` and name what you ran vs. didn't**. Read `references/dual-track-review-gate.md` (§Self-audit) and `references/validation-and-landing.md` before emitting any completion/coverage claim.
- Automatically trigger durable learning when extraction work exposes a reusable failure — **and when ordinary delivery work does, capture it here too, but without extraction taking over the delivery**: let the active owner (`product-rd-workflow` / `defect-diagnosis` / `testing-strategy` / …) handle the immediate work first, then route the durable lesson here. **For a premature-stop correction after affirmative continuation**, rerun the active owner's current continuation/blocking gate against current state (for product R&D, Pre-Final Continuation Gate steps 1–6, with landing checks only where applicable). Binding paths, trusted evidence, and invalid-`blocked:` recovery: `references/resume-paused-delivery.md`.
- **Prose rules compete for a finite attention budget, and joint satisfaction degrades with the number of constraints.** (Predecessor claim — only the most-salient rule applies, the rest dormant — **withdrawn**, unsupported.) **Descriptive, not permissive**: attention limits never excuse a violated rule, and are not a reason to refuse a needed one.
  - Wording-level dedup mechanics route to `tighten-doc`; the at-add-time consolidation check, the form-by-failure drafting table, the obligation-table format (incl. the verifiable-survivor-pointer rule), the package/support-file integrity axis, strict "subsumed" criteria, register-row boundary, and audit recovery: `references/rule-consolidation.md`.

### Validation & the dual-track gate(验证 / dual-track 门)

- Static validation is not extraction validation. Read `references/validation-and-landing.md` before closing any extraction.
- A rule that exists but did not trigger is a validation-gate defect, not proof that the workflow is adequate.
  - **Non-wording** work owes one independent review and one adversarial challenge, each a single-shot `scripts/extraction_review_gate.sh` call, plus an Agent-run delta pass on later changes beyond non-executable evidence records. Necessary passes inherit task authority; use the review continuation checkpoint linked in `references/dual-track-review-gate.md` for repeated rounds. Read `references/dual-track-review-gate.md` and `references/validation-and-landing.md` for `RED-baseline` floor, destructive differential mutation walks, `review_waiver` vs `merge_authorization`, and inconclusive-lane handling.
- If the primary independent reviewer hangs, returns no output, hits auth/quota/rate-limit, cannot prove tool posture, cannot show its read covered a large candidate file's middle (a fired read tool-call proves access, not content-fidelity — see the read-coverage check in `references/dual-track-review-gate.md`), or expands beyond the intended scope, do not count it as review evidence. Read `code-review/SKILL.md` and `references/validation-and-landing.md` for wrapper remediation.
- Independent review is **dual-track** for any non-wording shared-skill change, deep extraction, multi-skill landing, new shared skill, or skill change that ships operational/architectural rules: run BOTH (a) a fact/consistency review (`codex review` or equivalent — catches inaccuracies, contradictions across references, sanitization gaps, over-prescription) AND (b) an adversarial challenge (`codex exec` with adversarial prompt — hunts race conditions, data-loss paths, security holes, algorithm flaws, operational footguns). See `references/dual-track-review-gate.md` for the runbook.
  - **Draft-time corollary — pre-cover the recurring first-draft blind-spot AXES before challenge (not security alone).** Sweep EACH applicable axis explicitly before handing off (record ≥1 negative case per axis, or a reasoned `not-applicable`): **(1) security / privacy / authority / data-loss**, **(2) concurrency & lifecycle**, **(3) resource bounds**, **(4) rollout / migration ordering**, **(5) over-broad absolute**, **(6) enumeration-completeness (the mirror of (5) — under-listing, not over-listing)**. Sweep the six pre-cover axes in `references/dual-track-review-gate.md` before challenge.
- **Repeated same-class adversarial-challenge findings across rounds are a design/scope smell, not just more patches** — and the resolution depends on WHAT recurs. Read `references/external-practice-controls.md` when same-class challenge findings recur across rounds.
  - **The should-it-exist question also applies at DESIGN TIME for any new mechanical gate, validator, or evidence apparatus, AND for any change to its verdict in EITHER direction — a loosening must be checked hardest, since it removes evidence instead of adding a red — run the check before landing AND before offering a human design options.** Legs: **author-dogfood** (the authoring workflow passes it end-to-end under every base resolution CI uses), **marginal-cost**, **trust-model fit** (for a loosening, which class stops owing evidence), **premise check** when tightening (a clean run on the current corpus is not evidence). Per-leg method and failure shapes: `references/dual-track-review-gate.md` (design-time operability check).
- Reference example code that performs read-modify-write on external mutable state must satisfy the five RMW obligations — explicit raise on read failure (never an empty-success value), no silent continue on write failure, raise on a violated uniqueness invariant, an explicit lost-update control (optimistic concurrency, append-only semantics, or a declared single-writer precondition), and no log-and-continue on an append-only field — canonical, verbatim, in `references/validation-and-landing.md` §Read-modify-write example code (relocated from this entrypoint).

## Do Not Extract When

- Evidence is weak, speculative, unverified, or only observed once.
- The lesson is true only for one business domain, one legacy repository, one migration moment, or one person's temporary preference.
- The lesson is better encoded as source code, tests, CI, repository docs, or product requirements than as agent behavior.
- A sibling skill already owns the rule; route to that skill instead of duplicating.
- The proposed artifact is a standalone skill index, quick-reference catalog, or duplicated decision tree that would drift from skill frontmatter. Keep `description` as the discovery surface; put routing decisions only in the owning routing skill.
- The proposed rule would require users to access private source artifacts for normal use.
- The source is low quality and useful only as a negative example, unless the negative pattern is recurring and worth a guardrail.

## Extraction Workflow

- **Mandatory reference load (unconditional)**: On every extraction, retrospective, correction, or shared-skill edit, load `references/extraction-quickstart.md` and `references/l0-l1-l2-routing.md` before Step 0, and load `references/validation-and-landing.md`, `references/dual-track-review-gate.md`, `references/r0-leakage-audit.md`, and `references/extraction-lifecycle-handoff.md` before any completion claim, commit, push, or PR (classification boundaries in `## Core Rules` stay inline; topic references load per trigger).

0. Set the extraction charter and result-learning baseline.
   - Hard stop: before source reads / before edits, record the charter from `references/source-to-skill-extraction.md#extraction-charter` — **open that table and fill it cell-by-cell; a charter written from memory of the field names is not a charter and must not be recorded as one.** Each field's real constraints live only in its own cell (Evidence plan's produced-artifact-first rule, Scope's watermark validation, RCA depth scaling), so a from-memory charter reproduces the field list and none of the gates, while looking complete. Load `references/extraction-quickstart.md` and `references/source-to-skill-extraction.md` for result-baseline, source-register, target-output, remediation, and portfolio-stability steps.

1. If correcting a failed extraction, run the correction RCA first.
   - Use the table in `references/source-to-skill-extraction.md#correction-rca-protocol`. Load `references/extraction-quickstart.md` for multi-cause classification, repeated-correction escalation, and trigger-before-resume rules.

2. Define the extraction target.
   - For NEW skills and subjective/high-impact skills (design, UX, client, product workflow, architecture, review), must define eval/pressure scenarios, baselines, acceptance criteria pre-draft. Load `references/extraction-quickstart.md` for target-output, lifecycle-stage, provenance-to-target, and UI/UX pressure-scenario setup.

3. Inventory evidence.
   - Choose a collection strategy before reading deeply: local-first, local-plus-external, or external-only. Load `references/extraction-quickstart.md` and `references/design-and-ledger-extraction.md` for branch, session, external, matrix, source-register, retry-ledger, and depth-label inventory rules.

4. Extract candidate rules.
   - Keep an extraction ledger during analysis (`references/design-and-ledger-extraction.md#extraction-ledger`): rule origin (`observed` or `hypothesis`), source IDs inspected before the rule was drafted, evidence grade, candidate rule, conflict, decision, target skill/reference, and reason. Load `references/extraction-quickstart.md` for candidate rule conversion, stack separation, sibling mini-map, and target-owner checks.

5. Generalize and place content.
   - Name durable outputs per the Core Rules naming rule (complex workspace patterns, service architecture, test strategy, document tightening are capability names; the source file, source project, old feature, and this extraction task are not), and do not make normal users route through a source name to understand or trigger the skill. Load `references/extraction-quickstart.md` and `references/uiux-judgment-extraction.md` for placement, generalization, UI/UX judgment-layer deltas, split boundaries, and script/clutter rules.

6. Validate before landing.
   - Record the provenance-to-target diff for any extraction beyond wording-only cleanup. Each row must include source mechanism, provenance row or source id, target file, executable landing section or line, test/acceptance owner, and `landed`, `routed`, `downgraded`, or `pending` status, and every landed source-derived rule must persist rule origin, pre-draft source IDs, and concrete observations per `references/design-and-ledger-extraction.md#decision-persistence`. Any `pending` row blocks a complete/final claim. Before claiming completion or committing, load and execute the full Step 6 validation checklist in `references/validation-and-landing.md` and `references/dual-track-review-gate.md`.

## Conflict Resolution

- Keep stricter rules when they prevent data loss, security bugs, broken contracts, flaky tests, or irreversible release mistakes.
- Merge compatible variants into a generic rule plus focused references.
- Discard rules that depend on one business domain, one legacy repo, one deprecated tool, or one person's temporary preference.
- Route instead of duplicate when another skill already owns the implementation method.

## Reference Loading

- R0, provenance, and attribution: `references/r0-leakage-audit.md` (required for R0 on new labels/examples or maintainer enforcement), `references/example-domain-preselect.md` (required for ≥2 new examples or multi-line/code-fence examples), `references/attribution-verification.md` (required for origin/chronology/standard/version/authority/lineage claims, incl. headers, see-also lists, block quotes), `references/extraction-lifecycle-handoff.md` (required for provenance archives, batch closeout, dirty-register cleanup, or plugin-source discovery).
- Extraction planning and coverage: `references/source-to-skill-extraction.md`, `references/backend-data-and-redis-extraction.md` (DB/DAL and Redis extraction methods), `references/design-and-ledger-extraction.md` (required for candidate-rule ledgers and decision persistence on any source-derived rule, plus coverage/judgment-delta matrices and Figma reading), `references/source-register.md` (required before editing target skills or claiming full/complete coverage), `references/coverage-exhaustion-traps.md` (before exhausted/complete/no-gap/fully-extracted claims), `references/evidence-card-template.md` (L0/L1 evidence record), `references/review-feedback-mining.md` (source = human review feedback on merged changes: author filter, diff-fact adoption, idempotent classification, operator decides).
- UI/UX and multi-skill routing: `references/uiux-judgment-extraction.md`, `references/uiux-routing-map.md`, `references/firing-point-placement.md`, `references/skill-listing-budget.md`, `references/online-skill-review.md`, `references/harness-patterns-and-eval.md`.
- Validation and authoring gates: `references/validation-and-landing.md`, `references/description-authoring.md` (required before routing/workflow/cross-cutting `description` rewrites), `references/rule-consolidation.md` (required before rewriting/retiring/consolidating rules or drafting behavior-shaping rules; its form-by-failure table owns the form), `references/l0-l1-l2-routing.md` (required for `discard`/`route`/L0–L2 or gate-strength decisions), `references/review-rubric.md` (dual-track support; does not replace `references/dual-track-review-gate.md`), `references/dual-track-debug-prompts.md` (wrapper-debug CLI diagnostics only; never substitutes for `scripts/extraction_review_gate.sh`), `references/external-practice-controls.md` (public-evidence trust boundaries: research, leaf delegation, behavioral evidence).
- Retrospective/correction support: `references/resume-paused-delivery.md` (premature-stop resume requires affirmative continuation), `references/correction-routing-map.md` (required when a correction names tests, verifiers, coverage, test order, or deferred/unreachable real evidence).

Files in this skill

  • agents/openai.yaml257 B
  • references/analysis-parse-fix-test-challenge-replay.md1.5 KB
  • references/attention-budget-ratchet.md6.4 KB
  • references/attribution-verification.md4.4 KB
  • references/bootstrap-slim-c3-obligation-table.md8 KB
  • references/coverage-exhaustion-traps.md18.6 KB
  • references/description-authoring.md17.5 KB
  • references/eval-routing.md15.7 KB
  • references/evidence-card-template.md3.2 KB
  • references/example-domain-preselect.md4.6 KB
  • references/external-practice-controls.md37.6 KB
  • references/extraction-lifecycle-handoff.md6.6 KB
  • references/extraction-quickstart.md19.6 KB
  • references/firing-point-placement.md17.4 KB
  • references/harness-patterns-and-eval.md35 KB
  • references/incident-postmortem-extraction.md26.1 KB
  • references/l0-l1-l2-routing.md10.3 KB
  • references/online-skill-review.md6.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.