用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/knowns-dev/knowns --skill kn-extract命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | kn-extract |
| description | Use when extracting reusable patterns, decisions, failures, or knowledge into documentation |
Announce: "Using kn-extract to extract knowledge."
Core principle: CAPTURE ONLY GENERALIZABLE KNOWLEDGE, WITH PROVENANCE.
--consolidate to review existing learning docs instead of extracting one sourceUse Knowns APIs for managed tasks, docs, memories, and decisions. Do not edit their markdown directly.
Read the task or referenced work and identify genuine findings in three categories:
| Category | Capture when |
|---|---|
| Pattern | A reusable implementation, architecture, integration, or process approach exists |
| Retrospective learning | A good call, bad call, surprise, trade-off, or failure can improve future work |
| System Decision | Stable guidance future work must follow: architecture, behavior, naming, storage, API contract, workflow convention, or explicit trade-off |
Do not fabricate findings. A valid no-op is better than generic advice.
Search docs, memories, and current Decisions for overlap. Prefer updating a canonical doc over creating a duplicate.
mcp_knowns_search({ "action": "search", "query": "<topic>", "type": "doc" })
mcp_knowns_search({ "action": "search", "query": "<topic>", "type": "memory" })
pattern, convention, preference, or failure categories.Never create Memory category decision. Spec Decisions remain canonical in an approved spec's Locked Decisions section and must not be copied into the System Decision ledger.
A System Decision candidate must remain non-current until explicit verified resolution. If it replaces current guidance, use the reviewed supersession flow rather than overwriting the old Decision.
Promote a learning to learnings/critical-patterns only when it:
Keep promoted entries concise and link the full canonical doc. Avoid turning the critical list into a second knowledge dump.
Validate every created or updated doc/template/Decision ref. Append one concise source-task note containing the canonical refs. Do not mark unrelated task ACs or change task status.
When --consolidate is present:
Never delete or overwrite a document merely because titles look similar. Compare content and provenance first.
Return information in this order:
Include what now serves as the canonical knowledge source. If nothing generalizable was found, say so plainly.
基于 SOC 职业分类