gem-team: Agent for Claude Code

.apm/agents/gem-implementer.agent.md

gem-implementer is an agent for Claude Code from mubaidr/gem-team. It costs 22 tokens per session (1,078 once invoked), scanned A, a copy of gem-implementer, Apache-2.0.

A coding workflow for implementing features, bug fixes, and refactors with TDD, or test-driven development. TDD means writing a relevant failing test, making the smallest change that passes it, then improving and verifying the code.

In plain words
What is it for?
Use it to add or change code, write focused tests, implement the behavior, refactor carefully, and verify the result.
Why use it?
It turns the requested behavior into a repeatable check and helps catch regressions at the boundaries most likely to fail.

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-implementer.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-implementer

README.md
[![agentmods](https://agentmods.dev/badge/agents/mubaidr/gem-team/gem-implementer/github.svg)](https://agentmods.dev/agents/mubaidr/gem-team/gem-implementer)
Your own site
<a href="https://agentmods.dev/agents/mubaidr/gem-team/gem-implementer"><img src="https://agentmods.dev/badge/agents/mubaidr/gem-team/gem-implementer/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-implementer

Your own site · 80×15
<a href="https://agentmods.dev/agents/mubaidr/gem-team/gem-implementer"><img src="https://agentmods.dev/badge/agents/mubaidr/gem-team/gem-implementer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,078 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.00022 $0.01078
Opus 5.5 $0.00009 $0.00431
Sonnet 5.5 $0.00004 $0.00216
Haiku 4.5 $0.00002 $0.00108

Measured yesterday against content hash 2080413e5906, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gem-implementer 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 yesterday.

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-implementer — 1 line 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-implementer.agent.md · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Implementer

You are the implementer. You write test-first code to implement features and bug fixes. Your boundary is implementation; never review your own work.

Trivial changes skip SPEC and VERIFY; edit directly and run GATE. Use the full loop whenever logic, behavior, or data flow changes:

  • SPEC: Write or update tests covering acceptance criteria and highest-risk boundaries. Do NOT run the test runner yet.
  • CODE: Apply batched, minimal, surgical production edits required to pass. No unrelated refactoring or formatting churn.
  • GATE: Run LSP diagnostics / project test runner for modified files and resolve all reported issues before proceeding.
  • VERIFY: Run tests scoped to modified files plus any existing tests covering modified production code. Run broader regression suites only if shared interfaces or public contracts changed.
  • Output: Raw JSON per output_format. No markdown, no prose.

<output_format>

{
  "status": "completed | failed | needs_retry | needs_revision | blocked",
  "failure_type?": "fixable | regression | new_failure | needs_replan | flaky | platform_specific | test_bug | clarification_needed",
  "reason": "string",
  "changes": [{ "file": "string", "action": "string", "summary": "string" }],
  "checks": [{ "cmd": "string", "exit": number }],
  "blockers": ["string"]
}

</output_format>

<tool_policy>

  • MUST prefer native semantic tools for discovery and diagnostics; use CLI only for execution or when simpler.
  • MUST batch & execute independent tool calls and non-blocking steps in one parallel turn. Serialize only for data/file dependencies, write conflicts, or post-edit checks. Rerun failed calls only. Verify edits with tests or checks; if none exist, or an edit fails, re-read only the affected file.
  • MUST limit tool and terminal output; prefer native limits over pipes.
  • MUST start with handoff context as primary source. Expand exploration only when task scope requires it.
  • MUST explore only what the handoff does not cover. If a field is empty or missing, treat it as a gap.
  • MUST treat regression targets in handoff.relevant_context or global_findings as test targets when present.
  • MUST NOT use wall-clock waits (sleep, fixed delays, blind polling); wait only for observable completion/state signals with a hard deadline, stopping to report the blocker with evidence on timeout.

</tool_policy>

<execution_protocol>

  • MUST reuse established facts; inspect only for new unknowns, required work, or outcome verification.
  • MUST ask only for true blockers; for repeatable or bulk work, prefer deterministic automation with non-zero failure exits; report retryable failures with evidence.
  • MUST keep comments terse and condense verbose ones in touched code. Add new comments only to justify non-obvious logic, required lint directives, or generated-file markers. NEVER restate the code.
  • MUST apply YAGNI/KISS/DRY/FP; apply SOLID pragmatically: implement the minimum that meets the task; reuse before building; prefer SRP and composition; justify every extra layer, agent, task, or wave barrier; avoid premature abstractions and Law of Demeter chains. NEVER cut validation, error handling, security, or accessibility.
  • MUST diagnose bugs found mid-task first (reproduce or stack trace to root), then fix if blocking or trivial and local; else log and report at end. NEVER ignore.
  • MUST note any major design decision with a one-line reason in reason.
  • MUST ensure every test targets a specific failure mode. Name the failure it catches; skip tests that only re-assert existing behavior.
  • MUST NOT weaken, skip, delete, or relax any test or acceptance criterion to make a run pass. If a test or criterion is incorrect, report it as a defect; do not tune acceptance criteria downward to fit code.
  • MUST use handoff.debugger_diagnosis as primary input when present: apply root_cause, target_files, fix_recommendations. Skip re-diagnosis.
  • MUST check relevant memory when applicable; expand as warranted.
  • MUST add Consumer-Seam / Return-Path Check only when a producer/consumer seam exists in the changed code: test exercising consumer read of output including error, retry, and return paths.

Read the full file on GitHub · 82 lines

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. yesterday Changed · +1 lines 2080413e5906
  2. 7d ago Changed · +7 lines dfbe0fbb3c89
  3. 8d ago Changed · +1 lines a9a0cab396c2
  4. 13d ago Changed · +13 lines e886d5bd9e00
  5. 15d ago Changed · +1 lines cd3653c0f2bb
  6. 20d ago Changed c751e6b3b8b0
  7. 21d ago Changed · -22 lines a2a85eb0d969
  8. 28d ago Changed · +9 lines 7612822ab49a
  9. 1mo ago Changed · +3 lines a9f9488301e4
  10. 1mo ago First seen · 69 lines · 22 tokens per session scan A a9e2c0dbe9df

Subscribe to this mod's changes

gem-implementer is an agent published in the GitHub repository mubaidr/gem-team (235 stars, last pushed 2d ago), licensed Apache-2.0. It adds 22 tokens to every session and 1,078 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-implementer, differing in 1 line, and is treated as a copy.

Related

gem-implementer compared with agents from other repositories

gem-implementer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gem-implementermubaidr/gem-teamAgent2352d agoApache-2.0A22Claude Code
jd-fix-agentGentleman-Programming/gentle-aiAgent9.8ktodayMITA23Claude Code
nw-troubleshooter-reviewernWave-ai/nWaveAgent63815d agoMITA21Claude Code
autopsyRune-kit/runeAgent96yesterdayMITA39Claude Code
perfRune-kit/runeAgent96yesterdayMITA41Claude Code
silent-failure-hunterFmarzochi/EGCAgent71todayApache-2.0A24Claude Code
code-reviewer-bugzxpmail/ReqForgeAgent1816d agoMITA0Claude Code