mock-data-strategy
Strategy for managing temporary frontend mocks.
Install
mkdir -p .claude/skills/mock-data-strategy && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12685" && unzip -o skill.zip -d .claude/skills/mock-data-strategy && rm skill.zipInstalls to .claude/skills/mock-data-strategy
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Keep temporary frontend mock data isolated, typed, and easy to replace as backend APIs become available.Key capabilities
- →Isolate temporary frontend mock data
- →Ensure mock data is typed
- →Facilitate easy replacement of mock data with real APIs
- →Keep service signatures stable
- →Mirror backend-oriented data shapes
- →Avoid spreading mock constants
How it works
The skill guides the creation and organization of temporary frontend mock data, ensuring it is isolated, typed, and designed for easy replacement by actual backend APIs.
Inputs & outputs
When to use mock-data-strategy
- →Mocking data for component development
- →Organizing frontend test data
- →Ensuring mock-to-API swap readiness
About this skill
Mock Data Strategy
When to use this skill
- When the frontend needs temporary data before backend endpoints are ready.
- When deciding where mock data should live and how components should consume it.
- When reviewing whether a mock-based implementation will be easy to swap for real APIs later.
Project-specific rules
- Mock data is allowed only as a temporary frontend development bridge.
- Mock data must be isolated and easy to replace with real API calls.
- Preferred mock data location is under
lib/mock-data/as described in the blueprint. - Keep service signatures stable so the replacement path stays inside the service layer, API client, or environment config.
- Do not invent fake backend behavior such as frontend-only reservation conflict rules.
- Mock content should mirror the typed backend-oriented shapes the real app expects.
- Avoid spreading mock constants directly through page or component files.
Expected output quality
- Makes development unblock quickly without contaminating the architecture.
- Preserves the same typing and data flow expected from real APIs.
- Clearly marks what is temporary.
- Keeps removal or replacement straightforward.
Things to avoid
- Calling mock helpers directly from many components.
- Creating business logic in mocks that the backend should own.
- Using vague or untyped mock data.
- Coupling UI behavior to fake transport or timing logic.
- Letting temporary mocks become permanent hidden dependencies.
Checklist before completing work
- Confirm mock data is isolated from UI components.
- Confirm types match expected backend-oriented contracts.
- Confirm replacement with real APIs would stay limited to service-layer files.
- Confirm no fake backend authority has been introduced.
- Confirm temporary data is clearly identifiable and easy to remove.
When not to use it
- →When backend endpoints are ready
- →When creating business logic that the backend should own
- →When using vague or untyped mock data
Limitations
- →Mock data is allowed only as a temporary frontend development bridge
- →Do not invent fake backend behavior
- →Avoid spreading mock constants directly through page or component files
How it compares
This skill provides a structured strategy for managing frontend mock data, ensuring architectural integrity and smooth transitions to live APIs, unlike ad-hoc mocking practices.
Compared to similar skills
mock-data-strategy side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| mock-data-strategy (this skill) | 0 | 2mo | No flags | Intermediate |
| app-specific-patterns | 4 | 2mo | No flags | Intermediate |
| javascript-typescript-typescript-scaffold | 3 | 4mo | Review | Beginner |
| full-stack-orchestration-full-stack-feature | 0 | 4mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by anubhavnepal
View all by anubhavnepal →You might also like
app-specific-patterns
growilabs
GROWI main application (apps/app) specific patterns for Next.js, Jotai, SWR, and testing. Auto-invoked when working in apps/app.
javascript-typescript-typescript-scaffold
sickn33
You are a TypeScript project architecture expert specializing in scaffolding production-ready Node.js and frontend applications. Generate complete project structures with modern tooling (pnpm, Vite, N
full-stack-orchestration-full-stack-feature
sickn33
Use when working with full stack orchestration full stack feature
web-frameworks
mrgoonie
Build modern full-stack web applications with Next.js (App Router, Server Components, RSC, PPR, SSR, SSG, ISR), Turborepo (monorepo management, task pipelines, remote caching, parallel execution), and RemixIcon (3100+ SVG icons in outlined/filled styles). Use when creating React applications, implementing server-side rendering, setting up monorepos with multiple packages, optimizing build performance and caching strategies, adding icon libraries, managing shared dependencies, or working with TypeScript full-stack projects.
open-notebook-lm-guidelines
RainLib
Core project guidelines, architecture, and UI styling instructions for the FerrisMind (openNotebookLm) AI workspace project. Use this whenever working on the frontend or backend of this project.
skills
mercysperugachi
skills — an agent skill by mercysperugachi.