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.

referenceslenses13-comments.md

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

Lens: Comments & Documentation

Comments that lie, repeat the code, explain what instead of why, or exist because the code is not clear enough on its own.

The Question

Is each comment here because the code cannot express it, or because the code failed to?

How to Spot

  • Comments that say what the code does — if the code is readable, the comment is noise
  • Outdated comments that no longer match the code
  • TODO comments that have been there for a long time
  • Commented-out code kept "just in case"
  • Comments compensating for bad names: // get user by email above getUserByEmail()

Process

For each comment, try to make it unnecessary — rename, extract, or restructure so the code speaks for itself. Keep only comments that explain why something non-obvious was done this way.

Trade-off

Some comments are genuinely valuable: explaining a non-obvious algorithm choice, documenting a workaround for a known issue, or clarifying a business rule that would be invisible in code. The goal is not zero comments but zero unnecessary comments.

Go Deeper

What other comments are masking unclear code? Where is commented-out code lingering? Where are genuinely complex decisions missing a "why" comment?

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