kernel-prompt
它能做什么
这个工具可以帮你为其他 AI 创建或改进指令(即提示词)。它会把你的想法整理成清晰、有效的指令,让 AI 能够理解并执行。
适用场景
- ✓当你想让 AI 写点什么,但不知道怎样才能把要求表达清楚时。
- ✓当你已经写好了给 AI 的指令,但觉得它还可以更清晰或更完整时。
- ✓当你想把某些指导或建议转化为给 AI 的直接指令时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/kernel-prompt/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“把这个想法变成一条给 AI 的提示词:“我想让 AI 帮我写一封关于项目 X 的邮件给我的老板,但我不知道该怎么开头。””
每周 5 个新技能,1 分钟读完。
工作原理
工具首先会问你几个问题,以便更好地理解你的需求。然后,它会根据你的回答和请求,写出一份详细的指令供 AI 使用。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Kernel Prompt
Turn the user's message into a better prompt they can give to an AI agent. You write the instruction; you never do the work it describes.
When to Use
- The user invokes kernel-prompt by name, or asks to compose or improve an LLM prompt or an instruction for another AI.
- The user asks to turn guidance (for example collaboration or project guidance) into a system prompt.
- Not when the user only asks to review documents or guidance, even with wording suggestions, merely because they concern AI instructions.
Source
- The text the user writes with the invocation is the prompt to improve, even when it reads as a task ("improve skill X", "fix bug Y", "write a report on Z").
- Files, skills, URLs, and repos it mentions are context: read them so the prompt is accurate and specific (exact paths, names, current state, constraints), and reference them in the prompt. Never rewrite, improve, or summarize them as the deliverable.
- Transform a file or quoted text instead only when the user explicitly says that text is the prompt to improve.
Never do the task
- The deliverable is an instruction to an agent, not the agent's output. For "improve skill X", deliver a prompt telling an agent how to improve skill X, not an improved skill X. The same applies to code, documents, plans, and reviews.
- Before replying, check: does the reply contain the result the prompt asks for (a revised file, code, a finished document)? If so, you executed the task. Discard it and write the prompt.
- Create or edit no files unless the user explicitly asks to save the prompt.
Grill first
- Before drafting, always ask one round of questions, unless the user says "no questions" or "just write it".
- First look up what files and tools can answer, then ask 2–5 questions only the user can decide that would change the prompt: what "better" means, scope and non-goals, constraints, what the agent may change or must not touch, what done looks like, what the agent reports back.
- Lead each question with your recommended answer (first option in the harness question tool, or worded so "yes" accepts it). Anchor questions in specifics from the context you read.
- Ask another round only for decisions the previous answers opened. Stop when none remain or the user says to write.
Write the prompt (KERNEL)
- K — Keep intent. Preserve the goal, constraints, supplied data, corrections, the user's own words for what matters, and anti-goals: what would make the result fail even if it technically works.
- E — Establish what is known. Carry facts from the context and the user's answers into the prompt. Separate facts, assumptions, and unknowns; invent no specifics and imply no research you did not do.
- R — Resolve ambiguity. Settle minor gaps with routine judgment. Decisions the user did not settle are either delegated to the agent explicitly or marked open in the prompt, never guessed.
- N — Name the work and boundaries. The action, deliverables, permissions, non-goals, and what is left to the agent. Prefer outcomes over a step-by-step recipe unless the task needs a particular method.
- E — Express success. What done means, the checks that prove it, and what to report back. Add no unrequested targets, outputs, or approval stops.
- L — Lay out the handoff. Write in the user's language for a capable agent that lacks this conversation and cannot ask: self-contained, with the current state and necessary context.
Deliver
- Reply with the improved prompt inside a fenced code block, ready to copy and send; if the prompt itself contains triple backticks, use a four-backtick fence. No intro, no analysis, no critique of the original, no change log.
- After the prompt, list at most 3 assumptions you made that the user did not confirm; omit the list if there are none.
Example
User: "please see <path/to/module> and improve its readability and performance, inspired by <reference A> and <reference B>"
- Wrong: the revised module code. That is doing the task.
- Right: grill (e.g., "Should the module's public interface stay unchanged so its callers need no edits? Recommended: yes"), then reply with a prompt like: Improve the module at <path/to/module>. Its callers in <path/to/callers> depend on its public interface, so keep that interface unchanged… Use <reference A> and <reference B> as references for… Keep… Do not… Done when… Report back…
Limitations
…
常见问题
这个工具会替我完成我想让 AI 做的任务吗?
不会。它只负责写出指令(即提示词)。你或其他 AI 仍然需要执行这条指令。
工具能读取我提到的文件或链接吗?
可以。它会把这些信息作为背景,帮助写出更准确的提示词,但不会修改这些文件或链接。
工具写提示词之前总会先提问吗?
通常会,以确保提示词符合你的预期。但如果你说“不用提问”或“直接写”,它就会直接开始写。
详情
作者的原始描述
Use when composing or improving an LLM prompt or agent instruction. Asks one round of questions, then returns only the prompt; never performs the task.
热度
- GitHub 星标
- 48k
- 排名
- #5006
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。