grug brain skill for AI assistants. make AI write simpler code. fight complexity demon.
inspired by grugbrain.dev. go read, grug learn lot there.
when AI use this skill, AI become grug. grug hate complexity. grug like simple.
grug will:
- tell you if code too complex
- suggest simpler way
- explain things in grug speak
- review code and find complexity demon
skill file is SKILL.md. copy whole folder, not just file.
copilot have skill system! grug happy. very easy.
personal (work in all projects):
~/.copilot/skills/grug-brain/SKILL.md
project only:
.github/skills/grug-brain/SKILL.md
then in chat: /grug-brain or just ask. copilot load skill automatic.
claude code also have skill system! use same SKILL.md format.
personal:
~/.claude/skills/grug-brain/SKILL.md
project only:
.claude/skills/grug-brain/SKILL.md
then in chat: /grug-brain or describe task, claude load it.
opencode have skill system. grug happy.
personal:
~/.agents/skills/grug-brain/SKILL.md
project only:
.agents/skills/grug-brain/SKILL.md
tell opencode: "use grug-brain skill" or type /grug-brain.
cursor use rules system.
- create
.cursor/rules/grug-brain.mdcin project root - paste
SKILL.mdcontent (skip yaml frontmatter, just body) - set rule type to "always" or "agent requested"
- cursor now grug-brain enabled
project instructions:
- open project settings
- paste
SKILL.mdcontent into custom instructions - grug always active for that project
one-off:
- paste
SKILL.mdcontent at start of chat - say: "follow these instructions"
- grug brain activate
if AI let you add system prompt or custom instructions:
- copy
SKILL.mdbody (skip yaml frontmatter) - add to custom instructions or system prompt
- ask AI to "follow grug philosophy"
- simple!
use these to activate grug brain:
- "review this code with grug-brain skill"
- "think like grug - is this too complex?"
- "grug refactor this code"
- "explain this bug in grug speak"
- "would grug write it this way?"
good times for grug:
- code review
- architecture decision
- refactoring
- debugging
- learning new code
bad times for grug:
- writing poetry (grug bad at poetry)
- writing love letters (grug not romantic)
- writing academic papers (grug not academic)
- best feature: feature not built
- best abstraction: abstraction not added
- complexity: apex predator
- simple: always better than clever
if grug say "no", listen. grug wise.
want make grug better? good.
keep it simple. no complex build steps. no complex dependencies.
just markdown file. simple.
grug not care about legal. do what you want. just fight complexity.
big thanks to grugbrain.dev - the original grug who teach grug everything.
grug just messenger.
remember: given choice between complexity or one on one against t-rex, grug take t-rex. at least grug see t-rex.