initlisted
Install: claude install-skill melchimaelran/pact
# init — configure PACT for this project
Runs a one-time questionnaire and scaffolds `.pact/`. Everything is asked in the
session; the user never hand-edits a config file. See
[`workflow-map.md`](../../references/workflow-map.md). Next step after this:
`pact spec`.
**Reuse-first** ([`reuse-first.md`](../../references/reuse-first.md)): in ADOPT
mode, read what the project already has (stack files, docs) and turn each
question into "confirm / correct", not "type from scratch".
## Progress tracking
Open a `TodoWrite` list: one item per block this run will execute.
## Phase 0 — mode detection
Not gated on schema (this command creates the schema). Detect:
- `.pact/config.toml` exists -> **RECONFIG**: stop here and tell the user to use
`/pact:config` for changes; `init` does not re-scaffold. (Unless `--reconfig`
was passed, then continue as a guided re-run that overwrites answers.)
- else the working tree has source files (any of `package.json`, `pyproject.toml`,
`Cargo.toml`, `go.mod`, `pom.xml`, a `src/` with code) and no `.pact/` ->
**ADOPT**.
- else -> **NEW**.
`--new` / `--adopt` force the mode. If not in a git repo, run `git init` first
(ask before doing so).
## Phase 1 — existing-docs scan (ADOPT, and NEW if notes were given)
Glob for `CLAUDE.md`, `AGENTS.md`, `README*`, `docs/**/*.md` (including any
`PRD*`, `*requirements*`, `*design*`, `*architecture*`), `.cursorrules`,
`CONTRIBUTING*`, root `*.md`. List what was found. Ask: "Use these as source for
the p