/hal-skills:refactor-skillfrom HAL Skills
Refactors an existing skill's SKILL.md and sibling files, from full restructure to single-line fixes. Not for creating new skills.
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 a skill. Conditional material moves behind a pointer; unnecessary material leaves the skill.
Use AskUserQuestion in Claude Code or request_user_input in Codex when available.
Pick the target. If the invocation names one, resolve it to its SKILL.md. Otherwise ask which skill. For a full audit, read SKILL.md and every sibling file in its directory. For a targeted change, read SKILL.md, affected files, and references needed to assess their interactions. That change sets the scope: the verdicts below cover the lines it adds or touches, the rest of the skill stays as it is, and anything noticed there is a follow-up.
Fetch the guides. The platform and model guides below calibrate the delete, demote, and rewrite verdicts. Read each page's full text, not a fetch tool's summary of it: a summary misquotes long pages and misses parts of them.
model: frontmatter. If unset or inherit, use fable under Claude or astra under GPT. Follow the matching reference:
Audit. Give every frontmatter key, body instruction, and sibling file in scope exactly one verdict, judged against its bar below. Done when nothing in scope lacks a verdict.
context: fork skill whose body assumes conversation history. Record both sides.SKILL.md nor the harness reaches.references/ linked from SKILL.md, one level deep; a script under scripts/ when the steps are deterministic; a separate skill only when it needs its own trigger or another skill must reach it. Name the destination.The bar per part:
disable-model-invocation: true when only the user ever names the skill; omitted when the agent must reach the skill on its own, or another skill or a CLAUDE.md line invokes it. user-invocable: false when the human never runs it by hand. context: fork when the arguments fully specify the work and the body needs no conversation history. model and effort only when a run at the inherited value failed on the model the skill now runs on, since a level tuned on an earlier model does not carry over, and model only on a context: fork skill or one that owns the whole turn. argument-hint present when the skill takes arguments, absent when it does not.SKILL.md stating what it is and when to read it, or for a script, when to run it. A file with no pointer is unreachable, unless the harness reads it itself, as Codex reads agents/openai.yaml.Get decisions. Reuse changes and verdicts the user already authorized. Resolve contradictions from instruction priority and explicit user intent where possible; for each unresolved one, ask with AskUserQuestion or request_user_input, each conflicting version an option. Present any remaining delete and demote proposals and collect sign-off; rewrites need none unless the user asked to review them first. Leave unapproved proposals untouched.
Rewrite. Apply the authorized changes, the resolved contradictions, the rewrites, and the signed-off deletes and demotes in one pass, without asking again. Apply only those: anything else noticed while editing is a follow-up to report in the final message. Keep the directory name and the name field, since renaming changes the slash command. Done when every audited item landed where its verdict says: kept, rewritten, demoted, or deleted. When the description changed, name a trigger test in the final message: claude plugin eval with a tool_used: Skill grader in Claude Code, or the skill-creator skill's forward-testing in Codex.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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-practices/commitUse when making any git commit. Pass the failure, false claim, or risk the changes fix as the argument; for an addition or a filled gap, pass what it adds — never an invented why./differenceCompare A vs B, weigh pros and cons of A, B, C, ..., or explain the nuance between sentences — a quick answer from what the model already knows/fuck-over-engineeringUse when the user asks what could be deleted or reduced to simplify a codebase, says "simplify", "over-engineered", or wants a repo-, folder-, or file-wide audit for over-engineering — hunts dead code, reinvented stdlib, needless dependencies, and single-implementation abstractions, reports ranked cuts, applies only the picks. Not a diff review and not a bug huntnpx claudepluginhub vinta/hal-9000 --plugin hal-skillsOther plugins' skills for the same job