unit-mocking-isolation

unit-mocking-isolation is a skill for Claude Code, Codex from paruff/uFawkesAI. It costs 42 tokens per session (528 once invoked), scanned A, original, MIT.

A testing method that replaces external systems with controlled test doubles, or mocks. It covers services such as Git, registries, filesystems, Kubernetes APIs, and network requests.

In plain words
What is it for?
Use it when testing code that interacts with Git, container registries, files, Kubernetes, or HTTP services and you need isolated unit tests.
Why use it?
It keeps tests fast and repeatable by avoiding real network calls, filesystem writes, and other outside side effects. Cleanup and validation rules also help prevent mocks from affecting other tests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; installed under .agents/ (shared by several agents); mentions Codex.

Good fit Use it when testing code that interacts with Git, container registries, files, Kubernetes, or HTTP services and you need isolated unit tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/paruff/ufawkesai/unit-mocking
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 paruff/uFawkesAI --skill unit-mocking
Clone the repo
git clone --depth 1 https://github.com/paruff/uFawkesAI

Made for: Claude Code, Codex.

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 unit-mocking-isolation

README.md
[![agentmods](https://agentmods.dev/badge/skills/paruff/ufawkesai/unit-mocking/github.svg)](https://agentmods.dev/skills/paruff/ufawkesai/unit-mocking)
Your own site
<a href="https://agentmods.dev/skills/paruff/ufawkesai/unit-mocking"><img src="https://agentmods.dev/badge/skills/paruff/ufawkesai/unit-mocking/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 unit-mocking-isolation

Your own site · 80×15
<a href="https://agentmods.dev/skills/paruff/ufawkesai/unit-mocking"><img src="https://agentmods.dev/badge/skills/paruff/ufawkesai/unit-mocking.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 528 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.00042 $0.00528
Opus 5 $0.00021 $0.00264
Sonnet 5 $0.00008 $0.00106
Haiku 4.5 $0.00004 $0.00053

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

Security

Grade A, and why

unit-mocking-isolation 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.

.agents/skills/unit-testing/unit-mocking/SKILL.md · 86 lines

What it actually says

Skill: Unit Mocking & Isolation

Load trigger: "load unit-mocking-isolation skill" > DORA: Cap 5 (Operational Resilience) Token cost: Low

Purpose

Isolate OBS and PIPE logic from external systems to ensure deterministic, fast tests.

Responsibilities

  • Mock Git operations
  • Mock registry interactions
  • Mock filesystem operations
  • Mock Kubernetes API calls
  • Mock network requests

Inputs

  • Mock definitions
  • Unit test files

Outputs

  • mock-report.json

Mock Targets

Target Tool Use When
Git operations ts-mockito Testing commit, push, pull
Registry nock Testing image pull, push
Filesystem jest.mock('fs') Testing file read/write
K8s API nock Testing pod, deployment operations
HTTP nock Testing API calls

Mock Validation Rules

  • Zero real network calls
  • Zero real filesystem writes
  • All mocks validated
  • Mock cleanup after each test
  • No mock leaks between tests

Mock Example

// Mock Git operations
const mockGit = mock<GitClient>();
when(mockGit.commit(anything())).thenResolve({ sha: "abc123" });

// Mock registry
nock("https://registry.example.com")
  .get("/v2/my-app/manifests/latest")
  .reply(200, manifest);

Output Format

{
  "skill": "unit-mocking-isolation",
  "status": "pass | fail",
  "mocks_used": 8,
  "real_network_calls": 0,
  "real_fs_writes": 0,
  "mock_validations": "all_pass"
}

Success Criteria

  • Zero real network calls
  • Zero real filesystem writes
  • All mocks validated
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 · 86 lines · 42 tokens per session scan A 1009ed4f4cb9

Subscribe to this mod's changes

unit-mocking-isolation is a skill published in the GitHub repository paruff/uFawkesAI (2 stars, last pushed 19d ago), licensed MIT. It adds 42 tokens to every session and 528 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.

Related

Other skills, from other repositories