{"id":109551,"plugin_id":"plugin_asdk_app_6afaeb7839988191892ac50bedd8277b","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-21T13:43:36.491Z","digest":"bfa104bb3a8e1dd65a5950dbb63909321ce43ac72b710749157561fa9c5e5da0","against":null,"payload":{"description":"Build an interactive tool — a pricing or ROI calculator, a unit converter, a quiz with scoring, a small browser game, a prototype people can try — as one static HTML page where everything runs in the browser and the result follows the reader's inputs, and publish it to Birta so people try it by link and reviewers pin remarks to it. Use whenever the user asks for a calculator, estimator, converter, simulator, quiz, test, assessment, game, playable demo, interactive prototype or \"something people can try\", whether or not they say where to host it. Not for a feature of the user's own app.","included_files":[],"name":"birta-tool","skill_md_contents":"---\nname: birta-tool\ndescription: \"Build an interactive tool — a pricing or ROI calculator, a unit converter, a quiz with scoring, a small browser game, a prototype people can try — as one static HTML page where everything runs in the browser and the result follows the reader's inputs, and publish it to Birta so people try it by link and reviewers pin remarks to it. Use whenever the user asks for a calculator, estimator, converter, simulator, quiz, test, assessment, game, playable demo, interactive prototype or \\\"something people can try\\\", whether or not they say where to host it. Not for a feature of the user's own app.\"\n---\n\n# Interactive tools on Birta\n\nA tool page gives the reader one answer, one score or one win they could not get\nfrom reading. It must be usable in the first ten seconds: the goal is obvious, the\ncontrols are few, the result shows without a submit step. There is no backend on\nBirta: the whole thing runs in the browser from one HTML page, and reviewers leave\nremarks on it like on any other page.\n\n## Ask before you build\n\nAsk only what the user has not said; keep to the questions that change the result.\n\n- Who uses it, and what decision or outcome do they leave with? One sentence.\n- The logic: the formula, rates and assumptions; the questions, answers and scoring\n  rules; the rules of the game. Ask for the user's own numbers and sources; never\n  invent a benchmark or a \"typical\" value and present it as fact.\n- Which inputs the reader must set, and which may start at a sensible default.\n- What happens after the result: nothing, a shareable link, or a lead form.\n\n## What the page contains\n\n| Part | Must contain |\n| --- | --- |\n| Head | The tool's name as the title and one line on what it answers; no manual |\n| Controls | Few inputs, each with a label, a unit, a default and a plausible range |\n| Result | The headline number, score or state, large, with units, updated instantly |\n| Breakdown | How the result was reached: formula, assumptions, per-answer feedback |\n| Actions | Reset to defaults, copy link, restart; one next step at most |\n| Notes | Sources of rates and benchmarks, limits of the model, the \"as of\" date |\n\nA quiz adds: an intro with the length and what the reader gets, one question at a\ntime with progress, a result tier with a title and a short reading written for that\nband, and a retake. A game adds: the goal and the controls on screen before play,\nthe play area, score and best score, and a restart one tap from \"game over\".\n\n## Craft rules\n\n- Compute as the reader types or drags; no Calculate button. A result must follow a\n  slider within a tenth of a second; debounce only a genuinely slow computation.\n- Pair a slider with a number field for exact values; show min and max; mark the\n  default. Use `<input type=\"number\">` with `min`, `max`, `step` and `inputmode`.\n- Every input has a `<label for>`. Prefer native controls to custom widgets: they\n  bring keyboard support for free. Enter submits an answer, arrows move a slider or\n  a player, Escape pauses. Nothing works only on hover or only with a mouse.\n- Show the work: the formula in words with the reader's numbers substituted, the\n  assumptions as a list, benchmark sources named. A result the reader cannot defend\n  to a colleague is decoration.\n- Validate inline: say what is wrong and what range is accepted, next to the field,\n  never in an alert. Never clear the reader's inputs on an error.\n- Put the inputs in the URL `#` fragment as short keys (`#price=49&seats=12`) and\n  read them on load, so a copied link reproduces the scenario. Keep it under 2,000\n  characters and keep anything private out of it: whoever has the link reads it.\n  Use `localStorage` only for conveniences such as a best score or an unfinished\n  quiz, and work when it is unavailable.\n- Give the result container `aria-live=\"polite\"` so a changed result is announced;\n  a quiz announces the verdict of each answer the same way.\n- Tap targets at least 44×44 px, controls stacked at phone width. A game takes\n  touch as well as keys, with on-screen buttons where keys are the only input, and\n  fits its canvas to the viewport.\n- Game feel: instant restart with no menus, failure explained on the game-over\n  screen, one `requestAnimationFrame` loop cancelled before a restart, a pause when\n  the tab is hidden, and no essential information carried by motion alone.\n- Quiz feedback: say whether an answer was right and why before moving on; map\n  score bands to distinct result tiers, each with its own text, and never a tier\n  that reads as a sales pitch.\n- Do not gate the result behind an email. A lead form sits after the result and\n  offers something the result does not already give.\n- Prefer one tool that does one thing well to a page of tabs; split the rest into\n  linked pages.\n\n## Build it on Birta\n\n- HTML (`index.html`); Markdown pages drop scripts. For page layout, type and dark\n  mode, follow `birta-design`; for the text, `birta-anti-slop-writing`; for a\n  result chart, `birta-charts`; for a diagram of the model, `birta-diagrams`.\n- One page, one state: screens and scenarios route through `#` only; any other\n  path is \"page not found\" on reload.\n- Keep the shell static and give each part a stable `id`: `id=\"inputs\"`,\n  `id=\"result\"`, `id=\"breakdown\"`, `id=\"question-3\"`, `id=\"tier-high\"`. Write every\n  question, answer, tier text and assumption into the HTML; scripts show, hide and\n  fill numbers into these elements, they never create them. Remarks attach to\n  static elements and may lose their place on ones a script builds.\n- Vanilla JS by default. Load a library from a CDN only when it earns its place (a\n  physics engine, a chart that must zoom), pinned to an exact version, and keep the\n  page under 2 MB. No build step and no framework runtime for a form and a formula.\n- Keep a long question bank or rate table in a `data.json` next to the page when\n  several tools share it; updating the data is a new version.\n- Birta serves no audio or video files: synthesise game sounds with the Web Audio\n  API or skip them, and start muted.\n- A lead form after the result is declared with `create_form` first and written\n  from the intake contract it returns; the `birta-manage` skill covers it.\n- Publish with `publish_version`: the address stays the same for every version, so\n  a shared `#` link keeps working after a fix.\n\n## Check before publishing\n\n- Defaults produce a sensible result; extremes (0, max, empty) do not break the\n  layout or show `NaN`.\n- Two scenarios recomputed by hand match the page.\n- Keyboard only: reach every control, change every value, finish the quiz, play\n  the game, restart.\n- Phone width and dark mode: sliders usable with a thumb, no sideways scroll.\n- The copied link opened in a fresh tab shows the same inputs and result.\n- Every part someone may comment on has a stable id, and its text is in the source.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}