knowledge-graphlisted
Install: claude install-skill giuseppe-trisciuoglio/developer-kit
# Knowledge Graph Skill
## Overview
Persistent JSON storage that caches agent discoveries and codebase analysis. Remember findings across sessions, validate task dependencies, query patterns/components/APIs, skip redundant exploration.
**Location**: `docs/specs/[ID-feature]/knowledge-graph.json`
---
## When to Use
1. **Cache results** - Before launching expensive codebase analysis, check if findings are already stored
2. **Remember findings** - After agent exploration, persist discoveries for future use
3. **Reuse discoveries** - Query existing context to maintain consistency across tasks
4. **Validate dependencies** - Check if required components/APIs exist before implementing
5. **Look up previous work** - Find what patterns, components, or APIs were already discovered
---
## Instructions
### read-knowledge-graph
Read existing Knowledge Graph or initialize empty structure:
```
Read file_path="docs/specs/001/knowledge-graph.json"
```
Returns full KG content. If file missing, returns empty structure and creates on first update.
---
### query-knowledge-graph
Query specific sections: `components`, `patterns`, `apis`, `integration-points`, `all`
```
Read file_path="docs/specs/001/knowledge-graph.json"
```
Filter results by section and process in-memory.
---
### update-knowledge-graph
```
# 1. Read existing
Read file_path="docs/specs/001/knowledge-graph.json"
# 2. Deep-merge updates (arrays append by ID, objects preserve existing)
# 3. Update timestamp
Write