Two self-contained skills for navigating indexed Java codebases — one per
surface (MCP server vs jrag CLI). Skills are agent-side prompt scaffolding
— they are not a second MCP API and not CLI subcommands.
java-codebase-rag install picks one of two surfaces:
--surface mcp(default) — registers the stdio MCP server (5 tools:search/find/describe/neighbors/resolve) and deploys theexplore-codebaseskill +explorer-rag-enhancedsubagent.--surface cli— deploys theexplore-codebase-cliskill +explorer-rag-clisubagent, documenting thejragconsole-script shell vocabulary (one command per engineering intent; no MCP entry registered).
Pick one surface per project — running both strands the agent in two vocabularies.
skills/
README.md ← this file
explore-codebase/SKILL.md ← complete MCP operating manual (mcp surface)
explore-codebase-cli/SKILL.md ← `jrag` CLI operating manual (cli surface; PR-JRAG-5)
The comprehensive MCP operating manual. Includes:
- Five-tool reference —
search,find,describe,neighbors,resolvewith full argument shapes - Node kinds — Symbol, Route, Client, Producer
- Edge taxonomy — stored edges, composed dot-keys, direction semantics
- NodeFilter reference — all filter keys by node kind, strict frame rules
- Decision tree — "user asks X → start with tool Y → follow up with Z"
- Recovery playbook — common failure modes and fixes
- Navigation patterns — 12 common intent-to-tool-chain mappings
- Ontology glossary — roles, capabilities, symbol kinds, frameworks, match types
The operating manual for the jrag CLI — same graph underneath, but the
agent drives shell commands (jrag callers, jrag inspect, jrag search,
…). Internalizes resolve so every <query> command is "names in, names out".
Includes: command groups (orientation / locate / listings / traversal / inspection), common flags, resolve-first contract, traversal reference, ontology glossary, recovery playbook, workflow patterns.
docs/AGENT-GUIDE.md is the single source of truth for the MCP operating manual. Three delivery mechanisms all carry the same MCP content:
| Mechanism | How to use |
|---|---|
docs/AGENT-GUIDE.md copy-paste block |
Paste the BEGIN/END block into your project's AGENTS.md / CLAUDE.md. Always-on. Best for hosts without skill or subagent loading. |
explore-codebase skill |
Loaded on demand by hosts with skill discovery (Claude Code, Qwen Code, Cursor). One skill to rule them all. (MCP surface.) |
agents/explorer-rag-enhanced.md subagent |
Copy into your project's .claude/agents/ for Claude Code subagent discovery. The agent combines RAG graph navigation with file-system search. (MCP surface.) |
For the CLI surface, the parallel pair is explore-codebase-cli (skill) +
agents/explorer-rag-cli.md (subagent) — driven via the jrag shell CLI
rather than the MCP tools.
Do not mix multiple mechanisms on the same agent — duplicate context confuses tool selection.
Developer workflow skills (propose-doc-author, cursor-task-prompt, cursor-pr-review, etc.) live in .agents/skills/ — they are for contributors working on java-codebase-rag. Skills under skills/ are for consumers using java-codebase-rag to explore their own codebases.