Init and Scaffolding
qp init helps you bootstrap quickly, either from scratch or by inferring from an existing repository.
Basic Init
Create a starter qp.yaml:
qp initUse this for greenfield repos or when you want a minimal baseline.
Import From Existing Repo
Infer tasks from current project files:
qp init --from-repoCurrent inference sources include:
Makefilejustfile/Justfilepackage.jsongo.modCargo.tomlpyproject.toml,tox.inipom.xml,build.gradle,build.gradle.kts- Docker Compose files
Heuristics prioritize practical task surfaces and may mark risky flows as agent: false.
Generate Human + Agent Docs
qp init --docsWrites:
HUMANS.mdAGENTS.mdCLAUDE.md
These are derived from qp.yaml so docs stay aligned with actual task contracts.
Harness-Oriented Setup
qp init --harness--harness focuses on operational guardrails and collaboration-ready workflows out of the box.
Codemap Bootstrap
qp init --codemapAppends inferred codemap.packages entries (if codemap does not already exist) to accelerate explain/context quality.
Combining Flags
You can combine options for first-day setup:
qp init --from-repo --docs --codemapCommon combo by repo maturity:
- Existing mature repo:
--from-repo --docs --codemap - New repo with team process:
--harness --docs - Minimal experimentation: plain
qp init
Review Checklist After Init
- Rename any awkward inferred task names.
- Mark risky tasks with
safetyandagent: falseas needed. - Add
scopeto key tasks. - Add/adjust guards.
- Run
qp validate --suggest.
Next Step
For architecture boundary enforcement in larger codebases, continue to Architecture Checks.