Prompting
できること
このスキルは、プロンプトを作成して改善し、再利用可能なテンプレートからプロンプトを組み立てます。AI ワークフローを作る人や、アシスタントにより良いプロンプトがほしい人向けです。完成したコンテンツではなく、プロンプトを作るためのものです。
使う場面
- ✓AI アシスタントのための、明確で再利用可能なシステムプロンプトがほしいとき。
- ✓既存のプロンプトが弱く曖昧な結果を出し、改善が必要なとき。
- ✓一つのテンプレートから、一連のプロンプトを生成する必要があるとき。
スキルのリンク
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Prompting/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。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
コメント
- …
このリポジトリの他のスキル
LifeOS
20kインタビューとダッシュボードを通じて、現在の状態を理想の状態へ結びつける個人システム LifeOS を、エージェントが設定するのを支援します。
AnnualReports
20k主要ベンダーのサイバーセキュリティの年次レポートを探して比較し、侵害やランサムウェアの傾向などをまとめます。すべての数字に出典を付けます。
ApertureOscillation
20k一つの設計上の問いを、狭い範囲と広い範囲の両方でテストし、構築する前に二つの答えが食い違う箇所を指摘するよう、エージェントに教えます。
Aphorisms
20k新聞の編集テーマに合う、出典の確かな引用を、キュレーションされたコレクションから見つけ、照合し、最近使ったものを避けて管理するよう、エージェントを支援します。
似ているスキル
writing-skills
311k新しいスキルを書き、それぞれをまず試すようエージェントに教えます。そのスキルが実際にエージェントの動作を変えることを確認します。
writing-for-agents
310kスキル、AGENTS.md、CLAUDE.mdを含め、AIエージェントのための明確な指示の書き方を説明し、エージェントが予測可能に動くようにします。
bengali-nlp
280kエージェントがベンガル語のテキストを処理できるようにします。テキストの正規化など、ベンガル語特有の性質に対応しながら、言語を理解して扱えるようにします。