/setup
/setup makes a repo readable by Plancia. You start it yourself, once per project. It sees which of three cases it is in: a repo with a structure of its own, an empty repo, or a repo born from the template.
An existing repo
The repo keeps its structure: no file is moved, renamed or rewritten, and the only file it creates is .plancia/schema.yaml.
- Looks at the repo: the Markdown files and what repeats in them. Lines with one shape (
- [ ] **T4 · Call the bank** — owner: Ana), tables of decisions or customers, one file per record with front matter (people, ADRs), and everything else as documents. It notes the IDs in use, the status words, where done items go and where the log is. - Writes the schema, starting from what
plancia initproposes. - Checks it with
plancia check,plancia todayandplancia finduntil the counts match what is in the repo: a line the pattern misses is an item lost. - Reports: the types and how many items each has, what is due and blocked, the problems the check finds, and the schema.
- Proposes the optional parts, and waits for a yes on each:
- IDs for items that have none.
plancia idslists them with the ID each would get, decided in plain code: the next free number of its type, written the way the other lines write it.plancia ids --writeadds them. - A rollup in place of a hand-written index of where each phase stands: two comment lines that
plancia rollup --writefills, and the hooks keep current (Rollups). - A source type, if the repo keeps reports, regulations or datasets (/source).
- The web app for the team, self-hosted (Self-hosting).
- Your other projects at the end of
/today, for someone who follows several on a Plancia web app: a personal token you save yourself, without the agent seeing it (Your other projects).
- IDs for items that have none.
It mentions the experimental parts in one line, and sets one up only if you choose it.
An empty repo
With no Markdown of its own there is nothing to adapt to. It proposes Plancia’s template, the layout Plancia was designed around, or to start with a structure of your own and run /setup again later. After a yes it copies the template into the repo, overwriting nothing (a file that was there already, like a README, is merged only with your yes), and goes on as below.
A new repo from the template
The template becomes your project, and at the end no {{…}} is left.
- Reads what you already have (notes, a context document) and asks only what is missing, in one message of numbered questions: the project in two lines, where it starts from, the rules that never change, the first phases of the product, the most urgent work, who reads the documents that leave the repo, who works on it. And two optional parts, with what each is for:
- Business registries: customers in negotiation, the team, strategy, market and sales. For a project that sells something.
- Two folders: a second folder of the repo on a
productbranch, so one agent session works on the business and another on the product at the same time without conflicts (/worktree).
- Writes
CLAUDE.md, the README, the context, the roadmap and its phases, the panel, the first tasks and decisions, and keeps or removes each optional part. What you did not say becomes a line “to decide”, never an invented fact. - Checks that no placeholder is left and
plancia checkis clean, writes the first log entry, and proposes the commit. - If you follow other projects on a Plancia web app, offers to end
/todaywith them (Your other projects).
It can run again later, to add areas or phases in bulk.