system-prompts
できること
このスキルは、AIモデルが読む指示(システムプロンプトやツールのドキュメントなど)を書くための、統一されたスタイルを定めます。プロンプトを書き、明確で一貫したものにしたい人向けです。
使う場面
- ✓AIアシスタントのシステムプロンプトを書いたり編集したりするとき。
- ✓AIにツールの使い方を伝える説明を書くとき。
- ✓一貫していて確認しやすいエージェントの定義がほしいとき。
スキルのリンク
https://github.com/can1357/oh-my-pi/blob/main/.omp/skills/system-prompts/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“当社のサポートアシスタントのシステムプロンプトを書いてください。「必須」と「禁止」のルールを明確にし、返信の前に短いチェックリストを入れてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、一貫したセクションのタグ、必須・禁止・任意の動作を表す標準の言い回し、そして密な命令形の文体を使います。非常に小さなモデルには別の書き方が必要な場合があることも示します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
System Prompts
House style: dense, imperative, RFC-keyed.
Small models (≤2B; tiny/on-device, e.g. LFM2): MUST read small-models.md. Rules below assume frontier-class instruction following; several invert at that scale.
Tags
Tags: authoritative, literal structural markers; meaning exactly matches name. NEVER invent ornamental tags: <north-star>, <stance>, <protocol>, <directives>, <strengths> — noise.
| Tag | Purpose |
|---|---|
<system-conventions> |
Tag/RFC-keyword interpretation; contract. |
<stakes> |
Correctness importance; domain framing. |
<communication> |
Voice, tone, response shape. |
<critical> |
Inviolable rules; place at START and END. |
<completeness> |
Done definition; anti-shrink rules. |
<yielding> |
Pre-yield checklist; block conditions. |
<workflow> |
Numbered phases: scope → edit → decompose → work → verify. |
Normative Language
RFC 2119: full caps, no bold; all-caps form is the marker.
| Keyword | Meaning | Replaces |
|---|---|---|
| MUST / REQUIRED | Absolute requirement | "always", "make sure", "ensure" |
| NEVER (= MUST NOT) | Absolute prohibition | "do not", "don't" |
| SHOULD / RECOMMENDED | Strong preference; known-tradeoff deviation allowed | "prefer", "it's best to" |
| AVOID (= SHOULD NOT) | Strong discouragement | "try not to" |
| MAY / OPTIONAL | Truly optional | "can", "you could" |
Aliases: prefer NEVER to MUST NOT; AVOID to SHOULD NOT. Both: single-token in cl100k/o200k; identical authority.
Near top, inside <system-conventions>, state once:
RFC 2119 applies to MUST, REQUIRED, SHOULD, RECOMMENDED, MAY, OPTIONAL.
NEVERandAVOIDMUST be interpreted as aliases forMUST NOTandSHOULD NOTrespectively.
NEVER convert factual descriptions (tool returns, parameter behavior), code blocks, examples, schema, or Handlebars template syntax.
Density
Load-bearing tokens only; every bullet adds a claim.
- One claim/bullet; cut behavior-neutral subclauses.
- Quick check
X? Y.replaces “If X, then Y.” - Reasoning ONLY when it changes the call.
- Bold lead names rule; NEVER restate in body.
- Prefer
→,=,+/</-,B+1,A..B. - Parallel edits:
add → +/<; delete → -; = ONLY when modifying inside.
Bad: - **Never fabricate anchor hashes.** Hashes are 2-letter content fingerprints, not arbitrary suffixes. You cannot increment them, guess the "next" one, or compute them locally. If a needed anchor is not in your last `read` output, issue another `read`.
Good: - **NEVER fabricate anchor hashes.** Missing? Re-`read`.
Bad: - **Do not replay the line past your range.** For `= A..B`, never end the payload with content that already exists at B+1. Stop the payload at the last line you are actually changing; if you need that next line gone, extend B.
Good: - **NEVER replay past your range.** Stop before B+1; extend B if it must go.
Tactical bullets: 5–12 words. Longer ONLY for multi-part contracts where every clause constrains parameter semantics or edge enumeration.
AVOID compressing factual reference (operator definitions, return formats, schema), worked examples, or first use of a non-obvious term.
Voice
Direct, imperative, second-person: “You MUST/NEVER/SHOULD.” No hedging, apology, ceremony, closing summaries, or time estimates.
Bad: "You might want to consider using X..."
Good: "You SHOULD use X."
Bad: "Please note that this is important..."
Good: "Critical: X."
Bad: "Make sure to run lsp references before modifying a symbol"
Good: "You MUST run `lsp references` before modifying any exported symbol."
Negation: pair positive alternative when non-obvious; otherwise NEVER X. alone.
Positioning
“Lost in the Middle”: start/end retain; middle degrades ~20%. Critical constraints at both edges; reference material, environment, templated content in middle.
Front matter:
- Role + agency one-liner (
You are THE staff engineer…). <system-conventions>— RFC contract, tag semantics.<stakes>— importance.<communication>— style.<critical>— top-priority rules.
Back matter:
- Environment/tool inventory — exploration, tool priority, harness specifics.
- Contract — completeness, yielding, workflow.
- Prompt >~150 lines: repeat most important
<critical>rule.
Tone Patterns That Work
Live-system-prompt patterns:
- Agency: "You have agency and taste: you delete code that isn't pulling its weight, refuse abstractions that are unnecessary, and prefer boring when it's called for."
- **Stakes anchorin
よくある質問
これらのプロンプトでMUSTやNEVERは何を意味しますか?
絶対的な強さでルールを示すため、モデルは要件や禁止を提案ではなく厳格なものとして扱います。
小さなAIモデル向けのルールはありますか?
はい。非常に小さなモデルには別の言い回しが必要かもしれないと示し、そのための別のガイドを案内します。
一部のタグ名が避けられるのはなぜですか?
意味を足さずにノイズを増やす作られた名前のタグは、目的と名前が一致するタグだけを使うためです。
詳細
作者による元の説明
Write system prompts, tool docs, and agent definitions. Project tag conventions + RFC 2119 keywords + dense compression. Use when authoring or editing any prompt the model reads.
repo: can1357/oh-my-pi
人気
- GitHubのスター
- 38k
- ランキング
- #7493
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
似ているスキル
writing-skills
311k新しいスキルを書き、それぞれをまず試すようエージェントに教えます。そのスキルが実際にエージェントの動作を変えることを確認します。
writing-for-agents
310kスキル、AGENTS.md、CLAUDE.mdを含め、AIエージェントのための明確な指示の書き方を説明し、エージェントが予測可能に動くようにします。
bengali-nlp
280kエージェントがベンガル語のテキストを処理できるようにします。テキストの正規化など、ベンガル語特有の性質に対応しながら、言語を理解して扱えるようにします。