am-command-code-simplify

SkillDev tools

Simplify code for clarity and maintainability — reduce complexity without changing behavior

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the am-command-code-simplify skill

What this skill tells your AI

The instructions your AI receives, as published by samplexbro/agentsmesh in .agents/skills/am-command-code-simplify/SKILL.md and read by ahel’s review.

Invoke the agent-skills:code-simplification skill.

Simplify recently changed code (or the specified scope) while preserving exact behavior:

  1. Read CLAUDE.md and study project conventions
  2. Identify the target code — recent changes unless a broader scope is specified
  3. Understand the code's purpose, callers, edge cases, and test coverage before touching it
  4. Scan for simplification opportunities:
    • Deep nesting → guard clauses or extracted helpers
    • Long functions → split by responsibility
    • Nested ternaries → if/else or switch
    • Generic names → descriptive names
    • Duplicated logic → shared functions
    • Dead code → remove after confirming
  5. Apply each simplification incrementally — run tests after each change
  6. Verify all tests pass, the build succeeds, and the diff is clean

If tests fail after a simplification, revert that change and reconsider. Use code-review-and-quality to review the result.

Signals

GitHub stars
24
Forks
7
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
am-command-code-simplify
Source
github.com/samplexbro/agentsmesh