Interactive project onboarding - creates project-goals.md and project-map.md
Creates project documentation files for Sprint onboarding and AI-assisted development.
/plugin marketplace add damienlaine/agentic-sprint/plugin install damienlaine-sprint@damienlaine/agentic-sprintInitialize a project for use with Sprint by creating the two "Second Brain" documents that guide all sprint work.
This command interactively creates:
.claude/project-goals.md - Business vision and objectives (user-maintained).claude/project-map.md - Technical architecture (architect-maintained)Check if either file already exists:
test -f .claude/project-goals.md && echo "GOALS_EXISTS" || echo "NO_GOALS"
test -f .claude/project-map.md && echo "MAP_EXISTS" || echo "NO_MAP"
If files exist, ask the user:
Ensure the directory exists:
mkdir -p .claude
Use AskUserQuestion to gather business context:
Question 1: Product Vision
Question 2: Target Users
Question 3: Key Features
Question 4: Success Metrics
Question 5: Constraints
Write the gathered information to .claude/project-goals.md:
# Project Goals
## Vision
[User's product vision]
## Target Users
[Target audience description]
## Key Features
- [Feature 1]
- [Feature 2]
- [Feature 3]
## Success Metrics
[How success is measured]
## Constraints
[Important constraints and requirements]
---
*This file is maintained by the user. Update it when business objectives change.*
Analyze the project structure:
# List top-level structure
ls -la
# Find key configuration files
find . -maxdepth 2 -name "package.json" -o -name "pyproject.toml" -o -name "Cargo.toml" -o -name "go.mod" -o -name "*.csproj" 2>/dev/null
# Check for common frameworks
test -f next.config.js -o -f next.config.ts && echo "NEXTJS"
test -f nuxt.config.ts && echo "NUXT"
test -f angular.json && echo "ANGULAR"
test -f vite.config.ts && echo "VITE"
test -d backend -o -f requirements.txt -o -f pyproject.toml && echo "PYTHON"
test -f go.mod && echo "GO"
test -f Cargo.toml && echo "RUST"
Read key files to understand the project:
Ask clarifying questions based on scan results:
Question: Tech Stack Confirmation
Question: Architecture Style
Question: Database
Question: Deployment
Create .claude/project-map.md with discovered and confirmed information:
# Project Map
## Tech Stack
### Backend
- Language: [detected/confirmed]
- Framework: [detected/confirmed]
- Database: [confirmed]
### Frontend
- Framework: [detected/confirmed]
- Styling: [detected]
### Infrastructure
- Deployment: [confirmed]
- CI/CD: [detected]
## Project Structure
[directory tree of main folders]
## Key Components
### [Component 1]
- Location: [path]
- Purpose: [description]
### [Component 2]
- Location: [path]
- Purpose: [description]
## Development Workflow
### Running Locally
[commands to start the project]
### Running Tests
[test commands]
## Current Features
- [Feature 1]
- [Feature 2]
## Known Limitations
- [Any detected issues or TODOs]
---
*This file is maintained by the project-architect agent. Updated during sprints.*
Ask the user:
If yes, prompt for sprint goal and run /sprint:new logic.
If no, provide next steps:
Setup complete!
Next steps:
1. Review .claude/project-goals.md and adjust as needed
2. Review .claude/project-map.md for accuracy
3. Run /sprint:new to start your first sprint
If the directory appears empty or has no recognizable project structure:
If unable to write to .claude/:
On completion, display:
✓ Created .claude/project-goals.md
✓ Created .claude/project-map.md
Your project is ready for Sprint!
Run /sprint:new to begin.