用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/knowns-dev/knowns --skill kn-template命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | kn-template |
| description | Use when generating code from templates - list, run, or create templates |
Announce: "Using kn-template to work with templates."
Core principle: USE TEMPLATES FOR CONSISTENT CODE GENERATION.
mcp_knowns_templates({ "action": "list" })
mcp_knowns_templates({ "action": "get", "name": "<template-name>" })
Check: prompts, doc: link, files to generate.
mcp_knowns_docs({ "action": "get", "path": "<doc-path>", "smart": true })
// Dry run first
mcp_knowns_templates({ "action": "run", "name": "<template-name>",
"variables": { "name": "MyComponent" },
"dryRun": true
})
// Then run for real
mcp_knowns_templates({ "action": "run", "name": "<template-name>",
"variables": { "name": "MyComponent" },
"dryRun": false
})
mcp_knowns_templates({ "action": "create", "name": "<template-name>",
"description": "Description",
"doc": "patterns/<related-doc>"
})
Use the current template schema returned by templates({ action: "get" }). A minimal example:
name: react-component
description: Create a React component
doc: patterns/react-component
prompts:
- name: name
type: text
message: Component name?
validate: required
actions:
- type: add
template: component.tsx.hbs
path: src/components/{{pascalCase name}}.tsx
skipIfExists: true
{{helper value}} expressions directly.mcp_knowns_validate({ "scope": "templates" })
All built-in skills in scope must end with the same user-facing information order: kn-init, kn-spec, kn-flow, kn-go, kn-plan, kn-research, kn-handoff, kn-implement, kn-test, kn-review, kn-debug, kn-decision, kn-verify, kn-doc, kn-template, kn-extract, and kn-commit.
Required order for the final user-facing response:
Keep this concise for CLI use. Template-specific content may extend the key-details section, but must not replace or reorder the shared structure.
Do not manage platform-synced skill copies; this source defines the built-in workflow contract.
For kn-template, the key details should cover:
When template work naturally leads to implementation or review, include the best next command. If the user only inspected templates or finished with a dry run decision, do not force a handoff.