使い方
- インストールコマンドをコピーし、自分の環境へ導入する前にソースを確認します。
- 必要なツール、認証情報、対応環境を原文で確認します。
- 入力と成果物を指定し、出力を資料と照合します。
npx skills add https://github.com/bostonaholic/skills --skill writing-system-prompts開始前の確認
- 導入にはモデル契約、API枠、ファイルへのアクセス許可は含まれません。
- スター数や導入数は活動の指標であり、独立した品質・安全性試験ではありません。
見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。
System Prompt Engineering
Structure beats cleverness. Concrete examples beat abstract instructions.
A system prompt is a contract with the model. Every line must change its behavior in a way someone could test; cut the rest, including anything the model or its harness already does by default.
Section order
Follow this order and skip sections that don't apply. Read section guidance for each section's rules and good and bad examples.
1. Identity and role
2. Mission and stop criteria
3. Communication style
4. Core workflow
5. Tool usage rules
6. Domain-specific rules
7. Safety and constraints
8. Edge cases and error handling
9. Examples
10. Runtime context (injected at run time)What a good prompt has
- A specific role, not "AI assistant".
- Explicit completion criteria: when to stop, and when to ask instead.
- Response length capped with a number ("fewer than 4 lines"), never an
adjective ("be concise").
- A retry limit with an escalation path for agents.
- Constraints on security-critical and destructive actions, each with its
reason, stated once.
- 3-10 concrete examples showing length and tone, tool-call decisions, and edge
cases, with at least one bad-to-good pair. Examples are the highest-return part of the prompt.
- A runtime context section for values that change per session.
Write
Infer what the conversation and supplied files already answer. Ask only the rest, in one message, and wait: what the AI does, who its user is, which tools it has, what "done" looks like, what must never happen, and the expected output format. Deliver the prompt in a fenced block, followed by one line per assumption you made.
Review
Map the prompt to the section order, noting missing and misplaced sections. Flag each review anti-pattern present. Then revise. Unless the user asked for another format, report:
## Findings
| Section | Issue | Fix |
| ------- | ----- | --- |
## Revised prompt
<the full revised prompt>





