Pages
Every page is a project file, published as an Artifact: the file is the context you hand to whoever works next (a new session, a subagent, a reviewer), the Artifact is what the user opens, even from their phone.
- Place.
python3 "${CLAUDE_SKILL_DIR}/scripts/pages.py" path <type> <name>prints.kulmine/pages/<type>/<name>.htmland creates its folder. Types:interview,teaching,prototype,research,plan,review,report. With a tracker in the config (pages.py config) the folder is outside git and the page lives in its issue: followkulmine:tracking; without one, the folder goes into git. Write the page in the chat's language (language.chat;adaptiveis the user's last message). - Write. Follow the Artifact tool's page contract. Design the page around its subject and define the tokens
--bg --surface --ink --muted --line --accent(for the dark theme too): the shared components use them. - Collect the choices. If the page asks the user something, put
<!-- kulmine:component -->before your scripts and runpython3 "${CLAUDE_SKILL_DIR}/scripts/pages.py" inline <file>, which copiescomponent.htmlinto it; run it again after every change to the component. Then use:kulmine.interview(el, {areas, questions}): one question at a time, with a summary.areas:{key: {label, color}}. Each question:{id, area, short, topic, q, why, multi, opts: [{t, d, rec}]}.data-k-id,data-k-label,data-k-options="keep,drop"on an element: option buttons to choose from.kulmine.put(id, label, value, note): an entry of the reply from a control of yours; send only what changed.<div data-k-reply data-k-title="…">at the bottom, always: it composes the reply, saves it for you and lets the user copy it.
- Publish. Artifact tool with the project file as
file_pathand, if the component is there,capabilities: {db: {}}. After the first publish write<meta name="kulmine:artifact" content="<url>">next to the<title>: a later session reads the URL from there, re-reads the Artifact and republishes to the same link. - Read the reply. When the user writes "done", read the Artifact's
replies/latestdocument withArtifactData; if it's missing, ask them to paste the copied reply.
A later round on the same question updates the same page: same file, same link.


