refactor-memory SKILL.md skillA

refactor-memory from vinta/hal-9000 is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add vinta/hal-9000/refactor-memory@git:20261012.c3aeefd

Pins git:20261012.c3aeefd in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
vinta/hal-9000
Path
skills/refactor-memory/SKILL.md
Versions recorded
9
Latest version
git:20261012.c3aeefd, committed Oct 12, 2026
First version recorded
Sep 4, 2026
Size
3,609 bytes
Repository stars
142
License
MIT

Use when refactoring Claude Code or Codex memories to remove stale or derivable entries, resolve contradictions, promote standing instructions, or reorganize recall. Not for standalone CLAUDE.md, AGENTS.md, or rules cleanup.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Overview

Refactor memories so each entry carries what no lookup returns: a decision, a correction, a measured gotcha. Audit entries within the requested scope; their storage and update mechanism depend on the environment.

## Instructions

1. **Pick the target.** Use the scope or directory the user names, otherwise the platform default below. Load the reference for the active environment before reading memories:
   - **Claude Code:** [references/claude-code.md](references/claude-code.md) for project memory files, index rules, promotion destinations, and direct edits.
   - **Codex:** [references/codex.md](references/codex.md) for shared storage, project filtering, promotion destinations, and session-authorized updates.

   State the storage location and audit scope. A shared directory does not make every entry global.

2. **Read the evidence.** Follow the reference's reading procedure and fetch its official memory guide. Compare entries against applicable loaded instructions, repository files, and current vendor documentation. Inventory the entries in scope before assigning verdicts.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add vinta/hal-9000/refactor-memory@sha256:150f9df9c34d1ed3

The line at the top of this page pins the label git:20261012.c3aeefd, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_6yzvbiubfpp37lag.svg)](https://markdownregistry.com/a/art_6yzvbiubfpp37lag)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 9 versions of this file, between Sep 4, 2026 and Oct 12, 2026, about one every 5 days.

versioncommittedcommitsizeaudit
git:20261012.c3aeefd latest2026-10-12 c3aeefd 3,609 BA view · diff
git:20260927.b8394272026-09-27 b839427 3,546 BA view · diff
git:20260924.1e043532026-09-24 1e04353 3,567 BA view · diff
git:20260914.20ae0ac2026-09-14 20ae0ac 3,504 BA view · diff
git:20260912.bf85aeb2026-09-12 bf85aeb 3,678 BA view · diff
git:20260912.61752dd2026-09-12 61752dd 3,811 BA view · diff
git:20260909.ede0b9b2026-09-09 ede0b9b 4,612 BA view · diff
git:20260904.4afef8a2026-09-04 4afef8a 4,616 BA view · diff
git:20260904.a8e315c2026-09-04 a8e315c 4,776 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (3609 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

vinta/hal-9000 · 142 stars · license MIT · pushed 2026-11-05 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_6yzvbiubfpp37lag
GET https://markdownregistry.com/api/v1/resolve?ref=vinta/hal-9000/refactor-memory
GET https://markdownregistry.com/api/v1/blob/150f9df9c34d1ed329d12a3e0b31a5ce7523a21b1647cdffc868df81692a45f3

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from vinta/hal-9000

publish-plugins SKILL.md skill
vinta/hal-9000 · .claude/skills/publish-plugins/SKILL.md · (project) Use when editing any file under skills/ or plugins/ to bump the plugin version and check the manifests
git:20261027.b61d273 · audit A · 142 stars
upgrade-playbooks SKILL.md skill
vinta/hal-9000 · .claude/skills/upgrade-playbooks/SKILL.md · (project) Use when upgrading install tasks in playbooks/roles/ against upstream docs — bumping a pinned version…
git:20261027.b61d273 · audit A · 142 stars
AGENTS.md AGENTS.md file
vinta/hal-9000 · AGENTS.md
git:20261029.e4cf05b · audit A · 142 stars
CLAUDE.md@dotfiles/.claude CLAUDE.md file
vinta/hal-9000 · dotfiles/.claude/CLAUDE.md
git:20261105.9675112 · audit A · 142 stars
AGENTS.md@dotfiles/.codex AGENTS.md file
vinta/hal-9000 · dotfiles/.codex/AGENTS.md
git:20261021.7ac61b7 · audit A · 142 stars
CLAUDE.md@plugins/evals CLAUDE.md file
vinta/hal-9000 · plugins/evals/CLAUDE.md
git:20261012.4205d78 · audit A · 142 stars
audit-agent-settings SKILL.md skill
vinta/hal-9000 · skills/audit-agent-settings/SKILL.md · Use when auditing Claude Code or Codex settings and env vars against the latest docs to suggest tailored changes
git:20261021.bb6bcd3 · audit A · 142 stars
best-practices SKILL.md skill
vinta/hal-9000 · skills/best-practices/SKILL.md · Use when about to choose, configure, or refine a tool, library, config format, API pattern, or project setup, or before…
git:20261105.a69e56b · audit A · 142 stars
blindspot SKILL.md skill
vinta/hal-9000 · skills/blindspot/SKILL.md · Use when the user asks for a blindspot pass or to find their unknown unknowns, or signals unfamiliarity with a domain…
git:20261021.bb6bcd3 · audit A · 142 stars
commit SKILL.md skill
vinta/hal-9000 · skills/commit/SKILL.md · Use when making any git commit. Pass the failure, false claim, or risk the changes fix as the argument; for an addition…
git:20261020.f187727 · audit A · 142 stars
difference SKILL.md skill
vinta/hal-9000 · skills/difference/SKILL.md · Compare A vs B, weigh pros and cons of A, B, C, ..., or explain the nuance between sentences — a quick answer from what…
git:20261019.fe519c2 · audit A · 142 stars
fuck-over-engineering SKILL.md skill
vinta/hal-9000 · skills/fuck-over-engineering/SKILL.md · Use when the user asks what could be deleted or reduced to simplify a codebase, says "simplify", "over-engineered", or…
git:20261021.bb6bcd3 · audit A · 142 stars

Every file in vinta/hal-9000

Browse by kind, by grade A, or by owner.