Docs
latitude-dev/latitude-llm
Review the current conversation context and git changes, then persist durable repository knowledge into dev-docs/.md by domain and into AGENTS.md for cross-cutting repo rules.
A skill your agent uses when refactoring Claude Code or Codex memories to remove stale or derivable entries, resolve contradictions, promote standing instructions, or reorganize recall.
$ npx skills add vinta/hal-9000 --skill refactor-memory -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install vinta/hal-9000 refactor-memory --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/vinta/hal-9000.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/refactor-memory .claude/skills/refactor-memory && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "refactor-memory" agent skill from https://github.com/vinta/hal-9000/tree/main/skills/refactor-memory into .claude/skills/refactor-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "refactor-memory", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/vinta/hal-9000/tree/main/skills/refactor-memoryType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add vinta/hal-9000 --skill refactor-memory -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install vinta/hal-9000 refactor-memory --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/vinta/hal-9000.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/refactor-memory .agents/skills/refactor-memory && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "refactor-memory" agent skill from https://github.com/vinta/hal-9000/tree/main/skills/refactor-memory into .agents/skills/refactor-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "refactor-memory", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add vinta/hal-9000 --skill refactor-memory -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install vinta/hal-9000 refactor-memory --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/vinta/hal-9000.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/refactor-memory .cursor/skills/refactor-memory && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "refactor-memory" agent skill from https://github.com/vinta/hal-9000/tree/main/skills/refactor-memory into .cursor/skills/refactor-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "refactor-memory", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/vinta/hal-9000.git --path skills/refactor-memory--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add vinta/hal-9000 --skill refactor-memory -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install vinta/hal-9000 refactor-memory --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/vinta/hal-9000.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/refactor-memory .gemini/skills/refactor-memory && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "refactor-memory" agent skill from https://github.com/vinta/hal-9000/tree/main/skills/refactor-memory into .gemini/skills/refactor-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "refactor-memory", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install vinta/hal-9000 refactor-memoryInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add vinta/hal-9000 --skill refactor-memory -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/vinta/hal-9000.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/refactor-memory .github/skills/refactor-memory && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "refactor-memory" agent skill from https://github.com/vinta/hal-9000/tree/main/skills/refactor-memory into .github/skills/refactor-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "refactor-memory", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add vinta/hal-9000 --skill refactor-memory -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install vinta/hal-9000 refactor-memory --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/vinta/hal-9000.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/refactor-memory .opencode/skills/refactor-memory && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "refactor-memory" agent skill from https://github.com/vinta/hal-9000/tree/main/skills/refactor-memory into .opencode/skills/refactor-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "refactor-memory", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
refactor-memoryA skill your agent uses when refactoring Claude Code or Codex memories to remove stale or derivable entries, resolve contradictions, promote standing instructions, or reorganize recall.
Refactor Memory is an agent skill from vinta/hal-9000. 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
Its SKILL.md is about 890 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/claude-code.md` and `references/codex.md`).
It sits in Agent Workflows, covering Refactoring and Agent instruction files. The repository describes itself as: Opinionated AI coding agent and dev environment automation for macOS. The licence is MIT.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 0a2005a. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
WebFetchRead(~/.claude/**)Edit(CLAUDE.md)From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Refactor Memory loads about 887 tokens when it runs, and up to ~2.4k if it reads all its reference files. Until then it costs about 60 tokens; SKILL.md has 443 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from vinta/hal-9000 at commit 0a2005a, republished under its MIT licence (© vinta). 443 words, ~887 tokens.
.claude/skills/refactor-memory/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.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.
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:
State the storage location and audit scope. A shared directory does not make every entry global.
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.
Audit entries. Give every entry exactly one verdict, with its location and evidence beside it. Done when no entry in scope lacks one.
Audit recall. Apply the platform's index or summary checks. Check discoverability, duplicate claims, scope, and evidence references. Propose the layout changes needed for the entries in scope.
Get decisions. Reuse verdicts the user already selected within the requested scope. Present remaining contradictions with both sides as choices and unselected delete, rewrite, and promote verdicts as numbered lists with evidence and the proposed layout. Use the platform's question tool only for unresolved choices. Apply only the outcomes the user selected.
Apply and verify. Apply the selected verdicts through the platform's update mechanism without asking again. Remove a promoted memory only after its destination carries the instruction. Verify the result using the platform reference and report any pending consolidation separately from completed changes. Anything else noticed while editing is a follow-up.
© vinta, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files (references) in skills/refactor-memory of vinta/hal-9000.
Open the folder on GitHubat commit 0a2005a
Refactor Memory next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Refactor Memory this skillvinta/hal-9000 | 138 | — | ~887 | Automated safety check: Pass | MIT | |
| Docslatitude-dev/latitude-llm | 4.7k | — | ~2.5k | Automated safety check: Pass | MIT | |
| Steadyagent WorkflowKhalilzhang0825/boring-is-all-you-need | 173 | — | ~1k | Automated safety check: Pass | MIT | |
| Update Docspeterkrueck/Claude-Code-Development-Kit | 1.4k | — | ~2.7k | Automated safety check: Pass | MIT | |
| Claude Md Writerserejaris/personal-corp-os | 229 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Refresh AgentsUniClipboard/UniClipboard | 1.8k | — | ~835 | Automated safety check: Pass | AGPL-3.0 |
latitude-dev/latitude-llm
Review the current conversation context and git changes, then persist durable repository knowledge into dev-docs/.md by domain and into AGENTS.md for cross-cutting repo rules.
Khalilzhang0825/boring-is-all-you-need
Local-first Codex workflow for planning, debugging, reviewing, refactoring, improving AGENTS.md, building skills, publishing agent harness repositories, or running complex multi-step coding tasks…
peterkrueck/Claude-Code-Development-Kit
Update project documentation after code changes. An agent skill from peterkrueck/Claude-Code-Development-Kit.
serejaris/personal-corp-os
A skill your agent uses when creating or refactoring CLAUDE.md files - enforces best practices for size, structure, and content organization
UniClipboard/UniClipboard
Refresh fact-based sections of crates/AGENTS.md (STRUCTURE, WHERE TO LOOK, COMPLEXITY HOTSPOTS, KNOWN BROKEN) from current codebase state.
managedcode/Storage
Apply SOLID, SRP, cohesion, composition-over-inheritance, and small-file discipline to code changes.
vinta/hal-9000
Finds which plugins in the repository changed, bumps only the ones not already bumped since origin/main, and checks that each plugin's two manifests stay in sync.
vinta/hal-9000
Audits your Claude Code settings and environment variables against the current official docs and returns a ranked list of changes tied to how you actually work.
vinta/hal-9000
Commits everything in the working tree as one logical change per commit, splitting files by hunk, with bodies that say what was wrong before and never an invented reason.
vinta/hal-9000
A skill your agent uses when the user explicitly asks to push the current branch and open a PR, rewrite an open PR's body from its commits, or wait for CI and merge it
vinta/hal-9000
Keeps Ansible install tasks in line with upstream docs by fixing version, install-method and link drift one tool at a time, with a commit for each.
vinta/hal-9000
Rewrites docs, READMEs, issues, comments or UI text in plain Global English that translates well and still sounds native, keeping every fact intact.
Categories
A skill your agent uses when refactoring Claude Code or Codex memories to remove stale or derivable entries, resolve contradictions, promote standing instructions, or reorganize recall. Refactor Memory is an agent skill from vinta/hal-9000. Use when refactoring Claude Code or Codex memories to remove stale or derivable entries, resolve contradictions, promote standing instructions, or reorganize recall.
Refactor Memory fits situations like: refactoring Claude Code; Codex memories to remove stale; derivable entries; resolve contradictions.
Run `npx skills add vinta/hal-9000 --skill refactor-memory -a claude-code`. Or copy the skill folder (skills/refactor-memory in vinta/hal-9000) into .claude/skills/refactor-memory in your project. Claude Code loads it when a task matches its description.
Run `npx skills add vinta/hal-9000 --skill refactor-memory -a codex`. Or copy the skill folder (skills/refactor-memory in vinta/hal-9000) into .agents/skills/refactor-memory in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add vinta/hal-9000 --skill refactor-memory -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/refactor-memory, .gemini/skills/refactor-memory, .github/skills/refactor-memory and .opencode/skills/refactor-memory in your project.
SKILL.md names no scripts, command-line tools or credentials: Refactor Memory is instructions for the agent only. Its frontmatter pre-approves these tools: WebFetch, Read(~/.claude/**), Edit(CLAUDE.md).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Refactor Memory is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 887 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.5k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Refactor Memory: Docs (latitude-dev/latitude-llm, 4.7k stars), Steadyagent Workflow (Khalilzhang0825/boring-is-all-you-need, 173 stars), Update Docs (peterkrueck/Claude-Code-Development-Kit, 1.4k stars) and Claude Md Writer (serejaris/personal-corp-os, 229 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
vinta (a GitHub user) maintains it in vinta/hal-9000, which has 138 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 5, 2026.
Source: vinta/hal-9000 on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.