本文へスキップ
Skillpedia
エージェント41k · #6559

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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/v4-best-practices/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル