The problem
AI chats are great at generating structured content — a study pack, a personal summary, a checklist — but the result lives and dies inside the chat. To use it again tomorrow, you copy, paste, and improvise an app around it, every single time.
The pattern
This project turns a workflow its author already uses daily (with the Sokqa learning app and a personal dashboard) into a reusable skeleton:
- A public instruction sheet (Markdown) tells the user's own AI chat how to generate data as JSON.
- The AI returns an import link: the JSON, gzip-compressed and base64url-encoded, carried in a
?data=parameter. - The app decodes and validates the link, stores the data locally in the browser (IndexedDB), and from then on works fully offline.
There is no AI/LLM API inside the app, no API key, and no server. Generation always happens outside the app, in the user's own chat, with any AI that can follow the sheet.
The skeleton (core)
Four functions, nothing more:
- Codec — encode/decode the
?data=import link (gzip + base64url), with typed errors for corrupt input - Validation — every payload must carry
typeandschemaVersion; per-app schemas reject bad data with named reasons - Storage — a thin IndexedDB wrapper (save / list / get / remove); re-importing the same title replaces the old entry
- Shared UI — import notices, an empty state that explains the instruction-sheet flow, list → detail navigation
Two apps prove it
- Pack Player — imports a listening pack and plays it with the browser's built-in text-to-speech (per-item and continuous playback, speed control, learning-memo export)
- Memory Board — imports a memory board and shows it as cards sorted by date, with tag filtering and a correction-memo export
Both apps run on the same core, fed by different instruction sheets and different data — one skeleton, many apps.
How Kiro was used
This project was built spec-first with Kiro:
- Steering documents (
.kiro/steering/) define the product, the tech constraints (no build step, plain ES modules, no in-app AI APIs), and the repository structure - Specs (
.kiro/specs/) for core, player, and board — requirements, design, and task lists — were written before implementation, and design decisions made during implementation (the validation return shape, the empty-state signature, the re-import rule) were recorded back into the specs - Property-based tests verify the codec: any valid JSON round-trips through encode → decode unchanged, and corrupt inputs are always rejected (fixed-seed randomized tests, no external libraries, run with
node --test— 61 tests in total) - An agent hook ("Run tests on save") runs
node --testwhenever a core file is saved
Try it
- Pack Player: https://razweb3.github.io/instruction-sheet-skeleton/apps/player/
- Memory Board: https://razweb3.github.io/instruction-sheet-skeleton/apps/board/
- Each app's empty state links to its instruction sheet — paste that URL into your own AI chat and make your own data.
Built With
- github
- indexeddb
- javascript
- kiro
- web-speech-api
