/specclaw-review:rulesfrom specclaw-review
Creates and improves review rules for specclaw-review by analyzing repo governance, past PR comments, and review history. Guides users through rule drafting with concrete defect patterns.
Ships in specclaw-review. 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.
Two outputs:
review: block in .specclaw/config.yaml;.specclaw/review/rules/.Write nothing until the user approves what you show them. Rules decide what blocks a PR, so a rule written silently is a gate nobody agreed to.
Run specclaw-review discover (or call the review_discover MCP tool). It is read-only and lists:
review: block.Before you go on:
review.governance at those files; they are read fresh every round. Never
copy them into rule files, because copies go stale.governance, smallest
value first: long guides, tutorials, and anything an ADR already covers. Show the size before and after.severity: project applies by default, so the repo's own
idea of "major" wins.Mine the repo's own review history and write down what it keeps getting wrong. Never write generic advice; the plugin's packs already hold that.
Sources, best first:
gh api "repos/{owner}/{repo}/pulls/comments?per_page=100" --paginate -q '.[] | [.path, .body] | @tsv' | head -2000.specclaw/.env (AZDO_TOKEN; never print it). Read
_apis/git/repositories/<repo>/pullrequests?searchCriteria.status=completed&$top=50, then each PR's
/threads..specclaw/changes/*/learnings.md and follow-ups.md.specclaw-review learn (dry-run).Group the findings by root cause, not by wording. Keep a group only when it recurs, at least twice in different PRs, and nothing in the governance already says it. For each kept group, draft one rule:
- **R<n> <short name>.** <the defect, stated so a reviewer can check it in a diff>. <what to do instead>.
Severity: <blocker|major|minor>. Seen: <PR ids or change names>.
.specclaw/review/rules/<topic>.md, one topic per file, with IDs unique across files.Show the user, in one message:
review: block;specclaw-review rules | wc -c after, estimated before);On their yes:
review: block, never duplicate it) and the rule files.specclaw-review rules and confirm it prints them.specclaw-review init once, so the review-memory guard rule is installed.After a few review loops, run the learn skill. Lessons the loop records twice become rule proposals for the same
folder.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/learnUse when the user wants the review rules to learn from past review findings, to promote recurring lessons into repo rules, or to import an existing pitfalls/standards file into specclaw-review rules./reviewUse when a change is built and needs review before its PR, when verify runs and specclaw-review is installed, or when the user asks to review, re-review or run the review loop locally.npx claudepluginhub chan4lk/specclaw --plugin specclaw-reviewOther plugins' skills for the same job