mock-friendly-api-layering
CommunityProtect internal routing params from mock tests.
Authorshimo4228
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Public wrapper functions often forward internal routing parameters (url, timeout) to a shared low-level helper, causing mock assertions to fail due to unexpected kwargs.
Core Features & Use Cases
- Keeps internal routing parameters at the lowest level, ensuring mocks only see business parameters.
- Applies to HTTP, IPC, or any layered API wrappers where public APIs delegate to a transport function.
- Improves test reliability by isolating transport concerns from business logic.
Quick Start
Refactor public functions to drop transport parameters and let the internal helper own routing values.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: mock-friendly-api-layering Download link: https://github.com/shimo4228/claude-code-learned-skills/archive/main.zip#mock-friendly-api-layering Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.