project-initlisted
Install: claude install-skill mridun-gupta/project-init.skills
# project-init
Bootstrap a project to a universal documentation standard, or retrofit an existing project to it.
## Modes
| Argument | Effect |
|---|---|
| `init` (default) | Full setup for a new/empty project |
| `upgrade` or `full` | Idempotent retrofit of an existing project — fill gaps, never overwrite |
| `lite` | Skeleton docs only; user re-invokes `upgrade`/`full` later for complete documentation |
If the user phrases intent as "prod-ready from the start" → treat as `full`. "Minimal for now, document properly later" → `lite`.
Bundled resources (same directory as this file): `templates/` (copy + substitute tokens) and `references/` (read for the detailed spec — `conventions.md`, `headers.md`).
## Workflow
### Step 0 — Confirm with the user (required)
Before creating anything, ask and confirm. Propose defaults; skip anything the user already answered:
1. **Project name** and **one-line purpose** (infer from folder name / conversation).
2. **Mode**: full documentation now, or lite now + upgrade later.
3. **Author name**: propose `git config user.name`; if unset, OS username; ask only if both fail.
4. **Extras**: README.md (default yes), LICENSE (default MIT — ask which), initial git commit (default yes).
### Step 1 — Git
- If `.git/` is absent: `git init -b main` (older git: `git init` then `git checkout -b main`).
- If `.git/` exists: leave history untouched.
- Write `.gitignore` from `templates/GITIGNORE`; if one exists, merge missing entries — never replace.