/abatilo-core:cs-review [PR number, branch, commit SHA, 'staged', or path; default: current branch and working tree]from abatilo-core
Reviews code diffs against Functional Core/Imperative Shell, Locality of Behaviour, and explicit state machine principles. Runs three agents in parallel and verifies findings.
Ships in abatilo-core. 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.
This review checks design, not correctness. Three agents each apply one principle:
abatilo-core:fcis-reviewer checks Functional Core, Imperative Shell.abatilo-core:locality-reviewer checks Locality of Behaviour.abatilo-core:state-machine-reviewer checks for implicit state machines
that should be explicit.The review target is: $ARGUMENTS
Choose the commands that produce the diff:
| Target | Commands |
|---|---|
| PR number | gh pr diff <n>, gh pr view <n> |
| Branch | git diff <base>...<branch> |
| Commit SHA | git show <sha> |
staged | git diff --cached |
| Path | git diff <base> -- <path>; when the path has no changes, review the file as it is |
| Empty | git diff <base>...HEAD and git diff HEAD together |
Find <base> with git merge-base HEAD origin/HEAD, or fall back to the
default branch. When the diff is empty, tell the user and stop.
Run the commands once to confirm the diff is not empty and to list the changed files. Do not paste the diff into the agent prompts; the agents run the commands themselves.
Start all three agents in one message so they run in parallel. Give each the same prompt:
Review target: <target as the user gave it>
Diff commands: <the exact commands from step 1>
Changed files: <list>
Context: <PR title and description, or the latest commit subjects>
The agents can be wrong. For each finding:
When the agents conflict, resolve the conflict with this rule: a shell that calls a well-named core function with explicit arguments satisfies all three principles. An explicit state machine is a pure transition function in the core, and the shell performs the effects it returns. Keep the recommendation that reaches that shape.
Write the report for a reader who has not read the changed code and does not know the three principles. Each finding must make sense on its own, without the diff open. Write the explanations as prose paragraphs, not as field lists. Do not use the agents' rule ids or distance labels without saying in words what they mean.
Start with a short paragraph that says how many findings survived and which one matters most, and why.
Then give each finding its own section, must-fix first, then
should-fix, then consider. Merge findings from several agents that name
the same code into one section that explains every principle involved.
Write each section in this order:
path:start-end on the line above the block. Copy the lines
from the file you read in step 3, not from the agent output, so that
the code and the line numbers are exact. Include enough surrounding
lines that the snippet reads on its own. When the problem spans several
places, such as a locality source or the writers of a state field, show
each place in its own block with its own reference.After the findings, give the FCIS effect inventory and the state inventory for the changed units as tables. End with the findings you dropped in step 3, one sentence each, that say what the agent claimed and why the claim did not hold.
Do not edit code unless the user asks.
What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/gh-stackManages stacked PRs and splits multi-part work into reviewable branches with gh-stack. Use for stack creation, viewing, edits, push, submit, sync, rebase, merge, or checkout; when asked to split or isolate work for review; whenever a user mentions a stack, branch layers, dependent PRs, or gh stack; or when a stack is checked out.
/git-commitThis skill should be used whenever a git commit is about to be created, including when Claude decides on its own to commit at the end of a task. Use it instead of running `git commit` directly with Bash. Trigger phrases include "commit", "commit this", "commit these changes", "make a commit", "commit and push", "save my work", "check this in", "wrap this up", "split this into commits", "amend the last commit", "fixup", "squash", "reword the commit message", and "/commit". Also use it for staging decisions (git add -p, partial staging) and writing or matching conventional-commit messages./repo-exploreClone and explore external GitHub repositories to understand how libraries, frameworks, or dependencies work. Use when user provides a GitHub URL (github.com/owner/repo), asks "how does X library work", wants to look at source code for a dependency, asks about implementation details of an external package, or says "explore", "look at", or "check out" a repository. Automatically checks out the matching version tag when the repo is a dependency in the current project.npx claudepluginhub abatilo/vimrc --plugin abatilo-coreOther plugins' skills for the same job