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.
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…
$ npx skills add DmNote-App/DmNote --skill codebase-memory-reference -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install DmNote-App/DmNote codebase-memory-reference --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ 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-srcUse ~/.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/
Install the "codebase-memory-reference" agent skill from https://github.com/DmNote-App/DmNote/tree/main/.codex/skills/codebase-memory-reference into .claude/skills/codebase-memory-reference/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codebase-memory-reference", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/DmNote-App/DmNote/tree/main/.codex/skills/codebase-memory-referenceType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add DmNote-App/DmNote --skill codebase-memory-reference -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install DmNote-App/DmNote codebase-memory-reference --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/DmNote-App/DmNote.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.codex/skills/codebase-memory-reference .agents/skills/codebase-memory-reference && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "codebase-memory-reference" agent skill from https://github.com/DmNote-App/DmNote/tree/main/.codex/skills/codebase-memory-reference into .agents/skills/codebase-memory-reference/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codebase-memory-reference", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add DmNote-App/DmNote --skill codebase-memory-reference -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install DmNote-App/DmNote codebase-memory-reference --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/DmNote-App/DmNote.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.codex/skills/codebase-memory-reference .cursor/skills/codebase-memory-reference && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "codebase-memory-reference" agent skill from https://github.com/DmNote-App/DmNote/tree/main/.codex/skills/codebase-memory-reference into .cursor/skills/codebase-memory-reference/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codebase-memory-reference", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/DmNote-App/DmNote.git --path .codex/skills/codebase-memory-reference--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add DmNote-App/DmNote --skill codebase-memory-reference -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install DmNote-App/DmNote codebase-memory-reference --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/DmNote-App/DmNote.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.codex/skills/codebase-memory-reference .gemini/skills/codebase-memory-reference && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "codebase-memory-reference" agent skill from https://github.com/DmNote-App/DmNote/tree/main/.codex/skills/codebase-memory-reference into .gemini/skills/codebase-memory-reference/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codebase-memory-reference", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install DmNote-App/DmNote codebase-memory-referenceInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add DmNote-App/DmNote --skill codebase-memory-reference -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/DmNote-App/DmNote.git skills-src && mkdir -p .github/skills && cp -r skills-src/.codex/skills/codebase-memory-reference .github/skills/codebase-memory-reference && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "codebase-memory-reference" agent skill from https://github.com/DmNote-App/DmNote/tree/main/.codex/skills/codebase-memory-reference into .github/skills/codebase-memory-reference/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codebase-memory-reference", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add DmNote-App/DmNote --skill codebase-memory-reference -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install DmNote-App/DmNote codebase-memory-reference --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/DmNote-App/DmNote.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.codex/skills/codebase-memory-reference .opencode/skills/codebase-memory-reference && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "codebase-memory-reference" agent skill from https://github.com/DmNote-App/DmNote/tree/main/.codex/skills/codebase-memory-reference into .opencode/skills/codebase-memory-reference/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codebase-memory-reference", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
codebase-memory-referenceThis 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.
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.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit baac1e8. It shows what the files ask for, not the result of running them.
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.
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.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
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.
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.
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.
The full file from DmNote-App/DmNote at commit baac1e8, republished under its GPL-3.0 licence (© DmNote-App). 544 words, ~1,713 tokens.
.claude/skills/codebase-memory-reference/SKILL.md (or your agent's skills folder).| Tool | Purpose |
|---|---|
index_repository | Parse and ingest repo into graph (only once — auto-sync keeps it fresh) |
index_status | Check indexing status (ready/indexing/not found) |
list_projects | List all indexed projects with timestamps and counts |
delete_project | Remove a project from the graph |
search_graph | Structured search with filters (name, label, degree, file pattern) |
search_code | Grep-like text search within indexed project files |
trace_call_path | BFS call chain traversal (exact name match required). Supports risk_labels=true for impact classification. |
detect_changes | Map git diff to affected symbols + blast radius with risk scoring |
query_graph | Cypher-like graph queries (200-row cap) |
get_graph_schema | Node/edge counts, relationship patterns |
get_code_snippet | Read source code by qualified name |
read_file | Read any file from indexed project |
list_directory | List files/directories with glob filter |
ingest_traces | Ingest OpenTelemetry traces to validate HTTP_CALLS edges |
| Type | Meaning |
|---|---|
CALLS | Direct function call within same service |
HTTP_CALLS | Synchronous cross-service HTTP request |
ASYNC_CALLS | Async dispatch (Cloud Tasks, Pub/Sub, SQS, Kafka) |
IMPORTS | Module/package import |
DEFINES / DEFINES_METHOD | Module/class defines a function/method |
HANDLES | Route node handled by a function |
IMPLEMENTS | Type implements an interface |
OVERRIDE | Struct method overrides an interface method |
USAGE | Read reference (callback, variable assignment) |
FILE_CHANGES_WITH | Git history change coupling |
CONTAINS_FILE / CONTAINS_FOLDER / CONTAINS_PACKAGE | Structural containment |
Project, Package, Folder, File, Module, Class, Function, Method, Interface, Enum, Type, Route
<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.
Supported:
MATCH with node labels and relationship types-[:CALLS*1..3]->WHERE with =, <>, >, <, >=, <=, =~ (regex), CONTAINS, STARTS WITHWHERE with AND, OR, NOTRETURN with property access, COUNT(x), DISTINCTORDER BY with ASC/DESCLIMITr.confidence, r.url_path, r.coupling_scoreNot supported: WITH, COLLECT, SUM, CREATE/DELETE/SET, OPTIONAL MATCH, UNION
# 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 20search_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:
| Pattern | Matches | Use case |
|---|---|---|
.*Handler$ | names ending in Handler | Find all handlers |
(?i)auth | case-insensitive "auth" | Find auth-related symbols |
get|fetch|load | any of three words | Find data-loading functions |
^on[A-Z] | names starting with on + uppercase | Find event handlers |
.*Service.*Impl | Service...Impl pattern | Find service implementations |
^(Get|Set|Delete) | CRUD prefixes | Find CRUD operations |
.*_test$ | names ending in _test | Find test functions |
.*\\.controllers\\..* | qn_pattern for directory scoping | Scope to controllers dir |
| Pattern | Matches | Use case |
|---|---|---|
TODO|FIXME|HACK | multi-pattern scan | Find tech debt markers |
(?i)password|secret|token | case-insensitive secrets | Security scan |
func\\s+Test | Go test functions | Find test entry points |
api[._/]v[0-9] | API version references | Find versioned API usage |
import.*from ['"]@ | scoped npm imports | Find package imports |
# 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)search_graph(relationship="HTTP_CALLS") does NOT return edges — it filters nodes by degree. Use query_graph with Cypher to see actual edges.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.trace_call_path needs exact names — use search_graph(name_pattern=".*Partial.*") first to discover names.direction="outbound" misses cross-service callers — use direction="both" for full context.| Question | Use |
|---|---|
| Who calls X? | trace_call_path(direction="inbound") |
| What does X call? | trace_call_path(direction="outbound") |
| Full call context | trace_call_path(direction="both") |
| Find by name pattern | search_graph(name_pattern="...") |
| Dead code | search_graph(max_degree=0, exclude_entry_points=true) |
| Cross-service edges | query_graph with Cypher |
| Impact of local changes | detect_changes() |
| Risk-classified trace | trace_call_path(risk_labels=true) |
| Text search | search_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
Just SKILL.md in .codex/skills/codebase-memory-reference of DmNote-App/DmNote.
Open the folder on GitHubat commit baac1e8
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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Codebase Memory Reference this skillDmNote-App/DmNote | 2.6k | — | ~1.7k | Automated safety check: Pass | GPL-3.0 | |
| Sage Wikixoai/sage-wiki | 620 | — | ~2.4k | Automated safety check: Pass | MIT | |
| Cortexdbliliang-cn/cortexdb | 274 | — | ~5.7k | Automated safety check: Warn | MIT | |
| MemPalace MemoryMemPalace/mempalace | 59k | — | ~2.7k | Automated safety check: Pass | MIT | |
| Docsmint Document ManagerHiAi-gg/docsmint | 118 | — | ~584 | Automated safety check: Pass | Apache-2.0 | |
| Architecture Knowledge GraphBV-Venky/excalidraw-architect-mcp | 157 | — | ~1.1k | Automated safety check: Pass | MIT |
xoai/sage-wiki
Reference skill for sage-wiki — local-first knowledge graph with MCP server, REST API, compiled wiki, and Obsidian-compatible output.
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.
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.
HiAi-gg/docsmint
Manage and research DocsMint documents through its scoped MCP tools, including categories, folders, hybrid search, GraphRAG, rerank, and index refresh.
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.
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.
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…
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"…
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"…
DmNote-App/DmNote
원인이 불명확한 버그를 독립 서브에이전트와 병렬로 추적한다. An agent skill from DmNote-App/DmNote.
DmNote-App/DmNote
구현 전 독립 서브에이전트에게 계획을 검증받는다. An agent skill from DmNote-App/DmNote.
DmNote-App/DmNote
독립 서브에이전트의 적대적 코드 리뷰. An agent skill from DmNote-App/DmNote.
Categories
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.
Codebase Memory Reference fits situations like: asks about codebase-memory-mcp tools; graph query syntax; cypher query examples; how to use searchgraph.
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.
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.
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.
SKILL.md names no scripts, command-line tools or credentials: Codebase Memory Reference is instructions for the agent only.
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.
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.
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.
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.
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.
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.