agentleFS
hiendinhngochiendinhngoc/unknowns/skills/mock/SKILL.md

mock

Skill9 starsChanged 5 months agoMITView on GitHub

Build a throwaway interactive prototype to validate one unresolved interaction or behavior before writing production code. Use when the user explicitly asks to "mock it up first" or "prototype this", or when competing UI behaviors need a disposable hands-on comparison.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. iamneilroberts/claude-skills★ 26same name
    2. Pradnyeshp/Claude-Skills★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository6 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Resolve a disposable location: Prefer a harness-provided scratchpad.

    line 21
  2. Distinctive:

    Non-web target? Scope the mock's authority first: When the product is native, CLI, or embedded, say up front what an HTML mock can and …

    line 24
  3. Distinctive:

    Exit: When the user is satisfied, ask: "Does this match what you wanted?" Then extract the confirmed decisions into a short spec in …

    line 43
  4. Distinctive:

    Never copy prototype code into the codebase.

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Mock Before Wiring

Validate the idea with a disposable prototype. Cheap to throw away, cheap to redo.

<HARD-RULE>Do not touch the real codebase. The prototype lives ONLY in the session scratchpad directory. No production files created or modified.</HARD-RULE>

Process

  1. Pin down what's being validated. One sentence: "This mock answers: <question>" (e.g. "should filtering be inline or a sidebar?"). If you can't write that sentence, ask the user what's undecided.
  2. Resolve a disposable location. Prefer a harness-provided scratchpad. If none exists, create a temporary directory outside the repository. Never use an untracked directory inside the project as a substitute.
  3. Non-web target? Scope the mock's authority first. When the product is native, CLI, or embedded, say up front what an HTML mock can and cannot answer. It CAN validate flows, layout, copy, and state transitions; it CANNOT validate platform feel, native gestures, assistive-technology behavior, or animation physics. If the undecided question is on the cannot list, say so and validate in the platform's own cheap medium instead (a throwaway SwiftUI #Preview, a --dry-run flag, a bench sketch) — do not fake confidence with a web approximation.
  4. Build one self-contained HTML file in that directory:
    • Inline all CSS/JS — no external requests
    • Fake all data with hardcoded fixtures; fake all backend calls with setTimeout + canned responses
    • Make the undecided part interactive; keep everything else minimal
  5. Preview with the best available capability. Render it with the Artifact tool when available. If this agent has no Artifact tool, provide the absolute file path and, when supported, open it in a local browser. Do not claim it was previewed when the environment cannot render or open it.
  6. Iterate. Apply requested changes to the same file. Refresh the existing preview when supported; otherwise provide the unchanged file path.
  7. Exit. When the user is satisfied, ask: "Does this match what you wanted?" Then extract the confirmed decisions into a short spec in conversation:
## Decisions validated by mock
- <decision 1>
- <decision 2>
## Explicitly rejected
- <alternative that was tried and declined>

The spec — not the prototype code — is the input to real implementation. Never copy prototype code into the codebase.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.