All skills
lexler avatar

/refactoring-team

@628d2e9
by Lada Kesselerlexler/skill-factory238 stars
61

Iterative code refactoring through progressive lenses via a worker-reviewer agent team.

Use this Skill: https://skilld.dev/gh/lexler/skill-factory/refactoring-team

This session only. Nothing lands on disk.

referencesreviewer-guides20-wrong-abstraction.reviewer.md

≈413 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Lens: Wrong Abstraction (Reviewer Guide)

When to Apply

After coupling. The worker has done structural work — this lens checks whether any abstraction overreached. It is the counterbalance to the duplication lens (08).

What to Look For in Diffs

  • Abstractions inlined back into call sites, making each site simpler
  • Parameters or flags removed from shared functions
  • Inheritance replaced with standalone implementations
  • Duplication reintroduced where it is genuinely simpler than forced sharing

First Pass

Worker should look for abstractions under strain — shared code with growing conditionals, callers that work around the shared interface, inherited behavior that subclasses mostly override.

Second Pass

If the worker found nothing:

  • Look at any shared utility or base class that takes boolean or config parameters — each parameter may represent a caller whose needs diverged
  • Check abstractions introduced by earlier lenses in this session — did the duplication or patterns lens create something that is now fighting back?
  • Ask: for each shared function, would inlining it into its callers make each caller simpler and more readable?

Push Back On

  • Wholesale duplication without judgment: the goal is not to undo all DRY, but to undo DRY that made code worse. If an abstraction serves its callers well, leave it alone
  • Replacing one wrong abstraction with another: if the worker backs out an abstraction, make sure they do not immediately force a new one. Sitting with duplication for a while is fine

When Done

Move on when abstractions feel like they serve their callers rather than constrain them.

Source: SKILL.md on GitHub

No alerts6d3 checks · Risk SAFE
  • Gen Agent Trust Hub6d

    The skill facilitates an automated, iterative refactoring workflow using a worker-reviewer agent team. It processes local source code and executes user-provided test commands to verify changes. The skill operates using local scripts and standard development tools without any detected malicious behaviors or obfuscation.

  • Socket6d

    No alerts

  • Snyk6d

    Risk: LOW · No issues

Signed by skilld at 628d2e9. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 7 months ago
disable-model-invocation
true
argument-hint
[target-path]
Other metadata
hooks
{
  "TeammateIdle": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_SKILL_DIR}/references/guard-idle-worker.sh"
        }
      ]
    }
  ]
}

README badge

README badge for lexler/skill-factory/refactoring-team