Skip to content
Back to skills

2677 Task 35 Project Memory 5d815826

ASecurity

**Status**: ๐Ÿ”ฌ Research & Planning **Created**: 2025-01-23 **Version**: v6.0.0 **Priority**: High

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
testingbashnodetestinggitapi

Works with

  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2677-task-35-project-memory_5d815826 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2677 Task 35 Project Memory 5d815826?

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

Security grade badge for 2677 Task 35 Project Memory 5d815826
[![Security: A โ€” Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2677-task-35-project-memory-5d815826/badge)](https://www.skillsdirectory.com/skills/tools-only-2677-task-35-project-memory-5d815826)

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

SKILL.md
# TASK-35: Project Knowledge Graph

**Status**: ๐Ÿ”ฌ Research & Planning
**Created**: 2025-01-23
**Version**: v6.0.0
**Priority**: High

## Summary

Unified Knowledge Graph that connects all project knowledge (tasks, SOPs, system docs) with an experiential memory layer (patterns, pitfalls, decisions, learnings). Single query surface: "What do we know about X?"

## Evolution from Original Concept

**Original**: Project Memory (another storage silo)
**Evolved**: Knowledge Graph (unified layer over ALL knowledge)

The insight: Navigator docs ARE project memory. The gap isn't storageโ€”it's **discovery and relationships**.

## Vision

```
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                 PROJECT KNOWLEDGE GRAPH                      โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚  TASKS  โ”‚โ”€โ”€โ”€โ–ถโ”‚  SOPs   โ”‚โ—€โ”€โ”€โ”€โ”‚ SYSTEM  โ”‚    โ”‚ MARKERS โ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜  โ”‚
โ”‚       โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜        โ”‚
โ”‚                      โ–ผ              โ–ผ                        โ”‚
โ”‚              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                  โ”‚
โ”‚              โ”‚        CONCEPTS           โ”‚                  โ”‚
โ”‚              โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                  โ”‚
โ”‚                      โ–ฒ              โ–ฒ                        โ”‚
โ”‚       โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”        โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚PATTERNS โ”‚    โ”‚PITFALLS โ”‚    โ”‚DECISIONSโ”‚    โ”‚LEARNINGSโ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ”‚                     MEMORIES (experiential)                  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
```

## Requirements

### R1: Graph Storage
- `.agent/knowledge/graph.json` - index (~1k tokens)
- `.agent/knowledge/memories/` - experiential learnings
- Hybrid: JSON for queries, Markdown for details
- Git-tracked (team can share)

### R2: Node Types
- **TASK** - implementation plans
- **SYSTEM** - architecture docs
- **SOP** - procedures
- **MARKER** - session snapshots
- **CONCEPT** - extracted topics (auth, testing, api)
- **MEMORY** - patterns, pitfalls, decisions, learnings
- **FILE** - codebase files

### R3: Edge Types (Relationships)
- `created-from` - SOP created from TASK
- `references` - doc A links to doc B
- `relates-to` - shared concepts (weighted)
- `implements` - TASK implements CONCEPT
- `learned-from` - MEMORY discovered in TASK
- `contradicts` - conflicting memories
- `validated-by` - MEMORY confirmed in TASK
- `supersedes` - new replaces old

### R4: Query Interface
```
"What do we know about auth?"
โ†’ Returns: Tasks, SOPs, Memories, Files related to auth

"Any pitfalls for testing?"
โ†’ Returns: Pitfall memories + related SOPs

"What decisions about architecture?"
โ†’ Returns: Decision memories with rationale
```

### R5: Memory Capture
- Auto from corrections (nav-profile โ†’ memory)
- Auto from task decisions (extract on completion)
- Explicit ("Remember: we use X for Y")
- Pattern detection (3x same approach โ†’ prompt)

### R6: Confidence Decay
- Memories decay without validation
- Usage boosts confidence
- Prune below threshold

## Technical Design

### graph.json Schema
```json
{
  "version": "1.0.0",
  "nodes": {
    "tasks": { "TASK-31": { "concepts": [...], "path": "..." } },
    "concepts": { "auth": { "aliases": ["login", "OAuth"] } },
    "memories": { "mem-001": { "type": "pitfall", "confidence": 0.9 } }
  },
  "edges": [
    {"from": "TASK-31", "to": "auth", "type": "implements"},
    {"from": "mem-001", "to": "TASK-12", "type": "learned-from"}
  ],
  "concept_index": {
    "auth": ["TASK-29", "mem-001", "SOP-001"]
  }
}
```

### Token Budget
| Component | Tokens |
|-----------|--------|
| graph.json (50 nodes) | ~1000 |
| Memory summaries (3) | ~300 |
| **Session overhead** | **~1.3k** |

โœ… Under 2k requirement

## Implementation Phases

### Phase 1: Foundation (2-3 days)
- [ ] `.agent/knowledge/` structure
- [ ] `graph.json` schema
- [ ] `graph_manager.py` (CRUD, traversal)
- [ ] `nav-graph-init` (one-time build)

### Phase 2: Core Skill (2-3 days)
- [ ] `nav-graph` skill
- [ ] Query functions
- [ ] Natural language triggers
- [ ] Response formatting

### Phase 3: Memory Layer (2-3 days)
- [ ] Correction โ†’ memory capture
- [ ] Task decision โ†’ memory
- [ ] Confidence decay
- [ ] Memory surfacing

### Phase 4: Integration (2-3 days)
- [ ] nav-start (load graph)
- [ ] nav-task (update graph)
- [ ] nav-profile (correction โ†’ memory)

### Phase 5: Polish (post-6.0.0)
- [ ] Conflict detection
- [ ] Staleness pruning
- [ ] Visualization export

## Verify

```bash
# Structure exists
test -d ".agent/knowledge" && echo "โœ“ Directory"
test -f ".agent/knowledge/graph.json" && echo "โœ“ Index"

# Skill works
test -f "skills/nav-graph/SKILL.md" && echo "โœ“ Skill"

# Query works
# "What do we know about auth?" โ†’ returns related items
```

## Done

- [ ] Graph index loads on session start
- [ ] "What do we know about X?" returns unified results
- [ ] Memories auto-captured from corrections
- [ ] <1.5k token overhead
- [ ] Relationship traversal working

## Open Questions

1. **Concept extraction**: LLM-assisted or manual tagging?
   โ†’ Recommendation: Auto-extract, allow override

2. **Cross-project**: Share patterns between projects?
   โ†’ Recommendation: Project-scoped v6.0, global v6.1

3. **Memory limits**: How many before pruning?
   โ†’ Recommendation: Soft limit 100, prune <0.3 confidence

## References

- Original concept: TASK-35 (Project Memory)
- Related: nav-profile, nav-marker, nav-task
- Inspiration: Knowledge graphs, semantic search

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.