# Codebase Mode — Templates Reference ## Vault Folder Structure ``` StudyVault/ 00-Dashboard/ # MOC + Quick Reference + Getting Started 01-Architecture/ # System overview, request flow, data flow 02-/ # Per-module notes 03-/ ... NN-DevOps/ # Build, deploy, CI/CD, env config NN+1-Exercises/ # Onboarding exercises ``` ## Dashboard MOC Template ```markdown --- module: dashboard path: 00-Dashboard keywords: MOC, onboarding, architecture, --- # — Onboarding Map #dashboard #onboarding ## Architecture Overview - Pattern: - Tech stack: - → [[System Architecture]] - → [[Request Flow]] ## Module Map | Module | Purpose | Key Entry Point | Notes | |--------|---------|-----------------|-------| | | <1-line purpose> | `` | [[Module Note]] | ## API Surface | Method | Path / Command | Module | Notes | |--------|---------------|--------|-------| | GET | `/endpoint` | | [[API Note]] | ## Getting Started 1. Prerequisites: ... 2. Install: `` 3. Configure: copy `.env.example` → `.env` 4. Run: `` 5. Test: `` ## Tag Index | Tag | Description | Rule | |-----|-------------|------| | `#arch-*` | Architecture concepts | Top-level pattern tags | | `#module-*` | Module-specific | One per module | ## Onboarding Path > Recommended reading order for new developers: 1. [[System Architecture]] — big picture 2. [[Request Flow]] — how a request moves through the system 3. [[Module A]] → [[Module B]] → ... — module deep dives 4. [[Exercises]] — hands-on practice ``` ## Quick Reference Template ```markdown --- module: dashboard path: 00-Dashboard keywords: quick-reference, commands, setup --- # Quick Reference #dashboard #quick-reference ## Key Commands | Action | Command | |--------|---------| | Install deps | `` | | Run dev | `` | | Run tests | `` | | Build | `` | | Lint | `` | ## Environment Setup 1. ... ## Important File Locations | File / Dir | Purpose | |------------|---------| | `` | | ## Common Debugging | Symptom | Where to Look | → Note | |---------|---------------|--------| | | `` | [[Module Note]] | ``` ## Module Note Template ```markdown --- module: path: keywords: <3-5 English keywords> --- # () #module- # ## Purpose <1-3 sentences: what this module does and why it exists> ## Key Files | File | Role | |------|------| | `` | | ## Public Interface | Export | Type | Description | |--------|------|-------------| | `` | function/class/endpoint | | ## Internal Flow ```text ``` ## Dependencies | Direction | Module / Service | Via | |-----------|-----------------|-----| | **Uses** | | `` | | **Used by** | | `` | ## Configuration | Env Var / Config Key | Purpose | Default | |---------------------|---------|---------| | `` | | `` | ## Testing - Run: `` - Pattern: - Coverage notes: ... ## Related Notes - [[Other Module]] - [[Architecture Note]] ``` ## API Note Template ```markdown --- module: path: keywords: API, --- # API #api- #module- ## Endpoints | Method | Path | Auth | Description | |--------|------|------|-------------| | GET | `/path` | required | | ## Request / Response ### **Request**: ```json { "field": "type — description" } ``` **Response (success)**: ```json { "field": "type — description" } ``` **Error cases**: | Status | Condition | Response | |--------|-----------|----------| | 400 | | `{ "error": "..." }` | ## Related Notes - [[Module Note]] - [[Other API Note]] ``` ## Onboarding Exercise Template ```markdown --- module: exercises path: -Exercises keywords: practice, onboarding, --- # — Onboarding Exercises #practice #onboarding #module- ## Related Modules - [[Module Note 1]] - [[Module Note 2]] --- ## Exercise 1 — Code Reading [trace] > Trace what happens when . List the files and functions involved in order. > [!answer]- View Answer > 1. `` → `` — > 2. `` → `` — > 3. ... --- ## Exercise 2 — Configuration [config] > How would you change ? Which files need modification? > [!answer]- View Answer > - File: `` > - Change: > - Related env var: `` --- ## Exercise 3 — Debugging [debug] > If occurs, where would you look first? Describe your investigation steps. > [!answer]- View Answer > 1. Check `` for ... > 2. Verify `` is ... > 3. Common cause: ... --- ## Exercise 4 — Extension [extend] > How would you add ? Describe the files you'd create or modify. > [!answer]- View Answer > 1. Create `` — > 2. Modify `` — > 3. Add test in `` — > 4. Register in `` — --- > [!summary]- 학습 포인트 요약 > | Topic | Key Takeaway | > |-------|-------------| > | | | ``` ## Formatting Rules - `[[wiki-links]]` for all cross-references - `> [!tip]`, `> [!important]`, `> [!warning]` callouts for key information - ASCII diagrams for flows, architecture, and module interactions - Tables over prose for structured information - **Bold** for critical terms and file paths in descriptions - Code blocks with language hints for commands and snippets - **Localization**: Fold callout labels (e.g., `View Answer`) should match team language. Korean: `정답 보기`, English: `View Answer`