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.

referenceslenses15-responsibility.md

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

Lens: Responsibility & Type Design

Logic that lives in the wrong place, or types that are not pulling their weight — passive containers manipulated by outside code.

The Question

Is each piece of logic in the place that owns the data it works with? Are types carrying behavior and enforcing their own rules?

How to Spot

  • A function that uses several attributes of another class and none of its own
  • Anemic objects: classes with only getters and setters, all logic lives in services
  • Tell-Don't-Ask violations: code that asks an object for its state, makes a decision, then tells it what to do — the object should make the decision itself
  • Domain logic hiding in utilities, helpers, or service layers when it belongs on a domain object
  • Classes that can be constructed in invalid states — invariants not enforced in the constructor

Process

For each function, ask: whose data does this work with? If it reaches into another object for most of its inputs, the logic probably belongs on that object. For each type, ask: does it carry behavior, or do callers do all the thinking?

Trade-off

Not everything needs to be a rich domain object. Data transfer objects, configuration records, and coordination layers are legitimately separate. The smell is logic that is envious — constantly reaching for another object's internals — and types that should carry behavior but do not.

Go Deeper

What other logic is in the wrong place? Where are callers making decisions that belong on the objects they query? Where are helpers doing work that belongs on a domain object?

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