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.

referenceslenses23-final-review.md

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

Lens: Final Review

Last pass. The reviewer will assess the code holistically and may send you back through specific lenses that deserve a second look.

Process

  1. Read through the refactored code from start to finish
  2. Find anything that still bothers you
  3. For each issue, ask: "Can I fix this without changing behavior?"
    • Yes → implement the refactoring now
    • No → note it for future improvements

Re-applying Lenses

The reviewer may send you back through specific lenses. When they do:

Read the lens file again. Then apply it as if seeing this code for the first time — forget what you decided in the earlier pass. Design lenses have changed the landscape: new names exist, new types have been introduced, responsibilities have shifted. Functions you left alone may now have obvious extraction points because the vocabulary to name those extractions didn't exist before.

Method-length in particular: every design lens changes what's extractable. A function that looked fine before may now clearly contain phases that have names, or can benefit from methods being extracted to make the narrative cleaner. Carefully and thoroughly challenge every function's length.

When Done

Declare done when you have implemented all refactorings you can find. Note what is beyond refactoring's reach:

  • Current problems that require behavior changes
  • Improvements that would change what the code actually does
  • Recommendations for the human to consider

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