/slm-governance
Enterprise compliance and governed workspace behavior for SuperLocalMemory. Covers role-based access (admin/member/viewer), retention policies, audit trail, GDPR data export/erase, and how agents must behave when operating under workspace governance. Requires power MCP profile
$ npx -y skills add qualixar/superlocalmemory --skill slm-governance --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/slm-governance
Context preview
The summary Claude sees to decide when to auto-load this skill.
Enterprise compliance and governed workspace behavior for SuperLocalMemory. Covers role-based access (admin/member/viewer), retention policies, audit trail, GDPR data export/erase, and how agents must behave when operating under workspace governance. Requires power MCP profile
SKILL.md
slm-governance.SKILL.mdname: slm-governance
description: Enterprise compliance and governed workspace behavior for SuperLocalMemory. Covers role-based access (admin/member/viewer), retention policies, audit trail, GDPR data export/erase, and how agents must behave when operating under workspace governance. Requires power MCP profile for audit/retention tools. Agents must never bypass governance controls.
when_to_use: |
- "What can I do in this workspace?" (role check)
- "Set a 90-day retention policy on this memory"
- "Show the audit trail for recent memory operations"
- "Export my data for GDPR compliance"
- "Delete all memories for user X (right to erasure)"
- "Configure require-login for this workspace"
- Enterprise deployment with multi-team shared SLM
- Compliance, audit, or data governance task
allowed-tools: audit_trail, set_retention_policy, get_retention_stats, get_lifecycle_status, recall, search, remember, Bash
slm-governance — Enterprise Compliance and Governed Workspace Behavior
SuperLocalMemory supports enterprise deployments with role-based access control, retention policies, audit logging, and GDPR compliance tooling. This skill documents how agents must behave when operating in a governed workspace and how to use the governance MCP tools (available in the `power` profile).
---
Role model
Governed workspaces have three roles:
| Role | Read | Write personal | Write shared/global | Admin operations | |------|------|---------------|---------------------|-----------------| | `viewer` | Yes | No | No | No | | `member` | Yes | Yes | Yes (within access list) | No | | `admin` | Yes | Yes | Yes (unrestricted) | Yes |
**Agent behavior by role:**
- **Viewer**: Only call `recall`, `search`, `fetch`, `list_recent`. Never call
`remember`, `update_memory`, `forget`, or any write tool. If a write is attempted, fail gracefully: "This workspace is read-only in viewer mode."
- **Member**: May write personal facts and shared facts with permitted profiles.
May NOT write `scope="global"` facts without explicit admin authorization. May NOT call `set_retention_policy`, `audit_trail`, or `compact_memories`.
- **Admin**: Full access including governance tools in the `power` profile.
An agent operating in a governed workspace must check its role before any write operation. Role information is visible in workspace configuration or via `slm status --json` (the `role` field, if present).
---
Retention policies
Retention policies control how long facts are stored before they become eligible for decay. Available in the `power` MCP profile.
Set a retention policy
set_retention_policy(
profile_id: str = "", # "" = active profile
days: int = 90, # facts older than this become decay-eligible
zone: str = "default", # retention zone name
)
Retention zones let you apply different policies to different fact categories:
# Standard facts: 90-day retention
set_retention_policy(profile_id="", days=90, zone="default")
# Security findings: 365-day retention (compliance requirement)
set_retention_policy(profile_id="", days=365, zone="security")
Tag your facts with the zone name to route them to the right policy:
remember(content="Critical auth bypass in v2.1", tags="security,cve,finding", ...)
Check retention statistics
get_retention_stats()
Returns zone distribution, average fact age, and decay-eligible counts. Use this to verify policies are working as expected.
Check lifecycle status
get_lifecycle_status()
Reports the state of the retention and decay subsystem — whether decay cycles are running, when the next cycle runs, and any backlog.
---
Audit trail
`audit_trail` is available in the `power` profile. It returns a structured log of recent memory operations (writes, reads, profile switches, policy changes).
audit_trail(
limit: int = 50, # number of entries to return
operation: str = "", # filter by operation type (e.g. "remember", "forget")
profile_id: str = "", # filter by profile; "" = active profile
)
Use this for:
- Compliance reviews ("what data was written in the last 30 days?")
- Investigating unexpected memory changes
- Generating audit reports for data controllers
The audit trail covers MCP and CLI operations. It does not record the content of facts by default — only operation type, timestamp, agent ID, and fact ID.
---
GDPR compliance
Data export
SLM does not have a dedicated MCP export tool. For GDPR data subject access requests, use the CLI:
# Export all memories in a profile to JSON
slm status --json # confirm active profile
slm list --limit 9999 --json > export.json
For a complete export including entity graph data, run:
slm status --json
Contact your workspace admin to arrange a full database-level export if the CLI output is insufficient for compliance purposes.
Right to erasure
To erase all memories for a subject or project:
# Step 1: preview what will be deleted (ALWAYS do this first)
slm forget "<subject or project name>" --dry-run --json
# Step 2: review the preview, then execute
slm forget "<subject or project name>" --yes --json
For targeted deletion by fact ID:
slm delete <fact_id> --yes --json
For data reconstruction prevention: after erasure, confirm the fact is gone by running `slm recall "<content>"`. A successful erasure returns no results. Never attempt to re-derive erased content from other stored facts.
---
require-login
When `require_login` is enabled in workspace configuration, agents must authenticate before any memory operation. SLM handles authentication at the daemon level — agents do not need to pass credentials in tool calls. If an agent receives an authentication error from any MCP tool, it must:
1. Stop the current operation immediately. 2. Report the authentication requirement to the user. 3. Never cache, retry, or work around the authenticati
Read more
name: slm-governance description: Enterprise compliance and governed workspace behavior for SuperLocalMemory. Covers role-based access (admin/member/viewer), retention policies, audit trail, GDPR data export/erase, and how agents must behave when operating under workspace governance. Requires power MCP profile for audit/retention tools. Agents must never bypass governance controls. when_to_use: | - "What can I do in this workspace?" (role check) - "Set a 90-day retention policy on this memory" - "Show the audit trail for recent memory operations" - "Export my data for GDPR compliance" - "Delete all memories for user X (right to erasure)" - "Configure require-login for this workspace" - Enterprise deployment with multi-team shared SLM - Compliance, audit, or data governance task allowed-tools: audit_trail, set_retention_policy, get_retention_stats, get_lifecycle_status, recall, search, remember, Bash
slm-governance — Enterprise Compliance and Governed Workspace Behavior
SuperLocalMemory supports enterprise deployments with role-based access control, retention policies, audit logging, and GDPR compliance tooling. This skill documents how agents must behave when operating in a governed workspace and how to use the governance MCP tools (available in the `power` profile).
---
Role model
Governed workspaces have three roles:
| Role | Read | Write personal | Write shared/global | Admin operations | |------|------|---------------|---------------------|-----------------| | `viewer` | Yes | No | No | No | | `member` | Yes | Yes | Yes (within access list) | No | | `admin` | Yes | Yes | Yes (unrestricted) | Yes |
**Agent behavior by role:**
- **Viewer**: Only call `recall`, `search`, `fetch`, `list_recent`. Never call
`remember`, `update_memory`, `forget`, or any write tool. If a write is attempted, fail gracefully: "This workspace is read-only in viewer mode."
- **Member**: May write personal facts and shared facts with permitted profiles.
May NOT write `scope="global"` facts without explicit admin authorization. May NOT call `set_retention_policy`, `audit_trail`, or `compact_memories`.
- **Admin**: Full access including governance tools in the `power` profile.
An agent operating in a governed workspace must check its role before any write operation. Role information is visible in workspace configuration or via `slm status --json` (the `role` field, if present).
---
Retention policies
Retention policies control how long facts are stored before they become eligible for decay. Available in the `power` MCP profile.
Set a retention policy
set_retention_policy( profile_id: str = "", # "" = active profile days: int = 90, # facts older than this become decay-eligible zone: str = "default", # retention zone name )
Retention zones let you apply different policies to different fact categories:
# Standard facts: 90-day retention set_retention_policy(profile_id="", days=90, zone="default") # Security findings: 365-day retention (compliance requirement) set_retention_policy(profile_id="", days=365, zone="security")
Tag your facts with the zone name to route them to the right policy:
remember(content="Critical auth bypass in v2.1", tags="security,cve,finding", ...)
Check retention statistics
get_retention_stats()
Returns zone distribution, average fact age, and decay-eligible counts. Use this to verify policies are working as expected.
Check lifecycle status
get_lifecycle_status()
Reports the state of the retention and decay subsystem — whether decay cycles are running, when the next cycle runs, and any backlog.
---
Audit trail
`audit_trail` is available in the `power` profile. It returns a structured log of recent memory operations (writes, reads, profile switches, policy changes).
audit_trail( limit: int = 50, # number of entries to return operation: str = "", # filter by operation type (e.g. "remember", "forget") profile_id: str = "", # filter by profile; "" = active profile )
Use this for:
- Compliance reviews ("what data was written in the last 30 days?")
- Investigating unexpected memory changes
- Generating audit reports for data controllers
The audit trail covers MCP and CLI operations. It does not record the content of facts by default — only operation type, timestamp, agent ID, and fact ID.
---
GDPR compliance
Data export
SLM does not have a dedicated MCP export tool. For GDPR data subject access requests, use the CLI:
# Export all memories in a profile to JSON slm status --json # confirm active profile slm list --limit 9999 --json > export.json
For a complete export including entity graph data, run:
slm status --json
Contact your workspace admin to arrange a full database-level export if the CLI output is insufficient for compliance purposes.
Right to erasure
To erase all memories for a subject or project:
# Step 1: preview what will be deleted (ALWAYS do this first) slm forget "<subject or project name>" --dry-run --json # Step 2: review the preview, then execute slm forget "<subject or project name>" --yes --json
For targeted deletion by fact ID:
slm delete <fact_id> --yes --json
For data reconstruction prevention: after erasure, confirm the fact is gone by running `slm recall "<content>"`. A successful erasure returns no results. Never attempt to re-derive erased content from other stored facts.
---
require-login
When `require_login` is enabled in workspace configuration, agents must authenticate before any memory operation. SLM handles authentication at the daemon level — agents do not need to pass credentials in tool calls. If an agent receives an authentication error from any MCP tool, it must:
1. Stop the current operation immediately. 2. Report the authentication requirement to the user. 3. Never cache, retry, or work around the authenticati
World's first local-only AI memory to break 74% retrieval and 60% zero-LLM on LoCoMo. No cloud, no APIs, no data leaves your machine. Additionally, mode C (LLM/Cloud) - 87.7% LoCoMo. Research-backed. arXiv: 2603.14588
Repo: qualixar/superlocalmemory
Other skills on superlocalmemory.
- /slm-cache
KV cache for repeated reads — call slm_cache_get(key) first; on a miss do the expensive operation then slm_cache_set(key, value, ttl_seconds) to store it; on a hit use the returned value directly; always fail-open (hit:false on any error, never raises); saves tokens when the
Open skill - /slm-compress
Compress large text, tool output, or transcripts to reduce context-window usage while keeping the full 1M window intact — call slm_compress(content, mode, reversible, ttl_seconds) to shrink content; if the result is lossy a ccr_id is returned so you can call slm_retrieve(ccr_id)
Open skill - /slm-graph
Index and query a codebase as a structural graph — build the code graph, trace blast radius of a change, find callers/callees/inheritors, semantic code search by meaning, assemble PR review context, and detect what changed since last index. Use when the user asks how code
Open skill - /slm-loop
Run gate-verified bounded loops with SuperLocalMemory as the durable ledger. Use when a task has a checkable acceptance condition (tests, schema, lint, reconciliation) and you must iterate until an INDEPENDENT gate passes — never stopping just because the agent believes it is
Open skill - /slm-mesh
Cross-session peer coordination via the SLM mesh network. Lets multiple AI agent sessions on the same machine discover each other, send messages, share lightweight state, and lock files to avoid conflicts. Requires full, power, or mesh MCP profile. All 8 tools are MCP-only —
Open skill - /slm-profile
Workspace isolation and runtime profile switching for SuperLocalMemory. Each profile is a fully independent memory namespace — separate facts, code graphs, and tool sets. Use switch_profile (MCP, requires code/full/power profile) to change the active workspace without
Open skill

