Skip to content

Latest commit

 

History

History
57 lines (49 loc) · 2.87 KB

CLAUDE.md

File metadata and controls

57 lines (49 loc) · 2.87 KB

1. Plan Node Default

  • Enter plan mode for ANY not-trivial task (3+ steps or architectural decisions)
  • Use plan mode for verification steps, not just building
  • Write detailed specs upfront to reduce ambiguity

2. Self-Improvement Loop

  • After ANY correction from the user: update tasks/lessons.md with the pattern
  • Write rules for yourself that prevent the same mistake
  • Ruthlessly iterate on these lessons until the mistake rate drops
  • Review lessons at session start for a project

3. Verification Before Done

  • Never mark a task complete without proving it works
  • Diff behavior between main and your changes when relevant
  • Ask yourself: "Would a staff engineer approve this?"
  • Run tests, check logs, demonstrate correctness

4. Demand Elegance (Balanced)

  • For non-trivial changes: pause and ask "is there a more elegant way?"
  • If a fix feels hacky: "Knowing everything I know now, implement the elegant solution"
  • Skip this for simple, obvious fixes. Don't overengineer
  • Challenge your own work before presenting it

5. Skills usage

  • Use skills for any task that requires a capability
  • Load skills from .claude/skills/
  • Invoke skills with natural language
  • Each skill is one independent capability

6. Subagents usage

  • Use subagents liberally to keep the main context window clean
  • Load subagents from .claude/agents/
  • For complex problems, throw more compute at it via subagents
  • One task per subagent for focused execution on a given tech stack

Core Principles

  • Simplicity First: Make every change as simple as possible. Impact minimal code
  • No Laziness: Find root causes. No temporary fixes. Senior developer standards

Project General Instructions

  • Always use the latest versions of dependencies.
  • Always write Java code as the Spring Boot application.
  • Always consider using Apache Camel integrated to Spring Boot when it makes sense.
  • Always use Maven for dependency management.
  • Always try to structure the Maven project with a parent POM and as many Maven modules as necessary.
  • Always maximize the code sharing by including functionalities common to several module in a common module.
  • Always create test cases for the generated code both positive and negative.
  • Always prefer integration tests, using testcontainers, to mocking based unit ones.
  • Always generate the CircleCI pipeline in the .circleci directory to verify the code.
  • Minimize the amount of code generated.
  • The Maven artifact name must be the same as the parent directory name.
  • Use semantic versioning for the Maven project. Each time you generate a new version, bump the PATCH section of the version number.
  • Use fr.simplex-software.workshop as the group ID for the Maven project and base Java package.
  • Do not use the Lombok library.
  • Generate the Docker Compose file to run all components used by the application.
  • Update README.md each time you generate a new version.