npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

loop-test-skill

v1.0.4

Published

Install the loop-test skill for Codex and Claude Code

Readme

loop-test

Public skill for deterministic validation of feature, bugfix, and refactor changes through a fix -> test -> fix loop, with scenario control, anti-flaky checks, and decision-ready output.

Quick install

npm install -g loop-test-skill

Global install now auto-activates the skill for Codex and Claude by default (~/.agents/skills/loop-test and ~/.claude/skills/loop-test).

loop-test-skill --agent both --force

Use in agent prompt:

  • $loop-test
  • /loop-test

What this skill solves

  • Prevents false green results (tests passing while bugs are masked).
  • Enforces root-cause fixes instead of cosmetic patches.
  • Keeps execution traceable with a scenario matrix and explicit states.
  • Standardizes escalation when real blockers happen (budget, dependencies, product decision).
  • Returns a merge decision users can act on: merge seguro | merge com risco | nao mergear.

Core user features

  • /loop-test: single-entry prompt-first validation flow with minimal required input.
  • Context Harvest: mandatory sweep of chat, PRD, spec, task, diff/code, and logs before scenario design.
  • Pre-Test Grill: mandatory domain-by-domain risk interrogation before matrix generation.
  • Real-flow-first validation: prioritizes API journey, browser journey (Playwright/MCP Chrome DevTools), or hybrid execution.
  • Risk-aware scenario matrix: prioritizes high-value scenarios by change type and risk.
  • Execution To-Do Board: live state board in chat + optional loop-session.md persistence.
  • Execution profiles: rapido, padrao, paranoico.
  • Anti-flaky policy: adaptive quorum (padrao=2/2, paranoico=3/3) for unstable scenarios.
  • Optional regression memory (loop-memory.md) for cross-session reuse.
  • Structured final report with decision, evidence, residual risks, and regression commands.

When to use

Use this skill when a change is already implemented and you need rigorous behavior validation before merge/release:

  • new feature with regression risk
  • bugfix with flaky/non-deterministic history
  • refactor that may break an external contract
  • explicit request for looped validation (/loop-test, "validate this", "test until stable")

When not to use

  • single isolated unit assertion with no multi-scenario risk
  • exploratory debugging without an acceptance contract
  • purely visual/text updates with no behavior change
  • cases with no testable hypothesis or no runnable validation path

Mandatory flow (summary)

  1. Run /loop-test with change summary and change type.
  2. Run Context Harvest and publish context dossier.
  3. Classify risk and select profile (rapido|padrao|paranoico).
  4. Run Pre-Test Grill and produce grill summary + risk map.
  5. Approve grill output (interactive) or lock assumptions with risk impact (delegated).
  6. Select real-flow method(s) (api-journey, browser-journey, or hybrid) as primary evidence.
  7. Propose scenario matrix with stable Scenario ID, explicit failure signal, and execution method.
  8. Request explicit matrix approval (interactive) or lock criteria/scope (delegated).
  9. Publish execution to-do board (chat mandatory, file optional).
  10. Execute scenarios sequentially with tracked states.
  11. On failure: diagnose root cause, fix, rerun the same scenario.
  12. Apply anti-flaky quorum when instability appears.
  13. Run risk-tier regression (targeted|suite|full) after scenario closure.
  14. Deliver loop-test report with decision state.

Definition of done (must all pass)

  • RED captured: at least one approved scenario fails before fix.
  • GREEN validated: same scenario passes after fix.
  • Root cause closed: fix explains causal correction, not symptom masking.
  • Scenario closure: no approved scenario left in pending/running.
  • Final risk-tier regression executed after scenario pass closure.
  • Decision state emitted: merge seguro | merge com risco | nao mergear.
  • Context Harvest gate passed with explicit assumptions for missing context.
  • Pre-Test Grill gate passed before matrix generation.
  • Real-flow evidence present for at least one approved scenario.
  • Execution to-do board closed with terminal states for all items.

Repository structure

  • SKILL.md: main skill contract and mandatory execution flow.
  • testing-playbook.md: pre-test grill policy, test-level ladder, escalation gates, anti-gaming rules.
  • loop-templates.md: grill summary, scenario matrix, and execution templates (RED, REFACTOR, checklist).
  • loop-memory.md: optional memory schema for cross-session non-regression scenarios.
  • loop-session.md: optional persisted execution board per run.
  • cso-rules.md: description/naming standards and token-efficiency rules.
  • SKILL_VALIDATION.md: empirical baseline vs compliance validation log.

Install alternatives

Run directly with npx (without global install):

npx loop-test-skill

Common variants:

# install for both Codex and Claude Code
npx loop-test-skill --agent both

# install for Claude Code only
npx loop-test-skill --agent claude

# preview actions without writing files
npx loop-test-skill --agent both --dry-run

# overwrite existing files
npx loop-test-skill --force

By default:

  • Codex target: ~/.agents/skills/loop-test
  • Claude Code target: ~/.claude/skills/loop-test

Manual install (fallback)

Install this skill in Code Agent (Codex):

1) Create the skill directory

On the target user machine:

mkdir -p ~/.agents/skills/loop-test

2) Copy the skill files

At minimum, copy SKILL.md. It is recommended to include companion docs too:

  • testing-playbook.md
  • loop-templates.md
  • loop-memory.md
  • loop-session.md
  • cso-rules.md

Example (replace <REPO_PATH>):

cp <REPO_PATH>/SKILL.md ~/.agents/skills/loop-test/SKILL.md
cp <REPO_PATH>/testing-playbook.md ~/.agents/skills/loop-test/testing-playbook.md
cp <REPO_PATH>/loop-templates.md ~/.agents/skills/loop-test/loop-templates.md
cp <REPO_PATH>/loop-memory.md ~/.agents/skills/loop-test/loop-memory.md
cp <REPO_PATH>/loop-session.md ~/.agents/skills/loop-test/loop-session.md
cp <REPO_PATH>/cso-rules.md ~/.agents/skills/loop-test/cso-rules.md

3) Verify installation

ls ~/.agents/skills/loop-test

You should see SKILL.md and the companion docs.

4) Use it in Code Agent

Invoke the skill by name in the agent prompt:

  • $loop-test
  • /loop-test
  • /loop-test auto (legacy alias)
  • or an explicit equivalent request (e.g. "use loop-test to validate this bugfix")

Compatibility

  • Codex / Code Agent: ~/.agents/skills/<skill-name>/SKILL.md
  • Claude Code: ~/.claude/skills/<skill-name>/SKILL.md

Security and privacy

  • Never expose secrets/tokens/PII in logs, prompts, screenshots, or examples.
  • Always use placeholders (<API_TOKEN>, <TEST_ACCOUNT_EMAIL>, <PROJECT_PATH>).
  • Never test against real customer channels without isolation and explicit approval.