Skip to content
Back to skills

Reference Intake

ASecurity

Reference intake contract from screenshot, URL, design file, or product analogy. Use when the user supplies a visual or product reference before build. Also use when Keep, Change, and Do not copy boundaries are missing.

  • 4 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 5, 2026
ai-agents

Works with

  • mcp

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add Bandersnatch0x/design-playbook --skill reference-intake --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Reference Intake?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Reference Intake
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bandersnatch0x-reference-intake/badge)](https://www.skillsdirectory.com/skills/bandersnatch0x-reference-intake)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: reference-intake
description: Reference intake contract from screenshot, URL, design file, or product analogy. Use when the user supplies a visual or product reference before build. Also use when Keep, Change, and Do not copy boundaries are missing.
---

# reference-intake

Turn raw reference material into a **run-local declaration input** the pipeline can consume without re-deriving from chat.

Not a style library. Not a code export. Not a Pass or Fail gate.

Authority boundary (ADR-0011):

| This skill owns | Does not own |
| --- | --- |
| Observed vs inferred evidence about the reference | `spec.md` L1 through L6 |
| Keep / Change / Do not copy | decision report / Fill source |
| License and brand risk notes | evaluator verdict |

## When to apply / skip

**Apply** when the ask includes at least one of:

- local screenshot / mock / design export path
- URL of a live product or design
- existing in-repo design artifact the user points at
- explicit product or brand analogy ("like Linear", "reference Feishu settings page", example (zh): "参考飞书设置页")

**Skip** when the ask is text-only product requirements with no reference material. Narrate once: `-> reference-intake?: no reference materials, skipped`.

## Steps

### 1. Inventory sources

List every reference source. For each source record:

- `kind`: `screenshot` | `url` | `design_file` | `product_analogy` | `other`
- locator (path or URL or product name)
- for files: SHA-256 when the file is readable. For URLs: the exact URL string
- `captured_at` (ISO-8601) and `tool` (how it was collected)

Write `manifest.json` under `.scratch/<run>/reference/` using the shape in [`references/contract-template.md`](references/contract-template.md). Copy durable local media into `reference/assets/` only when needed for later human review. Never into the host Fill tree.

For a temporary PNG, JPEG, WebP, or GIF that enters a design run, call
[`scripts/reference_sources.py`](scripts/reference_sources.py)
`ingest_ephemeral_image(...)`. Pass `kind: screenshot` for a captured
interface and `kind: other` for any other raster. Keep the helper's
detected `media_type`. Cite the returned source id and run-relative
locator. Keep `provider` as a provider label, never a path. Record host
temporary paths nowhere in the manifest or contract. Author URLs, design
files, and product analogies directly. Field names and locator rules live
in [`references/contract-template.md`](references/contract-template.md).

Treat Figma's official MCP, a Lanhu export, an HTML export, a URL, and a local
design file as upstream collection methods. Normalize their outputs into this
provider-neutral source contract. Do not add a vendor conversion layer or let
provider output write `spec.md`, the decision report, Fill source, or a verdict.

**Done when:** every cited source appears in `manifest.json` with kind + locator. File sources that exist on disk carry `sha256`.

### 2. Separate observed from inferred

Read each source's accompanying text: user-provided notes, URL page text, and file facts. **Never read the image bytes**. Image sources were registered in step 1, not read. Fill **every required heading** from [`references/contract-template.md`](references/contract-template.md) (SSOT for section names and bullet prompts). Do not invent alternate headings.

The host model may have no vision (text-only input). Image sources are registered by **preserved locator and metadata only** (`locator`, `sha256`, `captured_at` in `manifest.json`), reading the image is never a required intake action. Materialize an ephemeral image with the helper first and never record its host temporary path. The observed and inferred split then rides the text the session can actually cite (user-provided notes, URL page text, file facts). Visual points nobody can verify stay `inferred` or move to Unresolved questions. A no-vision host runs this skill end to end without degrading the protocol.

**Mandatory no-vision fallback:** when the host has no vision and the user supplied **only screenshots without accompanying text**, stating the limitation is not enough. **First ask the user for a short written description** of each screenshot and which points to keep or change. Continue intake with that description as citable observed text. Ask once. It is a required step, not an optional courtesy. When the user already supplied text alongside the screenshots, do not ask. A vision-capable host may inspect the image directly and never triggers this ask.

Mark every claim as **observed** or **inferred**. Unlabeled claims are invalid. Rewrite them before emit.

**Done when:**

- `contract.md` has every template heading (including always, ask, and never hints and Unresolved questions)
- Keep, Change, and Do not copy must each be non-empty for product analogies, third-party URLs, and third-party screenshots or designs. For first-party user-owned assets, only Do not copy may say `none, first-party owned`, with an ownership note.
- at least one license and brand risk line exists (`none identified` only for pure first-party assets the user owns)

### 3. Emit and stop

Write:

```text
.scratch/<run>/reference/contract.md
.scratch/<run>/reference/manifest.json
.scratch/<run>/reference/assets/   # optional
```

Optional disposable `example.html` may be generated under `reference/` only as a later preview input. It is **not** a Fill source (same hard boundary as `preview/round-*.html`).

Stop. Do not write `spec.md`, do not pick components, do not implement UI.

**Done when:** both `contract.md` and `manifest.json` exist. Steps 1 and 2 Done-when criteria still hold in the files.

## Scope fence

| In | Out of scope |
| --- | --- |
| Source inventory + hashes | L6 acceptance belongs to `ux-spec` |
| Keep / Change / Do not copy | template and component identity belongs to `ui-picker` |
| Functional constraints derived from reference | coding / Fill |
| License and brand risk notes | visual similarity score as gate |
| | third-party skill or brand-kit port into the plugin |

## Handoff

After emit, the orchestrator continues to `ux-spec?` (or `plan?` when spec already exists). Consumers must cite `reference/contract.md` rather than re-describing the screenshot from memory.

Files in this skill

  • SKILL.md6.1 KB
  • references/contract-template.md2.7 KB
  • scripts/reference_sources.py10.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.