/hatch3r:hatch3r-cli-ripgrepfrom hatch3r
Fast recursive grep with gitignore awareness. Invokes `rg` for regex content searches across source trees, with structured JSON output and context windows.
Ships in hatch3r. 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.
Fast recursive grep with sane defaults and gitignore awareness
Before invoking rg, resolve these via agents/shared/user-question-protocol.md (default behavior, not exception-driven):
--no-ignore, --hidden) over a large tree, confirm the intended path before running — an unscoped scan over a monorepo can return tens of thousands of hits.rg is read-only — it never mutates files, so no destructive confirmation is needed. The only risk is unbounded output flooding context; cap with --max-count / -l / -c when match density is unknown.-F vs regex, case-sensitive vs -i), ask which one.Tier 1 reference card — no fan-out. This skill is a single-tool usage reference an agent consults inline; it spawns no sub-agents. Fan-out is owned by the calling workflow per its own Fan-out Discipline block. Source: rules/hatch3r-fan-out-discipline.md (P8 B2).
Reach for rg when the task is in the search category and the agent would otherwise call an MCP tool or read large outputs into context.
CLI tools return structured stdout that fits in <1KB for typical queries; equivalent MCP calls regularly exceed 10KB. Reference: Anthropic engineering (Nov 4 2025) — code-execution-over-MCP yields 98.7% token reduction.
rg --json -tts 'createServer\(' src/
Structured JSON output scoped to TypeScript — parse hits with jq instead of re-reading files.
rg -c 'TODO' --type ts
Per-file match counts for .ts files; cheap stand-in for issue-debt triage.
rg -B 2 -A 4 'BREAKING' --max-count 50 CHANGELOG.md
Context windows around BREAKING entries, capped at 50 hits to bound output size.
rg --hidden --no-ignore 'API_KEY' .
Pierces both dotfiles and .gitignore rules — use when scanning for accidentally-committed secrets.
rg --files-with-matches 'deprecated' src/ | xargs -I{} rg -n 'deprecated' {}
Two-phase: file list first, then ranged scan — keeps stdout small when match density is uneven.
rg to match by code structure (function calls, type signatures, JSX shape); literal regex misses renames and whitespace variants. Reach for ast-grep (see the ast-grep section in hatch3r-cli-toolbox).rg against binary blobs (.zst, .png, lockfile snapshots); it skips them silently by default but explicit -a mode wastes CPU. Reach for category-specific tools (zstd -d then rg, or xxd | rg for hex).rg to search a specific git revision or stash — it only sees the working tree. Reach for git grep <rev>.| Tool | When to prefer |
|---|---|
ast-grep (toolbox section) | Structural code patterns: matchers like console.log($MSG) that survive whitespace and identifier renames. |
git grep | Search at a specific revision, tag, or stash — rg only reads the working tree. |
fd (hatch3r-cli-fd) piped into rg | Filename pre-filter when scoping by extension/age is faster than rg --type. |
grep -RIn | POSIX-only environment where ripgrep is not on PATH and install is blocked. |
Verify with:
command -v rg
Install (macOS):
# brew
brew install ripgrep
Install (Linux):
# apt
sudo apt install ripgrep
Install (Windows):
# scoop
scoop install ripgrep
Homepage: https://github.com/BurntSushi/ripgrep
What SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: commands: Invalid input, agents: Invalid string: must start with "./", agents: Invalid string: must end with ".md", skills: Invalid string: must start with "./", mcpServers: Invalid string: must start with "./"
.claude-plugin/plugin.json: commands: Invalid input, agents: Invalid string: must start with "./", agents: Invalid string: must end with ".md", skills: Invalid string: must start with "./", mcpServers: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
55 skills in this plugin
/hatch3r-a11y-auditRuns a WCAG AA accessibility audit with findings and fixes across 7 scan categories (keyboard, contrast, ARIA, reduced motion, screen reader, high contrast, automated axe). Use when auditing and remediating accessibility./hatch3r-adhoc-orchestrateScaffolds the ad-hoc Tier >= 2 orchestration protocol -- Per-Turn Pipeline-State Header, implementer delegation plan, End-of-Turn Delegation Attestation. Use for a multi-phase task with no registered command to avoid inline-implementation bypass mode./hatch3r-ai-featureEval-driven development workflow for shipping AI features — write eval before prompt, measure, iterate, ship with caching + cost telemetry + model fallback + hallucination SLI/hatch3r-api-specGenerates and validates OpenAPI specifications from codebase. Covers endpoint design, schema validation, and documentation generation./hatch3r-architecture-reviewEvaluates architectural decisions and produce ADRs following the project template. Use when making architectural decisions, evaluating trade-offs, or creating ADRs./hatch3r-board-groomOngoing backlog refinement for existing board items. Re-prioritize, reclassify, re-scope, archive stale items, decompose oversized issues, merge duplicates, refresh dependencies, and remediate board health findings.Other plugins' skills for the same job