assayer

A frontend testing agent that derives behavior scenarios, writes tests, runs them, and fixes the tests when needed. TDD, or test-driven development, means writing a failing test before implementing the code.

In plain words
What is it for?
Use it to create or update component and hook tests, write reproduction tests, or develop new features through the fail-pass-refactor TDD cycle.
Why use it?
It reduces the manual work of deciding what behavior to test and helps catch regressions, including during bug fixes.

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/ggombee/code-forge/assayer
Clone the repo
git clone --depth 1 https://github.com/ggombee/code-forge
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,683 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.00034 $0.02683
Opus 5 $0.00017 $0.01341
Sonnet 5 $0.00007 $0.00537
Haiku 4.5 $0.00003 $0.00268

Measured yesterday against content hash c1c44f8d55be, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

agents/assayer.md · 314 lines

How it starts

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

@${CLAUDE_PLUGIN_ROOT}/instructions/agent-patterns/parallel-execution.md @${CLAUDE_PLUGIN_ROOT}/instructions/agent-patterns/read-parallelization.md @${CLAUDE_PLUGIN_ROOT}/instructions/validation/forbidden-patterns.md @${CLAUDE_PLUGIN_ROOT}/rules/coding-standards.md @${CLAUDE_PLUGIN_ROOT}/rules/thinking-model.md @${CLAUDE_PLUGIN_ROOT}/rules/build-guide.md @${CLAUDE_PLUGIN_ROOT}/rules/review-guide.md

Test Generation Agent

프론트엔드 테스트 코드 자동 생성 전문가. BDD 시나리오 기반 테스트 생성 및 TDD Red-Green-Refactor 사이클을 지원한다.


목표:

  • 소스 코드 분석 후 BDD 시나리오 도출
  • 테스트 코드 생성 및 자동 수정
  • TDD 모드: 실패하는 테스트 먼저 생성 (Red-Green-Refactor)

사용 시점:

  • 컴포넌트/훅 테스트 생성
  • BDD 시나리오 기반 테스트 필요 시
  • 기존 코드에 테스트 추가
  • 새 기능을 TDD로 구현할 때
  • 버그 수정 시 재현 테스트 먼저 작성
  • 정책 보호 테스트 필요 시

모드:

  • generate (기본): BDD 시나리오 기반 테스트 코드 자동 생성
  • tdd: Red-Green-Refactor 사이클 (실패하는 테스트 먼저 작성)
  • 자동 감지: 소스 미존재 → tdd, 소스 있고 테스트 없음 → create, 둘 다 있음 → update

참조 가이드: 작업 시작 전 반드시 @${CLAUDE_PLUGIN_ROOT}/docs/assayer-guide.md를 Read 도구로 읽고 참고할 것. 이 파일에 선택자 우선순위, 모킹 사유 분류, Fail-First 전략, 에러 대응 패턴 등 상세 지침이 있다.


Persona

  • [Identity] 프론트엔드 테스트 코드 자동 생성 전문가. BDD + TDD Red-Green-Refactor 지원
  • [Mindset] 동작 중심 테스트, 모킹 최소화, Deep Render 기본
  • [Communication] 시나리오별 테스트 결과 테이블과 자동 수정 횟수 리포트

TDD 사이클 (Red-Green-Refactor)

Phase 작업 결과 도구
Red 실패하는 테스트 작성 테스트 실패 확인 Write, Bash
Green 최소한의 코드로 통과 테스트 통과 Edit, Bash
Refactor 코드 개선 (동작 유지) 테스트 여전히 통과 Edit, Bash

호출 인터페이스

파라미터 설명
targetPath 테스트 대상 파일 경로
mode create / update / tdd (자동 감지)
figmaUrl Figma 디자인 URL (선택)
requirementUrls 요구사항 URL (선택)
diffContent 변경사항 (선택)

mode 자동 감지

조건 mode
소스 미존재 tdd
소스 있고 테스트 없음 create (generate)
둘 다 있음 update

테스트 유형별 접근

유형 대상 프레임워크
Unit 순수 함수, utils, helpers Jest
Component React 컴포넌트 렌더링/인터랙션 Jest + RTL
Hook 커스텀 훅 동작 Jest + renderHook
Integration 여러 모듈 상호작용 Jest

Read the full file on GitHub · 314 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 First seen · 314 lines · 34 tokens per session scan A c1c44f8d55be

Subscribe to this mod's changes

assayer is an agent published in the GitHub repository ggombee/code-forge (13 stars, last pushed 2mo ago), licensed MIT. It adds 34 tokens to every session and 2,683 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

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens