Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Using Claude Code

Claude Code is an AI coding assistant that runs in your terminal. It reads your codebase, edits files, runs commands, and writes code. Artisan is set up so Claude Code understands the framework’s conventions, architecture, and APIs out of the box.


Install Claude Code

npm install -g @anthropic-ai/claude-code

Verify the installation:

claude --version

See the Claude Code docs for detailed installation instructions and requirements.


Start Claude Code in the repo

cd artisan
claude

When Claude Code starts, it reads CLAUDE.md at the repo root. This file teaches it about Artisan’s architecture, testing commands, code style, and Git conventions. You don’t need to explain the project from scratch each time — the context is built in.


Artisan skills

The repo ships with framework-specific skills (slash commands) that Claude Code auto-discovers from the skills/ directory at the repo root.

SkillDescription
/write-operationScaffold or review an OperationDefinition subclass
/write-compositeScaffold or review a CompositeDefinition subclass
/write-pipelineScaffold a pipeline script composing operations
/write-docsWrite or edit documentation pages, tutorials, and guides

What you can do

A few examples of real workflows:

Claude Code knows the pixi run commands, the test structure, and the formatting rules. It follows the same conventions a human contributor would.


Tips for effective use


What CLAUDE.md contains

CLAUDE.md is a project-level instruction file that Claude Code reads automatically. It contains environment setup, code style, testing commands, Git conventions, and an architecture overview. You can read it yourself at CLAUDE.md in the repo root — it’s the same instructions a new contributor would follow.

You can create a personal CLAUDE.local.md for your own preferences (editor settings, branch conventions, etc.). It’s auto-gitignored.


Cross-references