claude-code-best-practice
チュートリアルshanraisshan/claude-code-best-practice
Claude Code のベストプラクティスと使用ガイド。
概要
Claude Code のエージェント、コマンド、スキル、ワークフロー、メモリ、MCP サーバーなどのベストプラクティスと実装例を含み、開発者が初心者からエキスパートへと習得するのを支援します。
README プレビュー
# claude-code-best-practice\nfrom vibe coding to agentic engineering - practice makes claude perfect\n\n \n\n[](best-practice/) [](implementation/) [](orchestration-workflow/orchestration-workflow.md) [](https://code.claude.com/docs) [](#-tips-and-tricks) [](#-subscribe) \n = Agents · = Commands · = Skills\n\n\n \n \n\n\n\n \n\n\n\n \n Boris Cherny on X (tweet 1 · tweet 2 · tweet 3)\n\n\n> [!TIP]\n> Visit the [**How to Use**](#how-to-use) section to take full advantage of this repo.\n\n## 🧠 CONCEPTS\n\n| Feature | Location | Description |\n|---------|----------|-------------|\n| [**Subagents**](https://code.claude.com/docs/en/sub-agents) | `.claude/agents/.md` | [](best-practice/claude-subagents.md) [](implementation/claude-subagents-implementation.md) |\n| [**Commands**](https://code.claude.com/docs/en/slash-commands) | `.claude/commands/.md` | [](best-practice/claude-commands.md) [](implementation/claude-commands-implementation.md) |\n| [**Skills**](https://code.claude.com/docs/en/skills) | `.claude/skills//SKILL.md` | [](best-practice/claude-skills.md) [](implementation/claude-skills-implementation.md) [Official Skills](https://github.com/anthropics/skills/tree/main/skills) · [Skills for Mono-repos](reports/claude-skills-for-larger-mono-repos.md) |\n| [**Workflows**](https://code.claude.com/docs/en/common-workflows) | [`.claude/commands/weather-orchestrator.md`](.claude/commands/weather-orchestrator.md) | [](orchestration-workflow/orchestration-workflow.md) |\n| [**Hooks**](https://code.claude.com/docs/en/hooks) | `.claude/hooks/` | [](https://github.com/shanraisshan/claude-code-hooks) [](https://github.com/shanraisshan/claude-code-hooks) [Guide](https://code.claude.com/docs/en/hooks-guide) |\n| [**MCP Servers**](https://code.claude.com/docs/en/mcp) | `.claude/settings.json`, `.mcp.json` | [](best-practice/claude-mcp.md) [](.mcp.json) |\n| [**Plugins**](https://code.claude.com/docs/en/plugins) | distributable packages | [Marketp
FAQ (1)
トラブル対応Windowsでwinsound.PlaySoundを使用すると、フック音が途中で切れたり、最後まで再生されないのはなぜですか?
トラブル対応
Windowsでwinsound.PlaySoundを使用すると、フック音が途中で切れたり、最後まで再生されないのはなぜですか?Windows の winsound.PlaySound 呼び出しに winsound.SND_SYNC が指定されていないため、再生がデフォルトで非同期になっています。スクリプトはその直後に終了するため、再生が完了する前に中断されてしまいます。.claude/hooks/scripts/hooks.py(および存在する場合は同等の .codex フックスクリプト)の呼び出しに SND_SYNC を追加して修正してください:
winsound.PlaySound(
str(file_path),
winsound.SND_FILENAME | winsound.SND_NODEFAULT | winsound.SND_SYNC
)
これにより再生が同期方式になり、スクリプトが終了する前にサウンドが最後まで再生されるようになります。