Skip to content

ccoalm/ccl-skills / skills/skill-extraction-workflow

skill-extraction-workflow

Flagged

复盘 / 沉淀 / 总结经验 / 补进技能 / 技能缺陷 / 流程优化 / 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.

FileKindSize
SKILL.mdskill md111.0 KB
agents/openai.yamlconfig257 B
references/analysis-parse-fix-test-challenge-replay.mdmarkdown1.5 KB
references/attention-budget-ratchet.mdmarkdown13.7 KB
references/attribution-verification.mdmarkdown4.4 KB
references/bootstrap-slim-c3-obligation-table.mdmarkdown8.0 KB
references/correction-routing-map.mdmarkdown3.7 KB
references/coverage-exhaustion-traps.mdmarkdown19.6 KB
references/description-authoring.mdmarkdown21.1 KB
references/dual-track-review-gate.mdmarkdown110.6 KB
references/eval-routing.mdmarkdown22.2 KB
references/evidence-card-template.mdmarkdown3.2 KB
references/example-domain-preselect.mdmarkdown4.6 KB
references/external-practice-controls.mdmarkdown45.5 KB
references/extraction-lifecycle-handoff.mdmarkdown6.9 KB
references/extraction-quickstart.mdmarkdown20.2 KB
references/firing-point-placement.mdmarkdown21.3 KB
references/harness-patterns-and-eval.mdmarkdown42.6 KB
references/incident-postmortem-extraction.mdmarkdown28.8 KB
references/l0-l1-l2-routing.mdmarkdown10.3 KB
references/online-skill-review.mdmarkdown6.7 KB
references/parallel-stack-references-pattern.mdmarkdown35.9 KB
references/r0-leakage-audit.mdmarkdown19.9 KB
references/recurring-anti-patterns-checklist.mdmarkdown34.4 KB
references/resume-paused-delivery.mdmarkdown3.0 KB
references/review-feedback-mining.mdmarkdown5.7 KB
references/review-finding-standards.mdmarkdown7.3 KB
references/review-rubric.mdmarkdown3.1 KB
references/rule-consolidation.mdmarkdown38.2 KB
references/skill-listing-budget.mdmarkdown1.7 KB
references/source-register.mdmarkdown1.0 MB
references/source-to-skill-extraction.mdmarkdown109.3 KB
references/two-source-extraction-pattern.mdmarkdown19.4 KB
references/uiux-judgment-extraction.mdmarkdown19.1 KB
references/uiux-routing-map.mdmarkdown5.8 KB
references/validation-and-landing.mdmarkdown46.9 KB
scripts/AGENTS.mdmarkdown635 B
scripts/check-ccl-skills.shexecutablescript100.7 KB
scripts/check-contract-anchors.shexecutablescript5.6 KB
scripts/check-evidence-card-leak.shexecutablescript26.1 KB
scripts/check-mr-target-freshness.shexecutablescript9.4 KB
scripts/check-size-budget.shexecutablescript36.0 KB
scripts/check-sync-pointers.shexecutablescript22.6 KB
scripts/check_review_evidence_present.pyexecutablescript4.6 KB
scripts/contract-anchors.tsvother3.8 KB
scripts/entrypoint_form_census.pyexecutablescript7.1 KB
scripts/eval-golden-trace.rbexecutablescript10.0 KB
scripts/eval-health.rbexecutablescript14.6 KB
scripts/eval-routing-bank.rbexecutablescript30.4 KB
scripts/eval-routing.rbexecutablescript9.2 KB
scripts/extraction_review_gate.shexecutablescript1.8 KB
scripts/gate_receipt.pyexecutablescript24.7 KB
scripts/generic-r0-leak-scan.shexecutablescript12.4 KB
scripts/governing-chain-diff.pyexecutablescript12.8 KB
scripts/impact-chain-gate.rbexecutablescript124.4 KB
scripts/obligation-ledger.pyscript107.0 KB
scripts/reference-access-census.shexecutablescript8.3 KB
scripts/register-firing-path-resolution.rbexecutablescript48.4 KB
scripts/shared_git_surface_gate.pyexecutablescript38.0 KB
scripts/skill-behavior-eval.pyexecutablescript39.3 KB
scripts/skill-paired-eval.pyexecutablescript76.9 KB
scripts/source-register-lifecycle.rbscript1.5 KB
scripts/source-register-pending-status.rbscript2.0 KB
scripts/test_ai_coding_implementation_gates.shexecutablescript85.2 KB
scripts/test_antipattern_grep_panel.shexecutablescript3.2 KB
scripts/test_body_compliance_grading.shexecutablescript21.0 KB
scripts/test_check_ccl_impact_chain_refscripts.shexecutablescript145.1 KB
scripts/test_check_ccl_r0_status.shexecutablescript4.2 KB
scripts/test_check_ccl_register_pending_exclusion.shexecutablescript7.4 KB
scripts/test_check_ccl_regressions.shexecutablescript14.3 KB
scripts/test_check_ccl_route_drift.shexecutablescript22.6 KB
scripts/test_check_ccl_size_budget.shexecutablescript59.5 KB
scripts/test_check_ccl_skill_catalog.shexecutablescript23.3 KB
scripts/test_check_ccl_source_register_lifecycle.shexecutablescript6.1 KB
scripts/test_check_contract_anchors.shexecutablescript7.4 KB
scripts/test_check_mr_target_freshness.shexecutablescript12.8 KB
scripts/test_check_review_evidence_present.shexecutablescript4.3 KB
scripts/test_check_sync_pointers.shexecutablescript32.5 KB
scripts/test_ci_checkout_ref_binding.shexecutablescript8.2 KB
scripts/test_controlled_escalation_pins.shexecutablescript7.7 KB
scripts/test_entrypoint_domain_scan_terms.shexecutablescript8.8 KB
scripts/test_entrypoint_form_census.shexecutablescript6.3 KB
scripts/test_eval_routing_bank_grader_diagnostics.shexecutablescript20.6 KB
scripts/test_eval_routing_bank_resolution.shexecutablescript15.3 KB
scripts/test_eval_routing_bank_surface_binding.shexecutablescript6.9 KB
scripts/test_eval_routing_prose_target.shexecutablescript3.7 KB
scripts/test_eval_runtime.pyexecutablescript43.3 KB
scripts/test_extraction_review_gate.shexecutablescript15.2 KB
scripts/test_frozen_case_sanctity.shexecutablescript6.9 KB
scripts/test_frozen_case_sanctity_selfproof.shexecutablescript4.6 KB
scripts/test_gate_receipt.shexecutablescript17.7 KB
scripts/test_generic_r0_leak_scan.shexecutablescript6.4 KB
scripts/test_git_identity_predicate_gate.shscript13.8 KB
scripts/test_governing_chain_diff.shexecutablescript15.1 KB
scripts/test_impact_chain_gate_dateless_host.shexecutablescript6.8 KB
scripts/test_impact_chain_gate_verdict_differential.shexecutablescript20.8 KB
scripts/test_impact_chain_round_attribution.shexecutablescript32.5 KB
scripts/test_impact_chain_self_adjudication.shexecutablescript31.4 KB
scripts/test_impact_chain_source_refuted.shexecutablescript14.7 KB
scripts/test_liveness_predicate_gate.shexecutablescript14.5 KB
scripts/test_locale_independent_gates.shexecutablescript13.0 KB
scripts/test_obligation_ledger.shexecutablescript94.9 KB
scripts/test_obligation_ledger_repo_audit.shexecutablescript2.7 KB
scripts/test_pinned_phrase_mutation_walk.shexecutablescript6.5 KB
scripts/test_reference_access_census.shexecutablescript17.3 KB
scripts/test_register_firing_path_resolution.shexecutablescript41.0 KB
scripts/test_register_firing_path_wiring.shexecutablescript29.9 KB
scripts/test_regression_runner_lanes.shexecutablescript4.5 KB
scripts/test_regression_runner_registration.shexecutablescript1.5 KB
scripts/test_routing_bank_integrity.shexecutablescript15.5 KB
scripts/test_routing_pointer_integrity.shexecutablescript18.9 KB
scripts/test_shared_git_surface_gate.shexecutablescript76.8 KB
scripts/test_skill_paired_eval.pyscript60.0 KB
scripts/test_teardown_guard_pins.shexecutablescript17.0 KB
scripts/test_uiux_delivery_contract.shexecutablescript118.6 KB
scripts/test_uiux_loading_budget.shexecutablescript15.4 KB
scripts/test_validate_skill_credential_cwd.shexecutablescript2.6 KB
scripts/test_validate_skill_cross_refs.shexecutablescript4.8 KB
scripts/test_validate_skill_root_depth.shexecutablescript2.5 KB
scripts/validate-skill.shexecutablescript10.5 KB

references/bootstrap-slim-c3-obligation-table.md

View on GitHub
# bootstrap.md C-3 最终义务表

本表是 MR !505 的可复查 semantic-control 证据。比较基线为 MR !505 的 merge-base;最终 `bootstrap.md`
为 18262B(基线 18664B,减少 402B / 2.2%)。

## 行集与分类

对基线文件和最终文件运行
`skills/skill-extraction-workflow/scripts/governing-chain-diff.py BEFORE_FILE bootstrap.md`
得到 25 行;另保留工具长度阈值未覆盖的 R34,共 26 行。

- `merged`:bootstrap 保留完整 carrier;canonical 重复不改变分类。
- `subsumed`:bootstrap 删除 carrier,canonical 保留完整 carrier。
- `dual`:必须拼合两个 carrier 才能得到完整义务;两个 carrier 可在同一文件,也可跨 bootstrap / canonical。

终态:`merged 24 / subsumed 1 / dual 1 = 26`。

### 逐字恢复后退出机械行集

以下 8 行在 takeover 后恢复为基线 carrier,因此不再被 diff 工具推导,未计入 26 行:R13(集成回目标分支)、R17(push 分支、创建/更新 MR、查看状态不等于授权)、R20(待审 MR 向用户展示)、R21(单个合并指令的用户主体)、R22(批量合并指令的用户主体与发布计划对象)、R23(任意新消息清除额度)、R24(两种形态无需复述/点名/SHA)、R31(codex#6426 完整链接)。每项原文均在最终 bootstrap 中各出现一次。

## 最终 26 行

| ID | 义务 | 状态 | 最终 carrier / 证明 |
|---|---|---|---|
| R1 | 自动建议渠道枚举 | merged | bootstrap 保留会话注入、技能包、宿主原生清单、自触发技能四类 |
| R2 | 宿主强制预检及作者判据 | merged | `宿主自身撰写` 与 system/developer 判据仍同句 |
| R3 | 技能自述强制只算渠道自荐 | merged | `技能条目自述"我是强制预检"` 唯一存活 |
| R4 | 执行不等于入口 | merged | `执行≠入口` 唯一存活 |
| R5 | 先路由 owner,再调用阶段技能 | dual | bootstrap 本句 + 后续 product-rd 路由项共同承载 |
| R6 | 风险 tags 与 gate 的 owner | merged | `风险 tags 与 gate 归 feature-risk-router` |
| R7 | 技术方案/评估/选型词的限定条件 | merged | 完整五项词组与 `仅当交付物是新/变更能力或项目级·跨阶段方案` 同句 |
| R8 | 窄产品产物升级回 product-rd | merged | `跨 owner 生命周期仍回 product-rd-workflow` |
| R9 | 单 bug / 窄 stack 不升级 | merged | `不升级 product-rd` |
| R10 | 共享闸或跨仓语义回 product-rd | merged | `仍回 product-rd 的 shared-gate 分类` |
| R11 | 只解锁 owner-dispatch;其他动作仍需用户授权 | merged | `只解锁这道闸` 与授权清单同句 |
| R12 | worktree 隔离无单人/并发/技能仓例外 | merged | `没有例外:单人/并发/技能仓库同样适用` |
| R14 | 外部副作用任务让位及迁移/部署示例 | merged | `承载外部副作用的未完成任务(迁移/部署等)——等其完成再清` |
| R15 | 让位只影响本地 worktree/分支;远端仍按授权 | merged | `该让位只管本地 worktree/分支清理时点,远端分支仍按授权合并处理` |
| R16 | 清理配方归 canonical | merged | bootstrap 指向 worktree-isolation 收尾节 |
| R18 | 创建/更新 MR 禁开自动合并 | merged | auto-merge / merge-when-pipeline-succeeds / queued merge 枚举完整 |
| R19 | 未授权不得 merged 或推进默认分支 | merged | `平台 merge API/Web UI` 与 `目标是 main/默认分支的 git merge/git push` 枚举同在未授权禁令内 |
| R25 | 事前“做完并合并”不算授权 | merged | `事前"做完并合并"不算授权` |
| R26 | 指令后提交或状态变化须向用户确认 | merged | `先向用户确认一句再合并` |
| R27 | 多个待合并 MR 须向用户消歧 | merged | `先问清是哪一个` |
| R28 | 机械放行阀存在,细则归 canonical | merged | bootstrap 保留阀存在性与 canonical 指针 |
| R29 | 哨兵单次/计数布防机制 | subsumed | `skills/worktree-isolation/SKILL.md` 的 `UserPromptSubmit 哨兵在用户**单独回复**` 唯一完整 carrier;bootstrap 不复制布防细节 |
| R30 | 直推 main / auto-merge 永不放行及 canonical 指针 | merged | bootstrap 同时保留永不放行绝对句与 `以该节为准` |
| R32 | 自审收敛后再交独立评审 | merged | `可证明的实现者自检` 与 `预期通过再交评审` |
| R33 | 自审覆盖分支/路径/状态与四个风险轴 | merged | security/privacy/authority/数据丢失轴完整 |
| R34 | invoke 闸枚举引导语的误计数修正 | merged | `硬判据:` 后仍有 ①②③④ 四项 |

## 阈值盲区复核

默认 `min_chars=25`,含 CJK 文本的有效 floor 为 16。对基线和终态额外以
`min_chars=1` 解析,再从低阈值变化中扣除默认行集,原始结果为:

```console
$ python3 -c 'import importlib.util,subprocess,sys; p="skills/skill-extraction-workflow/scripts/governing-chain-diff.py"; s=importlib.util.spec_from_file_location("gcd",p); m=importlib.util.module_from_spec(s); sys.modules[s.name]=m; s.loader.exec_module(m); b=subprocess.check_output(["git","show","69d16032:bootstrap.md"],text=True); a=subprocess.check_output(["git","cat-file","blob","ec0ba4fd3fe4"],text=True); ch=lambda n:{(o.key,o.chain) for o in m.parse(b,min_chars=n) if (o.key,o.chain) not in {(x.key,x.chain) for x in m.parse(a,min_chars=n)}}; low=ch(1); default=ch(25); x=sorted(low-default); print(f"low_changed_removed {len(low)}"); print(f"default_changed_removed {len(default)}"); print(f"subthreshold_changed_removed {len(x)}"); [print(f"effective_len={m.effective_len(k)} text={k}") for k,_ in x]'
low_changed_removed 26
default_changed_removed 25
subthreshold_changed_removed 1
effective_len=11 text=三条硬判据:
```

同一结果的紧凑记录为:

```text
low_changed_removed 26
default_changed_removed 25
subthreshold_changed_removed 1
effective_len=11 text=三条硬判据:
```

因此 R34 是默认 floor 唯一发生 changed/removed 的基线义务;本结论只证明基线义务保全,
不声称枚举终态新增的低阈值文本。

## 可复跑机器证据

权威是下列命令对当前文件的实时结果,不是本表或 source-register 的声明:

```console
$ git diff --quiet -- bootstrap.md skills/skill-extraction-workflow/references/source-register.md skills/skill-extraction-workflow/references/bootstrap-slim-c3-obligation-table.md; echo $?
0
$ git rev-parse --short=12 :bootstrap.md
ec0ba4fd3fe4
$ test "$(git rev-parse :bootstrap.md)" = "$(git rev-parse ec0ba4fd3fe4)"; echo $?
0
$ git cat-file blob ec0ba4fd3fe4 | wc -c
   18262
$ git cat-file blob ec0ba4fd3fe4 | rg -o -F 'UserPromptSubmit 哨兵' | wc -l
       0
$ rg -o -F 'UserPromptSubmit 哨兵' skills/worktree-isolation/SKILL.md | wc -l
       1
$ git cat-file blob ec0ba4fd3fe4 | python3 skills/skill-extraction-workflow/scripts/governing-chain-diff.py <(git show 69d16032:bootstrap.md) /dev/stdin
governing-chain-diff: /dev/stdin
derived row set: 25
$ ruby skills/skill-extraction-workflow/scripts/register-firing-path-resolution.rb .
register_firing_path_resolution_ok (237 locators resolved)
```

`69d16032` 是本 MR 已记录且唯一解析的 merge-base;`ec0ba4fd3fe4` 是候选 `bootstrap.md`
的 blob 身份,短 ref 若将来产生歧义会由 Git 报错,而不会静默换成别的内容。首条
`git diff --quiet` 证明 review 时 resolver 所读的三份工作树文件与 index 相同;提交后 blob
只有在候选不再改写并确实进入 landing commit 时才随 commit 保留。landing 后必须运行
`test "$(git rev-parse HEAD:bootstrap.md)" = "$(git rev-parse ec0ba4fd3fe4)"`;非零即说明评审后
内容漂移,不得沿用本表结论。该 commit-state 等值检查在 commit 产生前不能伪报执行。
两条固定串计数分别证明 R29 的 bootstrap carrier 为 0、canonical carrier 为 1。

- **Landing 后必须验证候选 blob**:提交后必须执行上述 `HEAD:bootstrap.md` 等值检查;非零时必须阻断交付并重新冻结候选证据。
`governing-chain-diff.py` 返回 1 表示行集非空,是本次预期结果。历史提交的 17998B / 31 行
快照不作为终态证据。
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall