INIT: a construct into a repository
construct init detects the repository, asks only what a flag or an existing construct.json leaves open, and writes the construct: architecture policy, the harness, an API contract where the preset has one, and the agent instructions. Every option, exit code and refusal is in the CLI reference.
bash
mkdir my-service && cd my-service
npx mikoshi-construct init
pnpm install && pnpm run quality- Presets.
node-backend,node-frontend,node-library,monorepo(CLI reference). - An existing repository gets policy, harness tooling and agent files, never example code. Its own
AGENTS.md,CLAUDE.md,package.jsonand configs are merged or left alone; there is no--force(Getting started). - Two records come out of it.
construct.jsonis provenance;construct.model.jsonis knowledge (What it refuses to claim). - The flow is modelled in
architecture/composition/init.yamland described inarchitecture/init.md(Architecture). - After init the agent runs discovery, and
construct atlasmaps the result (the atlas).