mockery

mockery is a skill for Claude Code from hiromaily/go-crypto-wallet. It costs 63 tokens per session (1,500 once invoked), scanned A, original, MIT.

A project-specific workflow for generating Go mocks, which are test doubles that stand in for real components. It tells the coding agent when to generate them and where to place the files.

In plain words
What is it for?
Use it when adding an interface, writing tests that need a mock, or replacing a hand-written stub for a ports interface.
Why use it?
It keeps tests from depending on manually written stubs and gives mock files a consistent location. It also ensures the project’s required mock-generation command is used.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when adding an interface, writing tests that need a mock, or replacing a hand-written stub for a ports interface.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hiromaily/go-crypto-wallet/mockery
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 hiromaily/go-crypto-wallet --skill mockery
Clone the repo
git clone --depth 1 https://github.com/hiromaily/go-crypto-wallet

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 mockery

README.md
[![agentmods](https://agentmods.dev/badge/skills/hiromaily/go-crypto-wallet/mockery/github.svg)](https://agentmods.dev/skills/hiromaily/go-crypto-wallet/mockery)
Your own site
<a href="https://agentmods.dev/skills/hiromaily/go-crypto-wallet/mockery"><img src="https://agentmods.dev/badge/skills/hiromaily/go-crypto-wallet/mockery/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 mockery

Your own site · 80×15
<a href="https://agentmods.dev/skills/hiromaily/go-crypto-wallet/mockery"><img src="https://agentmods.dev/badge/skills/hiromaily/go-crypto-wallet/mockery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,500 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.00063 $0.01500
Opus 5 $0.00032 $0.00750
Sonnet 5 $0.00013 $0.00300
Haiku 4.5 $0.00006 $0.00150

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

Security

Grade A, and why

mockery 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 11d 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/mockery/SKILL.md · 150 lines

How it starts

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

Mockery Mock Generation Workflow

When to Activate This Skill

  • A new interface is added to internal/application/ports/
  • A test file contains a manually-written mock/stub for a ports interface
  • A developer asks to add mock coverage for an existing ports interface
  • A test needs to replace On(...).Return(...) setup on a hand-rolled struct with generated mock expectations

Placement Convention

Mocks live in the infrastructure layer, beside the concrete implementations:

Interface package (application/ports/) Mock output directory (infrastructure/)
ports/api/btc/ infrastructure/api/btc/mocks/
ports/api/eth/ infrastructure/api/eth/mocks/
ports/api/xrp/ infrastructure/api/xrp/mocks/
ports/file/ infrastructure/storage/file/transaction/mocks/
ports/repository/cold/ infrastructure/repository/cold/mocks/
ports/repository/watch/ infrastructure/repository/watch/mocks/

Pattern: ports/<layer>/<pkg>/infrastructure/<layer>/<pkg>/mocks/

Step-by-Step Workflow

  1. Locate the interface — find the Go file in internal/application/ports/ that defines the interface.
  2. Determine the target directory — use the placement convention table above to identify the dir value.
  3. Add or update .mockery.yaml — append the interface name under its package entry (or add a new package entry if none exists). See the template below.
  4. Run make mockery — regenerates all mocks in one pass. Never create or edit mock files manually.
  5. Verify — run make go-lint and make check-build to confirm the generated code compiles cleanly.
  6. Update tests — replace any manual stub usage with NewMock*(t) + .EXPECT() builder calls.

Read the full file on GitHub · 150 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. 11d ago First seen · 150 lines · 63 tokens per session scan A 4090b5f39cf8

Subscribe to this mod's changes

mockery is a skill published in the GitHub repository hiromaily/go-crypto-wallet (127 stars, last pushed 4mo ago), licensed MIT. It adds 63 tokens to every session and 1,500 once invoked, about $0.0003 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-01.

Related

Other skills, from other repositories

api-testing

Testing patterns for MCP tool/resource handlers using createMockContext and Vitest. Covers mock context options, handler testing, McpError assertions, format testing, Vitest config setup, and test isolation conventions.

cyanheads/coingecko-mcp-server · 46 tokens

verification-protocol

How to prove a hypothesis is TRUE or FALSE using Move unit tests.

PlamenTSV/plamen · 18 tokens

smart-contract-testing

Guide for testing smart contracts using Foundry and Hardhat, covering unit tests, fuzz testing, invariant testing, fork testing, and gas benchmarking.

nirholas/three.ws · 33 tokens

blockchain-testing

Use this skill when asked about testing smart contracts, Foundry tests, Hardhat tests, fuzz testing, invariant testing, property-based testing, formal verification, audit preparation, integration testing for dApps, and blockchain testing patterns. Covers Foundry cheatcodes, Echidna fuzzing, Certora verification…

j4flmao/agent-skills · 117 tokens

generate-tests

Creates comprehensive test suites for Move contracts with 100% coverage requirement. Triggers on: 'generate tests', 'create tests', 'write test suite', 'test this contract', 'how to test', 'add test coverage', 'write unit tests'.

aptos-labs/aptos-agent-skills · 54 tokens

agent-wallet

Operate a non-custodial blockchain wallet on-chain (EVM and Bitcoin), no exchange or MetaMask. Create or import a wallet, balances, send native/ERC-20/BTC, swap tokens, compile/deploy/call Solidity. Trigger on wallet, crypto, ETH, BTC, ERC-20, token, send, transfer, swap, trade, Solidity, contract, on-chain, testnet…

hec-ovi/blockchain-skill · 93 tokens