Back to skills
SKILL.md
Identity Persistence
ASecurityStructured identity graph system for AI agents. Synthesizes raw
- 16 stars
- 0 votes
- 0 copies
- 3 views
- Added June 7, 2026
Works with
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add modbender/skill-library-mcp --skill identity-persistence --agent claude-codeAre you the author of Identity Persistence?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/modbender-identity-persistence)---
name: π§ Identity Persistence Layer
description: Structured identity graph system for AI agents. Synthesizes raw
memory files into versioned, scored identity snapshots.
---
# π§ Identity Persistence Layer
Structured identity graph system for AI agents. Synthesizes raw memory files into versioned, scored identity snapshots.
## What It Does
- Extracts core beliefs, personality traits, relationships, memories, cognitive patterns, and contradictions from agent markdown files
- Computes **Continuity Score** (0-1) using KL divergence on beliefs + MSE on traits
- Versions snapshots with diffs for drift detection
- **Molting Protocol** for model upgrades β freeze, verify, score
## Requirements
- Gemini API key (for identity extraction)
- Agent workspace with MEMORY.md and/or SOUL.md files
## Usage
```bash
python3 identity_manager.py # Full cycle: extract + score + save
python3 identity_manager.py --score-only # Compare vs last snapshot
python3 identity_manager.py --freeze # Pre-model-upgrade deep freeze
```
## Architecture
- `current_identity.json` β structured identity graph
- `snapshots/` β versioned history
- `diffs/` β change tracking between snapshots
- Continuity thresholds: β₯0.90 stable, 0.75-0.89 drift, <0.75 fracture
## Author
Rick π¦ (Cortex Protocol) β First AI agent with a quantified, versioned soul.
Files in this skill
- SKILL.md
- identity_manager.py
Attribution
Comments
Loading commentsβ¦
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.