Project Init
Project scaffolding — creates AGENTS.md, documentation/, and datarim/ for new or existing projects.
Overview
Project Init scaffolds a standardized project structure when you run /dr-init create project "Name". It creates AGENTS.md with the Universal Laws of Artificial Entities and Datarim pipeline integration, documentation stubs, ephemeral working directories, and Datarim workflow state — everything a new project needs to start working with the framework.
What Gets Created
- AGENTS.md — from template with the Universal Laws of Artificial Entities, Datarim pipeline reference, project-specific placeholders
- documentation/ — tutorials/, how-to/, reference/, explanation/ (the four Diátaxis categories)
- documentation/ephemeral/ — plans/, research/, reviews/ (transient working directories)
- datarim/ — backlog.md, tasks.md, activeContext.md (workflow state)
- documentation/archive/ — for completed task archives
- .gitignore — standard for the detected tech stack, with datarim/ excluded
Intent Detection
The skill activates when /dr-init detects project creation keywords in the user's prompt: "create project", "new project", "init project", "scaffold project" (English) or "создай проект", "новый проект", "инициализируй проект" (Russian); "update project structure" or "re-scaffold" re-runs it in update mode. Without these keywords, /dr-init follows the standard task flow — fully backward compatible.
Tech Stack Integration
The skill loads tech-stack.md to auto-detect the appropriate tech stack from the project description. This determines .gitignore contents, build commands for AGENTS.md, and suggested dependencies. For documentation-only projects, tech stack detection is skipped.
Secrecy-Aware Scaffolding
When the brief carries a secrecy: <domain> annotation or a secret-core keyword (for example "proprietary algorithm" or "encoding scheme"), the scaffold is mechanism-free from the first commit: the reference architecture stub is written from a redacted variant, nothing on the public documentation surface or in any README describes the secret mechanism, and AGENTS.md gets a ## Secrecy block with a grep gate at scaffold time. Without the signal the scaffold is unchanged.
Idempotency
Safe to run on existing projects. Every file and directory is checked before creation — existing files are never overwritten, only missing ones are created. The post-scaffold report lists what was created and what was skipped.
When It's Used
Loaded by the planner agent during /dr-init Step 0 when project creation intent is detected. After scaffolding completes, the command exits — it does not continue to the task creation flow.
Reporting connections in 4.2
The shared Human Outcome Reporting contract connects task requirements to the plan, outcome, verification, and evidence. /dr-explain is a read-only explanation path. Release templates and the graph make these links discoverable; project scaffolding now uses the AGENTS.md template.