Working with Claude Code

The repository is set up for Claude Code: it carries the project's conventions in the form an AI agent reads, so that what the agent writes follows the same architecture, naming and tests as the rest of the code. All of it is in the repository — CLAUDE.md at the root and the .claude/ folder — and versioned with the code it describes.

What the repository gives Claude Code

PieceWhereWhat it is
Project instructionsCLAUDE.mdThe architecture, the build and test commands, the conventions — loaded at the start of every session
Rules.claude/rules/Conventions loaded only when a matching file is touched
Skills.claude/skills/Step-by-step guides for recurring tasks
Agents.claude/agents/Specialised sub-agents for planning, implementing, testing and reviewing
Permissions.claude/settings.jsonThe commands allowed without asking, and those denied

Rules, by path

RuleLoaded for
domain.mdBlouppy.*.Models and the SharedKernel
web-api.mdback/Blouppy.Web/
testing.mdThe test projects
angular.mdfront/application/src/

Skills

Most skills are used by Claude on its own when the task matches:

SkillFor
ddd-feature-implementationThe order in which a feature crosses the layers
adding-ef-core-entityAn entity, its configuration, its repository and its migration
adding-application-serviceA service interface, its implementation, its validation and registration
writing-validatorsFluentValidation, including asynchronous rules
adding-messaging-consumerReacting to, or publishing, an integration event
adding-infrastructure-adapterA new external system behind a port
adding-angular-feature, adding-angular-componentA feature page, a reusable component
writing-testsNaming, structure, data and assertions
git-workflowBranch names, commit messages, pull requests

Five are commands you invoke yourself:

CommandDoes
/plan-ddd-featurePlans a feature across every layer before any code
/plan-testsLists the test cases for a class or method before writing them
/review-backendReviews domain, module and infrastructure changes
/review-frontendReviews Angular changes
/fix-ciInvestigates and fixes a failing build or test

Agents

backend-developer, angular-developer, tester and fixer implement; plan-ddd-feature, plan-tests and plan-fix plan; backend-reviewer and angular-reviewer review. Claude delegates to them when a task matches their description.

A workflow

  1. Plan./plan-ddd-feature with a description of the feature: it names the projects, types, endpoints, routes and tests the feature needs, layer by layer. Correct the plan before anything is written.
  2. Implement. Ask Claude to implement the plan. The skills keep it on the Starter's patterns — internal sealed services, ValidationResult<T>, a repository that never commits, a controller that does.
  3. Test./plan-tests on the new service, then let the tester agent write them.
  4. Review./review-backend and /review-frontend on the diff.
  5. Check.dotnet build back/ (warnings are errors), dotnet test back/, and for the front end npm run lint, npm test and npm run build && npm run gallery — then look at the gallery yourself.

The tutorial is the same path, written for a person: reading it once makes it easier to review what an agent produces.

Keeping it true

CLAUDE.md and the skills describe the code; they do not enforce it. The architecture tests do. When you change a convention — a new module, a renamed folder, a rule relaxed — update CLAUDE.md and the skill that teaches it in the same pull request, or the next session will follow the old one.