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.
npx skills add cosmix/loom --skill loom-test-strategygit clone --depth 1 https://github.com/cosmix/loomWrote 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.
[](https://agentmods.dev/skills/cosmix/loom/loom-test-strategy)<a href="https://agentmods.dev/skills/cosmix/loom/loom-test-strategy"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-test-strategy/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.
<a href="https://agentmods.dev/skills/cosmix/loom/loom-test-strategy"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-test-strategy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00029 | $0.02820 |
| Opus 5.5 | $0.00012 | $0.01128 |
| Sonnet 5.5 | $0.00006 | $0.00564 |
| Haiku 4.5 | $0.00003 | $0.00282 |
Grade A, and why
loom-test-strategy 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 17d 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.
How it starts
The opening of the file, as written. The whole thing — 233 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Test Strategy
Overview
How much to test, at what altitude, and in what order — balancing signal against cost. This file owns the pyramid, coverage goals, risk prioritization, and flaky-test diagnosis. For writing tests and test-double choice see loom-testing; for browser E2E see loom-e2e-testing.
The Pyramid and the Altitude Tradeoff
Push tests down to the cheapest altitude that still exercises the risk. Each layer up costs more to write, run, and debug, and fails for more unrelated reasons.
| Layer | Typical emphasis | Scope | Speed | Signal on failure |
|---|---|---|---|---|
| Unit | most behavior that can run without I/O | one function/branch, no I/O | ms | precise — points at the defect |
| Integration | boundaries and contracts | real boundary (DB, HTTP, queue) | 10ms-1s | wiring/contract broke |
| E2E | a small set of critical journeys | full user journey in a browser | seconds | something broke, somewhere |
⚠ Ice-cream cone anti-pattern: inverted pyramid — many slow E2E tests, few unit tests. Symptoms: hours-long CI, chronic flakiness, "just re-run it" culture, hours to localize a failure. Cause: E2E is easy to start (record-and-play) but the suite becomes unmaintainable. Fix: for every E2E failure, ask "what unit/integration test should have caught this?" and push it down.
⚠ Testing Trophy (Kent C. Dodds) is a legitimate variant for UI/front-end-heavy apps: fewer isolated units, a fat integration middle (component + real collaborators via Testing Library), thin E2E. Choose by where your risk and refactor-churn live — do not cargo-cult 70/20/10.
Coverage — a floor, never a target
Coverage measures what is untested; it says nothing about assertion quality. Mandating 100% breeds assertion-free tests that run lines to hit the number.
| Component | Line | Branch | Note |
|---|---|---|---|
| Business logic / domain | 90%+ | 85%+ | the point of the suite |
| API handlers | 80%+ | 75%+ | every endpoint + error shape |
| Utilities / pure fns | 95%+ | 90%+ | cheap and high-value |
| UI components | 70%+ | 60%+ | behavior over markup |
| Infrastructure | 60%+ | 50%+ | prefer integration/smoke |
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.
- 17d ago Changed 4f83af921565
- 3mo ago First seen · 233 lines · 29 tokens per session scan A 265ff04391c5
loom-test-strategy is a skill published in the GitHub repository cosmix/loom (66 stars, last pushed 5d ago), licensed MIT. It adds 29 tokens to every session and 2,820 once invoked, about $0.0001 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-03.
loom-test-strategy compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| loom-test-strategycosmix/loom | Skill | 66 | 5d ago | MIT | A | 29 | Claude Code, Codex |
| continuous-testingAdamBien/airails | Skill | 76 | today | MIT | A | 84 | Claude Code |
| langchain4j-testing-strategiesgiuseppe-trisciuoglio/developer-kit | Skill | 374 | 2mo ago | MIT | A | 81 | Claude Code |
| Test Strategyniels-emmer/myace | Skill | 1 | 2d ago | MIT | A | 29 | Claude Code, Codex |
| iOS Testingniels-emmer/myace | Skill | 1 | 2d ago | MIT | A | 27 | Claude Code, Codex |
| Android Testingniels-emmer/myace | Skill | 1 | 2d ago | MIT | A | 23 | Claude Code, Codex |
| Spring Test Pyramidniels-emmer/myace | Skill | 1 | 2d ago | MIT | A | 21 | Claude Code, Codex |