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.

referenceslenses16-coupling.md

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

Lens: Coupling & Dependencies

Code that knows too much about too many things. A change in one place ripples unpredictably through many others.

The Question

What does each unit depend on, and is that dependency necessary?

How to Spot

  • Reaching through objects: a.getB().getC().doThing() — this unit knows its collaborators' internals. Chains through data structures or fluent APIs are navigation, not coupling.
  • One change, many files: a single conceptual change forces edits scattered across the codebase
  • Pass-through: parameters or data flowing through a function untouched, coupling it to both caller and callee

Process

Trace the ripple outward: if I changed this unit, what else would break? If the answer crosses many boundaries, the coupling is too tight.

Trade-off

Some coupling is necessary — zero coupling means the code does nothing. The question is whether each dependency is essential (this unit genuinely needs it) or accidental (an artifact of how the code was written). Coupling along a stable axis that never triggers change is cheap to keep.

Go Deeper

What coupling is still invisible? Where do framework details leak into domain logic? Where do modules depend on each other in circles? And beware: wrapping a train wreck in a delegation method doesn't reduce coupling — it hides it.

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