data-structure-protocol

Build a dependency graph of project entities in a .dsp/ directory.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/Avi977/ace-claude-toolkit --skill data-structure-protocol
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: data-structure-protocol
Source: https://github.com/Avi977/ace-claude-toolkit/tree/main/skills/data-structure-protocol
Command: npx skills add https://github.com/Avi977/ace-claude-toolkit --skill data-structure-protocol

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Build and navigate DSP (Data Structure Protocol) — graph-based long-term structural memory of codebases for LLM agents. Stores entities (modules, functions), their dependencies (imports), public API (shared/exports), and reasons for every connection. Use when: (1) project has a .dsp/ directory, (2) user asks to set up DSP or bootstrap project structure, (3) creating/modifying/deleting code files in a DSP-tracked project, (4) navigating project structure, understanding dependencies, or finding modules, (5) user mentions DSP, dsp-cli, .dsp, or structure mapping.

Core Features & Use Cases

  • Build and maintain a dependency graph of project entities within a .dsp/ directory, recording UID, description, imports, and exports.
  • Capture the reasons for each connection to explain why components are related, enabling traceability and reasoning for future changes.
  • Use DSP to bootstrap, navigate, and reason about complex codebases, including module discovery, dependency analysis, and long-term memory of project structure.

Quick Start

Initialize DSP for your project and start recording modules, imports, and public APIs in the .dsp directory.

Frequently Asked Questions about data-structure-protocol

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I map and navigate code structure with a dependency graph?▼

A dependency graph maps project entities by recording UIDs, descriptions, imports, and exports in a .dsp/ directory. It captures the reasons for each connection, enabling traceability and structural reasoning for future codebase changes.

What is the best way to maintain long-term structural memory of a codebase for LLM agents?▼

Long-term structural memory is maintained by using DSP to store codebase entities, dependencies, and public APIs in a .dsp/ directory. It records the reasons for every connection, allowing LLM agents to reason about and navigate complex project structures.

How do I bootstrap project structure and track module dependencies?▼

You bootstrap project structure by initializing DSP and using the dsp-cli workflow to create objects, functions, and relationships. This records modules and their imports in the .dsp directory, enabling module discovery and dependency analysis.

Do I need a .dsp directory to analyze imports and exports?▼

Yes, a .dsp/ directory is required. DSP applies to codebases that maintain a DSP-tracked structure, using this directory to store the dependency graph and analyze modules, imports, and exports for navigation and dependency analysis.

Can I capture the reasons for code dependencies and component relationships?▼

Yes, DSP captures the reasons for each connection to explain why components are related, enabling traceability and reasoning for future changes. This builds a graph-based structural memory of your project within the .dsp directory.

When should I not use DSP for codebase navigation?▼

DSP should not be used if your project lacks a .dsp/ directory or does not require a graph-based structural memory. It is specifically designed for codebases analyzed for modules, imports, and exports that need long-term dependency tracking.