FrankRay78

Context Gardening — Security skill for Claude Code

Security community

Audit CLAUDE.md, its linked docs, and .claude/memory/ against the patterns from "A good AGENTS.md is a model upgrade" — flag bloat, stale references, mis-fit patterns, and verbose passages, then apply.

How to install Context Gardening

Installs to ~/.claude/commands/frankray78-netpace-context-gardening.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/FrankRay78/NetPace/HEAD/.claude/commands/context-gardening.md -o ~/.claude/commands/frankray78-netpace-context-gardening.md

Restart Claude Code, or start a new session, for it to be picked up.

What Context Gardening does


description: Audit CLAUDE.md, its linked docs, and .claude/memory/ against the patterns from "A good AGENTS.md is a model upgrade" — flag bloat, stale references, mis-fit patterns, and verbose passages, then apply approved edits. reference: https://www.augmentcode.com/blog/how-to-write-good-agents-dot-md-files

Run this command quarterly, after a big architectural shift, or whenever `CLAUDE.md` feels stale. It treats `CLAUDE.md` + the docs it links to + `.claude/memory/` as a garden to p

Alternatives in Security

  • Imcodes — The IM for agents 960 ★
  • Data Viz Audit — Audit a data visualization for chart type selection, accessible color palette, annotations, and anti-patterns 309 ★
  • Memory Self Review — Mine recent agent history (claude-mem + usage stats) for recurring failures and repeated patterns, audit MEMOR 297 ★

Full documentation available on GitHub

View Source Repository