MO

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.zip

Installs 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.
104 charsno explicit “when” trigger
Intermediate

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

You give it
Frontend development requiring temporary data
You get back
Isolated, typed mock data that is easily replaceable by real APIs

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.

SkillInstallsUpdatedSafetyDifficulty
mock-data-strategy (this skill)02moNo flagsIntermediate
app-specific-patterns42moNo flagsIntermediate
javascript-typescript-typescript-scaffold34moReviewBeginner
full-stack-orchestration-full-stack-feature04moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry