Leo Pre PR — Git skill for Claude Code
Pre-PR hygiene gate — the repo's typecheck, lint and dead-code commands; report-only.
How to install Leo Pre PR
Installs to ~/.claude/skills/leobo96-leo-agent-harness-leo-pre-pr/SKILL.md
mkdir -p ~/.claude/skills/leobo96-leo-agent-harness-leo-pre-pr && curl -fsSL https://raw.githubusercontent.com/leobo96/leo-agent-harness/HEAD/commands/leo-pre-pr.md -o ~/.claude/skills/leobo96-leo-agent-harness-leo-pre-pr/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Leo Pre PR does
description: Pre-PR hygiene gate — the repo's typecheck, lint and dead-code commands; report-only disable-model-invocation: true
Report-only: fix nothing. Work from the repo root of the current worktree (`pwd` first; use absolute paths).
Run each command bare, in the foreground, with a long timeout, one at a time — never through a pipe or a trailing `echo` (a masked exit code reads as a false green). Read the Bash tool's own exit report:
- The repo's Typecheck command (Orchestrator k
Alternatives in Git
- Triage Open Pull Requests — Review, label, and act on all open PRs for a repository using parallel review agents 10.8k ★
- Brooks Review — Run a Brooks-Lint PR code review 1.5k ★
- Impact Report — Comprehensive impact report combining git and Linear analysis 512 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
PR Ready
Verify the branch is ready to open a PR — typecheck, tests, lint, diff summary, commit message suggestion
Team Hygiene
Consolidate the team knowledge base — detect duplicates, conflicts, stale facts, and dead scopes in docs/team/
Leo PR Body Check
Lint a PR body (number or file path) before create/edit — parent tracker issue keys, attribution, base, draft
Install Lint Stack
Bootstrap industry-leading lint+autofix+commit-hygiene stack on the current project. Drops in lefthook, oxlint
Worktree Hygiene
Report the state of every git branch and worktree in a repo (unpushed, unmerged, stale, merged) and clean up o
Harden Credentials
Scan for leaked secrets, set up pre-commit hooks, and harden credential hygiene
Related Agents
Frontend Gate
Very senior frontend engineer who gates a code diff BEFORE it lands on develop. Reviews the changed UI for the
Sp Reviewer
Use as a pre-push guardrail before committing or pushing. Runs lint, build, tests and a secret scan, reviews t
Project Auditor
Read-only health audit of the VibeFrame monorepo. Use for a periodic project review — structure, CLI/doc drift