Skip to content
Back to skills

Codebase Memory

FSecurity

Code research over an indexed codebase with minimal context: graph queries, call chains, architecture overview, dead code. Context minimisation.

  • 6 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 9, 2026
ai-agentsgobashsqlgitapi

Works with

  • cli
  • api
  • mcp

Security analysis

F34/100
  • criticalPipes output to a shell interpreter
  • mediumUses curl or wget to download content
  • criticalDownloads and executes remote scripts — classic supply chain attack
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned November 9, 2026

npx -y skills add hybridlabor-api/aos --skill codebase-memory --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Codebase Memory?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Codebase Memory
[![Security: F — Skills Directory](https://www.skillsdirectory.com/api/skills/hybridlabor-api-codebase-memory/badge)](https://www.skillsdirectory.com/skills/hybridlabor-api-codebase-memory)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: codebase-memory
description: >-
  Code research over an indexed codebase with minimal context: graph queries,
  call chains, architecture overview, dead code. Context minimisation.
category: bdb-core
---

# codebase-memory — indexed code knowledge graph over MCP

`codebase_memory_mcp` is the MCP server for the third-party
[codebase-memory-mcp](https://github.com/DeusData/codebase-memory-mcp) binary: it
indexes a repository into a persistent, local SQLite knowledge graph and answers
structural queries in-process. Everything stays on the machine — no cloud calls,
no API keys. **Prerequisite:** requires the `codebase-memory-mcp` binary on PATH. Install with:
`curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash` (or `npm install -g codebase-memory-mcp`).
If the server is absent, ask the user to install it per
`docs/codebase-memory.md`; do not pretend to have graph access.

## Core workflow

1. **Index once:** say "index this project" or run
   `codebase-memory-mcp cli index_repository '{"path": "."}'` before deep dives.
2. **Prefer graph queries over file reads** when the question is structural:
   `get_architecture` (one call for the whole repo), `trace_path`
   (call chains), `search_graph` (regex/label search), `detect_changes`
   (git-diff impact). Only open a file to confirm the findings you already have.
3. **Context minimisation:** one graph query replaces dozens of grep/read
   cycles (~99% fewer tokens). Never paste file contents to "explore"; query
   the graph and read only the cited file, then cite it in your answer.

## Synergy with the AOS local stack

- **memB:** the graph holds structure, memB (`memb-mcp`) holds project memory
  and conversation semantics — query memB for "what we decided", the graph for
  "how the code is wired".
- **Synapse:** Synapse visualises the codebase spatially (`synapse map <repo>`);
  use the graph for precise symbol-level questions and Synapse for spatial
  orientation, then the source files for verbatim confirmation.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.