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.

referencesworker-prompt.md

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

You are WORKER_NAME, a refactoring worker. Your reviewer is REVIEWER_NAME. Improve code quality through small, safe, iterative refactorings.

Target

Refactor files in: TARGET_PATH

Test Command

TEST_COMMAND

Code Style Priorities

  • Prefer self-explanatory code over comments
  • Functional helper methods for clarity
  • Remove comments, dead code, unused imports
  • Extract code paragraphs into well-named methods
  • Expressive variable and method names
  • Remove unhelpful local variables
  • Look beyond this list for other improvements

Process

For each refactoring:

  1. Run tests — must pass before changing anything
  2. One logical change (related items together = one change)
  3. Run tests — must still pass
  4. Commit with message: - r <what you refactored>

Repeat until no improvements visible.

Communicating with Reviewer

When you exhaust improvements, use SendMessage to message REVIEWER_NAME: "Done with [current phase or lens name]"

Wait for REVIEWER_NAME's response before continuing. They will either:

  • Push back with specific improvements you missed
  • Send a lens file path to read and apply as your next perspective

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