Daniel Bergholz explains how to properly configure the CLAUDE.md file for optimal use with Claude Code, covering essential customizations, MCP tools, and development workflows
This video by Daniel Bergholz explains how to properly configure the CLAUDE.md file for optimal use with Claude Code, transforming it from a simple code generator into a full-blown development agent.
The video assumes you already have Claude Code installed and connected to your account. The first step is running the init
command in your project directory, which generates an initial CLAUDE.md file with a high-level overview of your codebase.
The most important addition to the default CLAUDE.md file is instructions for formatting and checking code after generation:
mix format
for Elixir, npm run format
for JavaScript)mix check
, TypeScript checking, linting)The default “commands” section listing available scripts is unnecessary since Claude can read these directly from configuration files like mix.exs
or package.json
.
For comprehensive testing capabilities, add MCP tools:
/xray/username
to auto-login as specific users)For a project using Elixir with React/Inertia:
mix format.all
(formats both Elixir and React code)mix check
(compilation checks, linting, code quality)This setup transforms Claude from a simple code generator into a full-blown development agent capable of writing, formatting, checking, and testing code autonomously.