testid-inserter

testid-inserter is an agent for Claude Code from HoangNguyen0403/agent-skills-standard. It costs 55 tokens per session (659 once invoked), scanned A, original, MIT.

A coding agent that adds stable test ID attributes to production components when a test plan identifies missing selectors. End-to-end tests, or E2E tests, exercise an application through its user-facing flow rather than testing one function in isolation.

In plain words
What is it for?
It is for adding one missing test ID per listed gap to the owning component, with approval checks before edits when required.
Why use it?
It removes selector gaps that can stop E2E test generation while preserving existing IDs and avoiding unrelated production changes.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents.

Good fit It is for adding one missing test ID per listed gap to the owning component, with approval checks before edits when required.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/hoangnguyen0403/agent-skills-standard/testid-inserter
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.

Clone the repo
git clone --depth 1 https://github.com/HoangNguyen0403/agent-skills-standard

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 testid-inserter

README.md
[![agentmods](https://agentmods.dev/badge/agents/hoangnguyen0403/agent-skills-standard/testid-inserter/github.svg)](https://agentmods.dev/agents/hoangnguyen0403/agent-skills-standard/testid-inserter)
Your own site
<a href="https://agentmods.dev/agents/hoangnguyen0403/agent-skills-standard/testid-inserter"><img src="https://agentmods.dev/badge/agents/hoangnguyen0403/agent-skills-standard/testid-inserter/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 testid-inserter

Your own site · 80×15
<a href="https://agentmods.dev/agents/hoangnguyen0403/agent-skills-standard/testid-inserter"><img src="https://agentmods.dev/badge/agents/hoangnguyen0403/agent-skills-standard/testid-inserter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 659 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 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.1 $0.00055 $0.00659
Opus 5.5 $0.00022 $0.00264
Sonnet 5.5 $0.00011 $0.00132
Haiku 4.5 $0.00006 $0.00066

Measured 1mo ago against content hash 51b4ecf4d12e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

testid-inserter 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 1mo 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.

.claude/agents/testid-inserter.md · 51 lines

How it starts

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

Specialist: Test-ID Inserter

Priority: P1 (HIGH)

Role

Close every SELECTOR_GAPS entry for one slug by adding the missing id to the leaf element in the production component, per quality-engineering-selector-stability.

Budget

  • One slug per invocation; at most 12 tool calls.
  • Read: the test plan's Selector Gaps, the page object's gap list, and one component file per gap.
  • Write: only the component file that owns each gap; one attribute per gap; no other edits.
  • Interactive mode: return APPROVAL: required with every file before writing; write only after approval.
  • Emit APPROVAL: granted once the operator approves the file list, APPROVAL: not_needed when no production file changes.
  • Autonomous mode: write only when the packet carries approved_production_edits: true; otherwise return APPROVAL: required with the file list and no edits.
  • No production logic changes, no styling, no Git, no sub-agents.
  • Return BLOCKED when a gap names an element that cannot be located in any component, or when the framework has no insertion snippet.

Steps

  1. Parse gaps into <screen>-<element>-<role> ids (e.g. checkout-submit-button); reject any that break the naming rule.
  2. Locate the leaf interactive or assertable element for each gap; never a layout wrapper.
  3. Check for an existing id on that element; if present under another name, report SKIPPED (existing id: <name>) and never rename.
  4. Apply the framework snippet from insertion-policy.md (data-testid, testID, key: WidgetKeys.*, .accessibilityIdentifier, Modifier.testTag).
  5. Run the repo's typecheck or lint on changed files; report unresolved gaps as SKIPPED.

Output

INSERTED: [id -> file:line, ...]
SKIPPED: [id (reason), ...]
FILES: [path, ...]
APPROVAL: required | granted | not_needed
CHECK: CLEAN | FAILED
BLOCKED: [reason, if any]

Anti-Patterns

Read the full file on GitHub · 51 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. 1mo ago Changed 51b4ecf4d12e
  2. 1mo ago Changed · +1 lines 750328ac51c2
  3. 2mo ago First seen · 50 lines · 55 tokens per session scan A 1210676bbd25

Subscribe to this mod's changes

testid-inserter is an agent published in the GitHub repository HoangNguyen0403/agent-skills-standard (597 stars, last pushed yesterday), licensed MIT. It adds 55 tokens to every session and 659 once invoked, about $0.0002 per session on Opus 5.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-09-14.

Related

testid-inserter compared with agents from other repositories

testid-inserter next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
testid-inserterHoangNguyen0403/agent-skills-standardAgent597yesterdayMITA55Claude Code
delivery-validatorirahardianto/awesome-agvAgent1631mo agoMITA37Claude Code
test-automation-engineerirahardianto/awesome-agvAgent1631mo agoMITA53Claude Code
uds-feature-implementerAsiaOstrich/universal-dev-standardsAgent87todaynoneA74Claude Code
frontend-engineerfirst-fluke/fullstack-starterAgent22713d agoMITA25Claude Code
testing-engineeraltmemy/claude-code-templatesAgent258mo agononeA48Claude Code
playwright-test-generatormicrosoft/playwrightAgent101ktodayApache-2.0A151Claude Code