Claude Code
Claude Code is an agentic coding tool from Anthropic. When you run it in a project directory, it reads a CLAUDE.md file from the project root to understand the codebase, conventions, and APIs available.
Using CLAUDE.md with Your Project
The Tombatron.Turbo repository includes a CLAUDE.md file tailored for this library. To use it:
- Copy the
CLAUDE.mdfile from the Tombatron.Turbo repo into your own project root. - Run Claude Code in your project directory.
- Claude Code will automatically pick up the file and use it as context when answering questions or generating code.
What the CLAUDE.md Covers
The file gives Claude Code detailed knowledge of:
- Setup —
AddTurbo(),UseTurbo(),MapTurboHub(), tag helper registration, and<turbo-scripts /> - Turbo Frames — Frame tag helpers, lazy loading, dynamic IDs, and
HttpContextextensions - Turbo Streams — Real-time updates via SignalR, the
ITurbointerface, stream builder actions, and async partial rendering - Form Validation — HTTP 422 pattern for inline validation within frames
- Stimulus — Controller discovery, naming conventions, and hot reload
- Minimal API Support —
TurboResultsfactory methods and source-generated partial templates - Configuration — All
TurboOptionsproperties and authorization via signed stream names - Common Gotchas — Frequent mistakes and how to avoid them