Skip to content
Agentmart
Submit a tool

spec-aware-pr-review

Perform a pull request review grounded in code quality and the full history of related specifications.

Skill by lucasbayma

IndexedMIT
Write a review

Chalk Labs

Need help deploying spec-aware-pr-review?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/lucasbayma-spec-aware-pr-review

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Perform a pull request review grounded in code quality and the full history of related specifications. Use when reviewing open, non-draft PRs that reference specs, RFCs, ADRs, proposals, acceptance criteria, mapped functionality, migrations, rollout phases, compatibility requirements, or historical product/engineering decisions. Ignores merged or draft PRs without commenting. Runs the base code-review workflow first for eligible PRs, then validates findings against the current spec and its timeline before publishing inline review comments, a global summary, and an approving final review.

Use cases: productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/spec-aware-pr-review

What's inside

Skill name
spec-aware-pr-review
Description
Perform a pull request review grounded in code quality and the full history of related specifications. Use when reviewing open, non-draft PRs that reference specs, RFCs, ADRs, proposals, acceptance criteria, mapped functionality, migrations, rollout phases, compatibility requirements, or historical product/engineering decisions. Ignores merged or draft PRs without commenting. Runs the base code-review workflow first for eligible PRs, then validates findings against the current spec and its timeline before publishing inline review comments, a global summary, and an approving final review.
License
MIT
Instructions
349 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • openai.yaml · agents/

SKILL.md (first lines)

# Spec-Aware PR Review

Review a pull request against both code quality and the complete timeline of related specifications.

For eligible PRs, always submit the final review as `APPROVE`. Inline comments may identify required fixes or serious issues, but this skill must never submit `REQUEST_CHANGES`.

## Core Rule

Check PR eligibility before doing any review work. If the PR is merged or draft, ignore it: do not run `$code-review`, do not inspect specs, do not publish inline comments, do not publish a global comment, and do not submit any review state.

For eligible PRs, start with `$code-review` when available. Treat its findings as initial input only.

Do not publish comments until each finding has been validated against the related specification history. Discard findings that the spec timeline proves intentional, and add findings that arise from spec or timeline inconsistencies even when `$code-review` missed them.

## Workflow

### 1. Check PR Eligibility

Before reviewing or commenting, determine the PR state from the platform.

Skip the PR when:

- the PR is already merged
- the PR is closed as merged
- the PR is in draft state
- the platform reports `isDraft: true`
- the platform reports `merged: true` or equivalent

When skipping, return only a short local status note such as:

```text
Skipped: PR is draft, so spec-aware review comments were not posted.
```

or:

```text
Skipped: PR is already merged, so spec-aware review comments were not posted.
```

Do not post that skip note to the PR unless the user explicitly asks.

### 2. Run Base Review

Run the standard code review workflow first.

Use its results to seed the review, then continue with spec-aware validation before publishing anything.

### 3. Identify Related Specs

Find the primary specification associated with the PR.

Search:

- PR title and description
- linked issues, tickets, and project-management metadata
- branch name and commit messages
- code comments and documentation
- spec directories and feature docs
- references containing `spec`, `RFC`, `ADR`, `proposal`, `design`, `requirement`, or `acceptance criteria`

If several specs are relevant, choose one primary spec and keep the others as related context.

### 4. Build The Spec Timeline

Do not evaluate the PR using only the newest spec.

Inspect the primary spec for references to:

- earlier or superseded specs
- amended requirements
- related RFCs or ADRs
- mapped functionality
- earlier implementations of the same capability
- migration plans and rollout phases
- compatibility requirements
- deprecations
- known constraints
- decisions intentionally preserved or reversed

Follow references recursively until the relevant decision history is understood.

Create a chronological working timeline with available:

- date
- spec id or title
- status
- functionality introduced
- behavior changed
- constraints added or removed
- decisions superseded
- compatibility expectations
- migration or rollout requirements

When specs conflict, prefer the most recent explicit decision unless it says an earlier requirement remains authoritative. Do not assume a newer spec silently invalidates an older one. Treat earlier behavior as relevant when the newer spec extends it, depends on it, preserves compatibility with it, or does not explicitly replace it.

### 5. Review Against Full Context

Evaluate the PR against:

- current spec and acceptance criteria
- spec timeline and historical decisions
- existing mapped functionality
- backward-compatibility expectations
- migration and rollout constraints
- established architecture patterns
- tests and expected edge cases
- `$code-review` findings

Check especially for:

- missing requirements
- regressions against prior specs
- partial implementation of a multi-phase design
- behavior contradicting a preserved constraint
- duplicated functionality already introduced by another spec
- incompatible workflow changes
- missing migrations, feature flags, observability, or fallback behavior
- incomplete tests

From lucasbayma/skills, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Jul 20, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from lucasbayma

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get spec-aware-pr-review running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying spec-aware-pr-review?

CallGet help
Cite this page

spec-aware-pr-review skill. Agent Mart. https://agentmart.dev/skills/lucasbayma-spec-aware-pr-review (last updated 2026-10-24)