원클릭으로
understand-codebase
Map a codebase for learning — glossary, architecture, flashcards, and quiz. Produces a PDF guide and local HTML study pack.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Map a codebase for learning — glossary, architecture, flashcards, and quiz. Produces a PDF guide and local HTML study pack.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Multi-agent design argument — Azusa challenges Mugi's plan, Mugi revises. Used by /kon:design after exploration and initial plan draft.
Multi-agent software engineering workflow. Use this skill whenever the user types a /kon: command — including /kon:team, /kon:design, /kon:quick, /kon:debug, /kon:ask, /kon:review, /kon:review-pr, /kon:hunt, /kon:gc, /kon:research, /kon:describe-issue, /kon:begin, /kon:finish, /kon:summarize, /kon:retro, /kon:address-comments, /kon:todo, /kon:understand-codebase. Orchestrates specialized agents: Azusa (explorer), Jun (researcher), Mugi (planner), Yui (implementer), Mio (reviewer), Sawako (cleaner), Nodoka (summarizer).
This skill should be used by all kon agents at startup, before beginning work, to load relevant memory from public and repo indexes with relevance-based ordering and a 10-entry cap. Consumers: Azusa, Mugi, Mio, Jun, and any future memory-reading agent.
Convention for per-repo skill directories at ~/.kon/projects/<repo-name>/skills/<name>/SKILL.md. Each named subdirectory is one skill. Agents load all SKILL.md files as the first step before memory entries.
When requirements, code behavior, root cause, or review scope is unclear — ask the user before proceeding. Never invent facts, assumptions, or fixes. Applies to every kon stage and every agent.
Route plain-text user messages while a /kon:begin session is open. Reuse the same session JSON — never init a second session for sub-turns.
| name | understand-codebase |
| description | Map a codebase for learning — glossary, architecture, flashcards, and quiz. Produces a PDF guide and local HTML study pack. |
Consumers: /kon:understand-codebase
Core principles (always): follow skills/core-principles — teach from what the repo actually contains; simplest path through the concepts.
Turn a repository into study materials: key concepts, architecture, flashcards, and a quiz.
| Output | Contents |
|---|---|
understand-guide.pdf | Key concepts + reference code + architecture + FAQ (links in PDF when pandoc) |
understand-study.html | Flashcards + quiz with snippets + clickable source links |
understand-guide.html | Same as PDF; mermaid + vscode:// / cursor:// links open files in IDE |
All files live under sessions/<session-id>/. Orchestrator runs build_understand_codebase.py after Jun finishes.
understand-explore.mdunderstand-guide.md + understand-study.jsonpython3 $KON_ROOT/scripts/build_understand_codebase.py --id "$SID"Read agents/Azusa.md. Read-only — no Write/Edit on application source.
Pass SESSION_DIR, EXPLORE_FILE: understand-explore.md.
## Loaded memory entries
…
## Scope
<what was explored; optional user focus from command>
## Code map
| Area | Key paths | One-line role |
|------|-----------|---------------|
## Concepts spotted (raw)
For each term you see in code/docs — name, where found (`path:line`), rough meaning from evidence:
### <Term>
- **Seen in**: `path:line`, …
- **Notes**: …
## Architecture notes (raw)
- **Deployment shape**: single-node / distributed / hybrid — evidence
- **Major components**: …
- **Data flow**: …
- **External deps**: …
## Implementation anchors
Concrete `path:line` pairs worth flashcard/quiz treatment later.
## Gaps
What could not be determined from the repo alone.
Do not invent behaviour — cite paths. Unknown → ## Gaps.
Read agents/Jun.md. Write only to SESSION_DIR:
understand-guide.md — PDF/HTML sourceunderstand-study.json — flashcards + quizRead understand-explore.md first. Do not web-search unless explore gaps require external docs.
understand-guide.md schemaFollow templates/understand-guide.md.
Must include:
## Key concepts — each entry: Definition, Usage, Source (path:line link), Reference code (fenced block — copy real source, ≤ 30 lines) ```startLine:endLine:relative/path ` (content pasted from Read output)## Architecture — explicit Topology: single-node | distributed | hybrid with evidence; include Source + snippet for key entry points where helpful## FAQ — 5–10 Q&A pairs; optional Source + snippet per answerReference code rules: Read the file, paste the actual lines — do not paraphrase code. Snippet must match the cited path:line range.
understand-study.json schemaFollow templates/understand-study.json.
| Field | Rules |
|---|---|
flashcards | ≥ 8 cards; mix concept and implementation tags |
flashcards[].refs | Required for implementation cards; optional for concept — {path, line, endLine?} repo-relative |
flashcards[].code | Required for implementation cards when a short snippet helps (≤ 20 lines) |
quiz | ≥ 6 questions; mix concept + code; 4 choices each; answer is 0-based index |
quiz[].refs | At least one ref on implementation-tagged questions |
quiz[].code | Optional snippet shown in quiz review |
Build script injects project_path from session JSON and turns refs into clickable IDE links (vscode:// / cursor://).
--yolo has no effect (no auto-skip)skills/teammate-flowrefs + code for implementation cardsexplanation + optional refs / code