ai-job-hunter-app: Skill for Claude Code

.claude/skills/testing-rules/SKILL.md

testing-rules is a skill for Claude Code from saeedkolivand/ai-job-hunter-app. It costs 48 tokens per session (1,567 once invoked), scanned A, original, Apache-2.0.

A set of testing rules covering test frameworks, when logic needs tests, snapshots, mocks, and the handoff between test authors and testing reviewers.

In plain words
What is it for?
Use it when adding tests or changing logic that can be tested, including work involving test review.
Why use it?
It helps developers choose appropriate tests and avoid unreliable snapshots or mocks.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is saeedkolivand/ai-job-hunter-app's own configuration. It tells Claude Code how to work on ai-job-hunter-app itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-job-hunter-app configures →

Reuse

Borrowing it

Nothing to install: this file belongs to saeedkolivand/ai-job-hunter-app. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/saeedkolivand/ai-job-hunter-app/main/.claude/skills/testing-rules/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/saeedkolivand/ai-job-hunter-app

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 testing-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/saeedkolivand/ai-job-hunter-app/testing-rules/github.svg)](https://agentmods.dev/skills/saeedkolivand/ai-job-hunter-app/testing-rules)
Your own site
<a href="https://agentmods.dev/skills/saeedkolivand/ai-job-hunter-app/testing-rules"><img src="https://agentmods.dev/badge/skills/saeedkolivand/ai-job-hunter-app/testing-rules/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 testing-rules

Your own site · 80×15
<a href="https://agentmods.dev/skills/saeedkolivand/ai-job-hunter-app/testing-rules"><img src="https://agentmods.dev/badge/skills/saeedkolivand/ai-job-hunter-app/testing-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,567 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.00048 $0.01567
Opus 5 $0.00024 $0.00783
Sonnet 5 $0.00010 $0.00313
Haiku 4.5 $0.00005 $0.00157

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

Security

Grade A, and why

testing-rules 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 7d 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.

.claude/skills/testing-rules/SKILL.md · 59 lines

How it starts

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

Testing rules

Frameworks & utilities

  • Frontend — Vitest + @testing-library/react, colocated *.test.ts(x). Reuse renderer/test-support.tsx: createMockClient, renderHookWithClient, exerciseServiceHooks.
  • Rustcargo test; integration in src-tauri/tests/ (incl. cargo test --test architecture boundary guard).
  • E2E / golden — golden snapshots for PDF/DOCX/template rendering.

When tests are required (testable-logic predicate)

A change requires authoring tests iff a changed .rs/.ts/.tsx file (not test/generated/declaration/config) has a behavioral line change (not pure comment/blank/import/type-decl). Pure deletions don't trigger authoring — instead verify orphaned tests were removed.

Strategy

  • Order: integration → unit → e2e. Test behavior, not implementation.
  • Coverage of changed code: success + failure + error & security paths (untested error/security path on changed code = HIGH/blocking) + edge cases + validation.
  • Prove the guard is real (red-green). A test locking a bugfix must FAIL on the unfixed code and PASS on the fix — confirm it (temporarily revert the fix, or assert the exact sentinel/branch the fix introduced). A regression test that passes both ways guards nothing; CodeRabbit/CI caught several this run that did exactly that (a mocked dependency hid the real failure path).

Mocking

  • Allowed: external APIs, AI providers, third-party, expensive ops.
  • Never mock internal business logic, ATS scoring, resume generation, or export pipelines — use realistic fixtures.
  • Mock fidelity — a stub must reproduce the REAL side-effects of what it replaces. A vi.fn() standing in for a fn that commits optimistic state (e.g. updateAnswer calling setAnswers BEFORE its async save) must reproduce that effect (update the controlled prop/state in the test) — otherwise the test passes against logic production would break. A rollback-guard bug shipped green precisely because the mocked updateAnswer never updated state, so the guard's sentinel was never exercised. If a stub can't reproduce the real effect, render the real unit and mock only the leaf (network/provider/IPC).

Read the full file on GitHub · 59 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. 7d ago First seen · 59 lines · 48 tokens per session scan A ee18c59b209a

Subscribe to this mod's changes

testing-rules is a skill published in the GitHub repository saeedkolivand/ai-job-hunter-app (54 stars, last pushed today), licensed Apache-2.0. It adds 48 tokens to every session and 1,567 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-09-03.