Initialize new project with PROJECT.md and ROADMAP.md
Initializes new project with PROJECT.md, ROADMAP.md, and config through deep questioning.
/plugin marketplace add cowwoc/claude-code-dog/plugin install dog@claude-code-dogInitialize a new DOG project through comprehensive context gathering.
This is the most leveraged moment in any project. Deep questioning here means better task decomposition, better execution, better outcomes.
Creates .claude/dog/ with PROJECT.md, ROADMAP.md, and dog-config.json.
<execution_context>
@${CLAUDE_PLUGIN_ROOT}/.claude/dog/templates/project.md @${CLAUDE_PLUGIN_ROOT}/.claude/dog/templates/roadmap.md @${CLAUDE_PLUGIN_ROOT}/.claude/dog/templates/dog-config.json @${CLAUDE_PLUGIN_ROOT}/.claude/dog/workflows/questioning.md
</execution_context>
<process> <step name="setup">MANDATORY FIRST STEP - Execute these checks before ANY user interaction:
Abort if project exists:
[ -f .claude/dog/PROJECT.md ] && echo "ERROR: Project already initialized. Use /dog:status" && exit 1
Initialize git repo in THIS directory (required even if inside a parent repo):
if [ -d .git ] || [ -f .git ]; then
echo "Git repo exists in current directory"
else
git init
echo "Initialized new git repo"
fi
Create planning directories:
mkdir -p .claude/dog
You MUST run all bash commands above using the Bash tool before proceeding.
1. Open (FREEFORM - do NOT use AskUserQuestion):
Ask inline: "What do you want to build?"
Wait for their freeform response. This gives you the context needed to ask intelligent follow-up questions.
2. Follow the thread (NOW use AskUserQuestion):
Based on their response, use AskUserQuestion with options that probe what they mentioned:
3. Sharpen the core:
Use AskUserQuestion:
4. Find boundaries:
Use AskUserQuestion:
5. Ground in reality:
Use AskUserQuestion:
6. Decision gate:
Use AskUserQuestion:
If "Ask more questions" -> return to step 2. If "Let me add context" -> receive input via their response -> return to step 2. Loop until "Create PROJECT.md" selected.
</step> <step name="project">Synthesize all context into .claude/dog/PROJECT.md.
PROJECT.md Structure:
# [Project Name]
## Overview
[One paragraph describing what this project is]
## Goals
- [Primary goal]
- [Secondary goals]
## Requirements
### Validated
(None yet - ship to validate)
### Active
- [ ] [Requirement 1]
- [ ] [Requirement 2]
- [ ] [Requirement 3]
### Out of Scope
- [Exclusion 1] - [why]
- [Exclusion 2] - [why]
## Constraints
- [Constraint 1]
- [Constraint 2]
## Key Decisions
| Decision | Rationale | Outcome |
|----------|-----------|---------|
| [Choice from questioning] | [Why] | Pending |
---
*Last updated: [date] after initialization*
Do not compress. Capture everything gathered.
</step> <step name="roadmap">Create initial .claude/dog/ROADMAP.md:
# Roadmap
## Major 1: [First Major Version Name]
- **1.0:** [Initial minor version description]
---
*Use /dog:add-major-version to add more major versions*
*Use /dog:add-minor-version to add minor versions*
*Use /dog:add-task to add tasks to minor versions*
</step>
<step name="mode">
Ask workflow mode preference:
Use AskUserQuestion:
Create .claude/dog/dog-config.json:
{
"yoloMode": [true if YOLO selected, false otherwise],
"contextLimit": 200000,
"targetContextUsage": 0.4,
"autoCleanupWorktrees": true
}
</step>
<step name="commit">
git add .claude/dog/PROJECT.md .claude/dog/ROADMAP.md .claude/dog/dog-config.json
git commit -m "$(cat <<'EOF'
docs: initialize [project-name]
[One-liner from PROJECT.md]
Creates PROJECT.md with requirements, ROADMAP.md, and config.
EOF
)"
</step>
<step name="done">
Present completion with next steps:
Project initialized:
- Project: .claude/dog/PROJECT.md
- Roadmap: .claude/dog/ROADMAP.md
- Config: .claude/dog/dog-config.json (mode: [chosen mode])
---
## Next Up
**[Project Name]** - add first major version structure
`/dog:add-major-version`
<sub>`/clear` first -> fresh context window</sub>
---
</step>
</process>
<output>
.claude/dog/PROJECT.md.claude/dog/ROADMAP.md.claude/dog/dog-config.json<success_criteria>
</success_criteria>
/new-projectInitialize a new project with deep context gathering and PROJECT.md
/new-projectMulti-phase workflow for brainstorming, scaffolding, and setting up new projects with skill-aware configuration