AIFCC
記事一覧へ
Claude Codeclaude-setupclaude-workflowagent-ops

514記事から厳選したClaude Code実践15選——トークンコストと失敗率を激減させる

10
# 514記事から厳選したClaude Code実践15選 🇯🇵 日本語全文はAIFCCブログにあります: 👉 aifcc.jp/blog/claude-code-essentials-15 ここ数ヶ月で514本のAI・Claude Code記事を読みました。166の再現可能なプラクティスに蒸留し、次の3条件をすべて満たす15選を選びました。 - **検証済み、または広く再現されている** — 意見ではなく事実 - **普遍的** — どのプロジェクトでも機能する - **直接的・測定可能な効果がある** — トークン・時間・失敗率に対して 検索可能なフルライブラリはhttps://sift.aifcc.jp(166プラクティス、9カテゴリ)にあります。生の記事フィードはhttps://aifcc.jp/blog です。 コンパニオンリポジトリ(以下の2分インストール用スニペット): https://github.com/5dmgmt/claude-code-essentials ## 良いニュース:インストールが必要なのは2ファイルだけ 15プラクティスのうち、変更が必要なファイルは2つだけです。残り13は一度読んで内面化するもの——ファイルも設定も不要です。 ## 一覧マップ ### 🔧 インストール(2ファイル変更、コピペ、100%元に戻せる) | # | 内容 | ファイル | 効果 | |---|------|----------|------| | 1 | .env保護hook | `~/.claude/settings.json` | .env漏洩を機械的に防止 | | 4 + 5 + 7 | 簡潔なトーン + トークン節約 + コンテキスト管理ルール | `~/.claude/CLAUDE.md` | 出力トークンを約75%削減。ヘビーユーザーで年間約$5,800節約 | 既存の`~/CLAUDE.md`またはプロジェクトの`CLAUDE.md`がある場合は、プラクティス02(2スコープの`.claude/`)が移行・重複排除の助けになります。Claude Codeがインタラクティブに処理します——手動コピペ不要。 ### 📖 読んで吸収する(13プラクティス) | # | プラクティス | 一言での効果 | |---|--------------|------------| | 2 | 2スコープの`.claude/`フォルダ | すべてを1つのCLAUDE.mdに詰め込むのをやめる。プロジェクトとユーザースコープを分離。 | | 3 | Autoモード + `/fewer-permission-prompts` | 「Bashを毎回承認」ダンスを終わらせる。並列Claudeセッションが現実的に。 | | 6 | `/go`で検証 | 長時間タスクが戻った時に実際に動いている。「終わったように見えたが壊れていた」をなくす。 | | 7 | コンテキスト管理5つの方法 | 300Kトークン超での精度崩壊を防止。5つのツールのどれを使うかを正確に把握。 | | 8 | Git worktrees | エージェント間のアイドル時間ゼロ。同じリポジトリ、複数ブランチ、並列実行。 | | 9 | `/loop`と`/schedule` | 繰り返しタスクが自分で動く。ターミナルの子守不要。 | | 10 | コンテキスト設計 > リトライ | リトライループを抜け出す一発成功。本番例: 37秒→7.5秒。 | | 11 | 規律としてのプロンプトキャッシュ | キャッシュヒット率92% = 桁違いのコスト削減。フラグではなく設計パターン。 | | 12 | プロンプト→プロジェクト→スキルの3層複利 | 使えば使うほどAIが鋭くなる——毎セッションリセットではなく複利蓄積。 | | 13 | Sludge-zero設計 | 肥大化したCLAUDE.mdが課す見えない20%推論コストを削減。 | | 14 | LLMをスパーリングパートナーとして使う | LLMの出力を鵜呑みにするのをやめる。リリース前に弱点を炙り出す。 | | 15 | Claude Codeインシデントプレイブック7つ | 実際のユーザーを吹き飛ばした7つの失敗モードを、自分に降りかかる前に防ぐ。 | ## Claude Code自身で適用する 記事を全部読んで手でコピペしないでください。Claude CodeにこのURLを渡して、進め方をウォークスルーさせましょう。 ``` ultrathink で https://github.com/5dmgmt/claude-code-essentials を読んで、 INSTRUCTIONS.md に従って 15 プラクティスを私のプロジェクトに 1つずつ確認しながら適用してください。 ``` なぜ`ultrathink`? 15プラクティスの適用可否は環境依存の判断が多い(既存CLAUDE.mdの有無・symlink配置・重複するルール・プロジェクト固有の例外)。深く推論させることで見落としや誤った一括適用を防げます。 Claude Codeは以下を実行します。 1. `INSTRUCTIONS.md`を読んで安全な進め方を把握する 2. 現在の`~/.claude/`の状態を確認する(非破壊的) 3. 15プラクティスそれぞれについて: - 効果を一言でまとめる - プロジェクトに適用すべきか確認する(トレードオフとともに) - 書き込む前にdiffを見せる - 承認後にのみ適用する - 検証までウォークスルーする 4. 最終サマリーを報告する(適用済み / スキップ / 調整済み) 変更前にバックアップが取られます。プラクティスはいつでもスキップしたり、一つのプロンプト(「最後のプラクティスをロールバックして」)で取り消せます。 これは特にClaude Codeに初めて触れる方にとって、プラクティスを採用する最も安全な方法です。適用なしで概要だけ知りたい場合は、以下を読み続けてください。 ## 15の詳細 ### 1. 決定論的制御のためのHooks **得られるもの**: 労力ゼロのシークレット保護。ポリシー適用が機械的になり、「Claudeが覚えてくれることを祈る」から解放される。 Claudeがルールを「覚える」ことを期待するのをやめましょう。`~/.claude/settings.json`のライフサイクルイベント(SessionStart, PreToolUse, PermissionRequest, Stop)にルールを紐付けます。決定論的 > 確率論的、これがポリシー適用の鉄則です。 上記のインストールで`.env`ブロックが追加されます。他のポリシー(破壊的コマンド・ファイル命名ルール・監査ログ)にも追加hookを設定できます。 ソース: @bcherny — https://x.com/bcherny/status/2038454336355999749 ### 2. 2スコープの`.claude/`フォルダ **得られるもの**: CLAUDE.mdの肥大化を防ぐ。プロジェクト間でルールをコピペしなくて済む。 プロジェクトコンテキストは`{repo}/.claude/`に、ユーザーの好みは`~/.claude/`に。ClaudeはRebuildを自動でマージします。 ``` ~/.claude/CLAUDE.md ← 普遍的ルール(上でペーストした場所) {project}/.claude/CLAUDE.md ← このコードベースのスタックと決定事項 {project}/.claude/skills/ ← プロジェクト固有のスキル ``` インストール不要——これはメンタルモデルです。すべてを1ファイルに詰め込まないことが大切です。 ソース: @akshay_pachaar — https://x.com/akshay_pachaar/status/2035341800739877091 ### 3. Autoモード + `/fewer-permission-prompts` **得られるもの**: 「Bashを毎回承認」ダンスを終わらせる。並列Claudeの実行が現実的になる。 Shift+TabでAutoモードを切り替えます。モデルベースの分類器がパーミッションを判断します。セッション後に`/fewer-permission-prompts`を実行——履歴をスキャンしてallowlistの候補を生成します。 ファイルインストール不要——ランタイムコマンドです。今すぐ試してみてください。 ソース: @bcherny — https://x.com/bcherny/status/2044847848035156457 ### 4. トークン無駄遣いの追跡——75%を取り戻す **得られるもの**: Claudeの請求の75%をコンテキスト再ロードで無駄にするのをやめる。実際のチームで月$500節約が確認済み。 Claudeのトークンコストの約75%はタスクではなく、コンテキスト再ロード・不要なファイル読み込み・重複した履歴です。5段階(加算式): 1. 単純タスクをHaikuにルーティング 2. `/compact`を積極的に使う(40%充填前) 3. プロンプトキャッシュを有効化(#11参照) 4. バルク作業にはBatch API 5. `claude --usage`でモニタリング 上記のインストールで基礎的な「ファイルを再読込しない」ルールが追加されます。他のレベルはランタイムの習慣です。 ソース: @meta_alchemist — https://x.com/meta_alchemist/status/2038919582111670415 ### 5. Caveman Claude——出力を75%圧縮 **得られるもの**: CLAUDE.mdに1段落追加するだけで出力トークンを75%削減。実績で年間$5,800節約。 1ターンあたり約180トークンから約45トークンに削減できます。変更は1つ:ナレーションを省いてプロセスではなく結果を報告するようClaudeに指示することです。 上記のインストールにこれが含まれています。プラクティス#5は最も目に見えて効果的——セッション1で気づきます。 ソース: @k1rallik — https://x.com/k1rallik/status/2043694049769455877 ### 6. `/go`——長時間タスクを検証する **得られるもの**: 戻った時に長時間タスクが実際に動いている。「完了したように見えたが壊れていた」をなくす。 どのプロンプトにも`/go`を追記します。Claudeは(1)bash/browser/computer-useでE2Eテストを実行 (2)`/simplify`を実行 (3)PRを開く。戻った時にコードが実際に動きます。 ランタイムコマンド——ファイルインストール不要。数時間かかるタスクを開始する時に使います。 ソース: @bcherny — https://x.com/bcherny/status/2044847848035156457 ### 7. コンテキスト管理——5つの方法 **得られるもの**: 300Kトークン超での精度崩壊を防ぐ。5つのツールのどれを使うべきかを正確に把握できる。 コンテキストロットは1Mウィンドウのモデルでも約300〜400kトークンから始まります。5つすべてをマスターしましょう。 | 場面 | 使うもの | |------|----------| | 続きから再開 | Continue | | 道を誤った | Rewind(Esc×2) | | 完全に新しいタスク | `/clear` | | 要約して続行 | `/compact` | | 独立したサブタスク | Subagent | ルール:新しいタスク = 新しいセッション。上記のインストールにCLAUDE.mdへの一行リマインダーが含まれています。 ソース: @ClaudeCode_love — https://x.com/ClaudeCode_love/status/2044672857998016940 ### 8. 並列エージェントのためのGit worktrees **得られるもの**: アイドル時間ゼロ。次のエージェントを始める前に一つが終わるのを待たなくて済む。 ```bash claude -w feature-a claude -w feature-b # 別ターミナルで ``` ランタイムコマンド——インストール不要。本当に独立した機能を並行して構築する時に使います。 ソース: @bcherny — https://x.com/bcherny/status/2038454336355999749 ### 9. 繰り返しタスクのための`/loop`と`/schedule` **得られるもの**: 繰り返しタスクが自分で動く。ステータス確認のためにターミナルを子守する必要がなくなる。 ```bash /loop 5m /check-prs # 5分ごと /schedule "0 9 * * *" /daily-report ``` `/loop`は最大1週間。デイリーリポ監査・PRの監視・デプロイ監視・ログポーリング。 ランタイムコマンド——インストール不要。 ソース: @bcherny — https://x.com/bcherny/status/2038454336355999749 ### 10. コンテキスト設計はリトライに勝る **得られるもの**: リトライの連鎖ではなく一発成功。本番例: 37秒→7.5秒。 臨床AIパイプラインがリトライのチューニングではなく、タスク分解とコンテキスト絞り込みにより37秒→7.5秒を達成しました。ヒューリスティック:2回以上リトライしているなら、コンテキストが間違っています——リトライではなく入力を修正してください。 メンタルモデル——インストール不要。エージェントを構築する時に適用してください。 ソース: @sullyai — https://x.com/sullyai/status/2044466240597459230 ### 11. 設計規律としてのプロンプトキャッシュ **得られるもの**: キャッシュヒット率92% = 桁違いのコスト削減。フラグではなく設計パターン。 Claudeはキャッシュヒット率92%を達成できます。「フラグを有効にする」だけではなく——プレフィックスが安定するようにシステムプロンプト・ツール定義・履歴を設計します。 チェックリスト: - システムプロンプトは定数(リクエストごとにテンプレート化しない) - ツール定義を決定論的に順序付け - 履歴は追加のみ、並べ替えない SDKユーザー向けのメンタルモデル——CLIユーザーはAnthropicが裏でキャッシュする際に自動的に恩恵を受けます。 ソース: @_avichawla — https://x.com/_avichawla/status/2044670188998803855 ### 12. 3層の複利:プロンプト→プロジェクト→スキル **得られるもの**: 使えば使うほどAIが鋭くなる——毎セッションリセットではなく複利蓄積。 知識を上位に移すことで効果が複利になります。 - **プロンプト** — 一度きり、セッション後に消える - **プロジェクト** — CLAUDE.mdレベル、プロジェクト内で永続 - **スキル** — 名前で呼び出せる手順 すべての繰り返しプロンプトパターンは潜在的なスキルです。昇格させましょう。 メンタルモデル+習慣——インストール不要。プロンプトのパターンに気づき始めましょう。 ソース: @kkawsb — https://x.com/kkawsb/status/2044610786560221674 ### 13. Sludge-zero:3つの設計ルール **得られるもの**: 肥大化したCLAUDE.mdが課す見えない20%推論コストを削減。 Roo Code / DeepAgent / HumanLayerのビルダーから: 1. **CLAUDE.mdは人間が書き、最小限に保つ** — LLMが生成したCLAUDE.mdは推論コストを約20%増加させる 2. **R.P.I.フレーム: Role / Problem / Intent** — モデルにスタッフエンジニアレベルの思考をさせる 3. **サブエージェント分離** — 独立したサブタスクはすべてサブエージェントに回し、メインコンテキストをクリーンに保つ CLAUDE.mdの書き方に関するメタルール——インストール不要。 ソース: @thealexker — https://x.com/thealexker/status/2045203785304232162 ### 14. LLMをスパーリングパートナーとして、真実の機械としてではなく **得られるもの**: LLMの出力を鵜呑みにするのをやめる。リリース前に弱点を炙り出す。 Karpathyの再フレーミング。LLMはどんな立場でも説得力を持って論じることができます——真実の機械ではありません。LLMで草案を書いてから、反論を求めましょう。弱点が浮かび上がります。 1. LLMで草案を書く 2. 「最も強い反論は何か?」と問う 3. 反論から新しい情報が出なくなるまで繰り返す 習慣——インストール不要。重要な決断をする時に使いましょう。 ソース: @karpathy — https://x.com/karpathy/status/2037921699824607591 ### 15. Claude Codeインシデントプレイブック——7つの失敗モード **得られるもの**: 実際のClaude Codeユーザーを吹き飛ばした7つのインシデントを、自分に降りかかる前に防ぐ。 実際の本番インシデント: | # | 失敗 | 防止策 | |---|------|--------| | 1 | .env漏洩 | .env*への書き込みをブロックするhook(上記インストールでカバー済み) | | 2 | 本番DBをDROP | Bash(psql:*)を拒否 + 読み取り専用DBユーザー | | 3 | APIキーの投稿 | キーパターンをスキャンするpre-commitフック | | 4 | WebFetchからのプロンプトインジェクション | Webコンテンツをサンドボックス化し、出力を信頼しない | | 5 | `rm -rf`の暴走 | Bash(rm:*)を拒否 + --interactiveリバインド | | 6 | .gitignore漏れ | コミット前に.gitignoreを強制するhook | | 7 | MCPクレデンシャルの窃取 | MCPリストを監査し、1Password CLIを優先する | 上記のインストールで#1はすでに対処されています。残りの6つはリスク許容度が下がるにつれて段階的に追加してください。 ソース: @yousukezan — https://x.com/yousukezan/status/2045018702782079271 ## 次のステップ この15個がすでに当然の前提になっている場合は、166プラクティスのフルライブラリを探索してください。新しいプラクティスはaifcc.jp/blogから毎日キュレーションされています。 16番目のプラクティスを見つけた場合は、X で @5dmgmt に連絡するか、リポジトリにIssueを開いてください。 ## 謝辞 この15プラクティスに蒸留された著作を書いた方々に心から感謝します: @bcherny @akshay_pachaar @meta_alchemist @k1rallik @ClaudeCode_love @sullyai @_avichawla @kkawsb @thealexker @karpathy @yousukezan 皆さんの投稿が原材料です。166の厳選プラクティスはhttps://sift.aifcc.jp に、デイリー記事フィードはhttps://aifcc.jp/blog にあります。 コピペ用スニペット: https://github.com/5dmgmt/claude-code-essentials 日本語版: AIFCCブログで全文を読む → aifcc.jp/blog/claude-code-essentials-15
原文を表示 / Show original
望月貴生|五次元経営®︎ @5dmgmt 15 Claude Code Practices That Actually Move the Needle 10 132 514記事から厳選した Claude Code 実践15選 🇯🇵 日本人の方へ — 本記事は英語ですが、日本語全文は AIFCC ブログにあります: 👉 aifcc.jp/blog/claude-code-essentials-15 I read 514 AI and Claude Code articles over the past months. Distilled them into 166 reproducible practices. Then picked the 15 that satisfy all three: Verified or widely replicated — not opinion Universal — works in any project Direct, measurable impact — tokens, time, or failure rate The full searchable library is at https://sift.aifcc.jp (166 practices, 9 categories). The raw article feed is https://aifcc.jp/blog. Companion repo (snippets for the 2-minute install below): https://github.com/5dmgmt/claude-code-essentials The good news: only 2 things to install Of the 15 practices, only 2 files need to be modified. The other 13 are things you read once and internalize — no files, no configuration. At-a-glance map 🔧 Install (2 files touched, copy-paste, 100% reversible) #WhatFileBenefit1.env protection hook~/.claude/settings.jsonMechanically prevents .env leaks4 + 5 + 7Terse tone + token discipline + context management rules~/.claude/CLAUDE.mdCuts output tokens ~75%. Saves a heavy user ~$5,800/year Existing ~/CLAUDE.md or project CLAUDE.md files? Practice 02 (two-scope .claude/) will help migrate & dedupe. Claude Code handles it interactively — no manual copy-paste. 📖 Read and absorb (13 practices) #PracticeBenefit in one line2Two-scope .claude/ folderStop cramming everything into one CLAUDE.md. Separate project vs. user scopes.3Auto mode + /fewer-permission-promptsEnd the "approve every bash" dance. Unlocks parallel Claude sessions.6/go for verificationLong-running tasks actually work when you come back.7Context management 5-wayStop accuracy collapse past 300K tokens. Know exactly which of 5 tools to use.8Git worktreesZero idle time between agents. Same repo, multiple branches, parallel.9/loop and /scheduleRecurring tasks run themselves. No babysitting terminals.10Context design > retriesOne-shot success instead of retry spirals. Production example: 37s → 7.5s.11Prompt caching as discipline92% cache-hit rate = order-of-magnitude cost cut. Design pattern, not a flag.12Prompt → Project → SkillAI gets sharper the more you use it — compounding, not reset.13Sludge-zero designCut the silent 20% inference tax that bloated CLAUDE.md files impose.14LLM as sparring partnerStop taking LLM output at face value. Surface weak points before shipping.157 Claude Code incidentsPrevent the 7 failure modes that actually blew up real users. Apply them with Claude Code itself Don't read the whole article and copy-paste by hand. Give Claude Code this URL and let it walk you through: ultrathink で https://github.com/5dmgmt/claude-code-essentials を読んで、 INSTRUCTIONS.md に従って 15 プラクティスを私のプロジェクトに 1つずつ確認しながら適用してください。 なぜ ultrathink? 15 プラクティスの適用可否は環境依存の判断が多い(既存 CLAUDE.md の有無・symlink 配置・重複するルール・プロジェクト固有の例外)。深く推論させることで見落としや誤った一括適用を防げます。 Claude Code will: Read INSTRUCTIONS.md to understand how to proceed safely Inspect your current ~/.claude/ state (non-destructive) For each of the 15 practices:Summarize the benefit in one line Ask if it applies to your project (with tradeoffs) Show you the diff before writing Apply only after your approval Walk you through verification Report a final summary (applied / skipped / adjusted) Backups are taken before any change. You can always skip a practice, or undo with a single prompt ("rollback the last practice"). This is the safest way to adopt these practices, especially if you're new to Claude Code. For a pure overview (without applying), keep reading below. The 15 in detail 1. Hooks for deterministic control What you gain: Zero-effort secret protection. Policy enforcement becomes mechanical, not "pray Claude remembers". Stop hoping Claude "remembers" a rule. Wire it to a lifecycle event (SessionStart, PreToolUse, PermissionRequest, Stop) via ~/.claude/settings.json. Deterministic > probabilistic for policy enforcement. The install above adds the .env block. You can add more hooks for other policies (destructive commands, file-naming rules, audit logging). Source: @bcherny — https://x.com/bcherny/status/2038454336355999749 · JP 2. The two-scope .claude/ folder What you gain: Stop CLAUDE.md bloat. Eliminate copy-paste of rules between projects. Project context in {repo}/.claude/, user preferences in ~/.claude/. Claude merges them automatically. ~/.claude/CLAUDE.md ← universal rules (this is where you pasted above) {project}/.claude/CLAUDE.md ← stack + decisions for this codebase {project}/.claude/skills/ ← project-specific skills No install needed — it's a mental model. Just don't put everything in one file. Source: @akshay_pachaar — https://x.com/akshay_pachaar/status/2035341800739877091 · JP 3. Auto mode + /fewer-permission-prompts What you gain: End the "approve every bash" dance. Parallel Claude runs become feasible. Press Shift+Tab to toggle Auto mode. A model-based classifier decides permissions. After a session, run /fewer-permission-prompts — it scans your history and generates an allowlist suggestion. No file install — these are runtime commands. Try it now. Source: @bcherny — https://x.com/bcherny/status/2044847848035156457 · JP 4. Token waste tracking — reclaim 75% What you gain: Stop burning 75% of your Claude bill on context reloading. Verified $500/month saved in a real team. ~75% of Claude token cost is not your task — it's context reloading, unnecessary file reads, and redundant history. Five levels (additive): Route simple tasks to Haiku /compact aggressively (before 40% fill) Enable prompt caching (see #11) Batch API for bulk work Monitor claude --usage The install above adds the foundational "don't re-read files" rule. The other levels are runtime habits. Source: @meta_alchemist — https://x.com/meta_alchemist/status/2038919582111670415 · JP 5. Caveman Claude — compress output 75% What you gain: Cut output tokens 75% with one paragraph in CLAUDE.md. $5,800/year saved in practice. Output tokens drop from ~180 to ~45 per turn with one change: telling Claude to skip narration and report results, not process. The install above includes this. Practice #5 is the most obviously effective — you'll notice it in session 1. Source: @k1rallik — https://x.com/k1rallik/status/2043694049769455877 · JP 6. /go — verify long-running tasks What you gain: Long-running tasks actually work when you come back. No more "looked done but broken". Append /go to any prompt. Claude (1) runs E2E tests via bash/browser/computer-use (2) runs /simplify (3) opens a PR. Your code actually works when you come back. Runtime command — no file install. Use when kicking off a multi-hour task. Source: @bcherny — https://x.com/bcherny/status/2044847848035156457 · JP 7. Context management — 5 ways What you gain: Stop accuracy collapse past 300K tokens. Know exactly which of the 5 tools to reach for. Context rot starts at ~300–400k tokens, even in 1M-window models. Master all five: WhenUseContinue where you wereContinueWrong pathRewind (Esc ×2)Totally new task/clearSummarize + keep going/compactIndependent subtaskSubagent Rule: new task = new session. The install above includes a one-line reminder in your CLAUDE.md. Source: @ClaudeCode_love — https://x.com/ClaudeCode_love/status/2044672857998016940 · JP 8. Git worktrees for parallel agents What you gain: Zero idle time. Stop waiting on one agent to finish before starting another. claude -w feature-a claude -w feature-b # in another terminal Runtime command — no install. Use when you have genuinely independent features to build. Source: @bcherny — https://x.com/bcherny/status/2038454336355999749 · JP 9. /loop and /schedule for recurring tasks What you gain: Recurring tasks run themselves. No more babysitting a terminal for status checks. /loop 5m /check-prs # every 5 minutes /schedule "0 9 * * *" /daily-report Up to 1 week for /loop. Daily repo audits, PR babysitting, deploy-watch, log polling. Runtime command — no install. Source: @bcherny — https://x.com/bcherny/status/2038454336355999749 · JP 10. Context design beats retries What you gain: One-shot success instead of retry death spirals. Production example: 37s → 7.5s. Clinical AI pipeline went from 37s → 7.5s by decomposing tasks and narrowing context, not by tuning retries. Heuristic: if you're retrying more than twice, your context is wrong — fix the input, not the retry. Mental model — no install. Apply when building agents. Source: @sullyai — https://x.com/sullyai/status/2044466240597459230 · JP 11. Prompt caching as a design discipline What you gain: 92% cache-hit rate = an order-of-magnitude cost cut. Not a flag — a design pattern. Claude can hit 92% cache-hit rate. Not "enable a flag" — design system prompt, tool defs, and history so prefixes are stable. Checklist: System prompt is a constant (not per-request templated) Tool definitions ordered deterministically History appended, never rearranged Mental model for SDK users — CLI users benefit automatically when Anthropic caches under the hood. Source: @_avichawla — https://x.com/_avichawla/status/2044670188998803855 · JP 12. The 3-layer compounding: Prompt → Project → Skill What you gain: AI gets sharper the more you use it — compounding, not reset every session. Effectiveness compounds when you move knowledge upward: Prompt — one-shot, gone after session Project — CLAUDE.md-level, persistent in-project Skill — callable procedure invoked by name Every recurring prompt pattern is a skill in disguise. Promote it. Mental model + habit — no install. Start noticing patterns in your prompts. Source: @kkawsb — https://x.com/kkawsb/status/2044610786560221674 · JP 13. Sludge-zero: 3 design rules What you gain: Cut the silent 20% inference tax that bloated CLAUDE.md files impose. From Roo Code / DeepAgent / HumanLayer builders: Keep CLAUDE.md human-written & minimal — LLM-generated CLAUDE.md raises inference cost ~20% R.P.I frame: Role / Problem / Intent — make the model think staff-engineer level Subagent separation — any independent subtask goes to a subagent, keep main context clean Meta-rule for how you write CLAUDE.md — no install. Source: @thealexker — https://x.com/thealexker/status/2045203785304232162 · JP 14. LLM as sparring partner, not truth machine What you gain: Stop taking LLM output at face value. Surface weak points before you ship them. Karpathy's reframe. LLMs can argue any position convincingly — they are not truth machines. Draft with LLM, then ask for counter-arguments. Weak points emerge. 1. Draft with LLM 2. Ask: "What's the strongest objection?" 3. Iterate until objections stop yielding new info Habit — no install. Use when making decisions that matter. Source: @karpathy — https://x.com/karpathy/status/2037921699824607591 · JP 15. The Claude Code incident playbook — 7 failure modes What you gain: Prevent the 7 incidents that have actually blown up Claude Code users — before they hit you. Real production incidents: #FailurePrevention1.env leakedHook blocking writes to .env* (covered by the install above)2Prod DB droppedBash(psql:*) deny + read-only DB user3API key postedpre-commit hook scanning for key patterns4Prompt injection from WebFetchsandbox web content, never trust output5rm -rf blastBash(rm:*) deny + --interactive rebind6.gitignore misshook enforcing .gitignore before commit7MCP credential siphoningaudit MCP list, prefer 1Password CLI The install above already addresses #1. The other 6 are incremental additions as your risk tolerance decreases. Source: @yousukezan — https://x.com/yousukezan/status/2045018702782079271 · JP What's next If these 15 are table stakes for you, explore the full 166-practice library. New practices originate at aifcc.jp/blog — curated daily. Found a 16th practice in your workflow? @5dmgmt on X, or open an issue in the repo. Acknowledgments Huge thanks to the authors whose work distilled into these 15 practices: @bcherny @akshay_pachaar @meta_alchemist @k1rallik @ClaudeCode_love @sullyai @_avichawla @kkawsb @thealexker @karpathy @yousukezan Your posts are the raw material. All 166 curated practices live at https://sift.aifcc.jp, the daily article feed at https://aifcc.jp/blog. Copy-paste snippets: https://github.com/5dmgmt/claude-code-essentials 日本語版: AIFCC ブログで全文読む → aifcc.jp/blog/claude-code-essentials-15 Curated by 望月貴生 / Takao Mochizuki at 五次元経営 (5dmgmt, Inc.) / AIFCC Built with Claude Code + Claude Opus 4.7 Want to publish your own Article? Upgrade to Premium 7:28 PM · Apr 21, 2026 · 132 Views 10 5

AIFCC — AI Fluent CxO Club

読み書きそろばん、AI。経営者が AI を自分で動かせるようになるコミュニティ。

514記事から厳選したClaude Code実践15選——トークンコストと失敗率を激減させる | AIFCC