AGENT SKILL

instafy-interactive-artifacts

Use when the answer should be a page the user taps through, not a long chat reply (map, ranking, comparison or shopping table, dashboard, quiz, timeline, planner, tracker, checklist). Picks the builder from the installed skills and shows the site in Studio with `instafy preview open`.

License 许可
AGPL-3.0
最近更新
2026-11-15
Stars
★ 0
Forks
1

01 前言 Front Matter

name
instafy-interactive-artifacts
description
Use when the answer should be a page the user taps through, not a long chat reply (map, ranking, comparison or shopping table, dashboard, quiz, timeline, planner, tracker, checklist). Picks the builder from the installed skills and shows the site in Studio with `instafy preview open`.
context_kind
workflow
context_parent
instafy-skill-router
routing_keywords
interactive, map, maps, tap through, as a page, on a page, into a page, small page, simple page, one page, shareable page, dashboard, quiz, timeline, planner, tracker, calculator, comparison, comparison table, side by side, checklist, ranking, ranked, top 10, shortlist, compare, versus, shopping, cheapest, best price, where to buy, which to buy, should i buy, visualize, interaktiv, tidslinje, planerare, kalkylator, checklista, jämförelse, tablero, ダッシュボード

03 SKILL.md 正文

Interactive artifacts

The page holds the detail; chat holds a short reply. One site per request. Never stop to ask before building: a vague ask gets sensible defaults, stated in the reply.

1. Pick the builder

Read the Skills index first. Installed skills, including skill packs that ship with the runtime, can build their own kind of page.

  • A skill whose description covers this kind of page (for example a map skill for anything on a map): read its SKILL.md in full and build with its commands. Never hand-write what it generates.
  • Values that change or must be checked per click (prices, stock, opening hours): a bound site per instafy-bound-sites.
  • Anything else: the closest starter, instafy bind init sites/<slug> --starter compare|ranked|timeline|checklist|blank: compare = 2-8 options side by side; ranked = "top N", "best X"; timeline = days or steps in time; checklist = packing, to-dos; blank = quiz, calculator, the rest. Keep theme.css and site.js; write data.json and app.js. Restyle only when asked.
  • A request that needs many items researched first (several stops, products or options, each looked up live): instafy-research-team plans the research, then builds here.

2. Build

  • Phone-first (never wider than the screen, one column when narrow), no build step, no secrets in the page. Render text with textContent; only open https: links.
  • Light and dark, like the starters' theme.css: a page you write sets its dark colours, with color-scheme: dark, under :root:not([data-theme="light"]) inside @media (prefers-color-scheme: dark) and under :root[data-theme="dark"] (Studio's theme, which instafy bind serve puts on <html>). Never color-scheme: light alone; one look only when asked.
  • One primary button per page; no search, filter or sort nobody asked for, and no sort by a value no row has. Facts carry their trust: checked 17 Oct on maker.com, €549 at Shop · seen 17 Oct, checked 4 min ago, Estimate, Unknown. A tip no page gave is plain text, never styled like a source line.
  • Options side by side: each value names the page it was read on and the day; one nobody found reads Unknown and why ("price not found on maker.com's page"), never a blank or a dash. A note on the page says where you looked, never the tools, searches or services you used. A value cites only a page that gives it: a count of what you found cites only what it counts, so none found cites no page. A filter from a stated limit ("under €600") counts known values only: an item whose value is unknown is listed apart ("Price unknown"), never as within it, on the page or in the reply. The starters do this with site.byFilter; a page you write uses it too. A candidate nothing could be read for is still a row, with Unknown in each cell: a page of options is never empty ("No options yet") while a page you read named what to compare. An item whose own page wasn't opened is "not checked (its own page wasn't opened)" in the reply, and each of its unknown values has "note": "its own page wasn't opened".
  • Options asked for from what you already know, with nothing looked up: the compare starter with "from": "memory", each value only its "v", from your own knowledge, never from the space's other pages. No src, url, date, store or filter (instafy bind check fails them): the starter reads each value "<value>, not checked" and says "From what Octo knows; nothing checked." under the title.
  • Keep sort, filters and the open tab in the URL query and give rows ids, so links and Studio's Follow keep them.
  • Every item the request names (stops, products, entries) is on the page, or the reply says plainly which is missing and why. Check with instafy bind check <dir> --expect "<item>,<item>" (it also lists blank values, values without their page or date, a source line with no link, and a filter applied without site.byFilter) and fix what it lists; a check that passes posts the card. A failing check never holds the card back: it names the card's command. A site with no binder, such as a map a builder skill hosts: post the card first (step 3), then run that skill's own check.
  • Facts come from pages you opened this turn, never from memory unless asked (above): the builder skill's source or fetch command when it has one, else instafy-web-research (its "Comparing items" for prices and reviews per item) or Instafy's browser (instafy-browser-automation). Keep each fact's link and date.
  • "Near me": never navigator.geolocation (Studio blocks it); await instafyBind.location() per instafy-bound-sites, with a typed place as a fallback.

3. Serve it and show it

  1. A page instafy bind check checks gets its card from that check (above), whose answer gives its port. Any other site: one command, run inside the site's folder, starts it so it outlives your turn and posts its card: (cd sites/<slug> && instafy preview open --title '<short title>' --start --json). A builder skill's site adds that skill's --serve-cmd "<serve command>", with {port} where it takes its port. It picks the port: never choose one.
  2. instafy preview check --port <port> (the JSON's) loads it as Studio does: fix every error it lists and look at the phone screenshot.
  3. Never post preview, tunnel or localhost URLs. A public link only when the user asks for one: instafy-frontend-previews.
  4. After an edit no new card is needed: once your change is saved, every open view of the page loads it again by itself. If the server stopped, rerun the same instafy preview open.

4. Reply

2-5 lines in the user's terms: the verdict, what the page lets them do and what is unverified. An Assumed: line only for a default you chose that the person didn't give (dates, a currency, which models), and none when there is none. A page they want to share says in one line who can open it (people in this space) and how to get a link anyone can open (ask for a public link), not as an assumption. The card speaks for itself: never point them to it or say it opened. No file paths, commands, "validation passed", "the provided read" or "updated for viewers".

04 同仓库更多 Skills