Skip to content

About

Grug-brained code review for Claude Code. Hunts complexity demons in your MRs, PRs, and plans.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

grug-skill

A grug-brained developer code reviewer for Claude Code.

Grug is a senior developer with mass mass years of experience. Grug not smart — grug know grug not smart — but grug hunt complexity demon and grug say no. Point grug at your plan or your diff and grug tell you, in grug voice, where the demon hide.

What's in here

File What it is
agents/grug.md The grug subagent — the voice and the review checklist
skills/review/SKILL.md /grug:review — reviews a GitLab MR, GitHub PR, or local diff
skills/plan/SKILL.md /grug:plan — critiques an implementation plan, works best in plan mode
.claude-plugin/ Plugin + marketplace manifests, so one command installs all of the above

The two skills are thin wrappers: each gathers context and then spawns the grug agent, which does the actual reviewing. The agent is the payload — the skills don't work without it.

Install

Claude Code — plugin (recommended)

This is the only install path that gives you the grug agent as well as the skills. Run these in Claude Code:

/plugin marketplace add fzy-github/grug-skill
/plugin install grug

That's it — the agent and both skills land together. To update later, run these in your terminal — not in the Claude Code prompt, unlike the two lines above:

claude plugin marketplace update grug-skill
claude plugin update grug@grug-skill        # the grug-skill suffix is required

The plugin name alone (claude plugin update grug) fails with Plugin "grug" not found — updates need the plugin@marketplace form. Restart Claude Code to apply. Because plugin.json sets an explicit version, you only get an update when that version is bumped.

Note on the marketplace: this repo is its own marketplace — that's what .claude-plugin/marketplace.json does. grug is not in Anthropic's official or community marketplaces, so the marketplace add line above is how anyone gets it.

Why the agent matters: it runs in its own context window (a big diff doesn't eat your conversation), it's declared with a read-only toolset so grug cannot edit your code, and it's pinned to Sonnet so reviews stay cheap no matter what model you're driving.

Manual (single project, or if you prefer symlinks)

git clone https://github.com/fzy-github/grug-skill.git
cd grug-skill

mkdir -p ~/.claude/agents ~/.claude/skills
ln -s "$PWD/agents/grug.md"   ~/.claude/agents/grug.md
ln -s "$PWD/skills/review"    ~/.claude/skills/review
ln -s "$PWD/skills/plan"      ~/.claude/skills/plan

Swap ln -s for cp / cp -R if you'd rather have copies. For one project instead of your whole machine, use .claude/agents/ and .claude/skills/ inside that repo. Restart Claude Code and grug is ready.

Skills-only installers

npx skills add fzy-github/grug-skill

⚠️ This installs the two skills but not the agent — npx skills add is skills-only by design, and both skills delegate to the grug agent. Use the plugin or the manual path above unless you're installing for a tool that has no agent mechanism. Note the skills land as the fairly generic /review and /plan on this path, since there's no plugin namespace to prefix them.

Don't mix install paths. A plugin install plus a manual symlink gives you two copies of each skill; pick one.

Usage

/grug:review              # local uncommitted changes
/grug:review 42           # GitLab MR !42 or GitHub PR #42 — detected from the repo
/grug:review https://github.com/org/repo/pull/42

/grug:plan                # in plan mode: critiques the current plan
/grug:plan .plans/auth-rewrite.md

Plugin skills are always namespaced by plugin name, hence the grug: prefix — that's why the folders are skills/review/ and skills/plan/ rather than repeating the word. If you installed via the manual or skills-only path instead, the names are unprefixed: /review and /plan.

MR/PR review needs glab (GitLab) or gh (GitHub) on your PATH and authenticated. If grug can't tell which platform you're on, grug ask — grug not guess.

You can also just ask for grug directly, no slash command: "have grug look at this architecture".

What grug output looks like

Every review comes back in four parts:

  • complexity demon report — where unnecessary complexity is creeping in, rated smol demon / medium demon / big demon / run away
  • grug like — simple solutions and pragmatic choices, credit where due
  • grug concerns — specific issues: what's wrong, why it's wrong, what grug would do instead
  • grug verdict — ship it or not, in a sentence or two

What grug believe

Complexity is a spirit demon that enters the codebase through the good intentions of big brain developers. Saying no is the most important skill. Premature abstraction is worse than duplication. Integration tests are the sweet spot. Logging is criminally underrated. Respect Chesterton's Fence.

Grug is opinionated on purpose. Grug will push back on abstractions you like. User is boss and can overrule grug — but grug make you say it out loud first.

Customising

Edit agents/grug.md to tune the beliefs, the review questions, or the output format. The model: field in its frontmatter sets which model grug runs on (sonnet by default — cheap enough to run on every MR).

Plugin layout

grug-skill/
├── .claude-plugin/
│   ├── plugin.json          # plugin manifest
│   └── marketplace.json     # makes this repo its own marketplace
├── agents/
│   └── grug.md              # the payload: persona + read-only toolset + model
├── skills/
│   ├── plan/SKILL.md        # /grug:plan
│   └── review/SKILL.md      # /grug:review
├── CHANGELOG.md
├── LICENSE
└── NOTICE

No commands/ — the skills are already user-invocable, so a commands directory would be a second way to do the same thing. No hooks/ either: grug not intercept your commits uninvited. Plugins also support .mcp.json, .lsp.json, monitors/, bin/, and a plugin-level settings.json; none of them earn their keep here.

Hacking on grug

Load your working copy directly instead of reinstalling — no marketplace round-trip. In your terminal:

claude --plugin-dir /path/to/grug-skill

A local --plugin-dir copy takes precedence over the installed one for that session, so you can test changes against an installed grug without uninstalling. Once inside that session, /reload-plugins picks up further edits without restarting.

Throughout this README: lines starting with / are typed in the Claude Code prompt, and claude ... lines are typed in your shell.

Then, to cut a release: bump version in plugin.json, update the CHANGELOG, and run claude plugin tag — it creates a grug--v{version} git tag and checks that plugin.json and the marketplace entry agree. Push it with git push origin refs/tags/grug--v{version}.

Validate before publishing: claude plugin validate . (add --strict to treat warnings as errors).

Credit and license

The grug brain philosophy is from The Grug Brained Developer by Carson Gross — published under the Grug 1-Clause License, which reads, in full:

Grug 1-Clause License

1. do what want

Grug approve of this license. This repo is an independent implementation of those ideas for Claude Code, not affiliated with or endorsed by Carson Gross or Big Sky Software. If you like the philosophy, buy the book.

This plugin itself is MIT licensed. Full attribution in NOTICE.

About

Grug-brained code review for Claude Code. Hunts complexity demons in your MRs, PRs, and plans.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors