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 hamr0/liteagents --skill test-generategit clone --depth 1 https://github.com/hamr0/liteagentsWrote 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/hamr0/liteagents/test-generate)<a href="https://agentmods.dev/skills/hamr0/liteagents/test-generate"><img src="https://agentmods.dev/badge/skills/hamr0/liteagents/test-generate/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/hamr0/liteagents/test-generate"><img src="https://agentmods.dev/badge/skills/hamr0/liteagents/test-generate.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.00011 | $0.00734 |
| Opus 5 | $0.00005 | $0.00367 |
| Sonnet 5 | $0.00002 | $0.00147 |
| Haiku 4.5 | $0.00001 | $0.00073 |
Grade A, and why
test-generate 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- test-generate — 100% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Generate tests for $ARGUMENTS, then run them. This is a generate → run → verify loop, not just file generation.
1. Discover
- Detect the test framework already in use (look for
jest.config*,vitest.config*,pytest.ini/pyproject.toml [tool.pytest], Go's_test.goconvention,Cargo.toml [dev-dependencies], etc.). Never add a new framework or runner. - Skim 1–2 existing test files near the target to mirror style, fixtures, setup/teardown, assertion style, and naming convention.
2. Generate
Cover:
- Happy path (expected usage)
- Edges (empty / null / boundary / malformed)
- Errors (invalid input, IO / network / DB failures)
Match existing patterns:
- Same framework, same fixture style, same naming convention.
- Reuse existing setup/teardown helpers; do not add new mock libraries or new test-runner config.
- Do not add test-only public methods or exports to production code to make a test possible — if the test wants a hook the prod code doesn't expose, stop and ask.
3. Run
Execute the project's real test command, scoped to just the new tests
(-t <name>, --testPathPattern, pytest path/to/test.py, go test ./pkg, etc.). Report:
- Pass / fail counts.
- Any failure with the assertion message and
file:line.
4. Verify the tests BITE
A test that passes is not the same as a test that exercises the code. For each new test, confirm:
- It would fail if the function under test returned the wrong value. Mentally swap a broken impl — does the assertion actually catch it?
- It isn't
expect(true).toBe(true),expect(fn).toBeDefined(), or a mock asserting itself. - It isn't passing only because the setup masked the real call.
Mark each new test biting or superficial (with reason). Superficial tests count as a failure to ship — either fix or delete.
5. Report
- Files added / modified.
- Pass / fail.
- Biting vs superficial breakdown.
- What was deliberately not tested, and why (third-party shims, trivial getters/setters, generated code). Documented gaps beat fake coverage.
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.
- 4d ago First seen · 68 lines · 11 tokens per session scan A 6696cdf94880
test-generate is a skill published in the GitHub repository hamr0/liteagents (24 stars, last pushed 4d ago), licensed Apache-2.0. It adds 11 tokens to every session and 734 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-05.
Other skills, from other repositories
winui-ui-testing
Automated UI testing for Windows desktop apps — generate a batch test script with the winapp ui UI Automation harness, run all tests in one pass, read results. Covers element assertions, interactions, value checking (TextBox, ComboBox, ToggleSwitch), keyboard shortcuts and typing (send-keys), hover, drag-and-drop…
yida-formula-evaluate
A static checker for Yida formulas, field references, and common syntax risks. Static checking examines the formula text and schema without running it inside Yida.
test-coverage
Generate unit tests for untested branches and edge cases. Use when coverage is low, CI flags gaps, or a release needs hardening. Not for integration/E2E suites, framework migrations, or fixing production bugs.
ahk-test
Design, write, and run behavior-focused tests for an objective or existing code. Writes test files only and reports evidence. No tasks created, no harness tracking.
spec-driven-eval
Scores how completely an implementation fulfills a PRD/spec, case by case, and produces a single comparable final grade. Invoke only when explicitly named (e.g. run spec-driven-eval); do not auto-trigger. Use when benchmarking spec-driven implementations, grading acceptance criteria, evaluating whether a feature was…
playwright-skill
Complete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check responsive design, validate UX, test login flows, check links, automate any browser task. Use when user wants to test websites, automate browser interactions…