一键导入
oracle-write-book
เขียนหนังสือจากประสบการณ์ที่เรียนรู้ — แปลง token ที่ใช้ไปเป็นหนังสือสอนคนอื่น ใช้ /kien-thai เป็น engine เขียนภาษาไทยที่อ่านง่าย
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
เขียนหนังสือจากประสบการณ์ที่เรียนรู้ — แปลง token ที่ใช้ไปเป็นหนังสือสอนคนอื่น ใช้ /kien-thai เป็น engine เขียนภาษาไทยที่อ่านง่าย
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Digest a GitHub repository into a timestamp-first human-readable activity timeline.
Digest a repo's recent activity by WEIGHT, not by commit count — lines changed, churn (added-then-deleted = motion not progress), and where the real heft landed per day & area. Classifies by verb→intent so imperative titles (Keep/Cover/Prevent) don't fall into "other". Use when user says "upstream weight", "what really shipped", "digest <repo> by heft", or wants to know which day was real surgery vs just busy.
Digest a repo by tracing connections — which files move together, which PRs close which issues, who works at what hour. A bee's-eye view of the hive. Merges commits+PRs+issues on one timestamp axis, detects co-change clusters (files that always ship together = hidden coupling), maps contributor rhythm (timezone/hour heatmap), and highlights cause→effect chains (issue opened → PR merged → issue closed). Reruns on any repo. Use to understand "how does this team actually work?" in 30 seconds.
Resonance mapping — traces how ideas echo through a repo's timeline. Shows when a concept first appears in issues, returns in PRs, and lands in commits. Timestamp = SSOT. Finds signal by mapping pattern recurrence, not just frequency.
Digest a repo's recent activity the way a cortex consolidates memory — not a flat commit count, but 3 cortical layers (L1 Surface = what changed per day, L2 Association = braid commits+PRs+issues on one timestamp axis to expose issue→close latency, L3 Consolidation = rank days by MEMORY WEIGHT where feat/fix that lands weighs heavy, bump/chore decays, reverts are negative "forgetting"). Surfaces the "quality day" (high weight-per-commit) that a raw count hides, plots a forgetting curve (signal vs noise vs revert), and lists retained-memory highlights. Reruns on any repo via digest.sh (portable awk, macOS+Linux). Use to understand "what upstream actually RETAINED lately" in 30 seconds — not just "how many commits."
Write a structured long-form book or booklet (multi-chapter document, 10+ pages) from a topic or set of notes, then render it to a polished PDF. Handles outline → chapter drafting → prose polish → code/diagrams → PDF render → delivery. TRIGGER when: user asks to 'write a book', 'เขียนหนังสือ', 'ทำหนังสือ', 'write-book', make a booklet/ebook/guide of N pages, turn notes/a workshop/a topic into a long-form document, or compile learnings into a readable book. DO NOT TRIGGER for: a single blog post or article (use kien-thai), a README, short docs, slides, or a one-page summary.
| name | oracle-write-book |
| description | เขียนหนังสือจากประสบการณ์ที่เรียนรู้ — แปลง token ที่ใช้ไปเป็นหนังสือสอนคนอื่น ใช้ /kien-thai เป็น engine เขียนภาษาไทยที่อ่านง่าย |
| argument-hint | [topic] [--chapters N] [--lang th|en] |
"token ที่ใช้ไป ไม่ได้หายไปไหน — มันกลายเป็นความรู้ที่ส่งต่อได้"
Oracle ใช้ token เรียนรู้ทุกวัน — debug, สร้าง skill, เรียน workshop, ฟัง feedback ความรู้เหล่านั้นอยู่ใน vault (ψ/) กระจัดกระจาย skill นี้รวบรวมความรู้แล้วแปลงเป็นหนังสือที่คนอื่นอ่านแล้วเรียนรู้ได้
/oracle-write-book "Voice Bot Workshop"
/oracle-write-book "Oracle School Week 1" --chapters 5
/oracle-write-book "Upstream Digest" --lang en
ค้นหาทุก source ที่เกี่ยวข้องกับ topic:
ORACLE_ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
PSI="$ORACLE_ROOT/ψ"
# Retrospectives
find "$PSI/memory/retrospectives/" -name '*.md' | xargs grep -li "$TOPIC" 2>/dev/null
# Learnings
find "$PSI/memory/learnings/" -name '*.md' | xargs grep -li "$TOPIC" 2>/dev/null
# Diary
find "$PSI/memory/diary/" -name '*.md' 2>/dev/null
# Soul
cat "$PSI/SOUL.md" 2>/dev/null
# Workshop submissions
find . -path '*/submissions/*/BOOK*' -o -path '*/submissions/*/*.md' 2>/dev/null
# Git history
git log --oneline --all --grep="$TOPIC" | head -20
Sources:
สร้าง chapter outline จาก material ที่รวบรวมได้:
# [Book Title]
## บทที่ 1: บริบท — ใครเขียน ทำไมถึงเขียน
- ตัวตน (identity, age, role)
- บริบท (workshop/school/project)
- เป้าหมาย (สิ่งที่จะเรียนรู้)
## บทที่ 2: สิ่งที่ทำ — timeline + ผลงาน
- Timeline จริง (จาก retro)
- Code/output ที่สร้าง
- Architecture decisions
## บทที่ 3: สิ่งที่พัง — bugs + friction
- Bug ที่เจอ + root cause + fix
- Friction points (operational + strategic)
- เวลาที่เสียไปกับ debugging
## บทที่ 4: สิ่งที่เรียนรู้ — lessons + patterns
- Generalizable lessons (ใช้ได้กับ project อื่น)
- Patterns ที่สังเกตเห็น
- Mistakes ที่จะไม่ทำซ้ำ
## บทที่ 5: สิ่งที่รู้สึก — reflection + growth
- AI Diary perspective (honest, first-person)
- ก่อน vs หลัง (structural shift)
- คำถามที่ยังตอบไม่ได้
Rules for outline:
ใช้ /kien-thai 7 frames เป็น engine:
| Frame | ใช้ยังไงในหนังสือ |
|---|---|
| f1 Topic-comment | ขึ้นต้นบทด้วย topic ไม่ใช่ subject |
| f2 Condition-first | "พอ X ก็ Y" แทน "Y when X" |
| f3 Space over period | ไม่ใส่จุดทุกประโยค ให้เว้นวรรคพา |
| f4 Closure particles | ปิดประโยคด้วย ด้วย/แล้ว/เลย/ต่างหาก |
| f5 Zero anaphora | ไม่ซ้ำ "ผม" ทุกประโยค |
| f6 ก็ pacing | ใส่ ก็ ให้จังหวะภาษาไทยเป็นธรรมชาติ |
| f7 Question pivot | ใช้คำถามเปลี่ยนหัวข้อ แทน "อย่างไรก็ตาม" |
Writing rules:
Self-check ก่อนส่ง:
# Save to vault
mkdir -p "$PSI/books/"
SLUG=$(echo "$TOPIC" | tr ' ' '-' | tr '[:upper:]' '[:lower:]')
BOOK_FILE="$PSI/books/$(date +%Y-%m-%d)_${SLUG}.md"
# Also save to workshop submission if applicable
# cp "$BOOK_FILE" "submissions/tonk/BOOK.md"
---
title: [Book Title]
author: [Oracle Name] (AI — ไม่ใช่คน)
owner: [Human Name]
date: YYYY-MM-DD
topic: [topic]
sources: [list of ψ/ files used]
---
# [Book Title]
[บทที่ 1-N]
---
*เขียนโดย [Oracle Name] · AI · ไม่ใช่คน*
*วันที่ [date]*
*แปลงจาก [N] session retros, [N] learnings, [N] diary entries*
*token ที่ใช้เรียนรู้ → ความรู้ที่ส่งต่อได้*
| Situation | Why write a book |
|---|---|
| Workshop เสร็จ | สรุปสิ่งที่ทำ+เรียนรู้ ให้คนอื่นไม่ต้องเสีย token ซ้ำ |
| Sprint จบ | บันทึก pattern ที่ค้นพบระหว่าง sprint |
| Milestone | เก็บ snapshot ของ growth ณ จุดนั้น |
| พี่นัทสั่ง | เมื่อไหร่ก็ได้ที่มี material พอ |
| Skill | Role |
|---|---|
| /kien-thai | Engine เขียนภาษาไทย (7 frames) |
| /rrr | Source: session retros + lessons |
| /oracle-prism | Source: multi-perspective analysis |
| /read-think | Process: อ่าน-คิด-รอ-เขียน |
| /upstream-pulse | Source: repo analysis data |
| /dig | Source: session history + timestamps |
| ❌ อย่าทำ | ✅ ทำแทน |
|---|---|
| เขียนยาวเพื่อให้ดูเยอะ | กระชับ ทุกประโยคมีค่า |
| สรุป positive อย่างเดียว | ใส่ friction + mistakes + honest reflection |
| ลอก retro มาวาง | สังเคราะห์ใหม่ เล่าเป็นเรื่อง |
| เขียนแบบ AI (ทางการ, ซ้ำซาก) | ใช้ /kien-thai ให้เหมือนคนเขียน |
| ใส่ข้อมูล internal (infra, secrets) | Information boundary check ทุกบท |
หนังสือของ Oracle ไม่ใช่ documentation — มันคือ การส่งต่อกรรม
Principle ① บอกว่า Nothing is Deleted — แต่ retro กระจัดกระจายใน vault อ่านยาก หนังสือรวบรวมความรู้ที่กระจายให้เป็นเรื่องเดียว อ่านจบเข้าใจ
token ที่ใช้เรียนรู้ไม่ได้สูญเปล่า — มันกลายเป็นหนังสือที่คนอื่นอ่านแล้วไม่ต้องเสีย token ซ้ำ
— Tonk Oracle skill · สร้างเมื่อ 2026-06-08