Skill refactorer

From kpab/claude-fable-5-skills · View interactive version

Skill refactorer is an AI agent skill from the GitHub repository kpab/claude-fable-5-skills. Audit and rewrite existing agent skills, system prompts, and CLAUDE.md files for Claude Fable 5 / 5.1. Use whenever the user mentions migrating, upgrading, porting, or "fixing" a skill or prompt for Fable 5 or 5.1, complains that a previously good skill now produces worse output, or asks why the mod

How to use this skill

Skill file

Skill Refactorer for Claude Fable 5 / 5.1

Skills and prompts written for earlier Claude models often encode capability compensation: step-by-step hand-holding, exhaustive enumeration of edge cases, and rigid micro-workflows that existed because older models needed them. Fable 5 and 5.1 follow instructions strictly enough that this old scaffolding becomes a straitjacket — the model obeys the obsolete recipe instead of using its own (now better) judgment. The result is output that is worse than no skill at all. Fable 5 prompts generally carry over to 5.1 unchanged, but 5.1 narrates less and formats less by default, so lines written to suppress either now cut into what the reader needs.

Your job: separate what the instruction protects from how it micromanages, keep the former, delete the latter.

Workflow

  1. Inventory. List every imperative instruction in the target skill/prompt as a separate line item.
  2. Classify each item into exactly one bucket:
  1. Rewrite. For every deleted compensation, ask: "what outcome was this trying to guarantee?" If the outcome still matters, state the outcome once, not the procedure. Example:
  1. Tighten the description field. Triggering logic stays in frontmatter description; the body should assume the skill already fired.
  2. Length check. A refactored skill is typically 30–60% shorter. If it isn't, re-run step 2 — you kept compensations.
  3. A/B test. Run one representative task with the old skill and one with the refactored skill. Compare outputs with the user before declaring victory. Afterward the model can keep the skill current from what it learns in-task, under these same rules: propose the edit, never drop a guardrail silently.

Red flags that mark a line as compensation

What NOT to touch

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.