Agent skill

Codebase Memory Reference

by DmNote-App in DmNote-App/DmNote

This skill should be used when the user asks about "codebase-memory-mcp tools", "graph query syntax", "Cypher query examples", "edge types", "how to use searchgraph", "querygraph examples", or needs…

GPL-3.0Auto-check passedKnowledge Management

Install Codebase Memory Reference

skills CLI
$ npx skills add DmNote-App/DmNote --skill codebase-memory-reference -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install DmNote-App/DmNote codebase-memory-reference --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/DmNote-App/DmNote.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/codebase-memory-reference .claude/skills/codebase-memory-reference && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
codebase-memory-reference
GitHub stars
2.6k
Token cost
~1.7k tokens
SKILL.md length
544 words
Files
1
Skills in repo
7
Repo updated
First seen
Licence
GPL-3.0

At a glance

This skill should be used when the user asks about "codebase-memory-mcp tools", "graph query syntax", "Cypher query examples", "edge types", "how to use searchgraph", "querygraph examples", or needs…

  • Works in 4 steps: search_graph(relationship="HTTP_CALLS")… → query_graph has a 200-row cap before… → trace_call_path needs exact names — use… → …
  • Asks about codebase-memory-mcp tools
  • SKILL.md covers Tools (14 total), Edge Types, Node Labels and Qualified Name Format, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Codebase Memory Reference is an agent skill from DmNote-App/DmNote. This skill should be used when the user asks about "codebase-memory-mcp tools", "graph query syntax", "Cypher query examples", "edge types", "how to use searchgraph", "querygraph examples", or needs reference documentation for the codebase knowledge graph tools.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Knowledge Management, covering MCP servers and Knowledge graphs. The repository describes itself as: Make it yours. A customizable key viewer for DJMAX RESPECT V and any game. The licence is GPL-3.0.

When your agent uses it

  • Asks about codebase-memory-mcp tools
  • Graph query syntax
  • Cypher query examples
  • How to use searchgraph

Example prompts

  • “codebase-memory-mcp tools”
  • “graph query syntax”
  • “Cypher query examples”
  • “/codebase-memory-reference”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. search_graph(relationship="HTTP_CALLS") does NOT return edges — it filters nodes by degree. Use query_graph with Cypher to see actual edges.
  2. query_graph has a 200-row cap before aggregation — COUNT queries silently undercount on large codebases. Use search_graph with…
  3. trace_call_path needs exact names — use search_graph(name_pattern=".*Partial.*") first to discover names.
  4. direction="outbound" misses cross-service callers — use direction="both" for full context.

What it can do on your machine

Read from SKILL.md and the folder at commit baac1e8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Codebase Memory Reference loads about 1.7k tokens when it runs. Until then it costs about 73 tokens; SKILL.md has 544 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~73
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from DmNote-App/DmNote at commit baac1e8, republished under its GPL-3.0 licence (© DmNote-App). 544 words, ~1,713 tokens.

Download SKILL.mdSave it as .claude/skills/codebase-memory-reference/SKILL.md (or your agent's skills folder).
name
codebase-memory-reference
description
This skill should be used when the user asks about "codebase-memory-mcp tools", "graph query syntax", "Cypher query examples", "edge types", "how to use search_graph", "query_graph examples", or needs reference documentation for the codebase knowledge graph tools.

Codebase Memory MCP — Tool Reference

Tools (14 total)

ToolPurpose
index_repositoryParse and ingest repo into graph (only once — auto-sync keeps it fresh)
index_statusCheck indexing status (ready/indexing/not found)
list_projectsList all indexed projects with timestamps and counts
delete_projectRemove a project from the graph
search_graphStructured search with filters (name, label, degree, file pattern)
search_codeGrep-like text search within indexed project files
trace_call_pathBFS call chain traversal (exact name match required). Supports risk_labels=true for impact classification.
detect_changesMap git diff to affected symbols + blast radius with risk scoring
query_graphCypher-like graph queries (200-row cap)
get_graph_schemaNode/edge counts, relationship patterns
get_code_snippetRead source code by qualified name
read_fileRead any file from indexed project
list_directoryList files/directories with glob filter
ingest_tracesIngest OpenTelemetry traces to validate HTTP_CALLS edges

Edge Types

TypeMeaning
CALLSDirect function call within same service
HTTP_CALLSSynchronous cross-service HTTP request
ASYNC_CALLSAsync dispatch (Cloud Tasks, Pub/Sub, SQS, Kafka)
IMPORTSModule/package import
DEFINES / DEFINES_METHODModule/class defines a function/method
HANDLESRoute node handled by a function
IMPLEMENTSType implements an interface
OVERRIDEStruct method overrides an interface method
USAGERead reference (callback, variable assignment)
FILE_CHANGES_WITHGit history change coupling
CONTAINS_FILE / CONTAINS_FOLDER / CONTAINS_PACKAGEStructural containment

Node Labels

Project, Package, Folder, File, Module, Class, Function, Method, Interface, Enum, Type, Route

Qualified Name Format

<project>.<path_parts>.<name> — file path with / replaced by ., extension removed.

Examples:

  • myproject.cmd.server.main.HandleRequest (Go)
  • myproject.services.orders.ProcessOrder (Python)
  • myproject.src.components.App.App (TypeScript)

Use search_graph to discover qualified names, then pass them to get_code_snippet.

Cypher Subset (for query_graph)

Supported:

  • MATCH with node labels and relationship types
  • Variable-length paths: -[:CALLS*1..3]->
  • WHERE with =, <>, >, <, >=, <=, =~ (regex), CONTAINS, STARTS WITH
  • WHERE with AND, OR, NOT
  • RETURN with property access, COUNT(x), DISTINCT
  • ORDER BY with ASC/DESC
  • LIMIT
  • Edge property access: r.confidence, r.url_path, r.coupling_score

Not supported: WITH, COLLECT, SUM, CREATE/DELETE/SET, OPTIONAL MATCH, UNION

Common Cypher Patterns

# Cross-service HTTP calls with confidence
MATCH (a)-[r:HTTP_CALLS]->(b) RETURN a.name, b.name, r.url_path, r.confidence LIMIT 20

# Filter by URL path
MATCH (a)-[r:HTTP_CALLS]->(b) WHERE r.url_path CONTAINS '/orders' RETURN a.name, b.name

# Interface implementations
MATCH (s)-[r:OVERRIDE]->(i) RETURN s.name, i.name LIMIT 20

# Change coupling
MATCH (a)-[r:FILE_CHANGES_WITH]->(b) WHERE r.coupling_score >= 0.5 RETURN a.name, b.name, r.coupling_score

# Functions calling a specific function
MATCH (f:Function)-[:CALLS]->(g:Function) WHERE g.name = 'ProcessOrder' RETURN f.name LIMIT 20

Regex-Powered Search (No Full-Text Index Needed)

search_graph and search_code support full Go regex, making full-text search indexes unnecessary. Regex patterns provide precise, composable queries that cover all common discovery scenarios:

Show full SKILL.md (220 more words)Show less
search_graph — name_pattern / qn_pattern
PatternMatchesUse case
.*Handler$names ending in HandlerFind all handlers
(?i)authcase-insensitive "auth"Find auth-related symbols
get|fetch|loadany of three wordsFind data-loading functions
^on[A-Z]names starting with on + uppercaseFind event handlers
.*Service.*ImplService...Impl patternFind service implementations
^(Get|Set|Delete)CRUD prefixesFind CRUD operations
.*_test$names ending in _testFind test functions
.*\\.controllers\\..*qn_pattern for directory scopingScope to controllers dir
search_code — regex=true
PatternMatchesUse case
TODO|FIXME|HACKmulti-pattern scanFind tech debt markers
(?i)password|secret|tokencase-insensitive secretsSecurity scan
func\\s+TestGo test functionsFind test entry points
api[._/]v[0-9]API version referencesFind versioned API usage
import.*from ['"]@scoped npm importsFind package imports
Combining Filters for Surgical Queries
# Find unused auth handlers
search_graph(name_pattern="(?i).*auth.*handler.*", max_degree=0, exclude_entry_points=true)

# Find high fan-out functions in the services directory
search_graph(qn_pattern=".*\\.services\\..*", min_degree=10, relationship="CALLS", direction="outbound")

# Find all route handlers matching a URL pattern
search_code(pattern="(?i)(POST|PUT).*\\/api\\/v[0-9]\\/orders", regex=true)

Critical Pitfalls

  1. search_graph(relationship="HTTP_CALLS") does NOT return edges — it filters nodes by degree. Use query_graph with Cypher to see actual edges.
  2. query_graph has a 200-row cap before aggregation — COUNT queries silently undercount on large codebases. Use search_graph with min_degree/max_degree for counting.
  3. trace_call_path needs exact names — use search_graph(name_pattern=".*Partial.*") first to discover names.
  4. direction="outbound" misses cross-service callers — use direction="both" for full context.

Decision Matrix

QuestionUse
Who calls X?trace_call_path(direction="inbound")
What does X call?trace_call_path(direction="outbound")
Full call contexttrace_call_path(direction="both")
Find by name patternsearch_graph(name_pattern="...")
Dead codesearch_graph(max_degree=0, exclude_entry_points=true)
Cross-service edgesquery_graph with Cypher
Impact of local changesdetect_changes()
Risk-classified tracetrace_call_path(risk_labels=true)
Text searchsearch_code or Grep

© DmNote-App, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .codex/skills/codebase-memory-reference of DmNote-App/DmNote.

Open the folder on GitHubat commit baac1e8

Compare with similar skills

Codebase Memory Reference next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Codebase Memory Reference compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Codebase Memory Reference this skillDmNote-App/DmNote2.6k—~1.7kAutomated safety check: PassGPL-3.0
Sage Wikixoai/sage-wiki620—~2.4kAutomated safety check: PassMIT
Cortexdbliliang-cn/cortexdb274—~5.7kAutomated safety check: WarnMIT
MemPalace MemoryMemPalace/mempalace59k—~2.7kAutomated safety check: PassMIT
Docsmint Document ManagerHiAi-gg/docsmint118—~584Automated safety check: PassApache-2.0
Architecture Knowledge GraphBV-Venky/excalidraw-architect-mcp157—~1.1kAutomated safety check: PassMIT

Similar skills

  • Sage Wiki

    xoai/sage-wiki

    Reference skill for sage-wiki — local-first knowledge graph with MCP server, REST API, compiled wiki, and Obsidian-compatible output.

    620 GitHub stars~2.4k tokensUpdated yesterday
    Knowledge ManagementAuto-check passed
  • Cortexdb

    liliang-cn/cortexdb

    Use CortexDB for local-first AI memory, vector search, RAG, knowledge graphs, SPARQL/RDFS/SHACL, corpus-to-graph workflows, and MCP/tool calling.

    274 GitHub stars~5.7k tokensUpdated yesterday
    Knowledge ManagementAuto-check: warnings
  • MemPalace Memory

    MemPalace/mempalace

    Gives an agent a local memory palace over MCP: verbatim conversation memory, semantic search and a temporal knowledge graph, with a per-session recall protocol.

    59k GitHub stars~2.7k tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Manage and research DocsMint documents through its scoped MCP tools, including categories, folders, hybrid search, GraphRAG, rerank, and index refresh.

    118 GitHub stars~584 tokensUpdated 9 days ago
    Knowledge ManagementAuto-check passed
  • Architecture Knowledge Graph

    BV-Venky/excalidraw-architect-mcp

    Guide for reading a codebase and building a high-quality, persistent architecture knowledge graph via the Excalidraw Architect MCP kg tools.

    157 GitHub stars~1.1k tokensUpdated 1 mo ago
    Knowledge ManagementAuto-check passed
  • Cortexdb

    liliang-cn/cortexdb

    Use CortexDB for local-first AI memory, vector search, RAG, knowledge graphs, SPARQL/RDFS/SHACL, corpus-to-graph workflows, external structured-data import (CSV / SQL dumps), and MCP/tool calling.

    274 GitHub stars~18k tokensUpdated yesterday
    Knowledge ManagementAuto-check: warnings

More from DmNote-App/DmNote

  • Codebase Memory Exploring

    DmNote-App/DmNote

    This skill should be used when the user asks to "explore the codebase", "understand the architecture", "what functions exist", "show me the structure", "how is the code organized", "find functions…

    2.6k GitHub stars~576 tokensUpdated today
    Auto-check passed
  • Codebase Memory Quality

    DmNote-App/DmNote

    This skill should be used when the user asks about "dead code", "find dead code", "detect dead code", "show dead code", "dead code analysis", "unused functions", "find unused functions"…

    2.6k GitHub stars~683 tokensUpdated today
    Auto-check passed
  • Codebase Memory Tracing

    DmNote-App/DmNote

    This skill should be used when the user asks "who calls this function", "what does X call", "trace the call chain", "find callers of", "show dependencies", "what depends on", "trace call path"…

    2.6k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Agent Debug

    DmNote-App/DmNote

    원인이 불명확한 버그를 독립 서브에이전트와 병렬로 추적한다. An agent skill from DmNote-App/DmNote.

    2.6k GitHub stars~249 tokensUpdated today
    Auto-check passed
  • Agent Plan

    DmNote-App/DmNote

    구현 전 독립 서브에이전트에게 계획을 검증받는다. An agent skill from DmNote-App/DmNote.

    2.6k GitHub stars~234 tokensUpdated today
    Auto-check passed
  • Agent Review

    DmNote-App/DmNote

    독립 서브에이전트의 적대적 코드 리뷰. An agent skill from DmNote-App/DmNote.

    2.6k GitHub stars~307 tokensUpdated today
    Auto-check passed

Questions about Codebase Memory Reference

What does Codebase Memory Reference do?

This skill should be used when the user asks about "codebase-memory-mcp tools", "graph query syntax", "Cypher query examples", "edge types", "how to use searchgraph", "querygraph examples", or needs…. Codebase Memory Reference is an agent skill from DmNote-App/DmNote. This skill should be used when the user asks about "codebase-memory-mcp tools", "graph query syntax", "Cypher query examples", "edge types", "how to use searchgraph", "querygraph examples", or needs reference documentation for the codebase knowledge graph tools.

When should I use Codebase Memory Reference?

Codebase Memory Reference fits situations like: asks about codebase-memory-mcp tools; graph query syntax; cypher query examples; how to use searchgraph.

How do I install Codebase Memory Reference in Claude Code?

Run `npx skills add DmNote-App/DmNote --skill codebase-memory-reference -a claude-code`. Or copy the skill folder (.codex/skills/codebase-memory-reference in DmNote-App/DmNote) into .claude/skills/codebase-memory-reference in your project. Claude Code loads it when a task matches its description.

How do I install Codebase Memory Reference in Codex?

Run `npx skills add DmNote-App/DmNote --skill codebase-memory-reference -a codex`. Or copy the skill folder (.codex/skills/codebase-memory-reference in DmNote-App/DmNote) into .agents/skills/codebase-memory-reference in your project. Codex loads it when a task matches its description.

Can I use Codebase Memory Reference in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add DmNote-App/DmNote --skill codebase-memory-reference -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/codebase-memory-reference, .gemini/skills/codebase-memory-reference, .github/skills/codebase-memory-reference and .opencode/skills/codebase-memory-reference in your project.

What does Codebase Memory Reference need to run?

SKILL.md names no scripts, command-line tools or credentials: Codebase Memory Reference is instructions for the agent only.

Does Codebase Memory Reference access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Codebase Memory Reference safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Codebase Memory Reference use?

Codebase Memory Reference is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Codebase Memory Reference use?

About 1.7k tokens (SKILL.md is roughly 6.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Codebase Memory Reference?

Skills that share tags, products or a category with Codebase Memory Reference: Sage Wiki (xoai/sage-wiki, 620 stars), Cortexdb (liliang-cn/cortexdb, 274 stars), MemPalace Memory (MemPalace/mempalace, 59k stars) and Docsmint Document Manager (HiAi-gg/docsmint, 118 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Codebase Memory Reference?

DmNote-App (a GitHub organization) maintains it in DmNote-App/DmNote, which has 2,644 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 7, 2026.

Source: DmNote-App/DmNote on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.