/project-toolkit:pr-quality-analyst base-branchfrom project-toolkit
Assesses a local git diff for code quality, blast radius, and maintainability cost, returning a PASS/WARN/CRITICAL_FAIL verdict. Invoked via 'analyst review my changes' or 'run the analyst gate'.
Ships in project-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run the analyst axis of the quality gate against your working changes, before you push, using the canonical axis criteria.
Migrated from the pr-quality/analyst command under ADR-064, which makes skills the single user-invocable surface and renames the namespaced sub-command pr-quality/analyst to pr-quality-analyst. The command file is gone, so its path is named here in plain text rather than as a citation to something a reader could open.
analyst review my changes, run the analyst gate, what does this change cost us, pr-quality analyst
Base branch: $ARGUMENTS
If $ARGUMENTS names a branch, diff against it. Otherwise default to main.
Apply the criteria from: @.github/prompts/pr-quality-gate-analyst.md
That file is the canonical axis definition and the one definition this skill reads. Do not paraphrase it from memory: read it, then judge the diff against what it says.
git branch --show-current to name the current branch.$ARGUMENTS, defaulting to main. Reject an
empty value or one starting with - (Git parses a leading dash as an
option, not a ref), then resolve it to a commit with
BASE_SHA=$(git rev-parse --verify --quiet "<base_branch>^{commit}"). An
unresolved or rejected ref is a hard stop: report it and do not fall back
to an empty diff. Use $BASE_SHA in every git command below, not the
branch name: the branch can move between this step and a later diff, and
the SHA cannot.git diff "$BASE_SHA" --name-only) plus untracked files
(git ls-files --others --exclude-standard); the local review scope is
uncommitted changes, and a tracked-only diff misses a change set that is
entirely new files. Read each untracked file's full content directly, since
it carries no diff against the base.git diff "$BASE_SHA" to read the full diff of tracked changes.This axis reads the diff for duplicated knowledge, a function past the complexity ceiling, a change whose callers were not updated, dead code left behind, and a name that needs a comment to be understood.
That list orients the read. The axis file is authoritative when the two differ.
Provide your verdict in EXACTLY this format. Do not add preambles, explanations, or additional text before the verdict:
VERDICT: [PASS|WARN|CRITICAL_FAIL]
MESSAGE: [One sentence summary]
[Detailed findings following prompt structure]
Then emit a fenced JSON block conforming to .agents/schemas/pr-quality-gate-output.schema.json with "agent": "analyst".
$BASE_SHA, not the base branch name or HEAD~1$BASE_SHA before any git diff"agent": "analyst"| Avoid | Why | Instead |
|---|---|---|
| Stopping at the first CRITICAL_FAIL | Findings are additive, so an early stop hides the rest and buys the author a second round | Record the verdict and keep judging the remaining criteria |
| Judging from memory of the axis | The criteria change and the recalled version is the one that was true once | Read @.github/prompts/pr-quality-gate-analyst.md every run |
| A finding with no file and line | The author cannot act on it, so it reads as an opinion and gets skipped | Cite path:line and quote the offending span |
| A preamble before the verdict | The block is parsed by pr-quality-all, so leading prose breaks the merge | Emit VERDICT: first, every time |
| PASS on a diff you could not read | An unread diff is an unmeasured one, and PASS says the opposite | Emit CRITICAL_FAIL and name what blocked the read |
.github/prompts/pr-quality-gate-analyst.md, which
this skill reads, so there is one definition to keep current.$ARGUMENTS; a project that
merges into something other than main changes that default alone.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub rjmurillo/ai-agents --plugin project-toolkit105 skills in this plugin
/adr-generatorCreate comprehensive Architectural Decision Records (ADRs). Researches the destination directory to detect existing template conventions, gathers context, determines next ADR number, generates the ADR, validates completeness, and saves. Supports multiple ADR formats (MADR, Nygard, Alexandrian, project canonical). Use when documenting technical decisions, creating new ADR files, or capturing rationale so future readers can revisit a choice. Use when you say "write an ADR", "document this decision", "document these design choices", "record why we chose this", "capture the rationale", or "for future maintainers", or when creating an ADR-like markdown file under docs/decisions/, docs/adr/, docs/architecture/, architecture/decisions/, or .project-toolkit/architecture/. Do NOT use to debate or review an existing ADR (use adr-review)./adr-reviewMulti-agent debate orchestration for Architecture Decision Records. Automatically triggers on ADR create/edit/delete. Coordinates architect, critic, independent-thinker, security, analyst, and high-level-advisor agents in structured debate rounds until consensus. Use when you say "review this ADR", when an ADR is created/edited/deleted, or when reviewing, accepting, or updating a decision file under .project-toolkit/architecture/, docs/architecture/, docs/decisions/, docs/adr/, or architecture/decisions/, including intent like "review this decision record" or "check this rationale for future maintainers". Do NOT use to author a new ADR (use adr-generator)./agent-harness-referenceField reference for Claude Code and GitHub Copilot CLI hook contracts. Covers hook locations, events, matchers, payloads, decisions, exit codes, timeouts, plugin roots, and cloud limits with official URLs and versioned probes. Use for `harness contract`, `copilot cli hook behavior`, `hook payload format`, `stale plugin root`, `Errno 2 _dispatch.py`, or before changing cross-harness hooks. Do NOT use to run the porting campaign (in the ai-agents repository, use `ai-agents-portability-campaign`)./ai-agents-external-claimsVerify external, vendor, and third-party claims (numbers, attributions, structure) against authoritative primary sources before they land in a repo artifact or external deliverable. Covers stake-holding sources, round-number tells, citation-chain drift, and the walk-the-gate-or-file-conservative discipline. Use when you say `verify an external claim`, `check a vendor number`, `is this stat real`, `validate a third-party citation`. Do NOT use for running an experiment (use `ai-agents-research-methodology` in the ai-agents repository) or command-injection scanning (use `security-scan`)./analysis-provenanceIdentify code ownership before modifying validators or linters. Checks file headers for provenance indicators, reviews documentation, and determines provenance as UPSTREAM, LOCAL, VENDOR, or UNKNOWN. Prevents accidental modification of upstream tools./analyzeSystematic multi-step codebase analysis producing prioritized findings with file-line evidence. Covers architecture reviews, security assessments, and code quality evaluations through guided exploration, investigation planning, and synthesis. Use when you say "analyze this codebase", "run security assessment", "architecture review of this system", "find code smells", or "review code quality" across multiple files. Do NOT use for single-file maintainability scoring (use code-qualities-assessment) or CWE-78 injection pattern scanning (use security-scan).Other plugins' skills for the same job