Prompting
它能做什么
创建并完善提示词,也可以用可复用的模板构建提示词。它适用于搭建 AI 工作流或希望助手获得更好提示词的人,而不是需要成品内容的人。
适用场景
- ✓当你想为 AI 助手编写清晰、可复用的系统提示词的时候。
- ✓当现有提示词效果薄弱或含糊、需要改进的时候。
- ✓当你需要基于同一模板生成一组提示词的时候。
技能链接
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Prompting/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为一个客户支持助手编写系统提示词,重点关注结果和限制。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能会把目标表述为可检验的结果,加入约束和工具,并只保留真正需要的步骤。它的输出是供你在其他任务中使用的提示词,而不是最终内容本身。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Prompting - Meta-Prompting & Template System
Contents: Ideal State · Anti-criteria · Intent Routing · Data & Config · Gotchas · Examples · References
Generates, optimizes, and composes prompts programmatically. It's the standard library for prompt engineering — other skills call it when they need to build or improve a prompt. The output is always a prompt to be used elsewhere, never the final content itself.
Philosophy: Prompts that write prompts. Structure is code, content is data. Meta-prompting enables dynamic composition where the same template with different data generates specialized agents, workflows, and evaluation frameworks.
Ideal State
- Every prompt this library generates or optimizes articulates the ideal state, not the procedure: WHAT done looks like as testable outcomes, the CONSTRAINTS, and the high-quality TOOLS available, with the specificity moved to the outcome so the prompt is more precise, not vaguer.
- In every prompt this library generates or optimizes, the only HOW that survives is the four keep-classes (safety-gate, verified-gotcha, tool-contract, output-format-contract); every other procedural line failed the test of whether a smarter model would make it unnecessary. Deterministic tools (
*.ts) are exempt. The full standard isStandards.md§ Ideal-State Prompting. - A prompt composed from data keeps structure as code and content as data: a Handlebars template under
Templates/rendered with a data object, or from a .yaml or .json file, throughRenderTemplate.ts. - A reusable prompt captures the supplied intent, constraints, and output contract; its output contract can guide the intended downstream task; and it was tested before it was declared ready.
- When
Standards.mdis authored or audited (not on routine template renders), both official anchors were fetched and every place our standards diverge from the current official guidance is flagged.
Anti-criteria
- No reasoning choreography ("first analyze, then consider, then decide") in a prompt this library generates or optimizes: it is BLE-violating scaffolding that caps a capable model and rots as models improve.
- Meta-prompting never produces the final deliverable: it generates PROMPTS, not content.
- No template or prompt depends on specific model quirks; templates stay model-agnostic.
- No generated prompt is declared ready untested: a prompt that looks good may perform poorly.
- Standards drift is reported, never auto-adopted, and an unreachable anchor URL never blocks the work.
Intent Routing
Library skill, no Intents/ directory. Requests route to the tools and reference docs:
| Intent | Trigger | File |
|---|---|---|
| RenderTemplate (tool) | render a template, compose a prompt from data, Handlebars template | Tools/RenderTemplate.ts |
| ValidateTemplate (tool) | validate a template | Tools/ValidateTemplate.ts |
| Standards (reference) | prompt engineering standards, best practices, prompt optimization | Standards.md |
| File | Read when |
|---|---|
Standards.md |
writing, optimizing or auditing any prompt: the ideal-state standard, the keep-classes, signal-to-noise, Anthropic and research-backed practice |
References/WritingGreatSkills.md |
the prompt is a skill or intent: invocation load, information hierarchy, completion criteria, pruning |
Templates/ |
composing a prompt from data: Primitives (Briefing, Structure, Gate, Roster, Voice) (evals and judges are not composed here; they run through Assay, LIFEOS/DOCUMENTATION/Assay/AssaySystem.md § One eval system), Data/ presets, and Templates/README.md for the template system |
Setup.md |
first-time setup: the one package the template tools need (handlebars) and a read-only check |
Data & Config
Before executing, check for user customizations at:
<configRoot>/LIFEOS/USER/CUSTOMIZATIONS/SKILLS/Prompting/
configRoot is $CLAUDE_CONFIG_DIR when set, else ~/.claude.
If this directory exists, load and apply any PREFERENCES.md, configurations, or resources found there. These override default behavior. If the directory does not exist, proceed with skill defaults.
First-time setup for the template tools is in Setup.md.
Gotchas
Tools/is the only tool directory. A byte-identical stale copy underTemplates/Tools/was removed on 2026-10-14 (LOSIntegrity cruft sweep); edit and importTools/, whichTools/RenderTemplate.test.tscovers.
Example
常见问题
它会撰写最终内容吗?
不会。输出始终是用于其他任务的提示词,而不是成品文本。
为什么它只保留很少的步骤?
它会删除一个有能力的模型不需要的步骤,只保留安全规则、已验证的技巧、工具细节和输出格式。
它能一次生成很多提示词吗?
能。同一模板配合不同数据,可以生成专用的提示词。
详情
作者的原始描述
Meta-prompting standard library for generating, optimizing, and composing prompts programmatically via Standards, Handlebars Templates, and Tools; output is always a prompt to use elsewhere, not final content. USE WHEN meta-prompting, template generation, prompt optimization, prompt engineering, write a prompt, create system prompt, Handlebars template. NOT FOR generating final content (use the appropriate domain skill), or any eval: judge prompts, rubrics, scoring, grading or comparing outputs all run through Assay, the one eval system.
repo: danielmiessler/LifeOS
热度
- GitHub 星标
- 20k
- 排名
- #10447
- 许可证
- MIT
- 更新时间
- 2026/10/28
评论
- …