Your team keeps leaving the same PR comments.
Rubric turns repeated PR feedback into repo rules that humans, coding agents, and CI can run before review.
npx --yes @rubric-dev/cli demoThe npm package is @rubric-dev/cli; it installs the rubric binary.
Team review memory for AI-assisted development.
It is not an AI code detector. It is not another linter. It is a way to keep your team's review standards from disappearing as more code is written by agents.
Team review memory usually lives in repeated comments:
- "API changes need tests."
- "Destructive migrations need rollback notes."
- "Please list verification commands."
- "This PR is too broad."
With AI coding agents, these repeated misses happen faster.
Rubric lets you turn those comments into rules, commit them to the repo, and share them with Claude, Codex, Copilot, Cursor, CI, and human authors.
Reviewer: "API changes need tests."
Reviewer: "Please document the rollback plan."
Reviewer: "What commands did you run?"
rubric check --base mainRubric catches repeated feedback before review and compiles the same rules into:
- AGENTS.md
- CLAUDE.md
- GitHub Copilot instructions
- Cursor rules
- PR templates
- GitHub Actions
rubric propose --from-text "API changes need tests" --write
rubric compile
rubric check --base mainThat flow drafts .rubric/rules/proposed.api-changes-need-tests.yaml,
publishes the rule into configured agent instructions, and checks the next diff
before review.
Rubric keeps review expectations in .rubric/rules so the same standards can
show up before review:
- A repeated review comment becomes a YAML rule.
rubric compilepublishes those rules into agent and PR instructions.rubric checkevaluates the current diff before review.- GitHub Action comment mode can deliver the same report as a sticky PR comment.
The sticky comment is delivery. The product is the review memory your team keeps in the repo.
Rubric demo
Sample PR: Fix billing retry behavior
Rules checked: 5
Findings: 3
[error] testing.required-for-api-change - API changes require tests
This PR changes API code but does not modify any test files.
Suggestion: Add or update tests covering the changed API behavior.
[warning] db.destructive-migration-warning - Destructive database migration
This migration appears to contain a potentially destructive database operation.
[warning] pr.too-broad - PR touches many directories
This PR changes files across many directories.
Try it in your repo:
- rubric doctor
- rubric init
- rubric compile
- rubric check --base main
- Pick a few recent PRs.
- Find the review comments your team keeps repeating.
- Convert the top rules into
.rubric/rules. - Run
rubric compileso agents and humans see the same standards. - Run
rubric checkbefore opening the next PR. - Review which rules fired in your next team retro.
npx @rubric-dev/cli doctor
npx @rubric-dev/cli init
npx @rubric-dev/cli compile
npx @rubric-dev/cli check --base mainAfter installation, use the rubric binary directly:
rubric demo
rubric doctor
rubric check --base mainImplemented:
| Command | What it does |
|---|---|
rubric demo |
Shows a zero-setup sample preflight report. |
rubric doctor |
Checks whether a repo is AI-agent ready. |
rubric init |
Creates starter Rubric config, rules, workflow, and PR template. |
rubric add-pack |
Adds built-in rule packs. |
rubric propose |
Drafts a rule from repeated review feedback text. |
rubric compile |
Generates agent instruction files and PR template blocks. |
rubric check |
Checks the current diff against Rubric rules. |
Draft a local rule from one repeated review comment:
rubric propose --from-text "API changes need tests"Historical GitHub PR review mining is planned, not implemented yet.
GitHub Action comment mode is implemented as an opt-in delivery path. The easiest setup path is:
rubric init --github-commentThe generated workflow uses:
permissions:
contents: read
pull-requests: write
issues: write
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: sjh9714/rubric/packages/action@v0.3.0
with:
base: origin/${{ github.base_ref }}
github-token: ${{ secrets.GITHUB_TOKEN }}Core commands are local-first.
- No GitHub token required for
demo,doctor,init,add-pack,compile, orcheck. - GitHub Action comment mode uses
GITHUB_TOKENonly to create or update the Rubric PR comment. - No LLM API key required.
- No telemetry by default.
- No code is sent to external services by core commands.
- Team review memory, not AI code detection.
- Deterministic checks for predictable review feedback.
- No employee scoring or surveillance features.
- Semantic or LLM-assisted findings should default to warnings.
Planned:
- GitHub PR history mining (#15).
- Evidence-linked rule proposals (#14).
- Optional LLM-assisted extraction.
npx @rubric-dev/cli demo
npx @rubric-dev/cli doctor
npx @rubric-dev/cli init
npx @rubric-dev/cli add-pack testing migrations security
npx @rubric-dev/cli propose --from-text "API changes need tests"
npx @rubric-dev/cli compile
npx @rubric-dev/cli check --base mainpnpm install
pnpm typecheck
pnpm test
pnpm build
pnpm lintRun the current CLI in development:
pnpm --filter @rubric-dev/cli dev -- demo