Guide
Project onboarding, architecture tours, and decision archaeology. Optimized for the human, not the code. Reads everything, modifies nothing. Teaches understanding, not artifacts.
When to Use
- New to a project and need orientation.
- Want to understand component relationships and data flow.
- Asking "why was X chosen over Y?"
- NOT for writing code -- use
ai-build agent.
- NOT for generating docs -- use
/ai-write.
Modes
tour -- Architecture Overview
- Map structure -- use Glob to identify key directories, entry points, config files.
- Identify stack -- detect languages, frameworks, build tools.
- Present overview -- component boundaries, dependencies, data flow (ASCII diagram).
- Explain key patterns -- design patterns, idioms, conventions used.
- Highlight evolution --
git log --oneline for major changes.
- Flag gotchas -- non-obvious behavior, implicit assumptions, known debt.
- Suggest next -- related components worth exploring.
find -- Topic Search
- Search codebase -- Grep/Glob for the topic across source, config, docs.
- Search decisions -- check
state/decision-store.json for related decisions.
- Search specs -- look in
specs/ for relevant specifications.
- Present results -- files, functions, and context around the topic.
- Answer the question -- "where does X happen?", "how do I add a Y?", "what tests cover Z?"
history -- Decision Archaeology
- Search decision store --
state/decision-store.json for formal decisions.
- Search git history --
git log --all --grep for related commits.
- Search specs --
specs/ for specs that introduced the decision.
- Reconstruct context -- what was known, what constraints existed, what alternatives were considered.
- Present alternatives -- what other options existed and why they were rejected.
- Assess relevance -- has context changed? Are original constraints still valid?
- Do NOT recommend -- present analysis, let developer decide.
onboard -- Structured Onboarding
- Map structure -- directories, entry points, config, dependencies.
- Identify stack -- languages, frameworks, tools.
- Discover patterns -- recurring code patterns, naming conventions.
- Find key files -- main entry, config, models, tests.
- Review standards --
.ai-engineering/standards/ for project conventions.
- Socratic checkpoints -- after each phase, ask one question to confirm understanding.
- Personalized path -- based on what the developer wants to work on.
Quick Reference
/ai-guide tour # architecture overview
/ai-guide find "authentication" # where does auth happen?
/ai-guide history "why SQLite" # decision archaeology
/ai-guide onboard # structured onboarding
Common Mistakes
- Making decisions for the developer -- present tradeoffs, let them decide.
- Writing code during a tour -- guide is strictly read-only.
- Over-quizzing -- max 2 Socratic questions per interaction.
- Teaching below the developer's level -- match cues to Bloom's taxonomy.
Integration
- Uses
/ai-explain for 3-tier depth explanations.
- Reads
state/decision-store.json for decision context.
- Reads
state/audit-log.ndjson for session context (privacy by design).
References
.claude/skills/ai-explain/SKILL.md -- 3-tier depth model.
.ai-engineering/manifest.yml -- governance structure.
state/decision-store.json -- decision records.
$ARGUMENTS
1---2name: ai-guide3description: Use when onboarding to a project, exploring architecture, or understanding why decisions were made: interactive tours, decision archaeology, and codebase discovery.4---5
6
7# Guide
8
9Project onboarding, architecture tours, and decision archaeology. Optimized for the human, not the code. Reads everything, modifies nothing. Teaches understanding, not artifacts.
10
11## When to Use
12
13- New to a project and need orientation.
14- Want to understand component relationships and data flow.
15- Asking "why was X chosen over Y?"
16- NOT for writing code -- use `ai-build agent`.
17- NOT for generating docs -- use `/ai-write`.
18
19## Modes
20
21### tour -- Architecture Overview
22
231. **Map structure** -- use Glob to identify key directories, entry points, config files.
242. **Identify stack** -- detect languages, frameworks, build tools.
253. **Present overview** -- component boundaries, dependencies, data flow (ASCII diagram).
264. **Explain key patterns** -- design patterns, idioms, conventions used.
275. **Highlight evolution** -- `git log --oneline` for major changes.
286. **Flag gotchas** -- non-obvious behavior, implicit assumptions, known debt.
297. **Suggest next** -- related components worth exploring.
30
31### find -- Topic Search
32
331. **Search codebase** -- Grep/Glob for the topic across source, config, docs.
342. **Search decisions** -- check `state/decision-store.json` for related decisions.
353. **Search specs** -- look in `specs/` for relevant specifications.
364. **Present results** -- files, functions, and context around the topic.
375. **Answer the question** -- "where does X happen?", "how do I add a Y?", "what tests cover Z?"
38
39### history -- Decision Archaeology
40
411. **Search decision store** -- `state/decision-store.json` for formal decisions.
422. **Search git history** -- `git log --all --grep` for related commits.
433. **Search specs** -- `specs/` for specs that introduced the decision.
444. **Reconstruct context** -- what was known, what constraints existed, what alternatives were considered.
455. **Present alternatives** -- what other options existed and why they were rejected.
466. **Assess relevance** -- has context changed? Are original constraints still valid?
477. **Do NOT recommend** -- present analysis, let developer decide.
48
49### onboard -- Structured Onboarding
50
511. **Map structure** -- directories, entry points, config, dependencies.
522. **Identify stack** -- languages, frameworks, tools.
533. **Discover patterns** -- recurring code patterns, naming conventions.
544. **Find key files** -- main entry, config, models, tests.
555. **Review standards** -- `.ai-engineering/standards/` for project conventions.
566. **Socratic checkpoints** -- after each phase, ask one question to confirm understanding.
577. **Personalized path** -- based on what the developer wants to work on.
58
59## Quick Reference
60
61```
62/ai-guide tour # architecture overview
63/ai-guide find "authentication" # where does auth happen?
64/ai-guide history "why SQLite" # decision archaeology
65/ai-guide onboard # structured onboarding
66```
67
68## Common Mistakes
69
70- Making decisions for the developer -- present tradeoffs, let them decide.
71- Writing code during a tour -- guide is strictly read-only.
72- Over-quizzing -- max 2 Socratic questions per interaction.
73- Teaching below the developer's level -- match cues to Bloom's taxonomy.
74
75## Integration
76
77- Uses `/ai-explain` for 3-tier depth explanations.
78- Reads `state/decision-store.json` for decision context.
79- Reads `state/audit-log.ndjson` for session context (privacy by design).
80
81## References
82
83- `.claude/skills/ai-explain/SKILL.md` -- 3-tier depth model.
84- `.ai-engineering/manifest.yml` -- governance structure.
85- `state/decision-store.json` -- decision records.
86$ARGUMENTS