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 Karthick-Ramachandran/persist-os --skill write-testsgit clone --depth 1 https://github.com/Karthick-Ramachandran/persist-osWrote 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/karthick-ramachandran/persist-os/write-tests)<a href="https://agentmods.dev/skills/karthick-ramachandran/persist-os/write-tests"><img src="https://agentmods.dev/badge/skills/karthick-ramachandran/persist-os/write-tests/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/karthick-ramachandran/persist-os/write-tests"><img src="https://agentmods.dev/badge/skills/karthick-ramachandran/persist-os/write-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00044 | $0.00401 |
| Opus 5 | $0.00022 | $0.00200 |
| Sonnet 5 | $0.00009 | $0.00080 |
| Haiku 4.5 | $0.00004 | $0.00040 |
Grade A, and why
write-tests 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 9d 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.
What it actually says
Skill: Write Tests
Purpose
Create professional tests that prove important behavior, not random happy paths.
Inputs
- Feature PRD or task.
- Acceptance criteria.
- Changed files or planned modules.
- Known risks.
Required Reading
docs/50-quality/TESTING_STRATEGY.mddocs/50-quality/QUALITY_GATES.mddocs/20-security/SECURITY_MODEL.mddocs/60-engineering/ENGINEERING_STANDARDS.md- Relevant feature
TEST_PLAN.md - Relevant module
TEST_PLAN.md
Output Files
- Test files under the appropriate
tests/area. - Updated
TEST_PLAN.mdwhen test strategy changes. - Completion evidence listing commands and results.
Process
- Map acceptance criteria to test cases.
- Add risk-based tests for unsafe paths, overwrites, symlinks, config validation, generated output, and CLI behavior as relevant.
- Prefer unit tests for pure logic and integration tests for command behavior.
- Add golden tests for generated docs and templates.
- Name tests by behavior.
- Document skipped tests and remaining risk.
Stop Conditions
Stop and request human decision if:
- Requirements are not testable.
- The requested test would require runtime network, telemetry, cloud, MCP, or AI API behavior without review.
- Security-sensitive behavior lacks a documented expected result.
- The test approach conflicts with engineering standards.
Quality Bar
- Tests derive from requirements and risk.
- Security invariants are covered.
- Test names describe behavior.
- Engineering standards for evidence and skipped checks are followed.
- The completion report includes commands and results.
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.
- 9d ago First seen · 64 lines · 44 tokens per session scan A 833edd934a2e
write-tests is a skill published in the GitHub repository Karthick-Ramachandran/persist-os (8 stars, last pushed 2mo ago), licensed MIT. It adds 44 tokens to every session and 401 once invoked, about $0.0002 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-08-31.
Other skills, from other repositories
tdd-cycle
Execute full TDD red-green-refactor cycle with validation gates. Use when saying "TDD cycle", "test-driven development", or "full TDD workflow".
atomic-tdd
Test-first discipline. Auto-triggers on "let's implement X", "add feature Y", "fix bug Z", "write a test for", "implement", "build out", and similar pre-code-change phrases. Iron rule: failing test exists before production code. Skip only for pure docs/config changes with an explicit "skipped because:" note. Explicit…
ralphctl-test-driven-development
Execute-phase skill — write the failing test before the code that makes it pass; for bug fixes, this is the reproduction test itself. Use for any logic change, bug fix, or behavioural modification; for the full root-cause triage pipeline around an unexpected failure, see ralphctl-debugging-and-error-recovery.
tdd
A test-driven development workflow based on repeating three stages: write a failing test, make it pass, then improve the code. The tests focus on what users can do through public interfaces rather than internal implementation details.
go
Go phase. Reads the approved SPEC file, maps Requirements to tasks (plan), executes via TDD (build), and integrates results verifying all Acceptance Criteria.
test-driven-development
Use when user explicitly requests test-driven development. Triggers: 'TDD', 'write tests first', 'red green refactor', 'test-first', 'start with the test'. Also invoked by develop and executing-plans for implementation tasks. NOT for: full feature work (use develop, which includes TDD internally).