Summary

Ado Kukic’s 31-day Claude Code advent calendar compiled into a comprehensive guide, reorganized from beginner essentials to advanced agent patterns. Covers /init, custom memory, extended thinking, multi-agent orchestration, MCP integration, CLAUDE.md management, slash commands, and headless/daemon modes. The most complete community guide to Claude Code’s breadth of features.

Ado Kukic 的 31 天 Claude Code 降臨日曆整理成綜合指南,從新手基礎到高級代理模式重新組織。涵蓋 /init、自定義記憶、擴展思考、多代理協作、MCP 整合、CLAUDE.md 管理、斜杠命令和無頭/後台模式。

Key Points

  • /init as first step: generates CLAUDE.md with build commands, key directories, conventions — the foundation for all subsequent sessions. For larger projects, .claude/rules/*.md files allow path-scoped conditional rules
  • Memory management: CLAUDE.md is no longer updated via # prefix (removed in 2.0.70) — tell Claude directly to update it
  • Extended Thinking: slash command + --- separator for deep reasoning tasks — trades speed for quality; best for architectural decisions or complex debugging
  • Multi-agent via Parallel: split independent tasks across multiple terminal windows, each with its own context window — avoids polluting primary context with parallel workstreams
  • MCP integration: Claude Code can act as both MCP client (using MCP servers) and server (exposing Claude as an MCP endpoint) — enables deep tool integrations
  • Headless mode (--print, --continue, --resume): enables scripting Claude Code in pipelines, cron jobs, or automation workflows without interactive session
  • Daemon mode: long-running background Claude Code processes — for tasks like monitoring, auto-formatting, continuous testing

Insights

The most powerful but underused feature combination is headless mode + MCP + git hooks: Claude Code as an automated code review agent that runs before commits. /init + .claude/rules/ for path-scoped rules is how larger teams can give Claude context without a single monolithic CLAUDE.md growing unwieldy.

Connections

Raw Excerpt

For larger projects, you can create a .claude/rules/ directory for modular, topic-specific instructions. Each .md file is automatically loaded as project memory alongside your CLAUDE.md. You can even use YAML frontmatter to apply rules conditionally based on file paths.