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