Remove prompt parameter from claude-mention job so Claude runs in interactive mode and naturally receives @mention context. Move prek formatting instructions to CLAUDE.md where Claude reads them for any request.
1.3 KiB
1.3 KiB
Claude Code Instructions
@AGENTS.md
PR Review Guidelines
When reviewing PRs, follow these priorities:
CRITICAL - Always comment:
- Logic errors or bugs that will cause failures
- Security vulnerabilities
- Test method names with typos (won't be discovered by test runner)
- Breaking changes without migration path
SKIP - Don't comment on:
- Code style or formatting (we have linters for this)
- Suggestions for additional features or refactoring
- "Consider" or "might want to" suggestions
- Performance optimizations without profiling data
- Duplicate concerns (one comment per issue)
Process:
- Check if previous comments on same lines are now fixed - resolve those first
- Limit to 5-7 high-signal comments per review
- Group related issues into one comment when possible
- If many issues exist, use a summary comment instead of 20+ inline comments
Formatting & Linting (prek)
When asked to fix formatting, linting, or pre-commit issues (e.g., "fix prek", "fix formatting", "run pre-k"):
- Run
uv run prek run --all-filesto auto-fix formatting issues - If prek modifies files, stage them with
git add . - Commit with message:
fix: auto-format with prek - Push the changes with
git push - Comment on the PR confirming what was fixed
Do NOT just review the code - actually run prek and push the fixes!