skill-extraction-workflow

skill-extraction-workflow is a skill for Claude Code, Codex from ccoalm/ccl-skills. It costs 142 tokens per session (23,786 once invoked), scanned A, original, Apache-2.0.

A workflow for turning lessons from reviews, incidents, and team experience into reusable agent skills. It includes checks for leaked sensitive details, independent review, challenge review, and lifecycle handling.

In plain words
What is it for?
Use it after a post-mortem, deep review, or workflow improvement to extract general rules, check them, map related skills, and prepare them for shared use.
Why use it?
It helps teams preserve useful process knowledge without copying business-specific details into shared skills.

Skill for Claude CodeCodex

Written for Claude Code and Codex: SessionStart hook event, but also agents/openai.yaml present. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Part of the ccl-skills plugin — 33 skills, 4 commands, 7 hooks shipped together

Good fit Use it after a post-mortem, deep review, or workflow improvement to extract general rules, check them, map related skills, and prepare them for shared use.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ccoalm/ccl-skills/skill-extraction-workflow
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ccoalm/ccl-skills --skill skill-extraction-workflow
Clone the repo
git clone --depth 1 https://github.com/ccoalm/ccl-skills

Made for: Claude Code, Codex.

Or install ccl-skills, the plugin that ships this one along with the rest of its 33 skills, 4 commands, 7 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for skill-extraction-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/ccoalm/ccl-skills/skill-extraction-workflow/github.svg)](https://agentmods.dev/skills/ccoalm/ccl-skills/skill-extraction-workflow)
Your own site
<a href="https://agentmods.dev/skills/ccoalm/ccl-skills/skill-extraction-workflow"><img src="https://agentmods.dev/badge/skills/ccoalm/ccl-skills/skill-extraction-workflow/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for skill-extraction-workflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/ccoalm/ccl-skills/skill-extraction-workflow"><img src="https://agentmods.dev/badge/skills/ccoalm/ccl-skills/skill-extraction-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 142 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 23,786 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00142 $0.23786
Opus 5 $0.00071 $0.11893
Sonnet 5 $0.00028 $0.04757
Haiku 4.5 $0.00014 $0.02379

Measured yesterday against content hash 0897aac3ad4d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

skill-extraction-workflow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 23 executable files (scripts/check-ccl-skills.sh, scripts/check-contract-anchors.sh, scripts/check-evidence-card-leak.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/skill-extraction-workflow/SKILL.md · 308 lines

How it starts

The opening of the file, as written. The whole thing — 308 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 秒定位)

下面的 Core Rules 很长——不用全读。按这个顺序走:

  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):UI/UX 判断提炼、incident 复盘、两源(design+code)、parallel-stack、归因核验、example-domain 预选 等。

下面 ## Core Rules 是按主题分组的红线/不变式定义;## Extraction Workflow 是 Step 0–6 的有序执行流程。两者各持一面、互相指引、不深抄对方:某步骤引用拥有该闸的 Core Rule、只写顺序 + 步骤特有的执行细节,不复述该规则的原则;某 Core Rule 不内嵌步骤的模板/清单,只给红线 + 指针。同一 facet 同时写进两边 = drift 缺陷(改一处忘另一处即矛盾);冲突时以 ## Core Rules 的定义为准,新增时向它收敛。向 canonical 面收敛时若需改写/删除既有规则文本,按 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.
    • Probe, don't infer: a local environment without ALIAS_AUDIT_CMD is normal, but you must observe that — before recording interim / r0_status, run check-ccl-skills.sh and cite the actual r0_status= / final-token line it produced; never infer the branch from "unset is common" or a bare printenv ALIAS_AUDIT_CMD pre-check. Skipping straight to the interim fallback is a blocked-verification miss (a set var means the private audit is configured; it is available only once it runs clean to alias_audit_ok, and a set-but-broken var is itself a blocked-verification failure to fix or waive, not a fallback licence).
    • Interim commit semantics: when ALIAS_AUDIT_CMD is genuinely unset, the contributor may commit, push, or open a Draft/WIP MR only as interim with R0 pending maintainer audit recorded, but must not merge or claim clean landing until R0 passes or an explicit risk-owner waiver is recorded. (Label semantics: interim alone does not decide commit permission — this R0-pending interim allows commit/push/Draft-MR but blocks merge/clean-landing, while the review/challenge gate's interim is an uncommitted checkpoint that blocks commit itself; each gate's failure carries its own commit permission, and when both fail the stricter applies.)
    • Edit-time gates that stay inline: every new sanitized label MUST already exist in the alias YAML before clean landing (fail-closed); pre-existing leakage may be known_debt but new/modified content MUST stay zero-hit; grep cannot catch source-shaped example identifiers (variable/function/class/file/package names lifted verbatim) so adversarial review (codex challenge or equivalent) is the practical safety net.
    • 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).
    • For category definitions, alias-YAML structure, the false-green guard and fallback/token semantics, known_debt semantics, example-identifier substitution, the generic process-retro profile, and ALIAS_AUDIT_CMD enforcement, 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. Trigger: pre-selection is REQUIRED whenever the changed unit has an example set — ≥2 new/edited examples across the changed files, OR any multi-line / code-fence example (ONE single-line example may use canonical placeholders Acme*/Foo*/sample* without pre-selection; agents cannot bypass by splitting examples). Record a durable closeout validation row (commit body / source map / per-host scratch, NOT chat-only) naming the selected domains, the rejected source domain abstractly — record THAT a domain was rejected, never WHICH industry — and the changed examples checked. Pre-selection feeds adversarial review, never replaces it — codex/adversarial review stays the R0 safety net. For the worked two-axis example, the neutral-domain selection method (source-artifact-relative, not workspace-wide), the exact row format, and row-accuracy rules, read references/example-domain-preselect.md.
  • 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. Existing in-skill registers with real provenance are known_debt and MUST migrate to the private alias before any new provenance is added. For per-phase content lists, migration workflow, R0 jurisdiction boundary, the shared-history sanitization rule, the generic-methodology (shape-vs-content) carve-out, known_debt grandfather cleanup, and authoring-from-a-plugin-install, read references/extraction-lifecycle-handoff.md.
  • Name extracted skills and reference files by reusable capability, not by the source artifact, source page, project nickname, migration task, or original UI label. Keep source names only as provenance in source maps or reference metadata.
  • Preserve provenance during analysis, but strip provenance from executable guidance unless source identity is needed for auditing.
  • For private or domain-sensitive sources, strip identifiable source names from shared skills, shared source registers, and shared source maps. Keep the duplicate-extraction lookup in a local private alias map outside the shared skill tree, mapping original source names to sanitized capability labels.
  • Renaming a source-derived skill or reference is not complete until the executable wording is generalized too. Search for old source names, old scenario labels, and old capability labels; update them to the new reusable concept or keep them only in explicit provenance.
  • Do not preserve long verbatim source text in skills. Keep structured summaries, short necessary excerpts, and source status instead of copied dumps.

Read the full file on GitHub · 308 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed 0897aac3ad4d
  2. 4d ago Changed · -27 lines 5d46b33dcc0c
  3. 5d ago Changed · -3 lines 83c6d8bb60a0
  4. 9d ago First seen · 338 lines · 142 tokens per session scan A 5fcb4441765f

Subscribe to this mod's changes

skill-extraction-workflow is a skill published in the GitHub repository ccoalm/ccl-skills (6 stars, last pushed today), licensed Apache-2.0. It adds 142 tokens to every session and 23,786 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

mle-workflow

Production machine-learning engineering workflow for data contracts, reproducible training, model evaluation, deployment, monitoring, and rollback. Use when building, reviewing, or hardening ML systems beyond one-off notebooks.

affaan-m/ECC · 44 tokens

autonomous-loops

Patterns and architectures for autonomous Claude Code loops — from simple sequential pipelines to RFC-driven multi-agent DAG systems.

affaan-m/ECC · 26 tokens

react-patterns

React 18/19 patterns including hooks discipline, server/client component boundaries, Suspense + error boundaries, form actions, data fetching, state management decision trees, and accessibility-first composition. Use when writing or reviewing React components.

affaan-m/ECC · 49 tokens

article-writing

Write articles, guides, blog posts, tutorials, newsletter issues, and other long-form content in a distinctive voice derived from supplied examples or brand guidance. Use when the user wants polished written content longer than a paragraph, especially when voice consistency, structure, and credibility matter.

affaan-m/ECC · 57 tokens

security-review

Perform a focused security review of pending git changes to identify high-confidence security vulnerabilities with real exploitation potential. Use this skill when the user asks for a security review, security audit, vulnerability scan, or wants to check pending changes on a branch for security issues before merging.…

waybarrios/opencode-power-pack · 64 tokens

huggingface-llm-trainer

Train or fine-tune language models with TRL or Unsloth on Hugging Face Jobs, including SFT, DPO, GRPO, reward models, and GGUF conversion. Use for cloud LLM training; use huggingface-vision-trainer for vision tasks.

waybarrios/opencode-power-pack · 65 tokens