/hal-skills:refactor-memory [scope | path/to/memory/dir]from HAL Skills
Audits and reorganizes Claude Code or Codex memories: removes stale/derivable entries, resolves contradictions, promotes standing instructions, and improves recall structure.
Ships in HAL Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
memory-management, memory-audit, memory-refactoring, claude-code, codex
13 skills in this plugin
/audit-agent-settingsUse when auditing Claude Code or Codex settings and env vars against the latest docs to suggest tailored changes/best-practicesUse when about to choose, configure, or refine a tool, library, config format, API pattern, or project setup, or before proposing a design or fix of your own — research current guidance, pitfalls, and prior art for the problem it solves first; already knowing an approach, or assuming no prior art exists, is not an exemption. Also use when the user asks about best practices, gotchas, or recommended patterns/blindspotUse when the user asks for a blindspot pass or to find their unknown unknowns, or signals unfamiliarity with a domain, tool, or codebase area ("never used X", "first time doing Y", "no idea where to start", "don't know what I don't know") before working there. Maps the areas their request leaves unnamed, purpose and shape before mechanics, shows how people usually answer each and why, and asks which to explore next, so unknown unknowns become known unknowns they can prompt with. Recommendations on a tool already chosen belong to best-practicesnpx claudepluginhub vinta/hal-9000 --plugin hal-skillsOther plugins' skills for the same job