AGENT SKILL

inspire-prototype

Build and evolve the horizontal prototype at /prototype — the interactive, mock-data, whole-system visual model — from the specs, so the user can SEE the product and steer functional + UI/UX criteria. Its insights co-evolve the vault live (features, screens, component specs, ADRs). Use to scaffold or iterate the visual prototype. Vertical spikes (external repos) live in /inspire-spike.

License 许可
MIT
所属仓库
Genomcore/inspire
最近更新
2026-11-13
Stars
★ 0
Forks
1

01 前言 Front Matter

name
inspire-prototype
description
Build and evolve the horizontal prototype at /prototype — the interactive, mock-data, whole-system visual model — from the specs, so the user can SEE the product and steer functional + UI/UX criteria. Its insights co-evolve the vault live (features, screens, component specs, ADRs). Use to scaffold or iterate the visual prototype. Vertical spikes (external repos) live in /inspire-spike.

03 SKILL.md 正文

/inspire-prototype — The horizontal prototype (discovery)

The horizontal prototype is a wide, shallow, mock-data model of the whole product — "Figma with data", not the production app. Its job is to make the system legible end to end so the user can see it and steer the functional and UI/UX criteria, fast and interactively. It answers "is this the right thing to build?" — the code is throwaway; the clarity is the deliverable, and that clarity lands in the vault.

Where the prototype lives is configurable. prototype/ is the default; the operative root is prototype_root in 00_bootstrap/stack.md. A project with no horizontal prototype sets prototype_root: none. Resolve it rather than assuming prototype/ — see _references/product-roots.md.

Agile on purpose. No tests, no auth, no persistence, minimal controls — only what's needed to learn. Rigor (tests, error handling, robustness) is reserved for real implementation in the coding stage. Building the mock, borrow the UI conventions of the codification stage — the design system (/inspire-bootstrap design-system) and the UI stack skill (inspire-code-react etc.) — but in sketch mode.

Vertical spikes are a different skill. Deep, functional, throwaway builds in their own external repos answering "can we build it as we think?" → /inspire-spike.

One shell per face

/prototype stays one root, one running artifact no matter how many faces the project declares — it never forks into separate prototype projects. Inside it, the prototype holds one shell per face, mounted at the shell: of that face's {face}.face.md (see _references/face-scope.md). The faces are every *.face.md under inspire_kb/01_spec/; nothing else lists them. With two or more faces, a landing sits in front of the shells: a branded entry page that presents the product as one and routes into each shell.

The landing is prototype chrome by default: this skill derives it from the face files (each face's display name and shell link) and renders it under the design system, re-syncing it whenever a face is added or retired — there is no separate spec for it to drift from. If the product ships its own launcher, spec it as a face of its own through /inspire-face add, with its screens; it then replaces the chrome landing.

A mobile face mocks as a framed web shell — a phone-frame wrapper around the same web stack, not a native build. Still "wide, shallow, mocked": adding faces widens the prototype, it doesn't deepen it.

A screen's action calls are mocked, but they stay inside its face: each one is an action a bundle of the face exposes (its bundles:). A screen that needs an action outside them is a question for /inspire-face, not a mock to add.

Building the prototype

Build it pattern-driven from the KB. Before writing code, read the layers that describe the screen:

  1. Screen spec — inspire_kb/01_spec/_faces/{face}/_screens/{slug}.screen.md — the source of truth for what to build (features covered, pattern, data, bindings, components). Its route is {shell}/{module}/{screen} under its face's shell.
  2. Pattern — the {pattern}.pattern.md the screen names — regions, behavior.
  3. Layout — the {layout}.layout.md the screen names — the frame: geometry and what changes at each supported width; the face's shell layout for the chrome.
  4. Render — the screen's ## Render table: the component, treatment, glyph and narrow-width behaviour of every value it shows.
  5. Components — the {component}.component.md entries in inspire_kb/01_spec/_design-system/components/ — the shared catalog. Adopt these; don't reinvent.
  6. Design system — inspire_kb/01_spec/_design-system/design-system.md and design-system.tokens.json, plus the face's own {face}.tokens.json when it has one — tokens, type, density, icons, supported viewports. Emit the tokens as CSS custom properties ({color.primary} → --color-primary) and never redefine one per screen.
  7. Intent & contract — the *.feature.md in the module's _features/ and, where relevant, the *.entity.md and *.action.md in its _domain/.

Find each linked file by its typed extension under inspire_kb/01_spec/ and link it as kb-links.md says.

Stack-agnostic. This skill assumes no framework. The project's own stack, component catalog, conventions and known pitfalls live in its KB (inspire_kb/00_bootstrap and inspire_kb/01_spec/_design-system), not here — read those first on a real project.

The learnings loop — insights co-evolve the vault, live

This is the heart of the skill. As you build and the user reacts ("that's not the flow", "this needs a filter", "these two screens should merge"), the insight is applied to the vault in the same session, through the owning skill — the prototype is a discovery tool for the spec, not a place learnings pile up:

The horizontal prototype keeps no learnings file of its own — everything it teaches lands in the vault through the owning skill (above). Insight that is cross-cutting rather than one feature/screen has a higher-level home: a decision → an ADR (/inspire-adr, module-scoped or cross-cutting by slug); a system-wide design pattern → the design system (/inspire-bootstrap design-system); a stack pitfall → 00_bootstrap; future work → a task (/inspire-task); a question the horizontal can't resolve → a spike (/inspire-spike). Nothing accumulates in a feature file for the horizontal — a running learnings log would fight R6 of the writing contract anyway.

Propose, don't silently edit. Propose each vault change to the user before writing shared artifacts (components, ADRs, design tokens); let the interactive loop stay the user's.

Rules

Output language. Write every artifact you produce — vault edits, prototype learnings — in the project's declared output_language (default English), per _references/output-language.md. Machine-read tokens (frontmatter keys/values, link paths, filenames) stay verbatim.

Writing contract. Vault edits and prototype learnings follow _references/writing-style.md.

Lesson capture. At a natural pause, when the operator's feedback should change how this skill behaves, offer /inspire-lesson note — never auto-write a lesson. Protocol and ticket-vs-lesson routing: _references/lesson-capture.md.

  1. Specs are the source of truth. Build what the screen spec says — no extra screens, tabs, or features "for completeness". If something's missing, evolve the spec (via the owning skill), don't invent scope in the prototype.
  2. Adopt, don't reinvent. Before writing new UI, check the component catalog (every *.component.md in _design-system/components/) and existing prototype code for something canonical.
  3. Mocked, not real. The prototype visualizes decisions; it does not implement backends, auth, persistence, or tests. That's the coding stage.
  4. Verify by running, not just building. A green build is not a working screen — runtime issues (bad data coercion, render loops, null derefs) often render a blank page a build won't catch. Launch the prototype and drive the affected flow before calling it done (use the run / verify skills).
  5. Learnings land live in the vault, in no file of their own. The deliverable is co-evolved artifacts (feature/screen/domain/ADR/design-system/task); the horizontal prototype keeps no learnings log — see the learnings loop above.
  6. Propagation is bilateral. A prototype change that alters behavior/structure the screen spec describes must reach the spec (/inspire-screens), and vice versa. Ask before ending the turn.
  7. Consult the task tracker (/inspire-task list) for tracked prototype drift; don't re-surface it as new.

Verify checklist

  • Every horizontal screen traces to a screen spec (or declares "not implemented yet").
  • No reinvented UI that duplicates the shared component catalog.
  • The affected route runs, not just builds.
  • Every face has its shell at its shell: prefix. With two or more faces, the landing exists, lists every face's shell, and stays synced with the face files.
  • Every insight the session surfaced landed in a real vault artifact (feature/screen/component/ADR/design-system/task).

Related skills

  • /inspire-screens · /inspire-domain · /inspire-feature · /inspire-adr — the spec skills the learnings loop co-evolves.
  • /inspire-spike — vertical spikes (external functional prototypes).
  • run / verify — launch and exercise the prototype end to end.

04 同仓库更多 Skills

Genomcore
Genomcore/inspire

update

Update this project's INSPIRE runtime to the installed plugin's version: report drift, re-materialize unchanged files, and refuse to clobber local edits. Use after /plugin update inspire reports a newer base.

★ 0
Genomcore
Genomcore/inspire

migrate

Move this project's knowledge base from the layered layout (01_adr, 02_modules, 03_features, 04_domain, 05_screens and the surface roster) to the concept layout under inspire_kb/01_spec/, where every artifact has a typed extension, and convert its [[wikilinks]] to relative Markdown links. Run once, on purpose, after /inspire:update reports the layered layout or counts wikilinks. Rebuilds nothing that is already built.

★ 0
Genomcore
Genomcore/inspire

init

Install the INSPIRE runtime into this repository: materialize the skills, validators, hooks and knowledge-base skeleton, register the hooks, and freeze the runtime version. Run once per project. Use when setting up INSPIRE in a new or existing repo.

★ 0
Genomcore
Genomcore/inspire

inspire-workspace

Workspace-level validation: the global pre-PR review (orchestrating module + cross-module checks) and vault-structure validation. Use for the required pre-merge gate and top-level structure checks. ADR lifecycle lives in /inspire-adr; the task tracker in /inspire-task.

★ 0
Genomcore
Genomcore/inspire

inspire-task

Task tracker: create / update / close / list / show tickets in inspire_kb/99_tracker/. A plain-file kanban (one Markdown file per ticket, no external tool) for tracking work, drift, and skill-feedback. Use to open, advance, close, or query tickets.

★ 0
Genomcore
Genomcore/inspire

inspire-spike

Vertical spikes: register and harvest external functional-prototype repos. A spike is a narrow, deep, throwaway build in its OWN repo that answers 'can we build it as we think?'. Use to register such a repo (name/reference it, set up its learnings hygiene) and to capture its learnings into the vault as a gap analysis against the current project.

★ 0