Skip to main content

agentic-spec-to-knowledge-derivation

Use after creating or materially updating a Superpowers Spec to derive durable L1/L2/L3 business assets, run deterministic lint/doctor, apply semantic doctor/repair when needed, and prepare a phase confirm request.

来源信息

仓库
DolphinAI2026/dolphin-code
最近来源活动
2026年7月22日 12:18
检测到的 SKILL.md 语言
英语
星标
979
Forks
78

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
13 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
agentic-spec-to-knowledge-derivation
description
Use after creating or materially updating a Superpowers Spec to derive durable L1/L2/L3 business assets, run deterministic lint/doctor, apply semantic doctor/repair when needed, and prepare a phase confirm request.
# Agentic Spec-To-Knowledge Derivation ## Required Context Load these files before deriving, doctoring, or repairing assets: - `docs/solutions/l1/arch/business-asset-knowledge-model.md` - `skills/agentic-spec-to-knowledge-derivation/rules/derivation.md` - `skills/agentic-spec-to-knowledge-derivation/rules/agentic-memory-alignment.md` - `skills/agentic-spec-to-knowledge-derivation/rules/secret-redaction.md` ## Workflow 1. Read the source Superpowers Spec and compute its repository-relative path. 2. Read `docs/assets/builder/asset-index.yaml` when it exists and verify the source Superpowers Spec is listed as a formal `asset_kind: spec` asset for the phase. 3. If the source Superpowers Spec is not listed, add a fallback derivation change that creates or registers a formal `asset_kind: spec` asset for the original source Spec, with repo-relative path, current source hash, phase id, and asset-index membership. This fallback records the source document itself; it must not rewrite, move, or delete the original source Spec. 4. Read relevant existing L1/L2/L3 assets under `docs/solutions/`. 5. Use the templates under `templates/` to add, modify, or delete durable business assets. 6. Use agentic-memory family conventions for source fidelity, durable knowledge shape, and archive-compatible structure. Do not shell out to `agentic-memory` CLI from this skill. 7. Write L1/L2/L3 asset changes only after the user has requested derivation or repair. 8. Run deterministic CLI lint or doctor: ```bash agentic spec-derivation lint --manifest docs/assets/builder/derivations/<phase-id>.yaml <workspace> ``` Module fallback: ```bash PYTHONPATH=python python -m agentic_core.cli spec-derivation lint --manifest docs/assets/builder/derivations/<phase-id>.yaml <workspace> ``` 9. When `long_document_mode` triggers, create a source chunk index, dispatch read-only chunk extraction subagents when available, collect `source-chunk-fact-packet` outputs, synthesize the source coverage ledger as the main agent, and block if any critical chunk remains incomplete. 10. In long-document derivation, preserve `source_chunk_index_ref` and `source_coverage_ledger_ref` in the manifest and keep `business-flow.operations` grounded in source-backed operation contracts. 11. If deterministic lint fails for structural reasons, run CLI repair once. 12. If business meaning is missing or inconsistent, run semantic doctor and semantic repair using `prompts/doctor.md` and `prompts/repair.md`. 13. Re-run deterministic lint after semantic repair. 14. Prepare the confirm request for Agent Chat / `agent-runtime`. ## Guardrails - Do not modify or delete the Superpowers Spec during derivation, doctor, or repair. - Derivation and repair must not commit, tag, push, reset, rebase, stash, or force push. - Semantic repair may modify or physically delete only L1/L2/L3 business assets. - 主 agent 是唯一 synthesis owner。Read-only subagents may extract chunk facts, but they must not write manifests, ledgers, specs, or final assets. - Confirm must revalidate manifest, asset index, source hash, source refs, dirty paths, Git guard, and phase metadata before committing.
在 GitHub 查看