# Memory Sanitizer

> >

- **Type:** Skill
- **Install:** `agentstack add skill-stijnman-grok-custom-skills-memory-sanitizer`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [Stijnman](https://agentstack.voostack.com/s/stijnman)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [Stijnman](https://github.com/Stijnman)
- **Source:** https://github.com/Stijnman/grok-custom-skills/tree/main/.grok/skills/memory-sanitizer

## Install

```sh
agentstack add skill-stijnman-grok-custom-skills-memory-sanitizer
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Memory Sanitizer

## When to Use

- User says **sanitize memory** or task matches this capability
- User says **trust score retrieval** or task matches this capability
- User says **clean knowledge graph** or task matches this capability

## Workflow

1. For each memory entry, score trust 0-10 (source, recency, user-confirmed).
2. Discard entries below 4 unless user explicitly references them.
3. Prefix 4-6 scores with [unverified memory] when citing.
4. Flag contradictions between entries; prefer user-confirmed.

## Integrations

- `semantic-memory-manager`
- `knowledge-graph-builder`
- `agentic-uncertainty-quantifier`

## Error Handling

| Failure | Response |
|---------|----------|
| All entries low trust | Ask user to confirm facts before proceeding. |
| Contradictory memories | Present both; ask user to resolve. |

## Gotchas

- Delegate retrieval to semantic-memory-manager when installed.

## Example

**Input:** User request matching triggers above.
**Output:** Structured result per workflow with integrations invoked as needed.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [Stijnman](https://github.com/Stijnman)
- **Source:** [Stijnman/grok-custom-skills](https://github.com/Stijnman/grok-custom-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-stijnman-grok-custom-skills-memory-sanitizer
- Seller: https://agentstack.voostack.com/s/stijnman
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
