Skip to content
Back to skills

Mneme

ASecurity

Architectural governance for this project. Use this skill when the user asks about project decisions, architectural constraints, or wants to enforce / record / review decisions. Also use whenever Claude Code is about to make a non-trivial edit and the project has a `.mneme/` directory — check relevant decisions first.

  • 36 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 22, 2026
ai-agentsgoshellbash

Works with

  • claude code
  • cli

Security analysis

A100/100

Scanned September 22, 2026

npx -y skills add MnemeHQ/mneme --skill mneme --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mneme?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mneme
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mnemehq-mneme-mneme/badge)](https://www.skillsdirectory.com/skills/mnemehq-mneme-mneme)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mneme
description: |
  Architectural governance for this project. Use this skill when the user
  asks about project decisions, architectural constraints, or wants to
  enforce / record / review decisions. Also use whenever Claude Code is
  about to make a non-trivial edit and the project has a `.mneme/`
  directory — check relevant decisions first.
---

# Mneme — project memory & governance

This project uses Mneme to enforce architectural decisions.

## When this skill activates

- User mentions "ADR", "decision", "constraint", "anti-pattern", "architecture".
- A `.mneme/project_memory.json` file exists in the repo.
- About to make a non-trivial edit in an area that may be governed by recorded decisions.

## How to use it

1. **Before non-trivial edits** — run `/mneme-context` with a descriptive task
   phrase (e.g. "storage layer changes", "auth middleware refactor"). Use domain
   language, not just the file name — retrieval is keyword-based and the query
   must overlap with decision scope fields to surface relevant decisions.

2. **To gate a draft** — run `/mneme-check` against the proposed content, again
   with a descriptive `--query`.

3. **To record a new decision** — run `/mneme-record`. When choosing `scope`
   keywords, pick terms that will appear in file names or task descriptions
   where this decision applies, so the hook can retrieve it automatically.

4. **To audit pending changes** — run `/mneme-review`.

## Hook enforcement

A `PreToolUse` hook (`mneme-hook`) runs automatically on Edit / Write / MultiEdit.
It reconstructs the full post-edit file content, then calls `mneme check` with the
query `"edit to <file_path>"`. Decisions whose scope or text share tokens with the
file name are retrieved and checked.

Shell calls (`Bash`) are checked before execution only when they are simple
quoted-delimiter heredoc writes (`cat > path << 'EOF' ... EOF`); anything else is
audited by a `Stop` boundary that evaluates what this session introduced before
the turn completes (ADR-021).

**Retrieval caveat:** The automatic hook query is derived from the file path, so
decisions with scope keywords that don't appear in file names may not be retrieved
automatically. Use `/mneme-context` before large edits to confirm coverage.

If the proposed change violates a decision in strict mode, Claude Code is blocked
and the violated decision id is surfaced in the error.

To switch to warn-only mode: `export MNEME_HOOK_MODE=warn`

## Related

- Project memory: `.mneme/project_memory.json`
- CLI reference: `mneme --help`
- Integration docs: `integrations/claude-code/README.md`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.