Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Init?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/iamphduc-init)
---
name: init
description: Use when the user types /pod:init or asks to set up pod in a project, or to update pod's docs.
---
Set up a project so the other pod commands can run: pod's docs in `pod-docs/`, a map of the code, and a GitHub `origin` with a first commit. The human gets what is ready, what was fixed, what is still missing, and the next command.
## Guardrails
- Never overwrite or delete an existing file.
- Ask before each step that creates something off this machine, such as a GitHub repo or a push.
- Commit nothing: pod never commits to the merge-target, and `/pod:code` commits pod's setup to the plan branch. A first commit you suggest leaves out `pod-docs/`.
## Work
### Docs version
- **Current version:** **2**. Every pod skill checks the version before it touches pod's files.
- **Version line:** `pod-docs/README.md` has a `pod docs: <N>` line → version N.
- **Version 1:** no such line, but `docs/codebase-structure.md` or `docs/handoff-queue.md` exists → version 1 (pod's files in `docs/`, before `pod-docs/`).
- **Not set up:** neither → `/pod:init` sets it up; skills that only write to `pod-docs/` create what they need.
- **Other version:** not version 2 → every skill, this one included, stops and changes nothing: `pod's docs here are version <N>; this pod reads version 2.` Version 1 → add `To move them, run: node ${CLAUDE_PLUGIN_ROOT}/skills/init/upgrade-docs-v1.js` with the real path; newer → add `Update pod.`- **Set up:** pod counts a project as set up when `pod-docs/codebase-structure.md` exists, the repo has an `origin`, and a first commit.
### Config
- **Merge-target:** the branch plans go to through their final PR. A `--merge-target` flag wins, then `merge-target` in `pod-docs/config.md`, then origin's default branch (no file, or an empty value). The human edits that file; pod only reads it.
### Setup
- **Docs:** copy `${CLAUDE_PLUGIN_ROOT}/skills/init/scaffold/pod-docs/` into `pod-docs/`, skipping files that exist.
- **Map:** the repo has application code, and the brief still has `<!-- … -->` placeholders or `pod-docs/features.md` has no rows → dispatch `pod:scout` with only the repo root and relay its summary. An empty repo gets its map from the first sprint's bootstrap.
- **CI:** only when the human asks → add `.github/workflows/pod-ci.yml` per **Bootstrap CI** in `${CLAUDE_PLUGIN_ROOT}/agents/sprint-planner.md`, for the brief's runtime, and fill the brief's `## CI`.
- **CI in an empty repo:** the human asks for CI and the repo has no application code → skip it and say the first sprint's bootstrap adds it.
- **Tools:** `gh` is missing or not logged in → report the fix and skip the GitHub steps.
- **Ready to run:** no GitHub repo → create one (private unless told otherwise) whose first commit comes from GitHub, and base the local branch on it. Local commits but no `origin` → create it and push them. Anything else, such as an empty remote or a clashing local file → tell the human how to get a first commit.
## Hand back
- **Setup:** each of docs, map, origin, and CI if added, as `ready` / `fixed` / `missing — <fix>`, such as `gh: not logged in — gh auth login`. For docs, which files were created and which were already there.
- **Review:** the brief, `pod-docs/features.md`, and any new known issues. The brief's **Smoke recipe** must be right: engineers run it to check every slice. Record decisions in `pod-docs/decisions.md` as they're made.
- **Next:** `/pod:plan`, or `/pod:sprint` or `/pod:autopilot` if a plan exists.