project-init
БесплатноБез исполняемых скриптовНе проверенScaffold an unconfigured directory into a configured pi project. Interactive, profile-driven: previews the planned writes, then writes AGENTS.md…
от BlackBeltTechnology★ 357 звёзд на GitHubОб этом скилле
Project Init
Turn the current directory into a configured pi project through a guided, conversational flow. You are running as a first-class interactive session — converse, confirm, and only write files after the user agrees.
Target directory = your current working directory (cwd). All writes land
there. All profile/doctrine paths below are relative to THIS skill's directory
(the folder containing this SKILL.md); call it <skill>.
Step 1 — Resolve the available profiles
A profile is a directory bundle: profile.json (optional, carries
description + dox), AGENTS.md.tmpl, settings.json.tmpl, and
prompts/*.md.
Enumerate profiles from two sources, user wins by name:
- Shipped:
<skill>/profiles/* - User:
~/.pi/project-profiles/*
ls -1 "<skill>/profiles" 2>/dev/null
ls -1 "$HOME/.pi/project-profiles" 2>/dev/null
Merge: a user profile of the same name fully shadows the shipped one. A
directory is only a usable profile when it contains BOTH AGENTS.md.tmpl and
settings.json.tmpl. Read each profile.json for its description and dox
flag (dox defaults to false when absent or unreadable).
Step 2 — Ask which profile
Use ask_user (select) to present the resolved profiles by name +
description. Shipped defaults are coding (TDD/simplicity/surgical, OpenSpec
on, npm ci worktree-init) and docs (writing structure, OpenSpec off, no
build step).
Step 2b — Resolve the technology stack (stack-aware profiles only)
When the chosen profile's profile.json has "stackAware": true (the shipped
coding profile does), its templates carry technology placeholders
({{INSTALL_CMD}}, {{TEST_CMD}}, {{BUILD_CMD}}, {{INIT_GATE}},
{{INIT_COMMAND}}) that must be filled from the project's stack — a coding repo
may be Node, Rust, Go, Python, Java, etc.
Auto-detect + confirm:
Detect a best guess from marker files in the target directory:
Marker file(s) Stack install / test / build init gate + run pnpm-lock.yamlpnpm pnpm install --frozen-lockfile/pnpm test/pnpm buildtest ! -d node_modules/pnpm install --frozen-lockfileyarn.lockyarn yarn install --frozen-lockfile/yarn test/yarn buildtest ! -d node_modules/yarn install --frozen-lockfilebun.lockb/bun.lockbun bun install/bun test/bun run buildtest ! -d node_modules/bun installpackage-lock.json/package.jsonnpm npm ci/npm test/npm run buildtest ! -d node_modules/npm ciCargo.tomlcargo cargo fetch/cargo test/cargo buildtest ! -d target/cargo fetchgo.modgo go mod download/go test ./.../go build ./...test ! -f go.sum/go mod downloadpoetry.lockorpyproject.toml+[tool.poetry]poetry poetry install/poetry run pytest/poetry buildtest ! -d .venv/poetry installrequirements.txt/pyproject.tomlpip venv+pip install / .venv/bin/pytest/python -m buildtest ! -d .venv/ venv+pip installpom.xmlmaven mvn -q dependency:go-offline/mvn test/mvn -q package -DskipTeststest ! -d target/mvn -q dependency:go-offlinebuild.gradle(.kts)gradle ./gradlew dependencies/./gradlew test/./gradlew build -x testtest ! -d .gradle/./gradlew dependenciesPrefer a JS lockfile over a plain
package.json. A bare directory yields no guess.Confirm with the user (
ask_user): show the detected stack (or "none detected") and let them confirm or pick a different stack from the table. Never scaffold a stack-aware profile without a resolved stack.Substitute the chosen stack's values for the
{{…}}placeholders when writing the templates in Step 4. After writing, verify NO{{…}}placeholder remains inAGENTS.mdor.pi/settings.json— an unfilled placeholder means the stack was not resolved; go back and ask.
Step 3 — Ask about optional capabilities, preview, then confirm
3a — Ask about DOX (all profiles)
DOX seeds a directory-level documentation doctrine and wires the kb toolset (see
Step 5). It is now an interactive choice on every profile, not a fixed
per-profile switch. Ask with ask_user (confirm), pre-selecting the profile's
dox value as the DEFAULT answer:
Enable DOX documentation doctrine? Seeds a directory-level AGENTS.md discipline into
./AGENTS.mdand enables the kb toolset. (default:<profile.dox>)
Record the answer as DOX_ENABLED. The dox flag in profile.json only sets
the default; the user's answer decides. Step 5 gates on DOX_ENABLED, not the
raw flag.
3b — Detect OpenSpec state (coding profile only)
Gate: only when the selected profile is coding (skip for docs / any
OpenSpec-off profile), mirroring Steps 4b and 5. Compute OPENSPEC_MODE — one of
offer, repair, skip
Установить project-init в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл project-init?
Scaffold an unconfigured directory into a configured pi project. Interactive, profile-driven: previews the planned writes, then writes AGENTS.md, .pi/settings.json and prompt files — optionally also a knowledge base, an openspec/ scaffold, and user-global ~/.pi/agent/settings.json. Use on a bare directory, or when the dashboard's "Initialize" button spawns this session.
Как установить скилл project-init?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл project-init запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic