Create Onboarding Guide
Overview
Generate a structured developer onboarding guide by reading all available .chalk/docs/ documentation and curating it into a progressive learning path. The guide follows a Day 1 / Week 1 / Month 1 structure, starting with environment setup and a first commit, then expanding to architecture understanding and feature ownership. Every step is concrete and runnable — no "ask around" or tribal knowledge assumptions.
Workflow
Read all available documentation — Scan the full .chalk/docs/ directory tree:
.chalk/docs/product/ for product profile, PRDs, user stories, and roadmap
.chalk/docs/engineering/ for architecture docs, ADRs, runbooks, and incident history
.chalk/docs/ai/ for analysis documents and research
- Root
.chalk/docs/ for any overview or index documents
Build a mental map of what documentation exists and what gaps remain.
Inspect the codebase — Use Bash and Glob to understand the project structure:
- Package manager and dependency files (package.json, requirements.txt, go.mod, etc.)
- Build and run scripts
- Test framework and test file patterns
- Environment configuration (.env.example, config files)
- CI/CD configuration
- Linting and formatting tools
Parse the onboarding scope — From $ARGUMENTS, identify:
- Which project or team the guide is for
- Whether the guide targets a specific role (frontend, backend, full-stack, etc.)
- Any specific areas the user wants emphasized
If not specified, create a general full-stack onboarding guide.
Build the Day 1 section — Environment setup and first commit:
- Step-by-step setup instructions with copy-pasteable commands
- How to run the application locally
- How to run the test suite
- A "hello world" first task: a small, safe change that exercises the full development workflow (edit, test, commit, PR)
Verify setup steps against actual project files (package.json scripts, Makefile targets, etc.).
Build the Week 1 section — Architecture and first real contribution:
- Curated reading list from existing docs, ordered from foundational to detailed
- Simplified architecture overview (key services, data flow, external dependencies)
- A starter task: a real but well-scoped issue that builds understanding
- Key concepts the developer must understand to be effective
- Common gotchas that trip up new team members (based on incident reports, ADRs, and codebase patterns)
Build the Month 1 section — Ownership and cross-cutting concerns:
- Feature ownership expectations
- Cross-cutting concerns: authentication, logging, error handling, deployment, monitoring
- How to navigate the codebase for common tasks
- Who to ask about what (mapped to teams or roles, not individuals)
Create the reading list — Order all .chalk/docs/ files into a recommended reading sequence:
- Start with product profile and architecture overview
- Then PRDs and ADRs relevant to the developer's area
- Then runbooks and operational docs
- Mark which docs are "required reading" vs. "reference"
Identify gaps — Flag any onboarding needs that are not covered by existing documentation:
- Missing setup instructions
- Undocumented architecture decisions
- Tribal knowledge that should be written down
List these as "Documentation TODOs" at the end of the guide.
Determine the next file number — List files in .chalk/docs/ai/ to find the highest numbered file. Increment by 1.
Write the file — Save to .chalk/docs/ai/<n>_onboarding_guide.md.
Confirm — Present the guide with a summary of what is covered, the recommended reading list, and any documentation gaps that need to be filled.
Onboarding Guide Structure
# Developer Onboarding Guide
**Project**: <project name>
**Last Updated**: <YYYY-MM-DD>
**Target Audience**: <role or "all developers">
## Day 1: Setup and First Commit
### Environment Setup
Prerequisites:
- <language runtime> (version <X.Y+>)
- <package manager>
- <database or other local services>
- <any other tools>
Step-by-step:
1. **Clone the repository**
```bash
git clone <repo-url>
cd <project-name>
Install dependencies
<install command>
Configure environment
cp .env.example .env
# Edit .env with the following values:
# <explain each required variable>
Start local services
<command to start database, etc.>
Run the application
<run command>
You should see:
Run the test suite
<test command>
Expected: All tests pass. If not, check .
Your First Commit
Complete this task to verify your setup and learn the workflow:
Task: <small, safe change — e.g., "Add your name to CONTRIBUTORS.md" or "Update a log message">
- Create a branch:
git checkout -b onboarding/<your-name>
- Make the change:
- Run tests:
<test command>
- Commit:
git add <files> && git commit -m "<message>"
- Push:
git push -u origin onboarding/<your-name>
- Open a PR following the team's PR template
This exercises: branching, local development, testing, and the PR process.
Week 1: Architecture and First Contribution
Recommended Reading (Ordered)
| Order |
Document |
Type |
Required |
| 1 |
|
Product Context |
Yes |
| 2 |
|
Technical |
Yes |
| 3 |
|
Decision Record |
Yes |
| 4 |
|
Product Requirements |
Recommended |
| 5 |
|
Operations |
Reference |
Architecture Overview
<Simplified description of the system architecture: key services, how they communicate, data flow, external dependencies. Use a text diagram if helpful.>
<simple ASCII architecture diagram>
Key Concepts
To be effective in this codebase, understand these concepts:
- —
- —
- —
Common Gotchas
Issues that trip up every new team member:
Starter Task
Task: <a real, well-scoped issue that a new developer can complete in 2-3 days>
Why this task:
Resources:
- Relevant code:
<file paths>
- Related doc:
<doc reference>
Month 1: Ownership and Cross-Cutting Concerns
Cross-Cutting Concerns
| Concern |
How It Works |
Key Files |
Documentation |
| Authentication |
|
|
|
| Error Handling |
|
|
|
| Logging |
|
|
|
| Deployment |
|
|
|
| Monitoring |
|
|
|
Navigating the Codebase
Common tasks and where to find them:
| Task |
Where to Look |
Example |
| Add a new API endpoint |
<path> |
<example file> |
| Add a database migration |
<path> |
<example file> |
| Add a new UI component |
<path> |
<example file> |
| Add a test |
<path> |
<example file> |
Who to Ask About What
Documentation Gaps
The following onboarding needs are not covered by existing documentation and should be written:
## Output
- **File**: `.chalk/docs/ai/<n>_onboarding_guide.md`
- **Format**: Plain markdown, no YAML frontmatter
- **First line**: `# Developer Onboarding Guide`
## Anti-patterns
- **Information dump without ordering** — Dropping 20 documents on a new developer and saying "read these" is not onboarding. Documents must be ordered from foundational to detailed, with required vs. reference clearly marked.
- **No runnable first task** — A developer who cannot run the app and make a change on Day 1 will lose confidence and momentum. The "hello world" task must be completable in under 2 hours with the setup instructions provided.
- **Assuming tribal knowledge** — "Ask Sarah about the auth system" is not documentation. If knowledge exists only in someone's head, the onboarding guide should flag it as a documentation gap, not encode the dependency on a specific person.
- **Outdated setup steps** — Setup instructions that fail on the first command destroy trust in the entire guide. Verify all commands against actual project files. Include version requirements and common failure modes.
- **No architecture context** — Jumping into code without understanding the system architecture leads to local optimizations and broken mental models. The Week 1 architecture overview provides the map before the developer starts navigating the territory.
- **Missing "who to ask"** — New developers need to know which team owns what. Map areas of responsibility to teams and roles, not individuals (people change roles; team responsibilities are more stable).
- **No documentation gap tracking** — If the onboarding guide cannot cover a topic because no documentation exists, that gap must be explicitly listed. Otherwise the gap persists invisibly and every new developer hits the same wall.
1---2name: create-onboarding-guide3description: Create a developer onboarding guide when the user asks to write onboarding docs, create a getting started guide, document the setup process, or help new developers ramp up4---5
6# Create Onboarding Guide
7
8## Overview
9
10Generate a structured developer onboarding guide by reading all available `.chalk/docs/` documentation and curating it into a progressive learning path. The guide follows a Day 1 / Week 1 / Month 1 structure, starting with environment setup and a first commit, then expanding to architecture understanding and feature ownership. Every step is concrete and runnable — no "ask around" or tribal knowledge assumptions.
11
12## Workflow
13
141. **Read all available documentation** — Scan the full `.chalk/docs/` directory tree:
15 - `.chalk/docs/product/` for product profile, PRDs, user stories, and roadmap
16 - `.chalk/docs/engineering/` for architecture docs, ADRs, runbooks, and incident history
17 - `.chalk/docs/ai/` for analysis documents and research
18 - Root `.chalk/docs/` for any overview or index documents
19 Build a mental map of what documentation exists and what gaps remain.
20
212. **Inspect the codebase** — Use `Bash` and `Glob` to understand the project structure:
22 - Package manager and dependency files (package.json, requirements.txt, go.mod, etc.)
23 - Build and run scripts
24 - Test framework and test file patterns
25 - Environment configuration (.env.example, config files)
26 - CI/CD configuration
27 - Linting and formatting tools
28
293. **Parse the onboarding scope** — From `$ARGUMENTS`, identify:
30 - Which project or team the guide is for
31 - Whether the guide targets a specific role (frontend, backend, full-stack, etc.)
32 - Any specific areas the user wants emphasized
33 If not specified, create a general full-stack onboarding guide.
34
354. **Build the Day 1 section** — Environment setup and first commit:
36 - Step-by-step setup instructions with copy-pasteable commands
37 - How to run the application locally
38 - How to run the test suite
39 - A "hello world" first task: a small, safe change that exercises the full development workflow (edit, test, commit, PR)
40 Verify setup steps against actual project files (package.json scripts, Makefile targets, etc.).
41
425. **Build the Week 1 section** — Architecture and first real contribution:
43 - Curated reading list from existing docs, ordered from foundational to detailed
44 - Simplified architecture overview (key services, data flow, external dependencies)
45 - A starter task: a real but well-scoped issue that builds understanding
46 - Key concepts the developer must understand to be effective
47 - Common gotchas that trip up new team members (based on incident reports, ADRs, and codebase patterns)
48
496. **Build the Month 1 section** — Ownership and cross-cutting concerns:
50 - Feature ownership expectations
51 - Cross-cutting concerns: authentication, logging, error handling, deployment, monitoring
52 - How to navigate the codebase for common tasks
53 - Who to ask about what (mapped to teams or roles, not individuals)
54
557. **Create the reading list** — Order all `.chalk/docs/` files into a recommended reading sequence:
56 - Start with product profile and architecture overview
57 - Then PRDs and ADRs relevant to the developer's area
58 - Then runbooks and operational docs
59 - Mark which docs are "required reading" vs. "reference"
60
618. **Identify gaps** — Flag any onboarding needs that are not covered by existing documentation:
62 - Missing setup instructions
63 - Undocumented architecture decisions
64 - Tribal knowledge that should be written down
65 List these as "Documentation TODOs" at the end of the guide.
66
679. **Determine the next file number** — List files in `.chalk/docs/ai/` to find the highest numbered file. Increment by 1.
68
6910. **Write the file** — Save to `.chalk/docs/ai/<n>_onboarding_guide.md`.
70
7111. **Confirm** — Present the guide with a summary of what is covered, the recommended reading list, and any documentation gaps that need to be filled.
72
73## Onboarding Guide Structure
74
75```markdown
76# Developer Onboarding Guide
77
78**Project**: <project name>
79**Last Updated**: <YYYY-MM-DD>
80**Target Audience**: <role or "all developers">
81
82## Day 1: Setup and First Commit
83
84### Environment Setup
85
86Prerequisites:
87- <language runtime> (version <X.Y+>)
88- <package manager>
89- <database or other local services>
90- <any other tools>
91
92Step-by-step:
93
941. **Clone the repository**
95 ```bash
96 git clone <repo-url>
97 cd <project-name>
98 ```
99
1002. **Install dependencies**
101 ```bash
102 <install command>
103 ```
104
1053. **Configure environment**
106 ```bash
107 cp .env.example .env
108 # Edit .env with the following values:
109 # <explain each required variable>
110 ```
111
1124. **Start local services**
113 ```bash
114 <command to start database, etc.>
115 ```
116
1175. **Run the application**
118 ```bash
119 <run command>
120 ```
121 You should see: <expected output or URL>
122
1236. **Run the test suite**
124 ```bash
125 <test command>
126 ```
127 Expected: All tests pass. If not, check <common fix>.
128
129### Your First Commit
130
131Complete this task to verify your setup and learn the workflow:
132
133**Task**: <small, safe change — e.g., "Add your name to CONTRIBUTORS.md" or "Update a log message">
134
1351. Create a branch: `git checkout -b onboarding/<your-name>`
1362. Make the change: <specific instructions>
1373. Run tests: `<test command>`
1384. Commit: `git add <files>` && `git commit -m "<message>"`
1395. Push: `git push -u origin onboarding/<your-name>`
1406. Open a PR following the team's PR template
141
142This exercises: branching, local development, testing, and the PR process.
143
144## Week 1: Architecture and First Contribution
145
146### Recommended Reading (Ordered)
147
148| Order | Document | Type | Required |
149|-------|----------|------|----------|
150| 1 | <product profile> | Product Context | Yes |
151| 2 | <architecture doc> | Technical | Yes |
152| 3 | <key ADR> | Decision Record | Yes |
153| 4 | <relevant PRD> | Product Requirements | Recommended |
154| 5 | <runbook> | Operations | Reference |
155
156### Architecture Overview
157
158<Simplified description of the system architecture: key services, how they communicate, data flow, external dependencies. Use a text diagram if helpful.>
159
160```
161<simple ASCII architecture diagram>
162```
163
164### Key Concepts
165
166To be effective in this codebase, understand these concepts:
167
1681. **<Concept>** — <what it is and why it matters in this project>
1692. **<Concept>** — <explanation>
1703. **<Concept>** — <explanation>
171
172### Common Gotchas
173
174Issues that trip up every new team member:
175
176- **<Gotcha>** — <what happens and how to fix it>
177- **<Gotcha>** — <explanation>
178- **<Gotcha>** — <explanation>
179
180### Starter Task
181
182**Task**: <a real, well-scoped issue that a new developer can complete in 2-3 days>
183
184Why this task: <what the developer will learn by completing it>
185
186Resources:
187- Relevant code: `<file paths>`
188- Related doc: `<doc reference>`
189
190## Month 1: Ownership and Cross-Cutting Concerns
191
192### Cross-Cutting Concerns
193
194| Concern | How It Works | Key Files | Documentation |
195|---------|-------------|-----------|---------------|
196| Authentication | <brief description> | <paths> | <doc link> |
197| Error Handling | <brief description> | <paths> | <doc link> |
198| Logging | <brief description> | <paths> | <doc link> |
199| Deployment | <brief description> | <paths> | <doc link> |
200| Monitoring | <brief description> | <paths> | <doc link> |
201
202### Navigating the Codebase
203
204Common tasks and where to find them:
205
206| Task | Where to Look | Example |
207|------|---------------|---------|
208| Add a new API endpoint | `<path>` | `<example file>` |
209| Add a database migration | `<path>` | `<example file>` |
210| Add a new UI component | `<path>` | `<example file>` |
211| Add a test | `<path>` | `<example file>` |
212
213### Who to Ask About What
214
215| Area | Team/Role | Channel |
216|------|-----------|---------|
217| <area> | <team or role> | <how to reach them> |
218| <area> | <team or role> | <how to reach them> |
219
220## Documentation Gaps
221
222The following onboarding needs are not covered by existing documentation and should be written:
223
224- [ ] <missing doc or knowledge area>
225- [ ] <missing doc or knowledge area>
226```
227
228## Output
229
230- **File**: `.chalk/docs/ai/<n>_onboarding_guide.md`
231- **Format**: Plain markdown, no YAML frontmatter
232- **First line**: `# Developer Onboarding Guide`
233
234## Anti-patterns
235
236- **Information dump without ordering** — Dropping 20 documents on a new developer and saying "read these" is not onboarding. Documents must be ordered from foundational to detailed, with required vs. reference clearly marked.
237- **No runnable first task** — A developer who cannot run the app and make a change on Day 1 will lose confidence and momentum. The "hello world" task must be completable in under 2 hours with the setup instructions provided.
238- **Assuming tribal knowledge** — "Ask Sarah about the auth system" is not documentation. If knowledge exists only in someone's head, the onboarding guide should flag it as a documentation gap, not encode the dependency on a specific person.
239- **Outdated setup steps** — Setup instructions that fail on the first command destroy trust in the entire guide. Verify all commands against actual project files. Include version requirements and common failure modes.
240- **No architecture context** — Jumping into code without understanding the system architecture leads to local optimizations and broken mental models. The Week 1 architecture overview provides the map before the developer starts navigating the territory.
241- **Missing "who to ask"** — New developers need to know which team owns what. Map areas of responsibility to teams and roles, not individuals (people change roles; team responsibilities are more stable).
242- **No documentation gap tracking** — If the onboarding guide cannot cover a topic because no documentation exists, that gap must be explicitly listed. Otherwise the gap persists invisibly and every new developer hits the same wall.