Test Writing Workflow
iOfficeAI/AionUi
Sets the test-writing workflow for the repository: risk-first scenario lists, behavior-focused Vitest tests, a full run before each commit and a coverage target.
Mock generation workflow for go-crypto-wallet. An agent skill from hiromaily/go-crypto-wallet.
$ npx skills add hiromaily/go-crypto-wallet --skill mockery -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install hiromaily/go-crypto-wallet mockery --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/hiromaily/go-crypto-wallet.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/mockery .claude/skills/mockery && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "mockery" agent skill from https://github.com/hiromaily/go-crypto-wallet/tree/main/.claude/skills/mockery into .claude/skills/mockery/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mockery", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/hiromaily/go-crypto-wallet/tree/main/.claude/skills/mockeryType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add hiromaily/go-crypto-wallet --skill mockery -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install hiromaily/go-crypto-wallet mockery --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/hiromaily/go-crypto-wallet.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/mockery .agents/skills/mockery && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "mockery" agent skill from https://github.com/hiromaily/go-crypto-wallet/tree/main/.claude/skills/mockery into .agents/skills/mockery/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mockery", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add hiromaily/go-crypto-wallet --skill mockery -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install hiromaily/go-crypto-wallet mockery --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/hiromaily/go-crypto-wallet.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/mockery .cursor/skills/mockery && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "mockery" agent skill from https://github.com/hiromaily/go-crypto-wallet/tree/main/.claude/skills/mockery into .cursor/skills/mockery/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mockery", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/hiromaily/go-crypto-wallet.git --path .claude/skills/mockery--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add hiromaily/go-crypto-wallet --skill mockery -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install hiromaily/go-crypto-wallet mockery --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/hiromaily/go-crypto-wallet.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/mockery .gemini/skills/mockery && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "mockery" agent skill from https://github.com/hiromaily/go-crypto-wallet/tree/main/.claude/skills/mockery into .gemini/skills/mockery/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mockery", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install hiromaily/go-crypto-wallet mockeryInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add hiromaily/go-crypto-wallet --skill mockery -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/hiromaily/go-crypto-wallet.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/mockery .github/skills/mockery && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "mockery" agent skill from https://github.com/hiromaily/go-crypto-wallet/tree/main/.claude/skills/mockery into .github/skills/mockery/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mockery", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add hiromaily/go-crypto-wallet --skill mockery -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install hiromaily/go-crypto-wallet mockery --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/hiromaily/go-crypto-wallet.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/mockery .opencode/skills/mockery && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "mockery" agent skill from https://github.com/hiromaily/go-crypto-wallet/tree/main/.claude/skills/mockery into .opencode/skills/mockery/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mockery", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
mockeryMock generation workflow for go-crypto-wallet. An agent skill from hiromaily/go-crypto-wallet.
Mockery is an agent skill from hiromaily/go-crypto-wallet. Mock generation workflow for go-crypto-wallet. Activate whenever a developer asks to generate a mock for a new interface, add test coverage that requires a mock, or replace a manually-written test stub for a ports interface. Claude MUST use make mockery — never write mock struct code by hand.
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Testing & QA, covering Test coverage. The repository describes itself as: Cryptocurrency wallet for trading for Bitcoin, Bitcoin cash, Ethereum, ERC20, XRP Leger (Ripple). The licence is MIT.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 798ab10. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
makeFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Mockery loads about 1.8k tokens when it runs. Until then it costs about 76 tokens; SKILL.md has 408 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from hiromaily/go-crypto-wallet at commit 798ab10, republished under its MIT licence (© hiromaily). 408 words, ~1,757 tokens.
.claude/skills/mockery/SKILL.md (or your agent's skills folder).internal/application/ports/On(...).Return(...) setup on a hand-rolled struct with generated mock expectationsMocks 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/
internal/application/ports/ that defines the interface.dir value..mockery.yaml — append the interface name under its package entry (or add a new package entry if none exists). See the template below.make mockery — regenerates all mocks in one pass. Never create or edit mock files manually.make go-lint and make check-build to confirm the generated code compiles cleanly.NewMock*(t) + .EXPECT() builder calls..mockery.yaml Entry Templatepackages:
github.com/hiromaily/go-crypto-wallet/internal/application/ports/<layer>/<pkg>:
config:
dir: "internal/infrastructure/<layer>/<pkg>/mocks"
pkgname: "mocks"
interfaces:
ExistingInterface:
MyNewInterface: # ← append heregithub.com/hiromaily/go-crypto-wallet/internal/application/ports/<layer>/<pkg>:
config:
dir: "internal/infrastructure/<layer>/<pkg>/mocks"
pkgname: "mocks"
interfaces:
MyNewInterface:The global settings (filename, structname, template, formatter) are already configured in .mockery.yaml and apply automatically — do not override them per-package.
| Setting | Value |
|---|---|
| Filename | mock_<interface_name_snakecase>.go |
| Struct name | Mock<InterfaceName> |
| Constructor | NewMock<InterfaceName>(t) |
| Package | mocks |
| Header | // Code generated by mockery; DO NOT EDIT. |
// ❌ Manually-written stub in a test file
type stubAccountRepo struct{}
func (s *stubAccountRepo) GetOneMaxID(accountType domainAccount.AccountType) (*domainKey.BTCAccountKey, error) {
return &domainKey.BTCAccountKey{Index: 0}, nil
}
func TestFoo(t *testing.T) {
repo := &stubAccountRepo{}
uc := NewUseCase(repo)
// ...
// Manual assertion:
// (no automatic call-count verification)
}// ✅ Import the generated mocks package
import coldmocks "github.com/hiromaily/go-crypto-wallet/internal/infrastructure/repository/cold/mocks"
func TestFoo(t *testing.T) {
repo := coldmocks.NewMockBTCAccountKeyRepositorier(t) // registers cleanup automatically
repo.EXPECT().
GetOneMaxID(domainAccount.AccountTypeDeposit).
Return(&domainKey.BTCAccountKey{Index: 0}, nil)
uc := NewUseCase(repo)
// ...
// AssertExpectations is called automatically via t.Cleanup — do NOT call it manually
}Key differences:
NewMock*(t) registers t.Cleanup(func() { mock.AssertExpectations(t) }) automatically — never call AssertExpectations manually..EXPECT().Method(args...).Return(values...) provides type-safe, call-count-verified expectations.args.Get(0).(*Type) boilerplate..mockery.yaml| Type | Reason |
|---|---|
Ethereumer (ETH) | DI-layer-only monolithic interface; not consumed by use cases |
ETHTransactionSender | Type alias for TxSender; mockery cannot generate mocks for type aliases — use TxSender mock instead |
Use case interfaces (internal/application/usecase/*/interfaces.go) | These are not ports interfaces; simple struct stubs are acceptable for testing use case orchestration |
Composed/aggregate interfaces (Bitcoiner, ETHKeygenSignClient, etc.) | Leaf interface mocks satisfy all compositions — add only the leaf interfaces that use cases depend on |
Compile-time conformance stubs in *_test.go under ports/ | Intentional type-check helpers, not test doubles — leave them as-is |
make mockery # Regenerate all mocks after .mockery.yaml changes
make go-lint # Required: zero lint errors
make check-build # Required: full build succeeds
make go-test # Recommended: run tests for affected packages.mockery.yaml — SSOT for all mock generation configuration.claude/rules/internal/mockery.md — project rules enforcing this convention.claude/rules/internal/infrastructure-layer.md — infrastructure layer rules.claude/rules/internal/application-layer.md — application layer rules© hiromaily, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/mockery of hiromaily/go-crypto-wallet.
Open the folder on GitHubat commit 798ab10
Mockery next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Mockery this skillhiromaily/go-crypto-wallet | 128 | — | ~1.8k | Automated safety check: Pass | MIT | |
| Test Writing WorkflowiOfficeAI/AionUi | 33k | 1 repos | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| Evaluate PR Testsdotnet/maui | 23k | — | ~2.9k | Automated safety check: Pass | MIT | |
| Requirementsrizsotto/Bear | 6.5k | — | ~2k | Automated safety check: Pass | GPL-3.0 | |
| Mutantmbj/mutant | 2.2k | — | ~2k | Automated safety check: Pass | Proprietary | |
| Senior QAnicepkg/auto-company | 195 | 3 repos | ~1.1k | Automated safety check: Notes | None |
iOfficeAI/AionUi
Sets the test-writing workflow for the repository: risk-first scenario lists, behavior-focused Vitest tests, a full run before each commit and a coverage target.
dotnet/maui
Reviews the tests added in a pull request for fix coverage, quality, edge cases and test type, and recommends lighter test types where they would do.
rizsotto/Bear
Write, modify, or review a requirement file under docs/requirements -- pick the single owning file, keep the text contract-only, name IDs so they need no explanation, and verify cross-references and…
mbj/mutant
Run mutant, read mutation reports, fix alive mutations, and verify coverage.
nicepkg/auto-company
Comprehensive QA and testing skill for quality assurance, test automation, and testing strategies for ReactJS, NextJS, NodeJS applications.
The-OpenROAD-Project/OpenROAD
Adds integration or unit tests to an OpenROAD module: writes the Tcl test, generates golden files and registers it in both CMake and Bazel.
hiromaily/go-crypto-wallet
Bitcoin Cash (BCH) API implementation rules. An agent skill from hiromaily/go-crypto-wallet.
hiromaily/go-crypto-wallet
Critical Bitcoin terminology rules to prevent confusion between bech32m (encoding) and taproot (address type).
hiromaily/go-crypto-wallet
Database schema and migration workflow. An agent skill from hiromaily/go-crypto-wallet.
hiromaily/go-crypto-wallet
CI/CD and DevOps workflow. An agent skill from hiromaily/go-crypto-wallet.
hiromaily/go-crypto-wallet
Documentation update workflow. An agent skill from hiromaily/go-crypto-wallet.
hiromaily/go-crypto-wallet
Address PR review comments by selecting appropriate skills based on modified files.
Categories
Mock generation workflow for go-crypto-wallet. An agent skill from hiromaily/go-crypto-wallet. Mockery is an agent skill from hiromaily/go-crypto-wallet. Mock generation workflow for go-crypto-wallet.
Mockery fits situations like: tasks that involve Test coverage.
Run `npx skills add hiromaily/go-crypto-wallet --skill mockery -a claude-code`. Or copy the skill folder (.claude/skills/mockery in hiromaily/go-crypto-wallet) into .claude/skills/mockery in your project. Claude Code loads it when a task matches its description.
Run `npx skills add hiromaily/go-crypto-wallet --skill mockery -a codex`. Or copy the skill folder (.claude/skills/mockery in hiromaily/go-crypto-wallet) into .agents/skills/mockery in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hiromaily/go-crypto-wallet --skill mockery -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mockery, .gemini/skills/mockery, .github/skills/mockery and .opencode/skills/mockery in your project.
Going by SKILL.md and its folder, Mockery needs the command-line tools its instructions call (make).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Mockery is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Mockery: Test Writing Workflow (iOfficeAI/AionUi, 33k stars), Evaluate PR Tests (dotnet/maui, 23k stars), Requirements (rizsotto/Bear, 6.5k stars) and Mutant (mbj/mutant, 2.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
hiromaily (a GitHub user) maintains it in hiromaily/go-crypto-wallet, which has 128 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on April 22, 2026.
Source: hiromaily/go-crypto-wallet on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.