From d6c74424962432084b90adfd37e5d70533c08ba6 Mon Sep 17 00:00:00 2001 From: Nano Taboada Date: Tue, 24 Mar 2026 13:48:12 -0300 Subject: [PATCH] chore(claude): improve Claude Code integration - Add CLAUDE.md importing copilot-instructions.md with Claude Code section - Add .claude/settings.json with ./mvnw permissions - Add .claude/commands/precommit.md with full pre-commit checklist - Replace github.copilot-chat with anthropic.claude-code in extensions.json - Fix co-author in copilot-instructions.md to Claude Sonnet 4.6 - Add .claude/settings.local.json to .gitignore Co-authored-by: Claude Sonnet 4.6 --- .claude/commands/precommit.md | 7 +++++++ .claude/settings.json | 7 +++++++ .github/copilot-instructions.md | 2 +- .gitignore | 1 + .vscode/extensions.json | 2 +- CLAUDE.md | 7 +++++++ 6 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 .claude/commands/precommit.md create mode 100644 .claude/settings.json create mode 100644 CLAUDE.md diff --git a/.claude/commands/precommit.md b/.claude/commands/precommit.md new file mode 100644 index 0000000..7418773 --- /dev/null +++ b/.claude/commands/precommit.md @@ -0,0 +1,7 @@ +Run the pre-commit checklist for this project: + +1. Remind me to update `CHANGELOG.md` `[Unreleased]` section (Added / Changed / Fixed / Removed) — I must do this manually. +2. Run `./mvnw clean install` — must succeed with no compilation warnings and all tests passing. +3. Remind me to open `target/site/jacoco/index.html` to verify coverage after the build completes. + +Run step 2, report the results clearly, then propose a branch name and commit message for my approval using the format `type(scope): description (#issue)` (max 80 chars; types: `feat` `fix` `chore` `docs` `test` `refactor` `ci` `perf`). Do not create the branch or commit until I explicitly confirm. diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 0000000..9e21dcb --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,7 @@ +{ + "permissions": { + "allow": [ + "Bash(./mvnw *)" + ] + } +} diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index c4061e9..2583a32 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -120,5 +120,5 @@ Example: `feat(api): add player stats endpoint (#42)` ```text feat(scope): description (#issue) -Co-authored-by: Claude +Co-authored-by: Claude Sonnet 4.6 ``` diff --git a/.gitignore b/.gitignore index 82d968e..5d86ea8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ HELP.md +.claude/settings.local.json target/ !.mvn/wrapper/maven-wrapper.jar !**/src/main/**/target/ diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 7129bff..a4f7968 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -14,7 +14,7 @@ "vscjava.vscode-spring-initializr", // Spring Initializr - Generate Spring Boot projects // AI Assistance - "github.copilot-chat", // GitHub Copilot Chat - AI-powered coding assistant + "anthropic.claude-code", // Claude Code - AI-powered coding assistant "coderabbit.coderabbit-vscode", // CodeRabbit - AI-powered code review // Code Quality diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..7d3153d --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,7 @@ +# CLAUDE.md + +@.github/copilot-instructions.md + +## Claude Code + +- Run `/precommit` to execute the full pre-commit checklist for this project.