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.

referenceslenses12-magic-values.md

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

Lens: Magic Values & Configuration

Unexplained numbers, strings, and flags scattered through the code with no name or context.

The Question

Does every value in this code have a name that explains its meaning?

How to Spot

  • Numeric literals that are not 0 or 1: if retries > 3, timeout = 5000
  • String literals used as keys, identifiers, or flags in multiple places
  • Boolean arguments with no context: doThing(true, false, true)
  • Configuration hard-coded into logic rather than injected or declared separately

Process

For each literal value, ask: would someone unfamiliar with this code know what it means? If not, give it a name — a constant, an enum, or a configuration value that communicates its purpose.

Trade-off

Not every literal needs a name. 0, 1, "", and obvious defaults are fine. The smell is values whose meaning is invisible without context.

Go Deeper

What other unnamed values are hiding in conditions, function calls, or configuration? Where do string literals carry meaning that could be an enum?

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