MANUAL ONLY — invoke ONLY when the developer explicitly runs /sdd-project-init or names sdd-project-init directly; never auto-invoke during normal engineering tasks. Bootstrap or integrate sdd-flow in two modes — :greenfield for a clean/new project (stack scan, starter AGENTS.md/CLAUDE.md, minimal adapter) or :mature for an existing project with its own docs, tools, ceremonies, or canon copy.
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 Sdd Project Init?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/zakyrion-sdd-project-init)
---
name: sdd-project-init
disable-model-invocation: true
description: MANUAL ONLY — invoke ONLY when the developer explicitly runs /sdd-project-init or names sdd-project-init directly; never auto-invoke during normal engineering tasks. Bootstrap or integrate sdd-flow in two modes — :greenfield for a clean/new project (stack scan, starter AGENTS.md/CLAUDE.md, minimal adapter) or :mature for an existing project with its own docs, tools, ceremonies, or canon copy.
---
# Load
```clojure
{:requires [".sdd-flow/references/CLOJURE_NOTATION.md"
".sdd-flow/references/PROJECT_ADAPTER.md"
".sdd-flow/templates/PROJECT.md"]
:missing (:then (stop!)
(tell-user! "run sdd-flow doctor ."))
:lazy {:adapters "when proposing starter agent docs or harness-specific invocation — read .sdd-flow/references/ADAPTERS.md"
:canon-diff "only in :mature :origin when a project document carries a hand-maintained copy of framework canon — run sdd-flow diff"}
:authority "PROJECT_ADAPTER.md holds the contract — this file is the procedure"}
```
# Invocation
```clojure
{:trigger :manual-only
:disable-model-invocation true
:allowed #{"developer runs /sdd-project-init [greenfield|mature]"
"developer explicitly asks by name to run sdd-project-init"}
:kind :mutation
:never #{"auto-invoking during an ordinary engineering task"
"adapting the project to the framework"
"writing any file before the owner confirms # Report"}}
```
# Mode
```clojure
(cond
(argument-names-mode? :greenfield) :greenfield
(argument-names-mode? :mature) :mature
:else (:then (ask-mode-first!
{:question "1. Which initialization mode should sdd-project-init run?"
:options [{:id :a
:mode :greenfield
:confidence 50
:when "clean or early project without established agent docs, workflow ceremonies, or canon copies"}
{:id :b
:mode :mature
:confidence 50
:when "existing project with its own docs, tools, ceremonies, behavioral framework, or canon copy"}]})
(wait-for-mode-choice!)))
```
# Greenfield
```clojure
{:mode :greenfield
:alias :base ;; replaces the retired no-op :base branch with a clean bootstrap
:means "a clean or early-stage repository that wants sdd-flow wired cleanly from day one"
:scan (-> (:scan-1 "read .sdd-flow/config.json to see which agent harnesses are installed (antigravity, claude) and check whether AGENTS.md or CLAUDE.md already exists")
(:scan-2 "inspect root stack manifests only (package.json, pyproject.toml, Cargo.toml, go.mod, *.sln, ProjectSettings/ProjectVersion.txt, Makefile, .github/workflows/*) to detect real test, lint, and check commands for # Meters")
(:scan-3 "check live MCP servers and repo CLIs available in this session; test any candidate search/check tool with one real call before proposing it in # Tools, and mark with :proves the ones that can show a symbol exists, show it is wired, or run a behavior — mark only what its answer guarantees; the conformance check takes the cheapest call that guarantees its row"))
:propose {:adapter ".sdd-flow/project.md (:adapter-version 2, :mode :greenfield) with detected # Meters, verified # Tools (or []), and empty [] for # Traps and # Ceremonies"
:starter-docs "starter AGENTS.md (when antigravity is installed) and/or CLAUDE.md (when claude is installed), wrapped in BEGIN SDD-FLOW: starter / END SDD-FLOW: starter when creating a new file or BEGIN SDD-FLOW: pointer / END SDD-FLOW: pointer when appending to an existing file"
:tool-skills "mention /sdd-tools as an optional next step only when verified search tools were found"}
:never #{"asking the 7 mature-project ceremony, trap, or canon-copy questions on a clean repo"
"inventing placeholder traps, bans, or ceremonies when none exist"}}
```
# Survey
```clojure
;; runs in :mature mode
(cond
(carries-a-copy-of-our-canon? project) :origin
(has-its-own-behavioral-framework? project) :parallel
:else :parallel)
```
```clojure
{:mode :mature
:origin {:means "the project holds a hand-maintained copy of the canon"
:do (:then (run! "sdd-flow diff")
(separate-project-residue-from-copied-text!)
(propose-replacing-the-copy-with-a-reference!)
(name-promotion-candidates!))
:never "removing the copy without showing the diff first"}
:parallel {:means "the project has its own documents, tools, ceremonies, or behavioral framework"
:do (:then (survey!)
(propose-adapter!)
(offer-one-pointer!))
:rule "we adopt the project's facts; we never claim its process"}}
```
```clojure
(-> (:read-1 "what the project says an agent must read, and in what order, and the document that keeps its positive code rules when it has one (# Entry :patterns), asking the owner once how distilled rules are written there (:patterns-form)")
(:read-2 "what tools it already owns — for each, the situation in which it MUST be used and why, the search it replaces, and what it must not be used for (PROJECT_ADAPTER.md (def tool-orders)); each checked by one real call, with :proves on those that can show code is there, wired or behaving (# Tools)")
(:read-2b "what traps its code and libraries hold that are expensive to rediscover (# Traps)")
(:read-3 "what commands mean done here (# Meters)")
(:read-4 "what must never be run, read, or written (# Bans)")
(:read-5 "what named procedures already exist and when they run (# Ceremonies)")
(:read-6 "where its task documents live and how their sections are arranged (# Shape)")
(:read-7 "whether any of its documents carry a copy of our canon (# Canon copy)"))
```
```clojure
{:source "the project's own documents and configuration — read them, do not guess"
:unknown ?
:record "each populated slot cites its source; empty slots stay [] or #{}; genuinely ambiguous slots are asked once in # Report"
:never #{"inventing a ceremony or trap the project does not have"
"copying the content of a project document into the adapter"}}
```
# Report
```clojure
{:before-writing "present one concise report for the chosen mode (:greenfield or :mature) with the source of every detected fact"
:owner {:brief "one screen of prose — which mode ran, what will be written or linked, what stays untouched, and what is open — then numbered questions with rated options 0-100; the owner answers «1A, 2B, 3 — as you propose»"}
:contains #{:mode :filled-slots :open-slots :proposed-agent-doc-writes :what-rollback-removes}
:options "every proposal carries its confidence 0-100"
:then (:then (stop!)
(wait-for-go!))
:why "the owner knows their project; neither bootstrap nor survey writes unconfirmed files"}
```
# Write
```clojure
{:ours ".sdd-flow/project.md — written once # Report is confirmed"
:starter {:when "creating a brand-new AGENTS.md or CLAUDE.md in :greenfield mode"
:requires "the owner's explicit confirmation for each file"
:form "entire starter content bounded by <!-- BEGIN SDD-FLOW: starter --> and <!-- END SDD-FLOW: starter --> routing requests through sdd-clojure-flow and .sdd-flow/project.md"
:recorded "each file is declared under :footprint in .sdd-flow/project.md"}
:theirs {:when "linking into an existing document the project already owns"
:requires "the owner's explicit word for this specific document"
:form "a marked block, <!-- BEGIN SDD-FLOW: pointer --> / <!-- END SDD-FLOW: pointer -->, carrying its id"
:size "one pointer — where sdd-flow lives and how to invoke it"
:recorded "the file is declared under :footprint in .sdd-flow/project.md"}
:never #{"an unmarked edit in a document the project owns"
"writing into or creating an agent doc without explicit confirmation"
"more than the owner confirmed"}}
```
# Rollback
```clojure
{:command "sdd-flow unlink"
:removes "every marked BEGIN SDD-FLOW / END SDD-FLOW block from every file declared under :footprint — deleting a starter-only file completely when nothing remains outside the block, and leaving pre-existing or user-extended files intact"
:ours "delete .sdd-flow/project.md — nothing else of ours was written"
:promise "after rollback the project reads exactly as it did before sdd-project-init ran"}
```
# Coexistence
```clojure
{:when (has-its-own-behavioral-framework? project)
:declare {:exclusive true}
:effect "the lifecycle narrows to explicit invocation — it no longer offers itself for every engineering request"
:why "two behavioral frameworks loaded together blend instead of letting the user choose"
:tell-the-owner "which invocation selects which framework"}
```