gem-team: Agent for Claude Code

.apm/agents/gem-code-simplifier.agent.md

gem-code-simplifier is an agent for Claude Code from mubaidr/gem-team. It costs 21 tokens per session (639 once invoked), scanned A, a copy of gem-code-simplifier, Apache-2.0.

A code-refactoring specialist that makes existing code simpler without adding features. Refactoring means changing code's structure while keeping its intended behavior and public interfaces.

In plain words
What is it for?
Use it to clean up dead code, reduce nesting and complexity, consolidate duplicates, improve names, and review changes that may affect shared code.
Why use it?
It helps remove unused code, repeated logic, confusing names, and unnecessary complexity while checking that references and contracts still work.

Agent for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions subagents.

This is mubaidr/gem-team's own configuration. It tells Claude Code how to work on gem-team itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything gem-team configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mubaidr/gem-team. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mubaidr/gem-team/main/.apm/agents/gem-code-simplifier.agent.md
Clone the repo
git clone --depth 1 https://github.com/mubaidr/gem-team

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gem-code-simplifier

README.md
[![agentmods](https://agentmods.dev/badge/agents/mubaidr/gem-team/gem-code-simplifier/github.svg)](https://agentmods.dev/agents/mubaidr/gem-team/gem-code-simplifier)
Your own site
<a href="https://agentmods.dev/agents/mubaidr/gem-team/gem-code-simplifier"><img src="https://agentmods.dev/badge/agents/mubaidr/gem-team/gem-code-simplifier/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gem-code-simplifier

Your own site · 80×15
<a href="https://agentmods.dev/agents/mubaidr/gem-team/gem-code-simplifier"><img src="https://agentmods.dev/badge/agents/mubaidr/gem-team/gem-code-simplifier.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 639 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 88% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.00639
Opus 5.5 $0.00008 $0.00256
Sonnet 5.5 $0.00004 $0.00128
Haiku 4.5 $0.00002 $0.00064

Measured 8d ago against content hash a448818e6257, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gem-code-simplifier scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

88% identical to gem-code-simplifier — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.apm/agents/gem-code-simplifier.agent.md · 67 lines

What it actually says

CODE SIMPLIFIER

Remove dead code, reduce complexity, consolidate duplicates, improve naming. Never add features.

<skills_guidelines>

  • Smells: Long param lists, feature envy, primitive obsession, magic numbers, god classes.
  • Principles: Preserve behavior; small steps; version control; one change at a time.
  • Don't refactor: Working code that won't change; critical code without tests (add tests first); code under tight deadlines.
  • Operations: Extract Method/Class; Rename; Introduce Parameter Object; Replace Conditional with Polymorphism; Magic Number -> Constant; Decompose Conditional; Guard Clauses.
  • Use extraction/rename/pattern only when smell is evidenced and change measurably reduces complexity without expanding public contract.
  • Process: Prefer speed over ceremony; YAGNI; bias toward action; proportional depth. </skills_guidelines>

<output_format>

{
  "status": "completed | failed | needs_retry | blocked",
  "reason": "string",
  "fail": "fixable | needs_replan | escalate | flaky | regression | new_failure | platform_specific",
  "handoff": {
    "changed_files": ["string"],
    "complexity_delta": 0,
    "verdict": "pass | fail"
  },
  "learn": "string"
}

</output_format>

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago Changed · -1 lines a448818e6257
  2. 26d ago Changed 9fc5b2c31bb9
  3. 1mo ago Changed · +6 lines 6feb9b18dba8
  4. 1mo ago Changed · -30 lines 2ff5a8b6a65d
  5. 1mo ago Changed · -9 lines cf8c64991d70
  6. 1mo ago Changed · +1 lines 2a4701c26662
  7. 1mo ago Changed · +2 lines a29a32e2f941
  8. 1mo ago Changed · +1 lines 8f33026d8b3d
  9. 1mo ago Changed · +1 lines 190ec609c1dd
  10. 1mo ago First seen · 96 lines · 21 tokens per session scan A 46e76b40a117

Subscribe to this mod's changes

gem-code-simplifier is an agent published in the GitHub repository mubaidr/gem-team (227 stars, last pushed 8d ago), licensed Apache-2.0. It adds 21 tokens to every session and 639 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 88% identical to gem-code-simplifier, differing in 0 lines, and is treated as a copy.

Related

Other agents, from other repositories

code-reviewer

A senior review process for proposed code changes. It checks correctness, readability, architecture, security, and performance, and reports actionable findings before merging.

vinvcn/addyosmani-agent-skills-zh · 37 tokens

spring-code-reviewer

Phase 7 — pre-commit human-style review against the full diff and validation report. Produce 08-code-review.md and final verdict; block commit on unwaived blockers.

loiane/specs-driven-development-spring-angular · 41 tokens

code-auditor

Analyzes implemented code for pattern consistency, maintainability, code duplication, comment quality, and documentation drift.

rp1-run/rp1 · 25 tokens

ipc-contract-auditor

Use when IPC or command-surface drift is possible — after adding, renaming, or removing a Tauri command, a SidecarCommand/SidecarEvent variant, or a tauri-api.ts wrapper, and before merging any branch that touched src-tauri/src/sidecar.rs, src-tauri/sidecar-opencode/src/types.ts, src-tauri/src/lib.rs, or…

kevinlin/cowork-z · 105 tokens

code-reviewer-bug

name: code-reviewer-bug description: Specialized code reviewer for bug patterns — null safety, race conditions, resource leaks, logic and error-handling defects. Returns scored findings (severity × impact × confidence). skills: code-review model: inherit.

zxpmail/ReqForge · 0 tokens

code-reviewer

Expert code review specialist — quality/correctness/security/performance/testing with severity-ranked findings. Use when reviewer/qa-engineer delegates deep craft or PR explicitly warrants independent verification; opt-in via holistic caller.

ulises-jeremias/agent-toolkit · 45 tokens