跳到正文

spec-compound-refresh ​

对照当前代码库刷新 docs/solutions/ 经验,并初始化或维护 CONCEPTS.md 术语。

ASCII 链路图 ​

text
Codebase -> Spec -> Plan -> Tasks -> Code -> Review -> Knowledge
                                                           |
                                                           v
                                                           spec-compound-refresh
                                                           entry: spec-compound-refresh
                                                           type: workflow command

链路图表示该技能在研发阶段上的位置;阶段之间不是必经顺序,按当前任务直接进入最匹配的入口即可。

基本信息 ​

字段内容
Skillspec-compound-refresh
类型workflow command
研发链路位置Knowledge
当前入口spec-compound-refresh
兼容别名/spec:compound-refresh、$spec-compound-refresh
宿主投递Claude Code: command · Codex: skill · Cursor: skill · Kiro: skill · Qoder: command · OpenCode: command · ZCode: skill · Pi: skill
Sourceskills/spec-compound-refresh/SKILL.md

源码描述(原文) ​

Refresh docs/solutions learnings and bootstrap or maintain CONCEPTS.md vocabulary against the current codebase. Use when auditing stale, overlapping, superseded, or drifted learnings, or when asked to bootstrap or cross-document maintain CONCEPTS.md; avoid general refactor, debugging, or code review unless docs/solutions is explicit.

Source 契约摘要 ​

以下各条摘自上游 SKILL.md 的契约摘要小节(Workflow Contract Summary 或 Contract Summary),过长时截断。

  • 输入 — docs/solutions/, CONCEPTS.md, an optional scope hint, and current source/test/doc evidence.
  • 输出 — Keep/Update/Consolidate/Replace/Delete/Stale classifications, applied maintenance, and a complete Applied/Recommended report.
  • 硬出口 — unresolved source truth, target repo, write scope, or classification cannot become confirmed current knowledge. In headless mode, record uncertainty as stale only under the classification reference's evidence rules.
  • Publication — prepare owner-private candidates; validate and make the semantic promotion decision before changing durable targets. references/publication.md owns target identity, freshness checks, ordered publication, and partial results for every mutation.
  • Worker boundary — record worker_dispatch_authorization and related capability facts before any dispatch; investigation workers are read-only and never write a tracked successor, stage, or commit. Inline fallback must not claim independent investigation coverage. Missing authorization is recorded as dispatch_authorization_missing; an unavailable worker surface is subagent_capability_missing or worker_capability_unproven according to the dispatch evidence.
  • 说明 — Capability results are provider_untrusted until confirmed by the current host; an unavailable or ambiguous surface is worker_capability_unproven, and the inline/serial fallback must be labeled accordingly.
  • 权威 — current source and verification evidence take precedence over historical learnings. Local mutation, commit, and landing require separate authority. mode:headless / mode:non-interactive only change interaction; they do not grant commit, push, or PR authority. Record commit_reason: commit_authorization_missing when needed; without landing authorization, do not push or open/update PR.
  • Refresh is current-source anchored — re-read the defining source refs before updating a learning and retain observed revision/freshness and limitations. Unavailable evidence alone does not prove staleness; preserve unverifiable but plausible claims with a verification gap under references/classify.md. Historical cache, session transcript, or provider output is advisory and never a substitute for current-source evidence.
  • 消费者 — maintainers and planning, implementation, debugging, and review workflows that read docs/solutions/ or CONCEPTS.md.

何时使用 ​

  • 已有经验过时、重叠、被取代或与源码漂移。
  • 需要初始化或跨文档维护 CONCEPTS.md。

边界 ​

  • 普通 refactor、debug 或代码审查不走这里,除非明确针对 docs/solutions/。
  • 未确认的事实不能写成当前有效的知识。

源码校准 ​

本页由脚本从上游 skills/spec-compound-refresh/SKILL.md 生成;入口、兼容别名与宿主投递以 src/cli/contracts/dual-host-governance/skills-governance.json 为准。