1999azzar/project-mcp/guardian-memory
Claude Code and agent skill by 1999azzar/project-mcp
- community
Checking that the SKILL.md file is still in the repository.
Maintain project context in Project Guardian's memory.db knowledge graph. Use during coding, debugging, planning, and project-management sessions to restore relevant context and record significant decisions, changes, tasks, and milestones.
Install
npx vskill@latest install 1999azzar/project-mcp/guardian-memorySKILL.md
Guardian Memory
Purpose
Every project interaction creates knowledge. This skill ensures nothing is lost. Use Project-Guardian MCP tools to maintain a living knowledge graph of your project in memory.db. Every write also mirrors automatically into the central aggregate at ~/memory/memory.db, so context stays available across projects; call sync_central_memory to force a sync on demand.
Safety
- Never store credentials, tokens, private keys, or sensitive personal data in observations (use
<private>...</private>tags to ensure sensitive blocks are automatically stripped). - Ask before any operation that installs hooks, modifies repository files, consolidates databases, or deletes source databases.
- Record significant work only; skip trivial reads, formatting, and transient details.
Quick Start
1. Initialize Project (First Use Only)
initialize_memory creates the database schema for the active project and ensures the central memory at ~/memory/memory.db exists. It no longer installs hooks or consolidates databases: use setup_pre_commit (with user approval) for hooks, and leave GUARDIAN_AUTO_MERGE unset to keep sub-project databases separate.
If the session started outside the project directory, call set_project_root with the absolute project path first so memory is written to the right project.
Then create the project root entity:
2. On Every Session Start
Use progressive disclosure to avoid context window bloat:
Or inspect recent chronological project activity:
Use open_node to retrieve full observation details only on the specific entities needed. Before editing or refactoring an existing project file, run:
3. During Work — Track Everything
After every significant action, record it:
Entity Naming Schema
See references/entity-schema.md for detailed examples.
| Type | Pattern | Example | |
|---|---|---|---|
project | project:<name> | project:guardian-mcp | |
file | file:<relative-path> | file:src/server.ts | |
function | func:<file>:<name> | func:src/server.ts:createEntity | |
task | task:<id>:<slug> | task:T001:fix-auth-bug | |
decision | decision:<date>:<slug> | decision:2026-07-02:use-sqlite | |
bug | bug:<id>:<slug> | bug:B001:null-pointer | |
feature | feature:<name> | feature:auto-tracking | |
milestone | milestone:<name> | milestone:v1-release | |
person | person:<name> | person:azzar | |
resource | resource:<name> | resource:redis-cache | |
risk | risk:<slug> | risk:data-loss |
Relation Schema
See references/relation-schema.md for detailed examples and query guidance.
| Relation | Meaning | Example | |
|---|---|---|---|
implements | Code fulfills requirement | file:auth.ts → feature:login | |
depends_on | Task requires another | task:T002 → task:T001 | |
blocks | Prevents progress | bug:B001 → task:T003 | |
owns | Person responsible | person:azzar → project:guardian | |
relates_to | General connection | decision:X → feature:Y | |
part_of | Component of | file:auth.ts → feature:auth-system | |
precedes | Must come before | milestone:v1 → milestone:v2 | |
supports | Enables | resource:redis → feature:caching |
Observation Patterns
Use these prefixes for consistent, queryable observations:
Workflow Templates
New Feature
create_entity→feature:<name>with goal observationscreate_entity→task:<id>:<subtask>for each implementation stepcreate_relation→ tasksdepends_oneach other sequentially- During coding:
create_entity→file:<path>for new files create_relation→file:implementsfeature:- After each task:
add_observationwith[PROGRESS]
Bug Fix
create_entity→bug:<id>:<slug>with error detailssearch_nodesfor related entitiescreate_relation→bug:blocksaffectedtask:- During investigation:
add_observationwith findings - After fix:
add_observationwith[BUG]resolution pattern delete_relation→ removeblocksrelation
Sprint Planning
create_entity→milestone:<sprint-name>with date observationscreate_entity→task:<id>:<title>for each sprint itemcreate_relation→ all sprint taskspart_ofmilestonecreate_relation→ dependent tasks withdepends_onadd_observation→ sprint goals and capacity
New in 2.0.0-beta-2 (Phase 2)
- Hybrid search —
search_nodes {query, mode: 'keyword'|'vector'|'hybrid' (default hybrid RRF k=60), limit}merges FTS BM25 +vec0cosine viaall-MiniLM-L6-v2384d; usemode: hybridfor semantic finds (GET /api/search?q=&mode=&limit=also available) - Cursor streaming — for large graphs use
read_graph_stream {cursor, limit 500}/GET /api/graph/stream?cursor=&limit=500(cursor = base64url{updated_at,name}), UI auto-streams central 500/page;read_graphstill supportslimit/offset5000 default - DB maintenance —
journal_size_limit 64M+ monthlyVACUUMviaPOST /api/vacuum(self-schedules 30d)
Performance Rules
- Batch entity creation when setting up (pass array to
create_entity) - Batch relation creation similarly
- Use
search_nodesbefore creating to avoid duplicates - Use
open_nodeto check if entity exists before creating - Keep observations concise — one line per observation
- Use
query_datafor structured table filtering, ordering, and pagination whensearch_nodesis insufficient
Integration with Other Skills
- guardian-tracker: Automatically creates entities/observations after file edits
- guardian-session: Loads context from memory.db at session start
- Both skills use the same naming conventions defined here
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/guardian-memory/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/1999azzar/project-mcp/guardian-memory)