用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/knowns-dev/knowns --skill kn-plan命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use when committing code changes with proper conventional commit format and verification
Use when creating, triaging, promoting, or superseding a System Decision - the durable project guidance other skills enforce
Use when working with Knowns documentation - viewing, searching, creating, or updating docs
正在显示 SKILL.md
| name | kn-plan |
| description | Use when creating an implementation plan for a task |
Core principle: GATHER CONTEXT → PLAN → VALIDATE → WAIT FOR APPROVAL.
/kn-plan <task-id> — plan an existing task/kn-plan --new "<summary>" — create a bounded task, then plan it/kn-plan --from @doc/<spec-path> — preview and create tasks from an approved specIf the user wants end-to-end execution of an approved spec or task wave, route to /kn-flow @doc/<spec-path>.
@task-, @doc/, and @template/ ref recursively.Locked Decisions section and enumerate every D-ID.Announce: "Using kn-plan for task [ID]."
mcp_knowns_tasks({ "action": "get", "taskId": "<id>" })
mcp_knowns_tasks({ "action": "update", "taskId": "<id>",
"status": "in-progress", "assignee": "@me" })
mcp_knowns_time({ "action": "start", "taskId": "<id>" })
Announce: "Using kn-plan to create and plan a new task."
Classify the summary:
/kn-spec unless the user explicitly bypasses itHigh-risk work includes auth/authorization, data migration or loss, public contracts, security/audit, external integration changes, or broad cross-module behavior.
Create the task before planning. Use outcome-oriented ACs when enough requirements are known; otherwise record assumptions and unresolved questions in the plan instead of inventing certainty.
A saved plan should normally contain 3–8 ordered steps and identify concrete files or refs when known:
1. Establish or reuse the relevant project pattern (see @doc/...)
2. Implement the bounded behavior in <area>
3. Add or update tests for outcomes and edge cases
4. Update managed docs/configuration when required
5. Run targeted and project-level validation
Plan-quality checks:
D<ID>=pass or D<ID>=conflict: <reason>.Announce: "Using kn-plan to generate tasks from spec [name]."
Task Generation → Task Prefix.Task Links section through Knowns APIs.Each task should have:
[<slug>-NN] bracket prefixfulfills mapped to Spec AC IDsfrom-spec, spec:<slug>, and spec-date:<yyyy-mm-dd>NN * 10, which is what carries sequenceImplementation mechanics belong in the later task plan, not in task ACs.
Read the spec's optional Task Generation → Task Prefix:
prefix on every create call.prefix, and creation falls back to the project's
settings.defaultTaskIdPrefix, or the legacy format when that is unset.prefix shapes the generated ID only. It is not tied to task type, it must
never be added to the title, and it does not change project config.
Derive <slug> and <yyyy-mm-dd> from the spec path for labels and filtering only.
Example creation shape:
mcp_knowns_tasks({ "action": "create", "title": "<outcome>",
"description": "<bounded outcome>", "spec": "<spec-path>",
"fulfills": ["AC-1"], "priority": "medium",
"labels": ["from-spec", "spec:<slug>", "spec-date:<yyyy-mm-dd>"],
"order": 10,
"prefix": "<Task Prefix from spec; omit this field when blank>" })
After saving a plan or creating tasks:
mcp_knowns_validate({ "entity": "<task-id-or-spec-path>" })
Fix validation errors before requesting approval. Planning never implies implementation approval.
Return information in this order:
Typical handoffs:
/kn-implement <task-id>/kn-flow @doc/<spec-path>/kn-spec <feature>Do not manage platform-synced skill copies; this source defines the built-in workflow contract.