What You Get
Four Cursor Skills that teach the AI agent how to use the CodeAnt CLI:Prerequisites
- Cursor 2.4 or later - the new Skills system requires this minimum version (download)
- CodeAnt CLI installed and authenticated - follow the CLI setup guide
Installation
Option 1: Clone from Skills Repo (Recommended)
Run these commands from your project root:Option 2: Create Manually
Create the skill files under.cursor/skills/ - see the full skill content in the skills repository.
Each skill is a SKILL.md file inside its own directory:
Migrating from the legacy .mdc rule?
Migrating from the legacy .mdc rule?
If you previously installed the
.mdc rule file to .cursor/rules/codeant.mdc, you can migrate to the new Skills format:- Install the new skills using the instructions above
- Delete the old rule file:
rm .cursor/rules/codeant.mdc - Restart Cursor
Usage
/codeant-resolve-pr-comments - Resolve PR Review Comments
Fetch all unresolved CodeAnt AI review comments on a pull request and fix them.
With a PR number:
- Find the PR - detects from current branch or uses the provided PR number
- Fetch comments - runs
codeant pr comments --pr-number <N> --codeant-generated trueand filters to unresolved comments - Categorize - separates inline code comments (actionable) from general PR-level comments (informational, skipped)
- Analyze and assign verdicts - for each comment:
- Reads the file with 30 lines of surrounding context
- Checks the code still matches what the comment describes
- Extracts code suggestions from the comment body
- Validates syntax, variable scope, imports, and that existing logic is not broken
- Assigns a verdict: ACCEPT, LIKELY ACCEPT, DO NOT ACCEPT, or STALE
- Present summary - shows all comments grouped by verdict with before/after code diffs
- Apply safe fixes - applies ACCEPT fixes, asks about LIKELY ACCEPT, skips DO NOT ACCEPT and STALE
- Resolve threads - marks applied comments as resolved on the PR via
codeant pr resolve - Offer to commit - lists changed files and offers to commit and push
/codeant-resolve-quality-gates - Fix CI/CD Quality Gate Failures
Locate the CodeAnt Quality Gate comment posted by CI on the current branch’s PR and fix the listed findings.
With a PR number:
- Find the PR - detects from current branch or uses the provided PR number
- Locate the comment - fetches CodeAnt comments and picks the most recent one whose body starts with
CodeAnt Quality Gate Results - Parse failures - extracts the list of failed gates from the summary table and the per-finding rows from the
View Failure Resultblock (SAST, Secrets, Duplicate Code) - Analyze and assign verdicts - for each finding:
- Reads the file at the indicated line with 30 lines of context
- Drafts a minimal fix (the comment contains no inline suggestion - the skill designs the fix from the rule / type / window)
- Validates syntax, scope, error handling, and that existing behavior is preserved
- Assigns a verdict: ACCEPT, LIKELY ACCEPT, DO NOT ACCEPT, or STALE
- Present summary - groups findings by verdict and gate type, shows before/after diffs
- Apply safe fixes - ACCEPT automatically, LIKELY ACCEPT with confirmation, skip the rest
- Offer to commit - pushing the fix commit re-triggers CI, which updates the quality gate comment
Changes are not committed automatically - you review the diffs and decide.
/codeant-review - Review and Fix Local Changes
Run a CodeAnt AI code review on your local changes and fix all issues found.
The fix flow:
- Run review - executes
codeant review <scope-flag> - Present findings - shows issues grouped by file with category labels (Security, Code Quality, Performance, Maintainability)
- Analyze and assign verdicts - classifies each issue as ACCEPT, LIKELY ACCEPT, DO NOT ACCEPT, or STALE
- Present summary with verdicts - shows before/after code diffs, highlights Security issues first
- Apply safe fixes - minimal changes only, skips anything that could break existing logic
- Verify - re-runs the review to confirm fixes are clean
- Report - initial findings, fixes applied, fixes skipped (and why), and verification results
/codeant-implement-repo-learnings - Generate Custom Review Rules
Analyze your team’s PR review history to generate custom CodeAnt review rules.
- Fetch PR history - retrieves the last 100 merged PRs
- Extract human feedback - fetches review comments, filters out bots and non-actionable replies
- Analyze bug-fix commits - mines git history for recurring fix patterns
- Read project guidelines - extracts conventions from
.cursorrules,CLAUDE.md,CONTRIBUTING.md, etc. - Cluster patterns - groups feedback into rule candidates with confidence levels (HIGH/MEDIUM)
- Interactive confirmation - presents each rule with evidence for your approval
- Write rules - generates
.codeant/review.jsonwith your approved rules
.codeant/review.json - nothing is overwritten without confirmation.
Verdict System
All fix workflows use a verdict system to classify each suggestion before applying:Example Workflows
Resolve PR Comments
Review → Fix → Ship
How It Works
Each skill is aSKILL.md file inside .cursor/skills/ - part of Cursor’s Agent Skills system. Skills teach the Cursor agent specialized workflows through detailed step-by-step instructions.
Skills are automatically discovered by Cursor and can be invoked via /skill-name slash commands or triggered automatically when the agent determines they’re relevant. You can also reference them naturally in conversation (e.g., “review my changes with CodeAnt”).
Troubleshooting
“codeant: command not found” Ensure the CLI is installed globally and accessible from Cursor’s terminal:- Verify
.cursor/skills/codeant-review/SKILL.mdexists (and similar for other skills) - Restart Cursor after adding skills
- Check Settings → Rules to see if skills appear under “Agent Decides”
- Be explicit: “Use CodeAnt to review my changes” or use
/codeant-review