Course navigation

Set up skills

05 / Review intelligence

Set up skills

Skills are the instructions the AI follows. CodeCrab creates them for each repository from your actual code.

Open Settings → Skills by repository and select the repo under Active repository.

5.1 Review Profile — automatic

  • • Generated once the repo has a local path. It scans the codebase, CI and conventions and may take a few minutes.
  • • View Profile shows its rules. Evidence shows where each rule came from.
  • • Use Regenerate after major changes. CodeCrab warns when a profile is 30+ days old.

5.2 Master Review Agent — always on

The main reviewer runs on every review. Click View Skill File to read it. Nothing needs configuring.

5.3 CodeCrab review skills

Extra review passes are generated independently after the Review Profile is ready.

SkillDefaultUse it for
Repo-adapted peer reviewOnA second reviewer that knows your repo’s conventions.
Security reviewOffAuth, injection, secrets and data exposure.
Test completeness reviewOffMissing or weak tests for the change.

Enable skills with their checkbox. View skill shows an Overview of what it covers and ignores, and the full Source. Regenerate rebuilds one skill without touching the others.

5.4 Reuse your own skills

Already have review skills for Claude Code, Cursor, Codex or Copilot? They appear under Your own review skills. Tick a skill to run it on every review. Choose your Pre-push skills separately under Settings → Pre-push.

How discovery and review passes work

  • CodeCrab searches the skill folders in your local clone and your home folder. Uncommitted skills and skills in .gitignore count too. A skill that only exists on the PR’s branch is not listed.
  • Each selected skill runs as its own review pass with your active agent. Its findings are merged with the main review; a finding both catch is marked high confidence.
  • Claude Code runs skills from .claude/skills by name (/<name>). For any other folder, and for Cursor, Codex and Copilot, CodeCrab sends the skill’s SKILL.md text to the agent. Any skill works with any agent.
  • CodeCrab only reads these folders; it never writes to them. Each skill row shows its origin, such as .github/skills · Repo or ~/.copilot/skills · Personal.

Reuse skills across agents

The Review Profile, your skills and past reviews are shared between Claude Code, Cursor, Codex and Copilot. Switching the active agent reuses everything already generated; no profile rebuild is required just to switch.

Profile and skill generation uses a strong model even if you choose a lighter model for reviews. How the Profile & skills model is chosen →

Compatible folders

Each agent reads its own folders natively. CodeCrab reads all the folders below and can run their skills with any active agent, so keep a skill where your other tools expect it.

AgentIn the repositoryIn your home folder
Claude Code.claude/skills~/.claude/skills
Cursor.cursor/skills, .agents/skills; also .claude/skills and .codex/skills~/.cursor/skills, ~/.agents/skills; also ~/.claude/skills and ~/.codex/skills
Codex.agents/skills~/.agents/skills; older setups: ~/.codex/skills
GitHub Copilot.github/skills, .claude/skills, .agents/skills~/.copilot/skills, ~/.agents/skills

If the same skill name appears in several folders, CodeCrab shows it once. Repository folders win over home folders, in this order: .claude → .cursor → .agents → .github → .codex. Home folders follow the same order, then ~/.copilot. If you already selected a copy, that copy stays selected.

Sharing a repository across tools? Use .claude/skills for Claude Code, Cursor and Copilot, or .agents/skills for Cursor, Codex and Copilot.

Skill file format

Use one folder per skill, with a SKILL.md inside. This example places a team review skill in a Copilot-compatible repository folder:

Folder structure
.github/skills/
└── team-review/
    └── SKILL.md

Start the file with a short header. Use a lowercase-with-hyphens name matching the folder, and a description. The following is a starting point; append the full CodeCrab output contract below before using it for reviews.

SKILL.md · Starter
---
name: team-review
description: Read-only review of a teammate's pull request in this repo.
---

You are reviewing pull request $ARGUMENTS in this repository.

1. Read the changed files and the code around them.
2. Check the repository's conventions, correctness, security and tests.
3. Do not edit files or post comments.
4. Report actionable findings with file, line, problem and suggested fix.
5. Follow the CodeCrab output contract appended below.

$ARGUMENTS receives the PR number, or the branch name in Pre-push. Include “review” or “pull request” in the name or description so CodeCrab tags it as a review skill.

Create one with your agent

  1. Click Template prompt to create your local skill.
  2. Click Copy prompt.
  3. Open Claude Code, Cursor, Codex or Copilot inside your repository and paste the prompt. Let it create .claude/skills/review-peer-pr/SKILL.md. If you only use Codex, move the skill folder to .agents/skills/ afterwards; for Copilot, .github/skills/ also works.
  4. Reopen the Skills tab and tick the new skill.

CodeCrab output contract

SKILL.md · Output format
## Output format (CodeCrab contract — mandatory)

The final answer MUST use exactly this markdown shape. Keep the field labels in English. Do not
invent other section names (no "Critical Issues" or "Required Changes" headings).

```markdown
## Review Summary
**Verdict:** APPROVE | REQUEST CHANGES
**Overview:** 1-2 sentences.
**Stack context:** languages/frameworks/conventions inferred.

### Findings

#### Finding 1 — Critical|Required|Optional|Nit
- **File:** `path/to/file.ext`
- **Line:** 42
- **Axis:** Correctness | Readability | Architecture | Security | Performance
- **Problem:** Precise issue.
- **Why it matters:** Concrete merge risk.
- **Suggested fix:** Concrete change.
- **Detail ref:** codecrab_peer_review#1
- **Suggested PR comment:**
  ```
  <copy-paste review comment addressed to the author; not posted>
  ```
```

Order findings: Critical, Required, Optional, Nit. Renumber from 1.

Limits and missing skills

  • Skills larger than 256 KB are skipped.
  • Only the listed folders are searched. Nested folders such as apps/web/.cursor/skills are not listed.

If your skill does not appear, check these points before reopening the tab:

  1. Use a supported folder at the repository root or in your home folder, not a nested application directory.
  2. Check that the skill folder contains SKILL.md, its header name matches the folder, and its name or description includes “review” or “pull request”.
  3. Keep the file at or below 256 KB.
  4. Confirm it exists in the selected local clone or your home folder, not only on the PR’s branch. Check the origin shown if another copy has the same name.

5.5 Additional notes

Add context every review should know, such as “we’re migrating off Redux” or “ignore the legacy folder,” then click Save & sync.