test-loop

test-loop is a command for GitHub Copilot from HoangNguyen0403/agent-skills-standard. It costs 22 tokens per session (685 once invoked), scanned A, original, MIT.

An automated workflow that turns approved acceptance criteria into executable end-to-end tests for web and mobile apps. End-to-end tests check a complete user flow across the running application.

In plain words
What is it for?
It is for planning tests, identifying missing selectors, generating scenarios, running them, and classifying or healing failures.
Why use it?
It provides a planned, traced test suite and separates repairable test failures from real application bugs.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt.

Good fit It is for planning tests, identifying missing selectors, generating scenarios, running them, and classifying or healing failures.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/hoangnguyen0403/agent-skills-standard/test-loop
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: GitHub Copilot.

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 test-loop

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/hoangnguyen0403/agent-skills-standard/test-loop"><img src="https://agentmods.dev/badge/commands/hoangnguyen0403/agent-skills-standard/test-loop.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 685 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.00022 $0.00685
Opus 5 $0.00011 $0.00342
Sonnet 5 $0.00004 $0.00137
Haiku 4.5 $0.00002 $0.00068

Measured 4d ago against content hash ca90203099dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

test-loop 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.

.github/prompts/test-loop.prompt.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.

Test Loop Workflow

Goal: Turn approved ACs into an executable, traced E2E suite, and classify any failure as a repair or a real bug instead of leaving it to manual triage.

Steps

  1. Load scope:
    • slug, operator_profile (carried, not re-inferred), AC-*, SRS lanes, build/app target, matched testing skills for the target stack.
  2. Plan:
    • Run specialist-test-planner to produce test_plan_path and selector_gaps (the specialist's PLAN: becomes this workflow's test_plan_path; SELECTOR_GAPS: becomes selector_gaps).
    • BLOCKED (no stable AC-* trace) if no stable AC-* trace exists; route to plan-feature/design-solution.
  3. Prepare selectors (Phase P1, not yet implemented):
    • Run specialist-testid-inserter on selector_gaps; stop for approval when production files change in interactive mode.
  4. Generate (Phase P1, not yet implemented):
    • One scenario per specialist-integration-test-generator call, seed-first, using the MCP/tool matching the scenario's lane.
  5. Run and heal (Phase P3, not yet implemented):
    • Run once; per failure, run specialist-test-healer. HEALED requires 3 green reruns. REAL_BUG_DO_NOT_HEAL routes to dev-fix. QUARANTINE_CANDIDATE routes to quality-engineering-flaky-triage with a ticket.
  6. Handoff:
    • Route to verify-work with the generated suite and any unresolved real_bugs[].

Runtime Contract

  • Use after implement-feature reaches GREEN, or whenever ACs have E2E/mobile lanes without executable coverage.
  • Required inputs: slug, stable AC-* trace, a runnable build/app target.
  • Return BLOCKED (no build target or AC trace) only when the build target cannot be established or AC-* is missing.

Handoff Payload

  • slug, operator_profile, test_plan_path, generated_tests[], heal_verdicts[], flake_quarantine[], selector_gaps_remaining[], real_bugs[], outcome report, next workflow.

Blocking Questions

  • Ask max 3 at a time with a recommended default and 2-3 options.

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. 4d ago First seen · 51 lines · 22 tokens per session scan A ca90203099dd

Subscribe to this mod's changes

test-loop is a command published in the GitHub repository HoangNguyen0403/agent-skills-standard (565 stars, last pushed 2d ago), licensed MIT. It adds 22 tokens to every session and 685 once invoked, about $0.0001 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-09-07.