/init-project:init-project [optional: project name / description]from Init Project
Scaffold a brand-new opinionated mono-repo project with Chris's preferred defaults (root layout, CLAUDE.md, dev container, standards docs, system.sh dispatcher CLI, a starter .NET solution + Angular SPAs, Postgres + Keycloak, a pre-wired ParleyAI AI client (OpenAI/Anthropic), net10). Use when starting a new project / "init project" / "scaffold a new repo". Asks only for a project name + short description, then copies the build-time-complete templates and applies minimal placeholder substitution.
Ships in Init Project. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Stand up a new software project from copy-ready templates. The templates are authored complete; this skill copies them and substitutes only the project name/description (+ generates per-project secrets). It never authors content at scaffold time.
Ask for a project name (^[a-z0-9][a-z0-9-]*$) and a short description — nothing else.
Opt-in add-ons (prompts — before running the engine). Ask, each defaulting to no:
Carry the user's answers into the engine flags in the next step.
Run the bundled engine: scaffold.sh <name> "<description>" [--strix] [--local-llm --local-llm-model <model> [--local-llm-embed-model <model>]] (see scaffold.sh). It copies templates/ into ./<name>/, substitutes __SCAFFOLD_PROJECT_NAME__ / __SCAFFOLD_PROJECT_DESCRIPTION__, generates a fresh URL-safe value for each __SCAFFOLD_GEN_URLSAFE__ occurrence, maps _CLAUDE.md → CLAUDE.md, writes .init-project-manifest.json, and fails if any __SCAFFOLD_*__ token is left behind.
--force (first scaffold, no collision with unmanaged files) or --update (re-scaffold over a prior output; config.json preserved).--dry-run prints the planned tree without writing.--local-llm (opt-in, off by default): lays down templates/_optional/local-llm/ → the project's etc/local-llm/ (this subtree is excluded from the default copy, so a plain scaffold has zero etc/local-llm/ files), and jq-mutates the generated config.json — repointing claude-api/openai-api base URLs at the local LiteLLM gateway (http://127.0.0.1:4000 / …/v1) with dummy sk-local-mock keys, and adding localLlm.model (+ localLlm.embeddingModel when embeddings were chosen). --local-llm requires --local-llm-model <model> (the model is the single source of truth — there is no hardcoded default); the model flags without --local-llm, or an invalid model name, are usage errors (exit 64).jq dependency: the --local-llm path uses jq on the host (scaffolding may run outside the dev container). The engine preflights jq only when --local-llm is set and exits 64 with a clear message if it's missing; a plain (non-opt-in) scaffold needs no jq.--update: the --local-llm flag is the source of truth for each run. A re-scaffold (--update) without --local-llm over a previously opted-in project resets it — drops the localLlm block, restores the claude-api/openai-api base URLs + keys to real-provider defaults, and removes the prior etc/local-llm/ files. Pass --local-llm again on the --update to keep (or re-choose) the stack. (--update already requires jq for its config.json merge, so this reset adds no new dependency.)--strix (opt-in, off by default): lays down templates/_optional/strix/ → the project's etc/strix/ (this subtree is excluded from the default copy, so a plain scaffold has zero etc/strix/ files). It performs no config.json mutation — so --strix needs no jq and never trips the config-drift gate. The strix CLI itself is installed in the dev container by .devcontainer/setup.sh (via uv, pinned), gated on the presence of etc/strix/. Like --local-llm, opt-in is NOT sticky on --update: a re-scaffold without --strix over a prior opt-in removes the orphaned etc/strix/ files; pass --strix again to keep it.Report the created tree to the user.
Git/GitHub phase (below) — git init + initial commit, status line, optional repo + /init.
Terminal /dick hand-off (below) — the LAST thing the skill does.
Scaffold-exit handling (gate before the git phase). scaffold.sh exit codes are surfaced verbatim as user-facing errors; a non-zero exit STOPS the skill — do not proceed to git//dick:
^[a-z0-9][a-z0-9-]*$, or a __SCAFFOLD_*__ token survived). Re-prompt for a valid name/description, or report the validation message../<name>/, or re-run with --force/--update per the message — never silently overwrite.The scaffolded project always carries claude-api + openai-api services{} entries pointing at the real providers. This opt-in step instead points them at a local LiteLLM + Ollama mock stack (under etc/local-llm/), so the app's LLM calls run locally — free, offline-capable, and deterministic in CI. It is off by default and fully removable; declining leaves a plain scaffold with no etc/local-llm/ and no localLlm config block. This is prose-driven prompting only — the skill chooses the model with the user and passes the names as flags; it never authors model config itself (the engine + build-config do the deterministic work).
Ask, in order (each defaults to the safe choice):
--local-llm flag and skip the rest of this section.--local-llm-model):
llama3.2:3b or qwen2.5:3b.qwen2.5:7b or llama3.1:8b.huihui_ai/llama3.2-abliterate — caveat: guardrails removed + quality degradation + the base model's license still applies. Never offer this as a default; only when the user explicitly wants it.^[A-Za-z0-9._/-]+(:[A-Za-z0-9._-]+)?$ and re-prompt on rejection (exit 64).nomic-embed-text, or "something else" — same grammar validation) and pass it as --local-llm-embed-model. If no, omit the flag entirely (no embeddings entry is written).Then invoke the engine: scaffold.sh <name> "<description>" --local-llm --local-llm-model <chat-model> [--local-llm-embed-model <embed-model>]. The engine lays down etc/local-llm/, repoints the base URLs + keys, and writes localLlm.model (+ localLlm.embeddingModel) into config.json — the single source of truth that build-config and system.sh up/down later consume. Reminder: the --local-llm path needs jq on the host (preflighted by the engine; a plain scaffold does not).
Strix is an open-source autonomous AI penetration-testing agent — it runs the app's code, probes endpoints, and validates vulnerabilities with real proofs-of-concept. This opt-in installs the strix CLI in the dev container (via uv, pinned in .devcontainer/setup.sh); Strix runs its agents in a Docker sandbox, backed by the already-present docker-in-docker feature. It is off by default and fully removable; declining leaves a plain scaffold with no etc/strix/.
This is a single yes/no prompt — no model/secret prompts. Strix's LLM credentials (STRIX_LLM + LLM_API_KEY) are per-user secrets read from the environment, documented as a follow-up in the scaffolded etc/strix/README.md (which also notes how to point Strix at the local LLM mock stack via LLM_API_BASE when both add-ons are enabled) — the skill never authors or prompts for them.
--strix to the engine invocation; if no, omit it.The --strix flag lays down etc/strix/ (the doc + install marker). The CLI install happens on the next dev-container build (setup.sh sees etc/strix/ and installs the pinned strix-agent); it is not installed on the scaffolding host. Because --strix performs no config.json mutation, it needs no jq and composes freely with --local-llm (pass both).
Run these as assistant-workflow steps from the scaffold parent directory (the dir that now contains ./<name>/) — every command below uses an explicit git -C ./<name> ... so the working directory is unambiguous. This skill instructs the agent; it does not itself execute slash commands. All prompts default to the safe/no-op choice (declining leaves the freshly scaffolded files on disk untouched, no repo, no commit); a declined repo or an absent tool degrades gracefully (non-fatal) and the skill still reports overall success.
Ask up front (batch the prompts):
main to exist and be protected (step 6); this prompt governs only the no-repo case (commit the scaffold locally with no remote)./init after setup? (default: no).Then, in order:
git init the project on an explicit main branch (git -C ./<name> init -b main) — pin the branch with -b main rather than relying on the host's init.defaultBranch, which may still be master; the later push -u origin main and the commit-on-main bootstrap depend on it.statusLine entry already ship in the scaffolded .claude/ (templates/.claude/statusline.sh + .claude/settings.json). It is active by virtue of being copied in; this phase only confirms it (branch | model | % context | % 5h token usage | % weekly token usage; the two token-usage segments render only for Claude.ai Pro/Max sessions and degrade away otherwise) and must not rewrite .claude/settings.json — the Stop hook (hooks.Stop) lives in the same file and must be left intact.gh repo create <repo-name> --private --source ./<name> (best-effort). If gh is not installed / not authenticated, print a clear non-fatal note ("gh unavailable — skipping repo creation; create it later with gh repo create") and continue. A declined repo is simply skipped./init (optional, only if accepted): run /init only when the host can guarantee it will not clobber the scaffolded CLAUDE.md / .claude/ without explicit confirmation. The scaffold already authored a complete CLAUDE.md, so if there's any risk /init overwrites it, do not run it — print the exact command (/init) for the user to run themselves and move on. Never silently clobber scaffolded files.main requires at least one pushed commit, so creating a repo implies this bootstrap commit + push regardless of the auto-commit answer (the auto-commit prompt governs only the no-repo case). Stage everything and commit on main:
git -C ./<name> add -A
git -C ./<name> commit -m "chore: initial project scaffold"
This is the deliberate bootstrap exception to the scaffolded project's own git policy (its CLAUDE.md "Git and commits" forbids committing to main without explicit user instruction): the repo's very first commit is the user-opted bootstrap, made before any other branch exists. If a GitHub repo was created, always git -C ./<name> push -u origin main — this creates the remote main that step 6 protects.main (only if a repo was created AND main was pushed in step 5): apply branch protection so main can't be force-pushed or deleted — matching the protections used on the marketplace repo. Skip entirely if no repo was created or main was never pushed (with no remote branch the API 404s). Best-effort:
gh api --method PUT repos/{owner}/{repo}/branches/main/protection --input - <<'JSON'
{
"required_status_checks": null,
"enforce_admins": true,
"required_pull_request_reviews": null,
"restrictions": null,
"allow_force_pushes": false,
"allow_deletions": false
}
JSON
This blocks force-push and deletion of main (and enforce_admins: true applies the rule to admins too), while leaving required_pull_request_reviews/required_status_checks null so ordinary direct commits/pushes to main — including the bootstrap commit above and the scaffolded project's documented commit-on-main policy — keep working. Degrade gracefully (non-fatal): a 403 is the expected outcome for a --private repo on a free GitHub plan (classic branch protection there needs Pro/Team/Enterprise) — print a clear note ("couldn't protect main — branch protection on a private repo needs a paid plan, or make the repo public; re-run the gh api … /branches/main/protection call later") and continue; the overall scaffold still reports success.This commit captures the scaffold (and any /init output) and runs before the terminal /dick hand-off, because /dick is persona-locked and may not return control. Committing /dick's later doc edits is a printed follow-up command, never relied-on auto-continuation.
/dick hand-off (the LAST step)After the git phase + optional commit, offer to boot /dick (the business-architect advisor, fn-1) against the freshly scaffolded project. This is terminal — /dick is persona-locked until the user says "goodbye" and does not reliably return control, so the skill performs no work after handing off.
/dick now to fill in the business docs (docs/business.md, strategy.md, customers.md, priorities.md, decisions.md)?" (default: no)./dick resolves: hand off by invoking /dick (optionally passing the project's short description as the business-context argument, per /dick's hand-off contract). Do this last. Before handing off, print the follow-up command the user runs after they say "goodbye" to /dick, to commit Dick's doc edits:
git -C ./<name> add -A && git -C ./<name> commit -m "docs: business docs from /dick" && git -C ./<name> push
(On main this is again user-opted; on a change/ branch it follows the normal policy.)/dick is unavailable (not installed in this marketplace / not resolvable): print a clear, non-fatal message — "/dick isn't available here; install it and run /dick to fill in the business docs" — and still report the overall scaffold as a success. Do not hard-depend on /dick being installed.scaffold.sh (tested, 100% coverage) — not in this prose.src/<component>/ with a matching config.json systems[] entry (tooling like src/system-cli/ and tests/ are documented exceptions).git init + status line → optional /init → initial commit + push (always when a repo was created; else only if auto-commit accepted) → protect main (whenever a repo was created) → terminal /dick hand-off LAST.etc/local-llm/ (internal dev tooling, like the observability stack) — it is opt-in, profile-gated, and removable; it is not a systems[] component.etc/strix/ (a doc + install marker; the CLI is installed in the dev container by setup.sh) — opt-in and removable, not a systems[] component. Unlike the local-LLM stack it touches no config.json, so --strix needs no jq.scaffold.sh (opens in a new tab)templates/Directory.Build.props (opens in a new tab)templates/README.md (opens in a new tab)templates/_CLAUDE.md (opens in a new tab)templates/_optional/local-llm/_pull-model.sh (opens in a new tab)templates/_optional/local-llm/docker-compose.yml (opens in a new tab)templates/_optional/local-llm/litellm/config.mock.yaml (opens in a new tab)templates/_optional/local-llm/litellm/config.yaml.template (opens in a new tab)templates/_optional/strix/README.md (opens in a new tab)templates/angular.json (opens in a new tab)templates/config.deploy.json (opens in a new tab)templates/config.json (opens in a new tab)templates/docs/architecture.md (opens in a new tab)templates/docs/business.md (opens in a new tab)templates/docs/collaboration.md (opens in a new tab)templates/docs/config-management.md (opens in a new tab)templates/docs/customers.md (opens in a new tab)templates/docs/decisions.md (opens in a new tab)templates/docs/dev-container.md (opens in a new tab)templates/docs/flownext.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub softwareassassin2/plugins --plugin init-project