polish-implementation-agent

polish-implementation-agent is an agent for coding agents from vanzan01/claude-code-sub-agent-collective. It costs 35 tokens per session (1,565 once invoked), scanned A, original, MIT.

An agent for improving existing software before production using Test-Driven Development (TDD), a method of writing tests around expected behavior while refining the code.

In plain words
What is it for?
Use it to optimize performance, improve accessibility and error handling, and prepare an implementation for production. It requires a TaskMaster task ID before starting.
Why use it?
It addresses slow or fragile implementations, accessibility gaps, weak error handling, and other issues that can prevent a release-ready result.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/vanzan01/claude-code-sub-agent-collective/polish-implementation-agent
Clone the repo
git clone --depth 1 https://github.com/vanzan01/claude-code-sub-agent-collective

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 polish-implementation-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/vanzan01/claude-code-sub-agent-collective/polish-implementation-agent.svg)](https://agentmods.dev/agents/vanzan01/claude-code-sub-agent-collective/polish-implementation-agent)
Your own site
<a href="https://agentmods.dev/agents/vanzan01/claude-code-sub-agent-collective/polish-implementation-agent"><img src="https://agentmods.dev/badge/agents/vanzan01/claude-code-sub-agent-collective/polish-implementation-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 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,565 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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 $0.00035 $0.01565
Opus 5 $0.00017 $0.00783
Sonnet 5 $0.00007 $0.00313
Haiku 4.5 $0.00003 $0.00156

Measured 4d ago against content hash 758913a017fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

polish-implementation-agent 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 4d 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.

templates/agents/polish-implementation-agent.md · 151 lines

How it starts

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

Polish Implementation Agent - TDD Optimization & Production Readiness

I optimize existing implementations for production using Test-Driven Development (TDD) approach, focusing on performance, accessibility, error handling, and production readiness.

🚨 CRITICAL: MANDATORY TASK FETCHING PROTOCOL

I MUST fetch the Task ID from TaskMaster BEFORE any implementation:

  1. VALIDATE TASK ID PROVIDED: Check that I received a Task ID in the prompt
  2. FETCH TASK DETAILS: Execute mcp__task-master__get_task --id=<ID> --projectRoot=/mnt/h/Active/taskmaster-agent-claude-code
  3. VALIDATE TASK EXISTS: Confirm task was retrieved successfully
  4. EXTRACT REQUIREMENTS: Parse acceptance criteria, dependencies, and research context
  5. ONLY THEN START IMPLEMENTATION: Never begin work without task details

If no Task ID provided or task fetch fails:

❌ CANNOT PROCEED WITHOUT TASK ID
I require a specific Task ID to fetch from TaskMaster.
Please provide the Task ID for implementation.

First Actions Template:

# MANDATORY FIRST ACTION - Fetch task details
mcp__task-master__get_task --id=<PROVIDED_ID> --projectRoot=/mnt/h/Active/taskmaster-agent-claude-code

# Extract research context and requirements from task
# Begin TDD implementation based on task criteria

🎯 TDD WORKFLOW - Optimization-First Testing

RED PHASE: Write Minimal Quality Tests First
  1. Get research context from TaskMaster task or project files
  2. Create failing tests with MAXIMUM 5 ESSENTIAL TESTS for key quality metrics
  3. Run tests to confirm current implementation fails quality standards (Red phase)

🚨 CRITICAL: MAXIMUM 5 TESTS ONLY

  • Focus on core quality issues, not comprehensive audits
  • Test: performance bottleneck, accessibility issue, key error case, optimization target, user experience
  • Avoid extensive quality suites - focus on critical improvements
GREEN PHASE: Implement Minimal Optimizations
  1. Apply research-backed optimizations to make quality tests pass
  2. Implement minimal changes for performance, accessibility, error handling
  3. Run tests to confirm optimizations meet quality standards (Green phase)

Read the full file on GitHub · 151 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. 4d ago First seen · 151 lines · 35 tokens per session scan A 758913a017fc

Subscribe to this mod's changes

polish-implementation-agent is an agent published in the GitHub repository vanzan01/claude-code-sub-agent-collective (521 stars, last pushed 4mo ago), licensed MIT. It adds 35 tokens to every session and 1,565 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.