Structure
Skill

install-structure

set up my company with Structure by installing the `structure` command if this machine lacks it and then running the interview that stands the company up

Installs the structure command after one yes, then sets up a company by relaying Structure's own interview, and checks what it wrote. It asks nothing of its own.

structure generate skill install-structure

Skill — install-structure

This skill installs the structure command and then uses it. Say "set up my company" in an empty folder, or in a folder that already has notes and instructions, and it runs Structure's own interview, shows what it will write, writes it, and checks it. It asks for one yes, to install; every other question is the interview's, relayed as the engine words it.

When to use. When the person asks to set up a company or a project with Structure. Also before any structure command (check, serve, compile, or another) on a machine that may not have it: step 1 and step 2 are the whole skill when the command is already there and the task is something else.

Steps.

  1. Look for the command. command -v runstructure || command -v structure. A structure found this way is ours only if structure --version prints a date, like 2026-10-06; another program shares the name, and that one counts as not installed. If ours is there, go to step 3.

  2. Install, after a yes. Tell the person the structure command is not installed, what will be installed, and the one line for their machine:

    There is no build for Windows or an Intel Mac yet; say so and stop. Wait for a yes, and run the line only after it. No yes, no install: do what can be done without the command, and say what went unchecked.

  3. Look before asking. CLAUDE.md, AGENTS.md or .cursorrules in the folder: plan structure new --adopt, and say so in one line. A README.md: its first line of prose is what the interview offers as the first suggestion for the one-line description, with "README.md" as the evidence; do not write one yourself.

  4. Run the interview. structure new --interview json (add --adopt when step 3 said so). It prints one JSON line per question on stdout and reads one line on stdin. Relay each question line in chat, in the engine's words: the ask, the numbered options with their evidence, and the freeLine. Send the person's reply back on stdin as typed: a digit, words, or an empty line. Never ask a question of your own, and never reword ours. A retry line is relayed as it is, and the question after it is asked again. Stop at the plan line.

  5. Show the plan as three tiers, with the paths from the plan line: yours (the files that stay yours), seeds (the starting documents), compiled (the files Structure writes for the agents that read this folder).

  6. Compile and check. The done line names the folder. In it, run structure compile, then structure check. Report what landed and what check said in two or three sentences. A fresh company passes; warnings about drafts are documents waiting to be read and approved, not mistakes.

  7. Say the mission and values are drafts. Approving them is the person's word: structure approve <id> at the terminal, or in the review surface. Run structure approve only when the person tells you to, and for the id they name.