# memory-review

Adopt this skill: https://proskills.md/skills/other/gord1y-countersign-skills-skills-memory-review

Page: https://proskills.md/skills/other/gord1y-countersign-skills-skills-memory-review
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: skills/memory-review/SKILL.md
size: 4956
upstream: https://github.com/gord1y/countersign-skills/blob/main/skills/memory-review/SKILL.md

```text
---
name: memory-review
description: Sort Claude Code's auto memory by the memory rule - preferences into rules, project knowledge into repo docs, progress deleted. Read-only until approved. Run with /memory-review.
disable-model-invocation: true
---

# Memory review

Memories are loaded into sessions and steer the work. A stale one is worse than none: it states
something that stopped being true with the confidence of a fact. A misplaced one hides knowledge
from the team: the memory rule (`rules/memory.md` in countersign-skills, imported by the global
instructions) says memory holds only how the user wants the agent to work. Cross-project
preferences belong in the rules, project knowledge in that repo's docs, and progress nowhere. This
skill sorts every memory by that rule and changes nothing without the user's approval.

## Where memories live

Each project's memory is `~/.claude/projects/<key>/memory/` (or under `$CLAUDE_CONFIG_DIR`), where
`<key>` is the project's absolute path with every character that is not a letter or digit turned
into `-`. It holds `MEMORY.md`, an index of one line per memory, and one file per memory with
`name`, `description` and `metadata.type` frontmatter. When the folder is a link into your memory
repo, review and commit there.

Scope: every project folder that has memory files, or only the projects the user names.

## Step 1: mechanical checks, no agents

For each project, read only the frontmatter and `MEMORY.md`, and list:

- an index line whose file is missing, and a memory file with no index line
- a file with missing or malformed frontmatter
- a `[[name]]` link to a memory that does not exist in that project
- a `project` memory whose content states a date, release or deadline that has passed
- a memory about progress: a plan, in-flight work, "waiting for X", or a feature that shipped
- the same preference in two projects' memories (a candidate for a rule)
- a memory that repeats the global instructions (`~/.claude/CLAUDE.md` and what it imports) or a
  skill almost word for word
- a project memory folder that is a plain folder while others are links into a memory repo (not
  adopted yet)

## Step 2: one read-only agent per project

Spawn one `Explore` agent per project with a memory folder, `model: "sonnet"`, at most four at a
time, in one message. Brief each with the project's repo path and its memory folder, and ask for:

- every memory, one verdict:
  - **rule:** a preference true in every project. Name the rule file (a rule module, or the
    profile's `CLAUDE.md`) and give the exact lines to add, without the story.
  - **docs:** project knowledge (a decision, a domain term, a gotcha, an infra quirk). Name the
    repo doc for its area, or `docs/decisions.md` when none fits, and give the exact text. When
    the repo is public and the fact is private, the verdict is keep instead.
  - **delete:** progress, a shipped feature, something stale, or something already written in
    the repo, a rule or a skill (name where).
  - **keep:** personal feedback about this project that can't go in its repo, or a pointer to a
    system outside the repo.
  - **update:** a keep whose text is wrong, with the exact replacement.
- the evidence for each verdict: the file, line, command output or git state that shows it,
  checked now, never recalled
- concrete claims checked against the repo: files, functions, flags, scripts and settings still
  exist; rules still match `CLAUDE.md`, `CONTRIBUTING` or the rules folder; branches, releases and
  pull requests are in the state the memory says
- at most 30 lines back, no file contents, and never anything from `.env` files or other secrets

## Step 3: one report, then only what the user approves

Show one table per project: memory, verdict, evidence, and for rule, docs or update the proposed
text and where it goes. Ask once, for the whole table, which lines to apply. Apply exactly those:

- **rule:** add the lines to the named rule file and commit them in the repo that holds it, then
  delete the memory.
- **docs:** write the text into the named doc and commit it in that repo on the branch the user
  names (else the checked-out branch, as its own commit), then delete the memory.
- **delete:** remove the file and its index line, and remove `[[name]]` links to it from the
  others.
- **update:** rewrite the file, keep its frontmatter, and refresh its index line if the
  description changed.

Deleting a memory means removing its file and index line and the `[[name]]` links to it. In a
memory repo, commit once per review, for example `chore: review memories for <projects>`, with
the reviewed memory folders as the pathspec: `git commit -m "<message>" -- <folder> ...`.
Sessions in other projects share the repo and may have staged their own changes, and a bare
`git commit` takes those too. Never push unless asked.

If `local.md` exists next to this file, read it; where it disagrees with this file, it wins.
```

## File: README.md
upstream: https://github.com/gord1y/countersign-skills/blob/main/README.md

````text
<p align="center"><img src="docs/images/icon.png" width="128" height="128" alt="countersign-skills' icon: a fountain-pen nib signing beside a fan of skill cards"></p>

<h1 align="center">countersign-skills</h1>

<p align="center">
  <b>Skills, rules and subagents for Claude Code, Codex and Antigravity, with one installer.</b><br>
  Kept in git, so a new machine gets them with one command, and every agent you run gets the same
  working habits: how to review a diff, split a big task, write a PR description, and what it may
  never do without asking.
</p>

<p align="center">
  <a href="https://github.com/Gord1y/countersign-skills/releases"><img src="https://img.shields.io/github/v/release/Gord1y/countersign-skills" alt="Latest release"></a>
  <a href="https://github.com/Gord1y/countersign-skills/actions/workflows/ci.yml"><img src="https://github.com/Gord1y/countersign-skills/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI"></a>
  <img src="https://img.shields.io/badge/works%20with-Claude%20Code%20%7C%20Codex%20%7C%20Antigravity-blue" alt="Works with Claude Code, Codex and Antigravity">
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="License MIT"></a>
</p>

<p align="center">
  <img src="docs/images/hero.png" width="760" alt="install.sh in a terminal, linking each skill into Claude Code, Codex and Antigravity and writing each agent's instructions file">
</p>

## Install

Three routes.

**1. `install.sh` from a clone.** This is the full install: every row of
[What you get](#what-you-get), plus your own profile, private additions, `--copy` mode and
`update.sh`, and `uninstall.sh` to undo it.

```sh
git clone https://github.com/Gord1y/countersign-skills ~/countersign-skills
~/countersign-skills/install.sh
```

Requirements are POSIX `sh`, `git` and `jq`. Run it from your own terminal, not through an agent:
the agent's sandbox protects `~/.claude`, so an agent can't write there, and shouldn't.

**2. skills.sh.** Skills only, no rules, subagents, settings or `bin/`:

```sh
npx skills add Gord1y/countersign-skills
```

It installs from the default branch, `main`, which moves only at releases. `orchestrate` still
works this way: it carries `land-worktree` and `remove-worktree` in its own `scripts/`, and
builds each unit in the main session when no `builder` agent is installed.

**3. Countersign.** Planned for Countersign 0.3.0, not released yet. Its Skills pane will download
a pinned release, verify its `.sha256`, and list `catalog.json`.

Where everything lands, how copies and settings merge, backups and unattended runs are in
[docs/install.md](docs/install.md).

---

## What you get

| | Claude Code | Codex | Antigravity | skills.sh |
| --- | --- | --- | --- | --- |
| Skills | 18 | 18 | 12 | skills only |
| Rules | 10 | 9 | 8 | no |
| Subagents | 6 | no | no | no |
| Settings defaults | yes | no | no | no |
| Status line | yes | no | no | no |

Codex gets its rules in a generated `~/.codex/AGENTS.md`, Antigravity in `~/.gemini/GEMINI.md`.
Neither reads `@` imports. The memory rule leans on Claude Code's auto memory, so it stays out of
both, and the orchestration rule, which `orchestrate` routes by, goes to Codex but not to
Antigravity. For Codex the installer also writes a managed block in
`~/.codex/config.toml` and hook entries in `~/.codex/hooks.json`.

## Skills

| Skill | What it does | Agents |
| --- | --- | --- |
| `orchestrate` | The entry point for every task: picks one of ten playbooks; at 3 or more commits runs a builder per unit. | Claude Code, Codex |
| `context-transfer` | Packs a conversation into one self-contained block for a new chat. | Claude Code, Codex, Antigravity |
| `human-voice-writing` | Drafts and revises longer text so it reads as human, not AI-generated. | Claude Code, Codex, Antigravity |
| `retro` | Turns a session's mistakes into structure, not notes: each lesson goes to the highest rung that works, and its fix is proven on the real mistake. Orchestrate runs it after a correction, failed gate, revert or parked unit. | Claude Code, Codex, Antigravity |
| `codebase-research` | Picks the cheapest way to research code, with an explicit model on any spawn. | Claude Code, Codex |
| `release-notes` | Writes release note entries, keeps an open note in step with its branch, and keeps the release index current. | Claude Code, Codex, Antigravity |
| `release-brief` | Writes the UX probe's brief for a release: what changed for users since the last probe run, in user terms only, checked by a lint that strips paths, code names, selectors and click paths. | Claude Code, Codex |
| `feature-pr-description` | Writes the body of a feature or fix PR to the repo's description contract. | Claude Code, Codex, Antigravity |
| `promotion-pr-description` | Writes a release or hotfix PR's body from its release note (release into staging, staging into main, a hotfix into either), carrying the repo's PR template. | Claude Code, Codex, Antigravity |
| `thorough-diff-review` | Runs a full local review of a diff before you push. | Claude Code, Codex, Antigravity |
| `i18n-translate` | Translates new English message keys into the other locales, in batched subagents: one for a small change, one per up to 5 locales otherwise. | Claude Code, Codex |
| `qa-tester` | Tests a change in the running product on every surface it touched (web, API, CLI, native or mobile app, game, library), saves the evidence under `writeups/`, and reports pass or fail. Runs forked under Claude Code. | Claude Code, Codex |
| `impact-check` | Finds what a change could break outside its diff, and backs its verdict with a script that runs the real code. | Claude Code, Codex, Antigravity |
| `how-it-works` | Explains how a part of the codebase works, for the person about to change it: its moving parts, the flow with a diagram, where to start reading. | Claude Code, Codex, Antigravity |
| `pr-review-triage` | Verifies a PR's AI findings, failed checks and open threads at the PR head, and writes a fix plan that proves each fix safe; starts on a bare PR link. | Claude Code, Codex |
| `walkthrough` | Walks you through any change with its QA evidence (screenshots, request and response pairs, transcripts), or builds a customer-facing HTML walkthrough of a UI release. | Claude Code, Codex, Antigravity |
| `writeups-cleanup` | Proposes what in `writeups/` has done its job, with the evidence, and deletes only what you approve. Manual: `/writeups-cleanup`. | Claude Code, Codex, Antigravity |
| `repo-knowledge` | Sets up a repo's knowledge graph: feature nodes mapped to code paths, a glossary, decision records, and a drift lint the repo runs in CI. Agents refresh the nodes for the paths a change touches. | Claude Code, Codex, Antigravity |

Manual skills have `disable-model-invocation: true` and an `agents/openai.yaml` that does the same
for Codex: their description costs no context, and only you start them, with `/name`.

The UX probe is a blind black-box reviewer. The `orchestrate` release playbook launches it as its
own T3 Code thread, after `release-brief` writes its brief, and triages what it finds. Set it up
with `bin/probe-init`; details in `docs/ux-probe.md`.

The process skills (research, PR descriptions, release notes, review, QA, translation) are written
for any repo. They read the facts they need, such as paths, commands and the branch flow, from your
repo's CLAUDE.md or AGENTS.md, then from `local.md`, and ask once when neither has one.
`release-notes` defers to a repo's own copy when the repo ships one. Everything they draft goes into
a gitignored `writeups/` folder (layout in [docs/install.md](docs/install.md#writeups)).

## Rules

One module per topic in `rules/`, imported into your `CLAUDE.md`.

- **Responses**: how to answer, what to lead with, and how to mark a summary (✅ asked work, 🔧 found and fixed, ❌ still broken).
- **Code**: house style for code, such as no comments and strict types.
- **Issues you find along the way**: fix what you f
````
