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 agentmods add skills/vladkesler/initrunner/jest-patternsnpx skills add vladkesler/initrunner --skill jest-patternsgit clone --depth 1 https://github.com/vladkesler/initrunnerWrote 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/vladkesler/initrunner/jest-patterns)<a href="https://agentmods.dev/skills/vladkesler/initrunner/jest-patterns"><img src="https://agentmods.dev/badge/skills/vladkesler/initrunner/jest-patterns.svg" alt="Measured on agentmods" 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 | $0.00034 | $0.00765 |
| Opus 5 | $0.00017 | $0.00382 |
| Sonnet 5 | $0.00007 | $0.00153 |
| Haiku 4.5 | $0.00003 | $0.00076 |
Grade A, and why
jest-patterns 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.
How it starts
The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Jest and Vitest testing patterns for JavaScript and TypeScript projects.
When to activate
Use this skill when the project has jest.config.*, vitest.config.*,
a package.json listing jest or vitest as a dependency, or test files
matching *.test.{js,ts,tsx} or *.spec.{js,ts,tsx}.
Test file structure
- Use
describeblocks to group related tests by feature or function. - Use
it(ortest) blocks for individual test cases -- each one should describe a single behavior. - Nest
describeblocks for sub-scenarios (e.g.describe("when input is empty", ...)insidedescribe("parseConfig", ...)). - Use
beforeEach/afterEachfor per-test setup and teardown. - Use
beforeAll/afterAllsparingly -- only for expensive one-time setup like database connections.
Matchers
toBe(value)-- strict equality (===).toEqual(value)-- deep equality for objects and arrays.toMatchObject(subset)-- partial object matching.toThrow(error?)-- verify that a function throws.toHaveBeenCalledWith(args)-- assert mock was called with specific args.toMatchSnapshot()-- snapshot testing for serializable output.toContain(item)-- array/string includes check.toHaveLength(n)-- array or string length check.
Mocking
jest.fn()/vi.fn()-- create a mock function with call tracking.jest.mock("module")/vi.mock("module")-- replace an entire module with auto-mocked version.jest.spyOn(obj, "method")/vi.spyOn(obj, "method")-- spy on a method while keeping original implementation unless overridden.mockResolvedValue(val)-- shorthand for mocking async functions that return promises.mockImplementation(fn)-- provide a custom implementation.
Async testing
- Use
async/awaitin test functions for promise-based code. .resolves/.rejectsmatchers:await expect(fetchData()).resolves.toEqual(expected).- Always
awaitassertions on promises -- forgettingawaitcauses silent passes.
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 · 81 lines · 34 tokens per session scan A 42a3de90622f
jest-patterns is a skill published in the GitHub repository vladkesler/initrunner (41 stars, last pushed 6d ago), licensed Apache-2.0. It adds 34 tokens to every session and 765 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-30.
Other skills, from other repositories
Vizra ADK Evaluation Framework
Test and evaluate AI agents with automated evaluations, assertions, and LLM-as-a-Judge patterns.
Vizra ADK Memory System
Implement persistent memory, session context, and vector memory (RAG) for AI agents.
Vizra ADK Tool Creation
Build custom tools for Vizra ADK agents - includes patterns for database, API, file, and email tools.
Vizra ADK Agent Creation
Create AI agents with Vizra ADK - includes patterns for customer service, data analysis, and content generation agents.
Vizra ADK Workflows
Orchestrate complex multi-agent workflows - sequential, parallel, conditional, and loop patterns.
defense-in-depth
Multi-layer validation to catch bugs before they escape.