使い方
- インストールコマンドをコピーし、自分の環境へ導入する前にソースを確認します。
- 必要なツール、認証情報、対応環境を原文で確認します。
- 入力と成果物を指定し、出力を資料と照合します。
npx skills add https://github.com/egorfedorov/claude-context-optimizer --skill sharpen-prompt開始前の確認
- 導入にはモデル契約、API枠、ファイルへのアクセス許可は含まれません。
- スター数や導入数は活動の指標であり、独立した品質・安全性試験ではありません。
リポジトリの原文
見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。
Sharpen a prompt
A precise prompt saves the back-and-forth, and the tokens, that a vague one costs. Rewrite the user's prompt so another assistant could do the task right on the first try.
Check what the prompt is missing
- Goal: what should exist or be true at the end.
- Context: who it's for, what it builds on, what was tried.
- Scope: exactly which files, sections, data or part of the problem. Name
them.
- Constraints: must keep, must avoid, length, tone, tools, deadline.
- Done looks like: how to tell it worked: tests pass, a sample output, a
checklist.
- Output format: a list, a table, a diff, a file, a one-paragraph answer.
Then
- If you can fill the gaps from the conversation, write the improved prompt in
a code block in the user's language. Keep it as short as the task allows, and list in one line what you added and why.
- If one gap is essential and unknowable, ask that one question instead of
guessing. Never ask more than one.
- Don't do the task itself unless the user asks you to.