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-guides19-error-handling.reviewer.md

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

Lens: Error Handling (Reviewer Guide)

When to Apply

After mutable state. State management is clean — now check whether error paths are designed, not accidental.

What to Look For in Diffs

  • Error messages rewritten from implementation language to domain language
  • Boundary functions given explicit validation and meaningful error types
  • Silent catch blocks given real handling or removed
  • Previously untested error paths covered by tests

First Pass

Worker should find the obvious: catch blocks that swallow errors, functions that raise implementation exceptions instead of domain ones, boundary functions with no validation.

Check for false positives: if the worker added error handling to internal code that already receives validated input, push back — validation belongs at the boundary, not deep in the call chain. If the worker wrapped internal code in try/catch, that code should crash loudly on impossible states rather than handle them gracefully.

Second Pass

Do the "what happens when" test yourself: pick a function that takes external input and mentally feed it empty, malformed, zero, and extreme values. Then look for what the worker missed:

  • Functions where the error behavior is accidental — the runtime happens to do something, but nobody designed it
  • Missing input support disguised as error handling — a function that fails because it doesn't support a valid input type, not because its handling is wrong
  • Untested error paths — no test exercises the failure, so the behavior is undocumented and could change silently

Check for wrong fixes: wrapping everything in try/catch instead of validating upstream, converting specific exceptions to generic ones (hides the real problem), or adding defensive checks in trusted code that make the happy path harder to read.

When Done

Move on when error behavior at boundaries is designed and tested — and internal code is free to trust its inputs and crash on impossible states.

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