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.
- License 许可
- Apache-2.0
- 最近更新
- 2026-07-23
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- init-project
- description
- 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.
- argument-hint
- [optional: project name / description]
02 资源文件 165
- 参考文档.claude-plugin/plugin.json447 B
- 脚本scaffold.sh21.7 KB
- 参考文档templates/_CLAUDE.md15.0 KB
- 脚本templates/_optional/local-llm/_pull-model.sh1.5 KB
- 参考文档templates/_optional/local-llm/docker-compose.yml7.1 KB
- 参考文档templates/_optional/local-llm/litellm/config.mock.yaml1.3 KB
- 其他templates/_optional/local-llm/litellm/config.yaml.template2.3 KB
- 参考文档templates/_optional/strix/README.md2.6 KB
- 脚本templates/.claude/hooks/claude-md-reminder.sh1.2 KB
- 脚本templates/.claude/hooks/collaboration-inbox.sh10.1 KB
- 参考文档templates/.claude/settings.json649 B
- 脚本templates/.claude/statusline.sh2.4 KB
- 参考文档templates/.config/dotnet-tools.json183 B
- 参考文档templates/.devcontainer/devcontainer.json2.6 KB
- 脚本templates/.devcontainer/setup.sh10.2 KB
- 脚本templates/.github/scripts/config-drift.sh3.0 KB
- 脚本templates/.github/scripts/kcov-gate.sh2.4 KB
- 参考文档templates/.github/workflows/ai-review.yml4.9 KB
- 参考文档templates/.github/workflows/ci.yml7.4 KB
- 参考文档templates/.github/workflows/deploy.yml4.5 KB
- 其他templates/.gitignore1.7 KB
- 参考文档templates/.gitlab-ci.yml2.5 KB
- 参考文档templates/.mcp.json445 B
- 其他templates/.prettierrc161 B
- 参考文档templates/angular.json4.6 KB
- 参考文档templates/config.deploy.json1.6 KB
- 参考文档templates/config.json1.5 KB
- 其他templates/Directory.Build.props926 B
- 参考文档templates/docs/architecture.md4.4 KB
- 参考文档templates/docs/business.md293 B
- 参考文档templates/docs/collaboration.md10.9 KB
- 其他templates/docs/collaboration/.gitkeep443 B
- 参考文档templates/docs/config-management.md26.4 KB
- 参考文档templates/docs/customers.md323 B
- 参考文档templates/docs/decisions.md356 B
- 参考文档templates/docs/dev-container.md7.1 KB
- 参考文档templates/docs/flownext.md2.4 KB
- 参考文档templates/docs/front-end.md8.2 KB
- 参考文档templates/docs/keycloak.md5.8 KB
- 参考文档templates/docs/local-llm.md13.7 KB
- 参考文档templates/docs/priorities.md604 B
- 参考文档templates/docs/strategy.md322 B
- 参考文档templates/docs/tdd.md5.0 KB
- 参考文档templates/docs/team.md1.1 KB
- 参考文档templates/docs/todo.md897 B
- 参考文档templates/docs/ubiquitous-language.md1.2 KB
- 脚本templates/eslint.config.js1018 B
- 其他templates/etc/.gitkeep277 B
- 参考文档templates/package.json1.6 KB
- 参考文档templates/README.md7.9 KB
- 其他templates/src/Api/Api.csproj2.0 KB
- 其他templates/src/Api/Auth/KeycloakRoleClaims.cs3.4 KB
- 其他templates/src/Api/Auth/SessionContextFactory.cs2.0 KB
- 其他templates/src/Api/Auth/SessionUnitOfWorkMiddleware.cs3.3 KB
- 其他templates/src/Api/HealthStatus.cs640 B
- 其他templates/src/Api/Program.cs6.9 KB
- 其他templates/src/BusinessLogic/BusinessLogic.csproj489 B
- 其他templates/src/BusinessLogic/Greeter.cs910 B
- 其他templates/src/DataAccess/DataAccess.csproj1.2 KB
- 其他templates/src/DataAccess/DesignTimeDbContextFactory.cs2.1 KB
- 其他templates/src/DataAccess/Migrations/20260614122456_InitialRlsBaseline.cs1.5 KB
- 其他templates/src/DataAccess/Migrations/20260614122456_InitialRlsBaseline.Designer.cs923 B
- 其他templates/src/DataAccess/Migrations/PlatformDbContextModelSnapshot.cs886 B
- 其他templates/src/DataAccess/PlatformDbContext.cs840 B
- 其他templates/src/DataAccess/Rls/EfDbSession.cs2.7 KB
- 其他templates/src/DataAccess/Rls/IDbSession.cs1.5 KB
- 其他templates/src/DataAccess/Rls/ISessionUnitOfWork.cs1.8 KB
- 其他templates/src/DataAccess/Rls/MigrationBuilderRlsExtensions.cs1.9 KB
- 其他templates/src/DataAccess/Rls/OwnerDdl.cs1.8 KB
- 其他templates/src/DataAccess/Rls/RlsBaseline.cs4.0 KB
- 其他templates/src/DataAccess/Rls/RlsPolicy.cs4.3 KB
- 其他templates/src/DataAccess/Rls/SessionContextSql.cs2.6 KB
- 其他templates/src/DataAccess/Rls/SessionUnitOfWork.cs4.4 KB
- 其他templates/src/Framework/Framework.csproj406 B
- 其他templates/src/Framework/SessionContext.cs837 B
- 参考文档templates/src/grafana/docker-compose.yml1.8 KB
- 参考文档templates/src/grafana/provisioning/dashboards/dashboards.yaml459 B
- 参考文档templates/src/grafana/provisioning/dashboards/otel-collector.json2.0 KB
- 参考文档templates/src/grafana/provisioning/datasources/datasources.yaml584 B
- 参考文档templates/src/keycloak/docker-compose.yml2.7 KB
- 其他templates/src/keycloak/import/.gitkeep322 B
- 参考文档templates/src/keycloak/realm.template.json2.9 KB
- 脚本templates/src/MarketingSite/jest.config.js893 B
- 参考文档templates/src/MarketingSite/public/config.json106 B
- 其他templates/src/MarketingSite/public/favicon.ico14.7 KB
- 脚本templates/src/MarketingSite/setup-jest.ts104 B
- 脚本templates/src/MarketingSite/src/app/app-init.spec.ts1.4 KB
- 脚本templates/src/MarketingSite/src/app/app.config.ts798 B
- 参考文档templates/src/MarketingSite/src/app/app.html41 B
- 脚本templates/src/MarketingSite/src/app/app.routes.ts306 B
- 其他templates/src/MarketingSite/src/app/app.scss—
- 脚本templates/src/MarketingSite/src/app/app.spec.ts742 B
- 脚本templates/src/MarketingSite/src/app/app.ts309 B
- 脚本templates/src/MarketingSite/src/app/core/app-config.spec.ts1.1 KB
- 脚本templates/src/MarketingSite/src/app/core/app-config.ts1.4 KB
- 脚本templates/src/MarketingSite/src/app/home/home.spec.ts515 B
- 脚本templates/src/MarketingSite/src/app/home/home.ts187 B
- 参考文档templates/src/MarketingSite/src/index.html339 B
- 脚本templates/src/MarketingSite/src/main.ts219 B
- 其他templates/src/MarketingSite/src/styles.scss72 B
- 参考文档templates/src/MarketingSite/tsconfig.app.json199 B
- 参考文档templates/src/MarketingSite/tsconfig.spec.json225 B
- 参考文档templates/src/otel-collector/docker-compose.yml2.3 KB
- 参考文档templates/src/otel-collector/otel-collector-config.yaml1.3 KB
- 参考文档templates/src/postgres/docker-compose.yml3.1 KB
- 脚本templates/src/postgres/init/10-roles.sh5.7 KB
- 参考文档templates/src/prometheus/docker-compose.yml1.6 KB
- 参考文档templates/src/prometheus/prometheus.yml396 B
- 其他templates/src/SampleApp/Program.cs398 B
- 其他templates/src/SampleApp/SampleApp.csproj915 B
- 脚本templates/src/system-cli/_local-llm.sh7.7 KB
- 脚本templates/src/system-cli/build-config.sh25.1 KB
- 脚本templates/src/system-cli/down.sh3.4 KB
- 脚本templates/src/system-cli/help.sh1.3 KB
- 脚本templates/src/system-cli/migrate.sh1.3 KB
- 脚本templates/src/system-cli/psql.sh4.1 KB
- 脚本templates/src/system-cli/status.sh860 B
- 脚本templates/src/system-cli/up.sh4.7 KB
- 其他templates/src/system.sln4.8 KB
- 脚本templates/src/WebApp/jest.config.js886 B
- 参考文档templates/src/WebApp/public/config.json99 B
- 其他templates/src/WebApp/public/favicon.ico14.7 KB
- 脚本templates/src/WebApp/setup-jest.ts104 B
- 脚本templates/src/WebApp/src/app/app-init.spec.ts1.4 KB
- 脚本templates/src/WebApp/src/app/app.config.ts798 B
- 参考文档templates/src/WebApp/src/app/app.html41 B
- 脚本templates/src/WebApp/src/app/app.routes.ts306 B
- 其他templates/src/WebApp/src/app/app.scss—
- 脚本templates/src/WebApp/src/app/app.spec.ts742 B
- 脚本templates/src/WebApp/src/app/app.ts309 B
- 脚本templates/src/WebApp/src/app/core/app-config.spec.ts1.1 KB
- 脚本templates/src/WebApp/src/app/core/app-config.ts1.4 KB
- 脚本templates/src/WebApp/src/app/home/home.spec.ts502 B
- 脚本templates/src/WebApp/src/app/home/home.ts204 B
- 参考文档templates/src/WebApp/src/index.html339 B
- 脚本templates/src/WebApp/src/main.ts219 B
- 其他templates/src/WebApp/src/styles.scss72 B
- 参考文档templates/src/WebApp/tsconfig.app.json192 B
- 参考文档templates/src/WebApp/tsconfig.spec.json218 B
- 脚本templates/system.sh1.5 KB
- 其他templates/tests/Api.Tests/Api.Tests.csproj1.4 KB
- 其他templates/tests/Api.Tests/Auth/KeycloakRoleClaimsTests.cs3.3 KB
- 其他templates/tests/Api.Tests/Auth/SessionContextFactoryTests.cs2.2 KB
- 其他templates/tests/Api.Tests/Auth/SessionUnitOfWorkMiddlewareTests.cs5.9 KB
- 其他templates/tests/Api.Tests/HealthStatusTests.cs194 B
- 其他templates/tests/BusinessLogic.Tests/BusinessLogic.Tests.csproj1.4 KB
- 其他templates/tests/BusinessLogic.Tests/GreeterTests.cs770 B
- 脚本templates/tests/coverage.sh3.5 KB
- 其他templates/tests/DataAccess.Tests/DataAccess.Tests.csproj1.5 KB
- 其他templates/tests/DataAccess.Tests/PlatformDbContextTests.cs534 B
- 其他templates/tests/DataAccess.Tests/Rls/MigrationBuilderRlsExtensionsTests.cs2.2 KB
- 其他templates/tests/DataAccess.Tests/Rls/OwnerDdlTests.cs966 B
- 其他templates/tests/DataAccess.Tests/Rls/RlsBaselineTests.cs2.6 KB
- 其他templates/tests/DataAccess.Tests/Rls/RlsPolicyTests.cs2.5 KB
- 其他templates/tests/DataAccess.Tests/Rls/SessionContextSqlTests.cs1.2 KB
- 其他templates/tests/DataAccess.Tests/Rls/SessionUnitOfWorkTests.cs9.0 KB
- 其他templates/tests/Framework.Tests/Framework.Tests.csproj1.4 KB
- 其他templates/tests/Framework.Tests/SessionContextTests.cs656 B
- 脚本templates/tests/integration/local-llm-mock.sh6.9 KB
- 脚本templates/tests/system-cli/local_llm_test.sh12.4 KB
- 脚本templates/tests/system-cli/system_cli_test.sh43.4 KB
- 参考文档templates/tsconfig.json819 B
- 脚本tests/coverage.sh2.7 KB
- 脚本tests/dispatcher_test.sh13.4 KB
- 脚本tests/scaffold_test.sh87.0 KB
03 SKILL.md 正文
init-project
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.
What it does (orchestration)
-
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:
- Local LLM mock stack (LiteLLM + Ollama) so the scaffolded app's outbound LLM calls hit a local gateway instead of paid providers — see the Local LLM opt-in section for the exact prompts (install? → chat-model menu → optional embeddings).
- Strix AI pentest agent installed in the dev container — see the Strix opt-in section. A single yes/no; no follow-up prompts.
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 copiestemplates/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.- Refuses a non-empty target unless
--force(first scaffold, no collision with unmanaged files) or--update(re-scaffold over a prior output;config.jsonpreserved). --dry-runprints the planned tree without writing.--local-llm(opt-in, off by default): lays downtemplates/_optional/local-llm/→ the project'setc/local-llm/(this subtree is excluded from the default copy, so a plain scaffold has zeroetc/local-llm/files), andjq-mutates the generatedconfig.json— repointingclaude-api/openai-apibase URLs at the local LiteLLM gateway (http://127.0.0.1:4000/…/v1) with dummysk-local-mockkeys, and addinglocalLlm.model(+localLlm.embeddingModelwhen embeddings were chosen).--local-llmrequires--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).- Conditional
jqdependency: the--local-llmpath usesjqon the host (scaffolding may run outside the dev container). The engine preflightsjqonly when--local-llmis set and exits 64 with a clear message if it's missing; a plain (non-opt-in) scaffold needs nojq. - Opt-in is NOT sticky on
--update: the--local-llmflag is the source of truth for each run. A re-scaffold (--update) without--local-llmover a previously opted-in project resets it — drops thelocalLlmblock, restores theclaude-api/openai-apibase URLs + keys to real-provider defaults, and removes the prioretc/local-llm/files. Pass--local-llmagain on the--updateto keep (or re-choose) the stack. (--updatealready requiresjqfor itsconfig.jsonmerge, so this reset adds no new dependency.) --strix(opt-in, off by default): lays downtemplates/_optional/strix/→ the project'setc/strix/(this subtree is excluded from the default copy, so a plain scaffold has zeroetc/strix/files). It performs noconfig.jsonmutation — so--strixneeds nojqand never trips the config-drift gate. ThestrixCLI itself is installed in the dev container by.devcontainer/setup.sh(viauv, pinned), gated on the presence ofetc/strix/. Like--local-llm, opt-in is NOT sticky on--update: a re-scaffold without--strixover a prior opt-in removes the orphanedetc/strix/files; pass--strixagain to keep it.
- Refuses a non-empty target unless
-
Report the created tree to the user.
-
Git/GitHub phase (below) —
git init+ initial commit, status line, optional repo +/init. -
Terminal
/dickhand-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:
- 64 — usage/validation error (e.g. the name failed
^[a-z0-9][a-z0-9-]*$, or a__SCAFFOLD_*__token survived). Re-prompt for a valid name/description, or report the validation message. - 65 — target/collision error (the target dir is non-empty / has a prior manifest / an unmanaged file collides). Report it and tell the user to pick a fresh
./<name>/, or re-run with--force/--updateper the message — never silently overwrite. - 0 — success; continue to the git phase.
Local LLM opt-in (before the engine runs)
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):
- "Install the local LLM mock stack (LiteLLM + Ollama)?" (default: no). If no, run the engine with no
--local-llmflag and skip the rest of this section. - If yes — pick the chat model (guided menu; the chosen name is passed as
--local-llm-model):- Lightweight (laptop/CPU-friendly default) — e.g.
llama3.2:3borqwen2.5:3b. - More powerful — e.g.
qwen2.5:7borllama3.1:8b. - Abliterated — e.g.
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. - Something else — help the user pick by size / VRAM / task / license (any Ollama model name). The engine validates the entered name against
^[A-Za-z0-9._/-]+(:[A-Za-z0-9._-]+)?$and re-prompt on rejection (exit 64).
- Lightweight (laptop/CPU-friendly default) — e.g.
- Then a second prompt — "Does the project need embeddings?" (default: no). If yes, pick an embedding model (default
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 opt-in (before the engine runs)
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.
- Ask: "Install the Strix AI pentest agent in the dev container?" (default: no). If yes, add
--strixto 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).
Git/GitHub phase (after a successful scaffold)
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):
- Create a GitHub repo? (default: no) — if yes, ask for the repo name (default: the project name).
- Auto-commit after setup? (default: no) — when accepted, make the repo's user-opted initial commit. (A commit is not a no-op, so the safe default is to leave the scaffold uncommitted.) Note: creating a GitHub repo (above) implies this bootstrap commit and a push regardless of this answer — a repo needs a pushed
mainto exist and be protected (step 6); this prompt governs only the no-repo case (commit the scaffold locally with no remote). - Run
/initafter setup? (default: no).
Then, in order:
git initthe project on an explicitmainbranch (git -C ./<name> init -b main) — pin the branch with-b mainrather than relying on the host'sinit.defaultBranch, which may still bemaster; the laterpush -u origin mainand the commit-on-mainbootstrap depend on it.- Status line — the script + its
statusLineentry 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. - GitHub repo (optional, only if accepted):
gh repo create <repo-name> --private --source ./<name>(best-effort). Ifghis not installed / not authenticated, print a clear non-fatal note ("ghunavailable — skipping repo creation; create it later withgh repo create") and continue. A declined repo is simply skipped. /init(optional, only if accepted): run/initonly when the host can guarantee it will not clobber the scaffoldedCLAUDE.md/.claude/without explicit confirmation. The scaffold already authored a completeCLAUDE.md, so if there's any risk/initoverwrites it, do not run it — print the exact command (/init) for the user to run themselves and move on. Never silently clobber scaffolded files.- Initial commit + push (when auto-commit was accepted OR a repo was created): a protected remote
mainrequires 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 onmain:
This is the deliberate bootstrap exception to the scaffolded project's own git policy (itsgit -C ./<name> add -A git -C ./<name> commit -m "chore: initial project scaffold"CLAUDE.md"Git and commits" forbids committing tomainwithout 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, alwaysgit -C ./<name> push -u origin main— this creates the remotemainthat step 6 protects. - Protect
main(only if a repo was created ANDmainwas pushed in step 5): apply branch protection somaincan't be force-pushed or deleted — matching the protections used on the marketplace repo. Skip entirely if no repo was created ormainwas never pushed (with no remote branch the API 404s). Best-effort:
This blocks force-push and deletion ofgh 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 } JSONmain(andenforce_admins: trueapplies the rule to admins too), while leavingrequired_pull_request_reviews/required_status_checksnull so ordinary direct commits/pushes tomain— including the bootstrap commit above and the scaffolded project's documented commit-on-mainpolicy — keep working. Degrade gracefully (non-fatal): a403is the expected outcome for a--privaterepo on a free GitHub plan (classic branch protection there needs Pro/Team/Enterprise) — print a clear note ("couldn't protectmain— branch protection on a private repo needs a paid plan, or make the repo public; re-run thegh api … /branches/main/protectioncall 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.
Terminal /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.
- Ask: "Boot
/dicknow to fill in the business docs (docs/business.md,strategy.md,customers.md,priorities.md,decisions.md)?" (default: no). - If accepted and
/dickresolves: 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:
(Ongit -C ./<name> add -A && git -C ./<name> commit -m "docs: business docs from /dick" && git -C ./<name> pushmainthis is again user-opted; on achange/branch it follows the normal policy.) - If
/dickis unavailable (not installed in this marketplace / not resolvable): print a clear, non-fatal message — "/dickisn't available here; install it and run/dickto fill in the business docs" — and still report the overall scaffold as a success. Do not hard-depend on/dickbeing installed. - If declined: finish; the scaffold (and optional commit) stand on their own.
Notes
- Deterministic stamping lives in
scaffold.sh(tested, 100% coverage) — not in this prose. - The scaffolded project is a mono-repo: every component is
src/<component>/with a matchingconfig.jsonsystems[]entry (tooling likesrc/system-cli/andtests/are documented exceptions). - Ordering is single and unambiguous: optional opt-in prompts (local-LLM, Strix) → scaffold →
git init+ status line → optional/init→ initial commit + push (always when a repo was created; else only if auto-commit accepted) → protectmain(whenever a repo was created) → terminal/dickhand-off LAST. - The local LLM mock stack lives under
etc/local-llm/(internal dev tooling, like the observability stack) — it is opt-in, profile-gated, and removable; it is not asystems[]component. - The Strix opt-in lives under
etc/strix/(a doc + install marker; the CLI is installed in the dev container bysetup.sh) — opt-in and removable, not asystems[]component. Unlike the local-LLM stack it touches noconfig.json, so--strixneeds nojq.
04 同仓库更多 Skills
wendy
Summon Wendy, a performance coach modeled on Wendy Rhoades from Billions, when the user invokes /wendy or asks for Wendy by name, or explicitly asks to get his head right — tilting, stalling, spiraling, avoiding, flat, or needing to lock in before a hard push. Wendy works the operator's state, never the plan. Do NOT use for feedback on strategies, plans, or decisions, and do not trigger uninvited.
ubiquitous-language
Extract a DDD-style ubiquitous language glossary from the current conversation, flagging ambiguities and proposing canonical terms. Saves to ./docs/ubiquitous-language.md. Use when user wants to define domain terms, build a glossary, harden terminology, create a ubiquitous language, or mentions "domain model" or "DDD". Forked from Matt Pocock's "ubiquitous-language" skill.
tdd
Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development. Forked from Matt Pocock's "tdd" skill.
voice
Speak Claude's responses aloud through the native OS voice (macOS `say`) — on demand via /speak:speak (last response) or /speak:specify (pick one), or automatically on every response via a toggleable Stop hook. Works locally on a Mac and, through a manually started host listener, from inside a Dev Container. Use when the user wants responses read aloud / spoken / voice output, wants auto-speak turned on or off, or asks whether the speak install is healthy.
merge-request:review
Review a pull/merge request (by id) or batch-review every open one against Chris's own engineering standards, staging high-signal findings to .data/merge/<ID>.md for later posting. Fetches head SHAs and applies the "Reviewed at commit" skip check BEFORE any checkout, resolves the head fork-safely, builds/tests it in a dedicated worktree, and treats a failing build/checkout as the top blocking finding. First runs /detect-source-control and hard-stops when the forge is unsupported. Use as "review the PR", "review the open MRs", "any PRs need my eyes", "review <id>".
merge-request:post-findings
Take the findings staged by /merge-request:review in .data/merge/<ID>.md and, with per-finding approval, post the approved ones to the forge as inline comments (general-comment fallback when a finding has no valid diff location) — or formally sign off a clean PR/MR with a single "Looks good." First runs /detect-source-control and hard-stops when the forge is unsupported. Nothing reaches the forge except through the bundled scripts. Also runs a propose-then-confirm learned-preferences loop that teaches /merge-request:review what you value (Don't-raise / Wording / Confirmed-valued), and records skipped findings to the artifact's