Pre review

From LedgerHQ/ledger-live · View interactive version

Pre review is an AI agent skill from the GitHub repository LedgerHQ/ledger-live. Deep code review before opening a pull request. Use when running /pre-review on local changes.

How to use this skill

Skill file

Pre-Review

Deep code review before you open a PR.

Process

  1. Choose the review range. Default: git diff develop...HEAD. If the user names another range (for example HEAD~1..HEAD), use that instead. All prompts in step 2 must review this exact diff, not a different ref pair.
  1. Launch 5 code-reviewer agents in parallel, each with a different focus:

Each agent prompt: _"Review the diff from step 1 (the same range). Focus on [FOCUS]. Return findings with file:line, severity (🔴 Critical / 🟡 Suggestion / 🟢 Nice to have), and suggested fix."_

  1. Merge + deduplicate findings. Present grouped by severity:

```

🔴 Critical — path/to/file.ts:42 — issue → fix

🟡 Suggestion — ...

🟢 Nice to have — ...

Summary: X critical, Y suggestions, Z nice-to-haves

```

  1. Ask the user which items to fix: "all criticals", "all", "#1,#2, #3", or "skip" → /create-pr
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.