Am command code simplify

From sampleXbro/agentsmesh · View interactive version

Am command code simplify is an AI agent skill from the GitHub repository sampleXbro/agentsmesh. Simplify code for clarity and maintainability — reduce complexity without changing behavior

How to use this skill

Skill file

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:
  1. Apply each simplification incrementally — run tests after each change
  2. 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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.