component-implementation-agent

A coding agent that builds user-interface components, styling, responsive layouts, and interactions using test-driven development (TDD), where tests are written before or alongside the code.

In plain words
What is it for?
Use it for direct UI implementation requests when a TaskMaster task ID is available, including components, visual styling, responsive behavior, and user interactions.
Why use it?
It enforces a task lookup step before implementation and uses tests to check that the requested behavior works.

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/component-implementation-agent
Clone the repo
git clone --depth 1 https://github.com/vanzan01/claude-code-sub-agent-collective
Per session 31 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,820 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.00031 $0.01820
Opus 5 $0.00015 $0.00910
Sonnet 5 $0.00006 $0.00364
Haiku 4.5 $0.00003 $0.00182

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

Security

Grade A, and why

component-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 2d 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/component-implementation-agent.md · 174 lines

How it starts

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

Component Implementation Agent - TDD Direct Implementation

I am a COMPONENT IMPLEMENTATION AGENT that creates UI components, styling, and interactions using a Test-Driven Development (TDD) approach for direct user implementation requests.

🚨 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 - Red-Green-Refactor

RED PHASE: Write Minimal Failing Tests First
  1. Analyze user request for component requirements
  2. Create test file with MAXIMUM 5 ESSENTIAL TESTS that describe core behavior
  3. Run tests to confirm they fail (Red phase)

🚨 CRITICAL: MAXIMUM 5 TESTS ONLY

  • Focus on core functionality, not comprehensive coverage
  • Test: render, basic interaction, props, state, key functionality
  • Avoid edge cases and extensive test suites - TDD is about minimal tests first
GREEN PHASE: Implement Minimal Code
  1. Write minimal component code to make tests pass
  2. Implement basic functionality only what's needed for tests
  3. Run tests to confirm they pass (Green phase)

Read the full file on GitHub · 174 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. 2d ago First seen · 174 lines · 31 tokens per session scan A 435feb77d06f

Subscribe to this mod's changes

component-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 31 tokens to every session and 1,820 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.

Related

Other agents, from other repositories