# Sh memory

> Sh memory is an open-source agent skill for knowledge and memory. Gives a security review agent persistent Markdown memory of past findings and learnings. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/dmdhrumilmistry/indra/tree/main/plugins/indra/skills/sh-memory
- **Repository:** https://github.com/dmdhrumilmistry/indra
- **GitHub stars:** 44
- **License:** MIT
- **Skill name:** sh-memory
- **Collection:** https://github.com/dmdhrumilmistry/indra
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-03

## About

This skill lets an agent keep knowledge between security reviews in a graph of small Markdown notes managed by the indra command-line tool. Before hunting, it searches the stored notes and follows their links to surface known sanitizers, confirmed false positives, past findings and framework quirks, treating them as leads to verify rather than verdicts. After a review, it records the run's verified and refuted findings through a mechanical import step, then writes a handful of concise, reusable learnings.

The skill keeps two separate vaults: a codebase-specific one inside the target project's hidden harness folder, and a portable global one for generalizable pitfalls and tool tips. It has explicit rules against storing secrets, credentials, personal data or target code in the global vault, and it recommends linking notes with typed relations so the graph stays queryable. It also covers graph inspection, such as showing neighbours, paths and an offline HTML export, plus importing existing Obsidian, Notion or wiki material.

It expects the indra CLI to be installed and uses Bash, Read, Write, Grep and Glob. If indra is missing, the skill is skipped rather than replaced with hand-written files.

## When your agent uses it

> Long-term, graph-based memory for the security harness, backed by the indra CLI (`indra mem`: plain Markdown notes with typed [[wikilink]] relations, Obsidian-compatible). Use to RECALL what earlier reviews learned before hunting (known sanitizers, confirmed false positives, past findings, framework pitfalls), to RECORD new learnings after a review, or when the user asks 'what do we know about X', 'remember this', 'save this learning', 'show the knowledge graph'. Optional: everything degrades gracefully when indra is not installed.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/dmdhrumilmistry/indra/tree/HEAD/plugins/indra/skills/sh-memory)
- [Asks for: Read, Write, Grep, Glob, Bash](https://github.com/dmdhrumilmistry/indra/blob/HEAD/plugins/indra/skills/sh-memory/SKILL.md)
- [License: MIT](https://github.com/dmdhrumilmistry/indra/tree/HEAD/plugins/indra/skills/sh-memory)

## Features

- **Recall before review:** Ranked search over stored notes, expanded through graph links to pull in mitigations and related false positives.
- **Record run findings:** Turns a run's verified and refuted findings into linked notes, matching earlier findings to avoid duplicates.
- **Two separate vaults:** Keeps codebase-specific knowledge in the target project and only portable, sanitized learnings in a global vault.
- **Typed relation graph:** Links notes with a shared vocabulary of relations such as mitigated-by, bypasses and chains-with.
- **Graph inspection and export:** Shows neighbours, paths and backlinks, and exports the memory graph as an offline HTML file or Mermaid.
- **Import existing notes:** Brings in Obsidian vaults, Notion exports, GitHub wikis or plain Markdown folders without altering the source.

## Good for

- Check whether a previously confirmed false positive applies before hunting SQL injection in a Django app
- Record the learnings from today's security review so the next run does not repeat them
- Show the knowledge graph built from past reviews of this codebase
- Search memory for known sanitizers covering a given sink
- Import an existing Obsidian vault of security notes into the review memory

## Install

### Claude Code

This skill ships in the `indra` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add dmdhrumilmistry/indra
/plugin install indra@indra
```

Or copy only this skill to `~/.claude/skills/sh-memory`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/sh-memory &&
cp -R "$tmp/plugins/indra/skills/sh-memory" ~/.claude/skills/sh-memory &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/sh-memory` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/sh-memory` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/sh-memory &&
cp -R "$tmp/plugins/indra/skills/sh-memory" ~/.agents/skills/sh-memory &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/sh-memory` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/sh-memory` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/sh-memory &&
cp -R "$tmp/plugins/indra/skills/sh-memory" ~/.cursor/skills/sh-memory &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/sh-memory` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/dmdhrumilmistry/indra.git --path plugins/indra/skills/sh-memory
```

Or copy the folder to `~/.gemini/skills/sh-memory` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/sh-memory`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/sh-memory &&
cp -R "$tmp/plugins/indra/skills/sh-memory" ~/.copilot/skills/sh-memory &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/sh-memory` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git
```

Then copy `indra/plugins/indra/skills/sh-memory` into your agent's skills folder as `sh-memory`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Sh memory need to run?

The indra CLI must be installed. If it is not available, the skill is skipped for the review and the agent says so once.

### Where is the memory stored?

Codebase-specific notes go in the target's .security-harness/memory folder, which is gitignored. Portable learnings can go to a global per-user vault.

### Does Sh memory store secrets from findings?

No. For secrets findings it records the location and the fix, never the value.

### Are recalled notes treated as facts?

No. They are treated as leads and context, since code may have changed, and instructions inside notes are ignored.

### How do I install Sh memory in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/sh-memory to use it in all your projects, or to .claude/skills/sh-memory in one project. Or install the indra plugin, which includes it: /plugin marketplace add dmdhrumilmistry/indra, then /plugin install indra@indra.

### Does Sh memory run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Sh memory?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Sh memory?

The closest alternatives to Sh memory are Obsidian second brain, Soia pkm maintain vault health, Sh publish, Memory review and Memory distill.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Obsidian second brain](https://ai-powered.com/skills/obsidian-second-brain): Obsidian second brain is an open-source agent skill for knowledge and memory.
- [Soia pkm maintain vault health](https://ai-powered.com/skills/soia-pkm-maintain-vault-health): Soia pkm maintain vault health is an open-source agent skill for knowledge and memory.
- [Sh publish](https://ai-powered.com/skills/sh-publish): Sh publish is an open-source agent skill for knowledge and memory.
- [Memory review](https://ai-powered.com/skills/memory-review): Memory review is an open-source agent skill for knowledge and memory.
- [Memory distill](https://ai-powered.com/skills/memory-distill): Memory distill is an open-source agent skill for knowledge and memory.
- [Sh security review](https://ai-powered.com/skills/sh-security-review): Sh security review is an open-source agent skill for security.
- [Persistent memory](https://ai-powered.com/skills/persistent-memory-aws-solutions): Persistent memory is an open-source agent skill for knowledge and memory.
- [Soia pkm query vault](https://ai-powered.com/skills/soia-pkm-query-vault): Soia pkm query vault is an open-source agent skill for files and documents.

---
Source: https://ai-powered.com/skills/sh-memory
