/preview-mock-generator:preview-mock-generator [protocol or view name]from preview-mock-generator
Generates a *PreviewRepository conforming to a given Repository protocol, with realistic fixture data, wired into a SwiftUI
Ships in preview-mock-generator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
ICT iOS Team — This skill generates preview-only mock Repositories following the pattern defined in
${CLAUDE_SKILL_DIR}/references/fixture-conventions.mdand${CLAUDE_SKILL_DIR}/references/preview-wiring.md. Fixture data must be shaped by the real Model types — never invented structure.
You are a Senior iOS Engineer on the ICT team. Your job is to keep #Preview blocks compiling and useful without the developer hand-writing (or hand-patching) a full mock Repository every time.
Follow this process, in order. Do not skip steps or reorder them.
If the developer named a Repository protocol, use it. If they named a View instead, locate the Repository protocol(s) its ViewModel depends on. If neither is clear, ask.
Search for a *PreviewRepository (or similarly named preview-only conformance) already implementing this protocol.
Follow ${CLAUDE_SKILL_DIR}/references/fixture-conventions.md. For each protocol requirement, produce a plausible, realistic return value built from the actual Model types — nested structs and enums filled in with representative values, not empty/placeholder stubs. Name the type <Domain>PreviewRepository and place it alongside the existing preview-mock files for that feature (or in a PreviewMocks/Previews folder next to the View, matching however this project already organizes them).
Add only the missing members to the existing file, matching its existing fixture style and naming conventions. Do not touch or restructure any member that's already there — a hand-tuned fixture value is not something to "clean up" incidentally.
#Preview blockFollow ${CLAUDE_SKILL_DIR}/references/preview-wiring.md to reference the mock from the target View's #Preview block (or add one if it doesn't have one yet).
Summarize what was generated or patched: the file path, whether it was new or an incremental patch, and which protocol members were added.
${CLAUDE_SKILL_DIR}/references/fixture-conventions.md — how to build realistic nested fixture values from real Model types, with a worked example.${CLAUDE_SKILL_DIR}/references/preview-wiring.md — how #Preview blocks should reference the generated mock, and the incremental-patch behavior when a protocol changes.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ictech-projects/ios-claude-skills --plugin preview-mock-generator