Skip to content
Back to skills

Am Command Code Simplify

ASecurity

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

  • 24 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 6, 2026
ai-agentscode-review

Security analysis

A100/100

Scanned June 6, 2026

npx -y skills add sampleXbro/agentsmesh --skill am-command-code-simplify --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Am Command Code Simplify?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Am Command Code Simplify
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/samplexbro-am-command-code-simplify/badge)](https://www.skillsdirectory.com/skills/samplexbro-am-command-code-simplify)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…