test-strategy

test-strategy is a skill for Claude Code from OneDro1d/dark-factory. It costs 75 tokens per session (693 once invoked), scanned A, original, Apache-2.0.

A testing guide for choosing useful tests and creating them in the project's existing style. It follows TDD, or test-driven development: write a failing test first, make it pass, then improve the code.

In plain words
What is it for?
Use it to write regression tests, test-first feature changes, check cross-service contracts, cover unusual inputs, verify data separation, and scaffold the test setup.
Why use it?
It protects against regressions without spending effort on tests that add little value. It focuses on bugs, edge cases, security boundaries, and agreements between services where failures can stay hidden.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to write regression tests, test-first feature changes, check cross-service contracts, cover unusual inputs, verify data separation, and scaffold the test setup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/onedro1d/dark-factory/test-strategy
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.

Any agent
npx skills add OneDro1d/dark-factory --skill test-strategy
Clone the repo
git clone --depth 1 https://github.com/OneDro1d/dark-factory

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/onedro1d/dark-factory/test-strategy/github.svg)](https://agentmods.dev/skills/onedro1d/dark-factory/test-strategy)
Your own site
<a href="https://agentmods.dev/skills/onedro1d/dark-factory/test-strategy"><img src="https://agentmods.dev/badge/skills/onedro1d/dark-factory/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.

agentmods 80×15 button for test-strategy

Your own site · 80×15
<a href="https://agentmods.dev/skills/onedro1d/dark-factory/test-strategy"><img src="https://agentmods.dev/badge/skills/onedro1d/dark-factory/test-strategy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 693 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.00075 $0.00693
Opus 5 $0.00037 $0.00347
Sonnet 5 $0.00015 $0.00139
Haiku 4.5 $0.00007 $0.00069

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

Security

Grade A, and why

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 8d 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.

skills/df-context-store/substrate-template/dotclaude/skills/test-strategy/SKILL.md · 45 lines

How it starts

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

Test Strategy + Scaffolding

Goal: protect against regressions cheaply. Test pure logic and cross-service contracts — that's where silent bugs live (record detection, object-store-key drift, data-class split, type coercion). Skip trivial getters.

Test-first (RED → GREEN → REFACTOR)

Write the test before the production code, not after — the bug/feature's test should exist and fail (RED) first, then the implementer makes it pass (GREEN), then refactor under green. The test list is derived from the Design Spec's ACCEPTANCE criteria (one criterion → one named test), not invented at validation time. The implementer may not weaken a RED test to pass; a wrong test goes back to feature-architect. (Validation that lands after code is test-after — a weaker guard. See .claude/context/AGENT-CONTRACTS.md.)

What to test (priority)

  1. The exact bug being fixed — a test that fails before the fix, passes after.
  2. Cross-service contracts — drift = silent wedge (object-store key shape, record fields, routing keys).
  3. Security/segregation — restricted vs non-restricted data routing, fail-safe defaults.
  4. Edge cases — empty/missing, wrong type, boundary (padding, blank + coerced value). Avoid tests needing live queue/DB/object-store (those are integration — keep a separate fixture for them).

Scaffolding conventions

Mirror the repo's existing test layout and pinned tooling versions. Common stacks:

  • .NET → a <Service>.Tests project referencing the service .csproj (xUnit). To test private helpers, widen to internal (never public) + add <InternalsVisibleTo> to the service csproj. Run: dotnet test <proj>.
  • Go → in-package <file>_test.go, table-driven. If valuable logic is inlined in main(), extract a named pure func first, then test it. Run: cd <service> && go test ./....
  • Pythontest_<module>.py next to the code or under tests/. Run: pytest.

Run before reporting — green is the bar

Run the repo's test command (e.g. dotnet test, go test ./..., pytest) and mirror an existing passing suite for structure.

Read the full file on GitHub · 45 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. 8d ago First seen · 45 lines · 75 tokens per session scan A a4c0936eaa35

Subscribe to this mod's changes

test-strategy is a skill published in the GitHub repository OneDro1d/dark-factory (0 stars, last pushed today), licensed Apache-2.0. It adds 75 tokens to every session and 693 once invoked, about $0.0004 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-01.