AugmentClaude

SuperLocalMemory Governance

Manage enterprise compliance, access control, and GDPR data handling in governed workspaces.

Installation

  1. Make sure Claude is on your device and in your terminal.

    Skills load from ~/.claude/skills/ when Claude Code starts up β€” so you need it on your machine first. If you don't have it yet, install it once with the command below, then run claude in any terminal to verify.

    One-time setup
    npm i -g @anthropic-ai/claude-code

    Already have it? Skip ahead.

  2. Paste into Claude Code or into your terminal.

    This copies the whole skill folder into ~/.claude/skills/slm-governance-qualixar/ β€” the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Safe default: works for every skill.

    Faster alternative (instruction-only skills)

    Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates β€” they won't be downloaded and the skill will fail when it tries to load them.

    Quick install (SKILL.md only)
    Sign up to copy
  3. Restart Claude Code.

    Quit and reopen Claude Code (or any other agent that loads from ~/.claude/skills/). New skills are picked up on startup.

  4. Just ask Claude.

    Skills auto-activate when your request matches the skill's description β€” no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the β€œWhat this skill does” section above.

Prefer to read the source first? Open on GitHub.

When Claude uses it

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.

What this skill does

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:

RoleReadWrite personalWrite shared/globalAdmin operations
viewerYesNoNoNo
memberYesYesYes (within access list)No
adminYesYesYes (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 authentication block.

Scope enforcement in governed workspaces

In a governed workspace, scope restrictions are enforced server-side:

  • Viewers cannot write any fact regardless of scope parameter.
  • Members cannot write scope="global" unless their access list includes the global scope β€” attempts return a permission error.
  • Admins can write any scope.

Agents must not attempt to work around scope restrictions by splitting a global fact into multiple shared facts to accumulate equivalent visibility.


Compact memories (admin-only)

compact_memories deduplicates and consolidates stored memories. This is an admin operation β€” it can change fact IDs and remove content.

compact_memories(
  profile_id: str = "",   # "" = active profile
  dry_run: bool = True,   # ALWAYS true first β€” inspect before running
)

Always run with dry_run=True first and review the impact report. Never run compaction without admin authorization.


Consistency check (admin-only)

consistency_check(profile_id: str = "")

Verifies data integrity of the memory store β€” checks for orphaned entities, broken references, and index-database mismatches. Use after migrations or unexpected shutdowns. Returns a structured report.


Agent checklist for governed workspaces

Before each write operation:

  • Confirm my role allows writes (viewer β†’ skip; member/admin β†’ proceed)
  • Confirm scope is appropriate for my role (member β†’ no global)
  • Set correct tags including zone name if retention policy applies
  • Pass session_id for full audit attribution

Before running any destructive operation (forget, compact_memories):

  • Admin authorization confirmed
  • Ran with dry_run=True and reviewed output
  • GDPR: confirmed the subject or controller authorized the erasure

Related skills

  • slm-scope β€” scope model details (personal/shared/global)
  • slm-profile β€” workspace isolation and profile switching
  • slm-remember β€” fact storage reference (includes scope parameters)
  • slm-recall β€” retrieval reference (includes scope read flags)
  • slm-mesh β€” mesh tools (full/power profiles)

SuperLocalMemory v4.1.3 Β· Qualixar Β· AGPL-3.0-or-later

Related skills