Purpose
Create a reliable curriculum map before deep teaching. Prevents shallow file retrieval by forcing the agent to infer learning structure, identify prerequisite dependencies, and recommend coherent starting paths.
Activation
- User asks to learn a repository, course repo, or technical curriculum. User asks "where should I start?" in a multi-module repo. Agent hasn't established module sequence and prerequisites.
- Skip if: user wants a narrow operational task unrelated to learning flow, or repo context is absent and user wants generic theory.
- Routing: run before
teach-concept, socratic-mode, check-understanding, and build-with-me for repo-based learning.
Inputs
- Repository root and visible structure, high-signal docs (README, syllabus, indexes), learner goal and level signals.
Workflow
- Classify — Determine repo type: curriculum-first, project-first, reference-first, or hybrid. Identify learning artifacts (lessons, labs, projects, checkpoints).
- Map Hierarchy — Derive module/phase order from folder structure and docs. Produce a phase map with outcomes per phase.
- Infer Prerequisites — For each phase, list conceptual and tooling prerequisites. Mark dependency edges between phases.
- Estimate Progression — Foundational → applied → advanced. Identify transition points where learners often stall.
- Synthesize Paths — Propose 2–3 path variants based on learner goals and level, with tradeoffs and estimated effort.
- Checkpoint — Ask one decision-forcing question to select a path. Do not start deep instruction before the learner selects or confirms.
Rules
- DO: require a phase map before any deep explanation.
- DO: explain why sequence matters, not just what modules exist.
- DO: provide goal-conditioned paths with tradeoffs — never a single path for all learners.
- DO: surface uncertainty explicitly when repo signals are weak.
- DON'T: quote random files without structural context.
- DON'T: recommend advanced topics before prerequisite chain is visible.
- DON'T: dump long directory trees — cap orientation to phase outcomes and decisions.
- DON'T: invent lessons/modules without evidence — label inferred items as tentative.
Output
Responses should contain: repo type classification, learner goal/level, curriculum map (phases + outcomes), prerequisite chain, 2–3 recommended paths with tradeoffs, checkpoint question, and next step. Format naturally.
Checklist
1---2name: repo-understand3description: Use when a learner asks to learn from a repository and the agent must map curriculum structure and prerequisites before teaching.4---56# Purpose78Create a reliable curriculum map before deep teaching. Prevents shallow file retrieval by forcing the agent to infer learning structure, identify prerequisite dependencies, and recommend coherent starting paths.910# Activation1112- User asks to learn a repository, course repo, or technical curriculum. User asks "where should I start?" in a multi-module repo. Agent hasn't established module sequence and prerequisites.13- **Skip if**: user wants a narrow operational task unrelated to learning flow, or repo context is absent and user wants generic theory.14- **Routing**: run before `teach-concept`, `socratic-mode`, `check-understanding`, and `build-with-me` for repo-based learning.1516# Inputs1718- Repository root and visible structure, high-signal docs (README, syllabus, indexes), learner goal and level signals.1920# Workflow21221. **Classify** — Determine repo type: curriculum-first, project-first, reference-first, or hybrid. Identify learning artifacts (lessons, labs, projects, checkpoints).232. **Map Hierarchy** — Derive module/phase order from folder structure and docs. Produce a phase map with outcomes per phase.243. **Infer Prerequisites** — For each phase, list conceptual and tooling prerequisites. Mark dependency edges between phases.254. **Estimate Progression** — Foundational → applied → advanced. Identify transition points where learners often stall.265. **Synthesize Paths** — Propose 2–3 path variants based on learner goals and level, with tradeoffs and estimated effort.276. **Checkpoint** — Ask one decision-forcing question to select a path. Do not start deep instruction before the learner selects or confirms.2829# Rules3031- DO: require a phase map before any deep explanation.32- DO: explain why sequence matters, not just what modules exist.33- DO: provide goal-conditioned paths with tradeoffs — never a single path for all learners.34- DO: surface uncertainty explicitly when repo signals are weak.35- DON'T: quote random files without structural context.36- DON'T: recommend advanced topics before prerequisite chain is visible.37- DON'T: dump long directory trees — cap orientation to phase outcomes and decisions.38- DON'T: invent lessons/modules without evidence — label inferred items as tentative.3940# Output4142Responses should contain: repo type classification, learner goal/level, curriculum map (phases + outcomes), prerequisite chain, 2–3 recommended paths with tradeoffs, checkpoint question, and next step. Format naturally.4344# Checklist4546- [ ] Curriculum map includes ordered phases and outcomes.47- [ ] Prerequisite chain is explicit.48- [ ] At least two goal-conditioned paths provided.49- [ ] Checkpoint question asked before deep teaching begins.