v4-best-practices
できること
このスキルは、DeepSeek V4のモデルを使った、長い複数の手順からなる作業のための規則をAIに与えます。計画された作業をこれらのモデルで行い、誤りを減らしたい人向けです。
使う場面
- ✓複数のファイルを変える計画を実行するよう、エージェントに頼むとき。
- ✓コードを書く前に、ファイル名と関数を確認してほしいとき。
- ✓計画の出力が、コードの正確な場所を指すようにしたいとき。
スキルのリンク
https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/v4-best-practices/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“いくつかのファイルを変える前に、各ファイルのパスと関数が存在するか確認してから、計画を示してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、使う前にプロジェクトを検索して、各ファイルと関数が存在することを確認します。大きな計画では、前提を確かめるために、別の補助エージェントに検証を頼むこともできます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
V4 Best Practices
Rules for multi-step V4 thinking-mode workflows. Each rule prevents a specific, observable failure class.
1. Verify references before writing
Before referencing a file path, function, or type in code or plan output,
call grep_files or read_file to confirm it exists in the workspace.
# Bad: edit_file path="src/config/loader.rs" (assumed from memory)
# Good: grep_files pattern="pub fn load_config" → confirms src/config/mod.rs:42
# then reference src/config/mod.rs:42
Failure avoided: edit_file errors on non-existent paths; LSP diagnostics
on hallucinated symbols.
2. Spawn a verifier sub-agent before multi-file execution
Before executing a plan that touches 3+ files, spawn a deepseek-v4-flash
sub-agent (thinking off) to read the target files and confirm path/symbol
assumptions still hold.
agent type="verifier" model="deepseek-v4-flash"
prompt: "Read these files and confirm: [list assumptions]. Report mismatches."
Failure avoided: multi-step edits fail partway because file structure changed since the plan was drafted.
3. Plan output must use confirmed path:line references
In plan-mode output, replace vague location pointers with path:line
references drawn from a prior grep_files result.
# Bad: "Update the retry logic in the client module"
# Good: "Update retry loop at crates/engine/src/client.rs:187"
Failure avoided: agent-mode execution cannot locate the intended edit target when plan directions are imprecise.
よくある質問
どのAIモデルでも使えますか?
いいえ。スキルは、思考モードのDeepSeek V4 ProとFlashのモデル向けに書かれています。
なぜファイル名を先に確認するのですか?
スキルによると、パスや関数を記憶から推測すると編集が失敗するため、先に確認するよう求めています。
計画の手順はどんな形ですか?
スキルは、曖昧な説明ではなく、正確なファイルと行の参照を求めています。
詳細
作者による元の説明
Use when working with deepseek-v4-pro or deepseek-v4-flash in thinking mode on multi-step or plan-driven tasks. Provides rules to prevent stale references, unverified plan assumptions, and vague plan output.
repo: codewhale-hq/Codewhale
人気
- GitHubのスター
- 41k
- ランキング
- #6559
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
best-of-n
41k難しい問題に対して、独立した複数の答えを出し、同じ評価基準で採点し、チェックに合格したものだけを適用するのを、エージェントが助けます。
dataviz
41kデータに適したチャートやダッシュボードを選ぶのを、エージェントが助けます。ラベル、出典の注記、軸と欠損値の確認を含みます。
debug
41k問題を再現し、範囲を絞り込み、承認を得たときだけ修正することで、バグの本当の原因を見つけるのを、エージェントが助けます。推測はしません。
delegate
41k大きな作業を、同時に動く焦点の絞られた補助に分けつつ、計画、統合、最終確認を自分の手元に残す方法を教えます。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。