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-guides13-comments.reviewer.md

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

Lens: Comments & Documentation (Reviewer Guide)

When to Apply

After magic values. By now the code is expressive — comments compensating for unclear code should stand out.

What to Look For in Diffs

  • Comments removed and replaced by clearer code (renamed variables, extracted functions)
  • Commented-out code deleted
  • Stale TODO comments removed or acted on
  • Genuinely valuable "why" comments preserved

First Pass

Worker should remove obvious noise: comments that restate the code, commented-out code, outdated comments.

Second Pass

If comment noise remains:

  • Look for comments that explain what — can the code be restructured to make the comment unnecessary?
  • Check for missing "why" comments on non-obvious decisions — the worker should add these, not just delete
  • Look for TODOs that have been present long enough to be stale

Push Back On

  • Deleting comments that explain genuine complexity or non-obvious business rules — those should stay
  • Adding new comments instead of making code clearer

When Done

Move on when remaining comments earn their place — each explains something the code cannot express on its own.

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