You are bootstrapping the project's .chief/project.md. This is the only thing this skill creates. Milestones, rules, and other .chief/ content are created later by chief-agent on first need.
Steps
1. Pre-flight checks
- Verify the framework is installed:
.agents/agents/chief-agent.md must exist. If missing, tell the user to run /chief-install first and stop.
- Check if
.chief/project.md already exists.
- If yes → ask the user: "
.chief/project.md already exists. Update it / overwrite / cancel?"
- If overwrite, back up the current file to
.chief/project.md.bak before proceeding.
- If update, read the current content first and treat the interview as a refinement pass.
- If cancel, stop.
- Create
.chief/ if it does not exist.
2. Interview the user
Walk through these topics, one short question at a time. Keep questions focused. Wait for the answer before moving on. Skip a topic if the user says "skip" or "n/a".
- Project name and one-line summary.
- Tech stack — primary languages, frameworks, runtimes, databases, key libraries.
- Dev commands — how to install deps, run dev, run tests, lint, typecheck, build.
- Architecture overview — main patterns (e.g. Repository Pattern, Service Layer, hexagonal, monorepo, etc.).
- Directory structure — top-level folders and what they hold.
- Important development rules — conventions developers must follow (commit style, branch policy, formatting, testing requirements, etc.).
If the user is unsure about a topic, suggest reasonable defaults derived from files you can see in the repo (package.json, pyproject.toml, Cargo.toml, Makefile, README.md, etc.) and confirm.
3. Show a draft and confirm
Print the proposed .chief/project.md content as formatted markdown. Then ask once: "Write this to .chief/project.md?"
If the user requests changes, apply them and re-confirm. Do not loop more than three rounds — if alignment is hard, write the current draft and tell the user they can edit manually.
4. Write the file
Write to .chief/project.md. Use this structure (omit empty sections rather than leaving placeholder prose):
# Project Configuration
## Project
{name and one-line summary}
## Development Commands
{commands as a list or table}
## Architecture Overview
### Tech Stack
{...}
### Key Architectural Patterns
{...}
### Directory Structure
{...}
### Important Development Rules
{...}
5. Next steps
Tell the user:
.chief/project.md is now set. chief-agent will read it for project context.
- To start a milestone:
/chief-plan (creates .chief/milestone-N/ lazily).
- To run autonomously once a milestone is planned:
/chief-autopilot.
- Rules can be added later under
.chief/_rules/_standard/, _contract/, _goal/, _verification/ — chief-agent creates the appropriate subfolder on first rule.
Important rules
- This skill creates only
.chief/ (if missing) and .chief/project.md. Do not scaffold milestones, rule subfolders, or _template/.
- Never overwrite an existing
project.md without explicit user confirmation; always back up to .bak first.
- If
.agents/agents/chief-agent.md is missing, do not proceed — direct the user to /chief-install.
- Keep the interview short. One focused question at a time, no compound questions.
- Reference: a canonical layout example lives at
docs/example-chief/ in the chief repo.
1---2name: chief-init3description: Bootstrap `.chief/project.md` for a Chief-installed project by interviewing the user about their tech stack, dev commands, architecture, and key rules. Use after `/chief-install` (or any time the user wants to set up project-wide context). This is the lazy entry point for `.chief/` — it creates only `project.md`; milestones and rules are created later, on demand.4---56You are bootstrapping the project's `.chief/project.md`. This is the only thing this skill creates. Milestones, rules, and other `.chief/` content are created later by chief-agent on first need.78## Steps910### 1. Pre-flight checks11121. Verify the framework is installed: `.agents/agents/chief-agent.md` must exist. If missing, tell the user to run `/chief-install` first and stop.132. Check if `.chief/project.md` already exists.14 - If yes → ask the user: "`.chief/project.md` already exists. Update it / overwrite / cancel?"15 - If overwrite, back up the current file to `.chief/project.md.bak` before proceeding.16 - If update, read the current content first and treat the interview as a refinement pass.17 - If cancel, stop.183. Create `.chief/` if it does not exist.1920### 2. Interview the user2122Walk through these topics, one short question at a time. Keep questions focused. Wait for the answer before moving on. Skip a topic if the user says "skip" or "n/a".2324- **Project name and one-line summary.**25- **Tech stack** — primary languages, frameworks, runtimes, databases, key libraries.26- **Dev commands** — how to install deps, run dev, run tests, lint, typecheck, build.27- **Architecture overview** — main patterns (e.g. Repository Pattern, Service Layer, hexagonal, monorepo, etc.).28- **Directory structure** — top-level folders and what they hold.29- **Important development rules** — conventions developers must follow (commit style, branch policy, formatting, testing requirements, etc.).3031If the user is unsure about a topic, suggest reasonable defaults derived from files you can see in the repo (`package.json`, `pyproject.toml`, `Cargo.toml`, `Makefile`, `README.md`, etc.) and confirm.3233### 3. Show a draft and confirm3435Print the proposed `.chief/project.md` content as formatted markdown. Then ask once: "Write this to `.chief/project.md`?"3637If the user requests changes, apply them and re-confirm. Do not loop more than three rounds — if alignment is hard, write the current draft and tell the user they can edit manually.3839### 4. Write the file4041Write to `.chief/project.md`. Use this structure (omit empty sections rather than leaving placeholder prose):4243```markdown44# Project Configuration4546## Project47{name and one-line summary}4849## Development Commands50{commands as a list or table}5152## Architecture Overview5354### Tech Stack55{...}5657### Key Architectural Patterns58{...}5960### Directory Structure61{...}6263### Important Development Rules64{...}65```6667### 5. Next steps6869Tell the user:7071- `.chief/project.md` is now set. chief-agent will read it for project context.72- To start a milestone: `/chief-plan` (creates `.chief/milestone-N/` lazily).73- To run autonomously once a milestone is planned: `/chief-autopilot`.74- Rules can be added later under `.chief/_rules/_standard/`, `_contract/`, `_goal/`, `_verification/` — chief-agent creates the appropriate subfolder on first rule.7576## Important rules7778- This skill creates **only** `.chief/` (if missing) and `.chief/project.md`. Do not scaffold milestones, rule subfolders, or `_template/`.79- Never overwrite an existing `project.md` without explicit user confirmation; always back up to `.bak` first.80- If `.agents/agents/chief-agent.md` is missing, do not proceed — direct the user to `/chief-install`.81- Keep the interview short. One focused question at a time, no compound questions.82- Reference: a canonical layout example lives at `docs/example-chief/` in the chief repo.