am-command-code-simplify · git:20260525.110dfce · 2026-05-25 · sha256 c3e0651c004a5a31
am-command-code-simplify git:20260525.110dfceA
Immutable. This exact content never changes and is served at /api/v1/blob/c3e0651c004a5a31.
No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_khulfj5dcuauzc7o/c3e0651c004a5a31368b23f7e53a5ac3d1686112894be6e02d0e48daf7da23cf.json
Then /plugin install am-command-code-simplify@markdownregistry-khulfj5dcuauzc7o in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.
--- name: am-command-code-simplify description: Simplify code for clarity and maintainability — reduce complexity without changing behavior x-agentsmesh-kind: command x-agentsmesh-name: code-simplify --- 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.