Skip to content
Back to skills

Repo Memory Graph

ASecurity

Build and maintain a persistent graph of architecture, conventions, bug history, ownership patterns, and module relationships for this specific codebase.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 9, 2026
ai-agentsgonodegitapisecurity

Works with

  • api

Security analysis

A100/100

Scanned October 9, 2026

npx -y skills add alisattorov06/ali-kiro --skill repo-memory-graph --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Repo Memory Graph?

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

Security grade badge for Repo Memory Graph
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alisattorov06-repo-memory-graph/badge)](https://www.skillsdirectory.com/skills/alisattorov06-repo-memory-graph)

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: repo-memory-graph
description: Build and maintain a persistent graph of architecture, conventions, bug history, ownership patterns, and module relationships for this specific codebase.
origin: FlowDeck
---

# Repo Memory Graph

The Repo Memory Graph is FlowDeck's long-term knowledge store about this specific codebase. It persists in `~/.fd-plan/<slug>/.codebase/MEMORY.json` and grows over time.

## What Gets Stored

- **Modules**: files, their type (service/api/schema/config), owner, tags
- **Dependencies**: which modules import or call which others
- **Conventions**: patterns used in this repo (naming, error handling, auth flow)
- **Bug history**: which modules have had recurring issues
- **Ownership**: who owns what (from git blame, CODEOWNERS, or explicit annotation)

## When to Update

Update the graph:
- After `/fd-task` maps the codebase during init
- When onboarding a new module
- When a bug fix reveals a recurring pattern (add to `bug_history`)
- When a refactor changes module ownership

## Usage with `repo-memory` tool

```json
// Write a node
{ "action": "write_node", "node_id": "auth-service", "node": {
    "type": "service", "path": "src/services/auth.ts",
    "owner": "security-team", "tags": ["auth", "jwt"],
    "dependencies": ["user-model", "token-store"],
    "dependents": ["api-gateway", "session-handler"],
    "bug_history": ["jwt-expiry-bug-2024-03"],
    "conventions": ["always validate token before processing"]
}}

// Query by owner
{ "action": "query", "query": { "owner": "security-team" } }
```

## How Agents Use This

- **Impact Radar**: walks the dependency graph to find affected modules
- **Blast Radius**: traverses dependents to map downstream risk
- **Regression Prediction**: uses bug_history to weight risk categories
- **Architectural Constraint Guard**: checks module boundaries before allowing edits

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.

Comments

Loading comments…

Newsletter

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