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-guides16-coupling.reviewer.md

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

Lens: Coupling & Dependencies (Reviewer Guide)

When to Apply

After semantic clarity. Now that the code reads well, look at the invisible wires between units — what depends on what, and why.

What to Look For in Diffs

  • Dependencies removed or narrowed (imports reduced, parameters simplified)
  • Domain logic separated from framework/library details
  • Chains of object access shortened — units no longer reaching through collaborators
  • Unnecessary intermediaries inlined or given real responsibility

First Pass

Worker should find the obvious: chains of object access, scattered changes from a single concept, framework details mixed into domain logic.

Check for false positives: chains through data structures or fluent APIs are navigation, not coupling. Push back if worker flagged these.

Second Pass

If coupling still feels heavy:

  • Do the ripple trace yourself: pick a unit and ask "if I changed this, what else breaks?" If the answer is "many things," there's coupling the worker missed
  • Look for modules that depend on each other in circles
  • Look for data or parameters passed through untouched — invisible wires the worker may not have noticed

Check for wrong fixes: if the worker wrapped train wrecks in delegation methods, that hides coupling without reducing it. The fix is redesigning the interface, not adding pass-through wrappers.

When Done

Move on when dependencies feel intentional — each unit depends on what it genuinely needs and nothing more.

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