agentsclimarketplace

Codebase index

Skill denfry/codebase-index/.codex/skills/codebase-index

Use before answering repository questions about architecture, implementation, symbols, references, dependencies, refactoring impact, data flow, or bugs. Query the local hybrid index first so the agent reads only evidence-bearing file:line ranges instead of scanning the repository.From its SKILL.md

Install
npx -y skills add denfry/codebase-index --skill codebase-index

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 7 stars7 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.2 KB, as published. Nobody here has run it

Codebase Index

Use the local index before reading repository files.

The operating principle is Find → Trace → Predict:

  • Find the implementation with ranked retrieval.
  • Trace behavior through definitions, callers, dependencies, and paths.
  • Predict change impact while preserving an explicit evidence trail.

Route the question

IntentCommand
Where is X implemented?codebase-index search "X" --json
How does X work?codebase-index explain "X" --json
What is this codebase?codebase-index architecture --json
Find a named symbolcodebase-index symbol "X" --json
Who calls or references X?codebase-index refs "X" --json
What changes if X changes?codebase-index impact "X" --json
What does my current diff affect?codebase-index diff-impact --json
How are X and Y connected?codebase-index path "X" "Y" --json
Describe X and its neighborhoodcodebase-index describe "X" --json
Produce a human graphcodebase-index graph "X" --output <path>

Use search --mode symbol for exact symbol work, --mode fts for text and error messages, and the default hybrid mode for mixed questions. Use pure vector mode only when embeddings are enabled and exact vocabulary is unknown.

Read references/commands.md only when command options or routing remain unclear.

Evidence protocol

  1. Run the best-matching command with --json.
  2. Check index before trusting the payload:
    • missing → run codebase-index index, then repeat;
    • stale with fewer than 20 changed files → run codebase-index update;
    • stale with 20 or more changed files → run codebase-index index;
    • fresh → continue.
  3. Start with ranks 1–3. Read only recommended_reads line ranges.
  4. Trace one additional hop only when the question requires behavior, ownership, or impact.
  5. Answer with file:line evidence and state uncertainty explicitly.

Do not open whole files when a line range is available. A snippet may already be sufficient. skeletonized: true means the response intentionally folded unrelated body lines; read the supplied range when the missing body matters.

Confidence contract

  • high — answer from the indexed evidence.
  • medium — read the recommended ranges and confirm the key claim with one targeted lookup if necessary.
  • low or no results — follow fallback_suggestions, then use a narrow Grep/Glob fallback.

On refs and impact, inspect coverage. If coverage.partial is true, an empty result is inconclusive; confirm with targeted Grep before saying that nothing references the target.

Edges carry confidence:

  • extracted — exact parser evidence;
  • inferred — heuristic resolution;
  • ambiguous — unresolved or non-unique.

Never present an inferred or ambiguous chain as certain.

Answer contract

Structure repository answers around:

  1. Answer — the direct conclusion.
  2. Evidence — the minimum supporting file:line references.
  3. Confidence — only when evidence is partial, inferred, stale, or missing.
  4. Next check — only when another check would materially reduce uncertainty.

Do not narrate every search step. Do not claim absence from a partial graph. Do not replace evidence with a generated HTML graph.

For payload fields and failure handling, read references/response-contract.md.

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.