Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
273 changes: 65 additions & 208 deletions agents/explorer-rag-cli.md

Large diffs are not rendered by default.

310 changes: 78 additions & 232 deletions agents/explorer-rag-enhanced.md

Large diffs are not rendered by default.

273 changes: 65 additions & 208 deletions java_codebase_rag/install_data/agents/explorer-rag-cli.md

Large diffs are not rendered by default.

310 changes: 78 additions & 232 deletions java_codebase_rag/install_data/agents/explorer-rag-enhanced.md

Large diffs are not rendered by default.

202 changes: 67 additions & 135 deletions java_codebase_rag/install_data/skills/explore-codebase-cli/SKILL.md

Large diffs are not rendered by default.

127 changes: 44 additions & 83 deletions java_codebase_rag/install_data/skills/explore-codebase/SKILL.md

Large diffs are not rendered by default.

78 changes: 22 additions & 56 deletions skills/README.md
Original file line number Diff line number Diff line change
@@ -1,71 +1,37 @@
# skills/ — RAG navigation skills for java-codebase-rag

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.
Two self-contained skills for navigating an indexed Java codebase — one per
**surface**. Skills are agent-side prompt scaffolding, **not** a second MCP API
and **not** CLI subcommands.

## Surfaces (PR-JRAG-5)
## Surfaces

`java-codebase-rag install` picks one of two surfaces:
`java-codebase-rag install` picks one surface; **one per project** (running both
strands the agent in two vocabularies):

- **`--surface mcp`** (default) — registers the stdio MCP server (5 tools:
`search` / `find` / `describe` / `neighbors` / `resolve`) and deploys the
**`explore-codebase`** skill + **`explorer-rag-enhanced`** subagent.
- **`--surface mcp`** (default) — registers the stdio MCP server (`search` /
`find` / `describe` / `neighbors` / `resolve`) and deploys the
**`explore-codebase`** skill + **`explorer-rag-enhanced`** agent.
- **`--surface cli`** — deploys the **`explore-codebase-cli`** skill +
**`explorer-rag-cli`** subagent, documenting the `jrag` console-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.
**`explorer-rag-cli`** agent, driving the `jrag` console-script (one command
per intent; no MCP entry).

## Layout

```
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)
README.md ← this file (dev-only; not shipped)
explore-codebase/SKILL.md MCP operating manual
explore-codebase-cli/SKILL.md ← `jrag` CLI operating manual
```

## `explore-codebase` (MCP surface)

The comprehensive MCP operating manual. Includes:

- **Five-tool reference** — `search`, `find`, `describe`, `neighbors`, `resolve` with 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

## `explore-codebase-cli` (CLI surface; PR-JRAG-5)

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.

## Relationship to `docs/AGENT-GUIDE.md` and `agents/`

`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.
## Relationship to `docs/` and `agents/`

## Relationship to developer skills
`docs/AGENT-GUIDE.md` is the **source of truth** for the MCP manual. Pick **one**
delivery mechanism per agent (mixing confuses tool selection): the copy-paste
block (into `AGENTS.md`/`CLAUDE.md`), the `explore-codebase` skill, or the
`explorer-rag-enhanced` subagent (`.claude/agents/`). The CLI surface parallels
this: `explore-codebase-cli` skill + `explorer-rag-cli` agent, via `jrag`.

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.
Developer workflow skills live in `.agents/skills/` (contributors working **on**
java-codebase-rag); `skills/` here is for **consumers**.
Loading
Loading