serena-rg-search
Pick the right tool for multi-faceted code search across symbols, text, semantic meaning, JSON, git history, and logs.
Skill by cheshirecode
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/cheshirecode-serena-rg-search
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/serena-rg-search
What's inside
- Skill name
serena-rg-search- Description
- Pick the right tool for multi-faceted code search across symbols, text, semantic meaning, JSON, git history, and logs. Use when finding definitions, references, files, strings, concepts without known terms, structured config, when-it-changed, or log events; or when planning a search workflow before reading code.
- License
- Unlicense
- Instructions
- 60 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (5)
- SKILL.md
- openai.yaml · agents/
- commands.md · references/
- mcp-setup.md · references/
- test_zg_contract.py · tests/
SKILL.md (first lines)
# serena-rg-search Skip when one literal or known-file lookup is sufficient. ## Route first Text-lane searches go through `zg` (zvec-grep) when installed: `zg query --rg` is managed ripgrep, `--fts` adds BM25 ranking, and the bare form adds semantic search. If `command -v zg` is empty, every `zg query --rg` below degrades to plain `rg` — fall back and continue, don't block on setup. **Caveats measured against zvec-grep 0.2.1:** - `zg query --rg` exits 0 when it finds nothing (`No matches.`); `rg` exits 1. Read output and preserve existing scripts that branch on rg's exit status. - Indexed lanes always return hits by nearest ranking and cannot express "not here." Confirm an absence with `--rg`/`rg`; ranked hits are candidates. - `--fts` needs the index too: both indexed lanes fail `WORKSPACE_INDEX_NOT_FOUND` without one. Only `--rg` works unindexed. ## Decision Rule Match the question to the facet, then the tool: | Facet | Tool | |---|---| | Literal text, regex, filenames, broad discovery | `zg query --rg` (fallback `rg` / `rg --files`) | | Concept or behavior, exact terms unknown | `zg query "natural language"` (semantic; `--fts` for keyword-ranked) | | Known symbol, references, file structure | Serena (`find_symbol`, `find_referencing_symbols`, `get_symbols_overview`) | | Structured JSON (OpenAPI, package.json, API payloads) | `jq` (often piped from `rg --files`) | | "When did this appear / disappear / change" | `git log -S` (pickaxe), `git log -G` (regex), `git log -p -- path` | | Logs, traces, time-windowed events | `rg` on the file, `journalctl` (linux), `log show` (mac) | Default hybrid flow for unfamiliar code: `rg` to find candidates → Serena for the symbol → `git log -S` to see how it got there. Fall back to `rg` if Serena isn't activated for the project. For command examples after selecting a facet, read [references/commands.md](references/commands.md). Narrow noisy searches by path, type, or glob before reading full files; switch to symbols when exact references matter. ## Tool Availability Check each required binary separately: ```bash for t in zg rg jq; do command -v "$t" >/dev/null 2>&1 || echo "missing: $t"; done ``` `command -v zg rg jq` succeeds when any one exists; test each tool separately. Use available fallbacks; do not install tools just to perform a search. For an explicit `zg` setup request, install `@zvec/zvec-grep` with Node 22+ and run `zg index` for indexed lanes; ignore `.zvec-grep/` in Git. Find Serena in the session's MCP tools (`serena__find_symbol`), not with `command -v`. If unavailable, use `rg` without attempting setup mid-task. **Serena MCP setup:** Only for a setup request, read `references/mcp-setup.md`.
From cheshirecode/dotfiles, Unlicense.
More from cheshirecode/dotfiles
- 0.570score
artifact-gate
cheshirecode
Gate an HTML artifact before publishing - tag balance, dead anchors, duplicate ids, non-absolute links, drifted self-claims, and code links that still resolve…
SkillAFreshness: AClaude Code +9 - 0.570score
job-application
cheshirecode
Generate a tailored job-application package (resume, cover letter, skills keyword block) for one job description.
SkillAFreshness: AClaude Code +9 - 0.567score
loop-engineering
cheshirecode
Run bounded, evidence-driven loops for repeated, resumable, delegated, or scheduled work.
SkillAFreshness: AClaude Code +9 - 0.567score
pr-review
cheshirecode
Review one PR or close out completed work.
SkillAFreshness: AClaude Code +9 - 0.567score
fast-crawl
cheshirecode
Fetch and crawl web pages as markdown locally, fast, with no browser session.
SkillAFreshness: AClaude Code +9 - 0.567score
browser-use-setup
cheshirecode
Install, upgrade, wrap, and connect the browser-use CLI across macOS and Linux, with sandbox-safe testing and platform-specific debugging.
SkillAFreshness: AClaude Code +9 - 0.566score
requirement-sync
cheshirecode
Propagate a changed requirement across every place it is written down, and find where the old version still reads as current.
SkillAFreshness: AClaude Code +9 - 0.565score
job-search
cheshirecode
Source remote job postings from public boards (Greenhouse boards, HN Who-is-hiring, RemoteOK, LinkedIn via the browser harness, direct URLs), filter them for…
SkillAFreshness: AClaude Code +9 - 0.529score
council
cheshirecode
Run multi-angle, audited research with independent voting.
SkillBFreshness: BClaude Code +9 - 0.529score
loop-helpers
cheshirecode
Optional deterministic helpers for loop-engineering context packs and fail-open Caveman transport decisions.
SkillBFreshness: BClaude Code +9 - 0.529score
evidence-gate
cheshirecode
Gate completion claims by mapping every observable goal or acceptance criterion to typed command, artifact, Git, GitHub, or URL evidence.
SkillBFreshness: BClaude Code +9 - 0.526score
pr-cost
cheshirecode
Collect a typed AI cost payload for a newly created GitHub PR, persist it to a local ledger, and optionally post an idempotent PR comment when live writes are…
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 17, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Unlicense
- Repository
- github.com/cheshirecode/dotfiles
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from cheshirecode
- 0.570score
artifact-gate
cheshirecode
Gate an HTML artifact before publishing - tag balance, dead anchors, duplicate ids, non-absolute links, drifted self-claims, and code links that still resolve…
SkillAFreshness: AClaude Code +9 - 0.570score
job-application
cheshirecode
Generate a tailored job-application package (resume, cover letter, skills keyword block) for one job description.
SkillAFreshness: AClaude Code +9 - 0.567score
browser-use-setup
cheshirecode
Install, upgrade, wrap, and connect the browser-use CLI across macOS and Linux, with sandbox-safe testing and platform-specific debugging.
SkillAFreshness: AClaude Code +9 - 0.567score
fast-crawl
cheshirecode
Fetch and crawl web pages as markdown locally, fast, with no browser session.
SkillAFreshness: AClaude Code +9 - 0.567score
loop-engineering
cheshirecode
Run bounded, evidence-driven loops for repeated, resumable, delegated, or scheduled work.
SkillAFreshness: AClaude Code +9 - 0.567score
pr-review
cheshirecode
Review one PR or close out completed work.
SkillAFreshness: AClaude Code +9
Cite this page
serena-rg-search skill. Agent Mart. https://agentmart.dev/skills/cheshirecode-serena-rg-search (last updated 2026-10-24)