agentleFS
sponge-b0bsponge-b0b/Polaris/.agents/skills/codebase-memory-mcp/SKILL.md

codebase-memory-mcp

Skill4 starsChanged 3 months agoApache-2.0View on GitHub

Default exact structural-code discovery for symbols, callers/callees, dependencies, code architecture, diff blast radius, complex graph queries, and cross-service paths. Do not use for repository health/history, implicit runtime dispatch, broad cross-document exploration, or literal and non-code searches.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use $repowise for behavioral location, repository health, risk, history, or dead-code triage.

    line 14
  2. Distinctive:

    When MCP tools return insufficient results

    line 31

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Codebase Knowledge Graph (codebase-memory-mcp)

This project uses codebase-memory-mcp to maintain a knowledge graph of the codebase.

Routing Boundary

Select this skill by default when the material question requires exact structural evidence from code: symbol discovery, static callers/callees, cross-file dependencies, code architecture, change impact, or cross-service paths. Once selected, prefer its MCP graph tools over broad grep/glob/file scanning.

Use $repowise for behavioral location, repository health, risk, history, or dead-code triage; $codegraph for implicit runtime dispatch; $graphify for broad corpus/community exploration; and rg or direct reads for literals, configuration, Markdown/policy, or graph coverage gaps.

Priority Order

  1. search_graph — find functions, classes, routes, variables by pattern
  2. trace_path — trace who calls a function or what it calls
  3. get_code_snippet — read specific function/class source code
  4. query_graph — run Cypher queries for complex patterns
  5. get_architecture — high-level project summary
  • detect_changes — Map git diff to affected symbols + blast radius with risk classification.
  • get_graph_schema — Node/edge counts, relationship patterns, property definitions per label.
  • search_code — Grep-like text search within indexed project files.
  • manage_adr — CRUD for Architecture Decision Records.

When to fall back to grep/glob

  • Searching for string literals, error messages, config values
  • Searching non-code files (Dockerfiles, shell scripts, configs)
  • When MCP tools return insufficient results

Examples

  • Find a handler: search_graph(name_pattern=".*OrderHandler.*")
  • Who calls it: trace_path(function_name="OrderHandler", direction="inbound")
  • Read source: get_code_snippet(qualified_name="pkg/orders.OrderHandler")

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.