[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AYGNRSEEVPN9RK4Z73BXG6":3,"skill-same:01M7AYGNRSEEVPN9RK4Z73BXG6":175},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":44,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M7AYGNRSEEVPN9RK4Z73BXG6","curriculum-vault-authoring",null,"Map educational curricula into Obsidian Body of Knowledge vault structures — overview files, topic breakdowns, cross-links, and reading paths.","oat431\u002Fhermes_config_backup","oat431","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F54722120?v=4","01M7AYD07EH8SYPMYY8CGZKS22","Oralita","01M7AYD0816QDF77E3TWCRSQC9",1,"Unlicense","https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: curriculum-vault-authoring\ndescription: Map educational curricula into Obsidian Body of Knowledge vault structures — overview files, topic breakdowns, cross-links, and reading paths.\ntags: [obsidian, curriculum, education, body-of-knowledge, vault-structure]\ntriggers:\n  - \"create body of knowledge for\"\n  - \"map curriculum to obsidian\"\n  - \"build knowledge area overview\"\n  - \"curriculum structure for vault\"\n  - \"bok overview\"\n  - \"continue vault from another agent\"\n  - \"upgrade stub notes to deep notes\"\n---\n\n# Curriculum-to-Vault Authoring\n\nCreate Obsidian vault structures that map educational curricula into organized Body of Knowledge (BOK) hierarchies. Used when building knowledge reference vaults from scratch — not for filling gaps in existing vaults (use `educational-content-authoring` for that).\n\n## When to Use\n\n- User wants to create a new BOK structure in an Obsidian vault\n- Mapping a curriculum (Thai, international, or custom) into topic-organized notes\n- Building overview\u002Findex files for a knowledge domain\n- Organizing subjects by concept area, course code, or grade level\n\n## Prerequisites\n\n- Target vault path confirmed\n- Scope clarified: level (primary\u002Fsecondary\u002Funiversity), subjects, depth\n- Format reference if user has an existing vault pattern\n\n## Step 1 — Clarify Scope\n\nAsk the user:\n1. **Level** — Primary, secondary, university, or mixed?\n2. **Subjects** — Which subjects to include?\n3. **Source** — Official curriculum (IPST, AP, IB, A-Level) or custom?\n- **Goal** — Personal reference, curriculum map, teaching resource, or **parent-child communication tool** (parents tracking what their child learns at school to support learning at home)? The purpose shapes the overview style: exam-focused (formulas, test weights) vs parent-focused (\\\"What Your Child Learns\\\" tables, home activity suggestions).\n\n## Step 2 — Research the Curriculum\n\nUse web search or delegation to find:\n- Official course codes (e.g., Thai ค301, ว301)\n- Topic distribution by year\u002Fsemester\n- Governing body standards (e.g., สสวท.\u002FIPST for math-science, สพฐ.\u002FOBEC for Thai language and other subjects)\n- International equivalents if needed\n\n### Career & Technology \u002F Home Economics and Agriculture research pattern\n\nFor Career & Technology requests (การงานอาชีพ), especially Home Economics and Agriculture, treat the national curriculum as a **standards umbrella**, not as a guaranteed chapter list. The requested applied topics may be school-level units or useful concept clusters rather than headings that appear verbatim in the national document.\n\n1. **Anchor the research in the exact document version.** Start with the OBEC curriculum index and the official Career & Technology indicator document. Record whether the source is the legacy 2551 guide, a 2560 revision, or a school curriculum derived from it. Do not silently mix old `การงานอาชีพและเทคโนโลยี` strand names with post-2560 subject arrangements.\n2. **Separate three claims in the note:** (a) `National-standard alignment`, (b) `Suggested school-unit progression`, and (c) `Extension \u002F practical knowledge`. This prevents an inferred sequence such as “cooking in ป.3” from being presented as an official nationwide placement.\n3. **Map applied topics to broad outcomes:** work process (กระบวนการทำงาน), management (ทักษะการจัดการ), problem solving (การแก้ปัญหา), collaboration (การทำงานร่วมกัน), safe tool\u002Fmaterial use (การใช้วัสดุ อุปกรณ์ และเครื่องมืออย่างปลอดภัย), resource and environmental responsibility (การใช้พลังงาน ทรัพยากร และสิ่งแวดล้อม), and career orientation (การอาชีพ). Verify any `ง 1.1` \u002F `ง 2.1` indicator number against the cited document and grade before quoting it.\n4. **Use the four requested bands as a spiral progression:** ป.1–3 = self-help, recognition, routines, and supervised tools; ป.4–6 = repeatable procedures, measurement, planning, hygiene, and teamwork; ม.1–3 = analysis, troubleshooting, resource management, and career awareness; ม.4–6 = specialization, quality control, costing, sustainability, entrepreneurship, and evidence-based decisions. This is a blueprinting model, not a claim that every school allocates every topic identically.\n5. **Cross-link rather than overclaim.** Nutrition connects to Health (สุขศึกษา), child development connects to Health and family\u002Flife skills, cultivation and animal husbandry connect to Science, soil\u002Fwater to Earth\u002Fenvironment, and food processing to health, chemistry, and entrepreneurship. Keep the Career & Technology alignment explicit while labeling the cross-curricular support.\n6. **Source hierarchy:** use OBEC\u002FMOE for standards; Thai government technical agencies for practice (กรมวิชาการเกษตร, กรมพัฒนาที่ดิน, กรมปศุสัตว์, อย.\u002Fกองอาหาร, กรมอนามัย); WHO\u002FUNICEF\u002FFAO for internationally recognized health, child-development, food-safety, and agriculture guidance; universities only as secondary explanatory sources. Put the direct URL beside each topic rather than a generic homepage alone.\n7. **Research efficiently and stop on evidence.** Batch a small number of high-value searches, select the authoritative result, and record its URL and what it supports. If a PDF is difficult to extract, use the official landing page, indexed metadata, or a second official HTML\u002FPDF representation; do not keep repeating the same query or infer exact wording from a corrupted extraction. Never let search-tool throttling turn into a loop.\n\nSee `references\u002Fthai-career-technology-curriculum.md` for the nine-topic Home Economics\u002FAgriculture mapping, grade-band blueprint, terminology bank, and source directory. See `references\u002Fthai-career-technology-curriculum-research.md` for the broader curriculum-status distinction, technology-strand transition, workshop-safety hierarchy, and career\u002Ftechnical source workflow.\n\n**Pitfall:** Don't assume topic distribution — always verify against official curriculum docs. Thai curriculum uses \"ค\" prefix for math, \"ว\" prefix for science, \"ท\" for Thai language, with 1xx=primary, 2xx=lower secondary, 3xx=upper secondary. Math-science is governed by IPST (สสวท.); Thai language is governed by OBEC (สพฐ.).\n\n**Pitfall — source access and evidence:** Do not infer that a curriculum source is unavailable from a poor search result or one failed fetch. Open the official landing page, inspect its linked document titles and direct URLs, and use an alternate official HTML\u002FPDF representation when needed. For Thai Career & Technology, use the OBEC hub and Order 921\u002F2561 before relying on training knowledge or Wikipedia. Wikipedia is a contextual fallback, not primary evidence for curriculum status. Do not repeat identical failed searches; change the source or retrieval method and record what the source actually supports.\n\n## Step 2b — Professional, Scientific, and Cross-Vault BOK Frameworks\n\nUse this branch when the requested domain is broader than one national curriculum or when the user wants to organize Computer Science or science knowledge like SWEBOK.\n\n### Classify the source before choosing the vault structure\n\n| Source type | Examples | Use it for |\n|---|---|---|\n| **Professional BOK \u002F standard** | SWEBOK, SEBoK, CyBOK, DMBOK, BABOK, PMBOK | Practice-oriented knowledge areas, professional roles, processes, and competencies |\n| **Academic curriculum framework** | CS2023, Computer Engineering Curricula, IT curricula, Data Science competencies | University-level learning areas, knowledge units, and progression |\n| **Taxonomy \u002F classification** | ACM CCS, MSC2020, PhySH | Indexing, search, and grouping; not a complete learning sequence by itself |\n| **Core-concept \u002F literacy framework** | Vision and Change\u002FBioCore, Earth Science Literacy Principles | Scientific ideas, competencies, and big-picture understanding |\n\nDo not call every taxonomy or curriculum a formal BOK. Name the source type in the overview and explain how the vault adapts it.\n\n### Procedure\n\n1. **Inventory before creating a new vault or root.** Read the existing master indexes and relevant overviews, then list current folders and notes. On the user's `F:` vaults, use `terminal` with `find` for discovery because file-tool filename searches may return empty results on that drive.\n2. **Choose one structural spine.** Select the source with explicit knowledge areas or core concepts. Use a professional BOK for professional practice, a curriculum framework for academic Computer Science, a taxonomy for classification only, and a literacy framework for science understanding.\n3. **Build a mapping matrix before writing files:**\n\n   ```markdown\n   | Framework area | Existing note or folder | Reuse \u002F split \u002F create | Cross-BOK links |\n   |---|---|---|---|\n   ```\n\n   This exposes duplication and gaps before content creation.\n4. **Reuse existing content first.** Keep the BOK overview\u002Findex under `body-of-knowledge\u002F` and keep detailed topic notes in the established content root outside it, unless the user explicitly approves a separate vault. Link existing notes into the new spine instead of copying them.\n5. **For academic Computer Science, use the official CS2023 Body of Knowledge as the main spine.** Use the final report's Body of Knowledge and knowledge-model materials, and record the official URL in the overview. Model the hierarchy as `Knowledge Area → Knowledge Unit → Topic + learning outcomes`; preserve `CS Core`, `KA Core`, `Non-core`, and professional dispositions. Treat SWEBOK, SEBoK, CyBOK, and DMBOK as complementary professional overlays, not as replacements for CS2023 and not as one merged list. Preserve the distinction between the Thai upper-secondary `วิทยาการคำนวณ` overview and a university-level Computer Science BOK.\n6. **Choose vault boundaries before mapping content.** When the user wants low coupling, keep Computer Science, Data, Computer Engineering, and AI\u002FML as separate vaults, each with its own BOK overview, content root, projects, references, and version history. Give each topic one canonical home and connect vaults with stable external links or explicit bridge notes; do not duplicate full topic notes merely to make local links convenient.\n7. **For science, combine the domain framework with a learning progression.** A physics classification, chemistry degree guideline, biology core-concept framework, or Earth-science literacy framework may organize the domain, but it does not automatically define one universal curriculum. Label extensions and local sequencing as adaptations.\n7. **Research official sources narrowly.** Search the issuing association or governing body first, record the direct landing page or PDF URL, and use search snippets only for claims they literally state. If extraction is unavailable, use the official landing page or indexed metadata and narrow the claim; do not repeat identical failed retrievals or fill an unverified framework list from memory.\n8. **Verify the contract before reporting.** Compare the overview's area count and names with the authoritative source, resolve wikilinks against actual filenames, and mark each area as complete, mapped, partial, or pending. A framework overview is not evidence that all topic notes exist.\n\n### Reusable pitfalls\n\n- **Do not open a new Computer Science vault before the inventory and mapping matrix.** Existing computing-foundation notes may already cover most areas, and a new root can create duplicate authority.\n- **Do not present CS2023, MSC2020, ACM CCS, or PhySH as interchangeable BOKs.** Their roles differ: curriculum, classification, and professional knowledge require different overview language.\n- **Do not collapse SWEBOK into Computer Science.** Software engineering, Computer Science, Systems Engineering, cybersecurity, and data management overlap but answer different questions; connect them with wikilinks and overlays.\n- **Do not claim a science framework is an official national course sequence unless the source actually defines one.** Big ideas and professional guidelines need an explicit local progression when used for a vault.\n\nSee `references\u002Fcomputing-and-science-bok-frameworks.md` for the CS2023 knowledge-area map, existing-vault mapping pattern, framework decision table, and recommended build order.\n\n## Step 3 — Choose Organization Strategy\n\nThis is the most important structural decision:\n\n### Linear Progression (year-based)\nUse when each year covers **different topics**:\n```\nPhysics\u002F\n├── Physics - Overview.md\n├── ม4\u002F (Mechanics, Waves, Thermo)\n├── ม5\u002F (E&M, Optics)\n├── ม6\u002F (Modern Physics)\n```\n**Best for:** Upper secondary specialized subjects (ม.4-ม.6), university courses\n\n### Spiral Progression (concept-area-based)\nUse when **same concepts** appear at every level, just deeper:\n```\nFundamental Mathematics\u002F\n├── Fundamental Mathematics - Overview.md\n├── 01_Numbers_and_Numeration.md  (covers ป.1-ม.3 progression)\n├── 02_Fractions.md               (covers ป.1-ม.3 progression)\n```\n**Best for:** Primary\u002Flower secondary (ป.1-ม.3), integrated subjects. Note: Thai language and Social Studies both use spiral progression across all 12 years (ป.1-ม.6).\n\n**Pitfall:** Don't split spiral-curriculum subjects by grade band — you'll get 60 files with repeated content instead of 20 clean concept-area files. Use progression tables within each file to show grade-band depth.\n\n## Step 4 — Create Directory Structure\n\n```bash\nmkdir -p \"\u003Cvault>\u002Fbody-of-knowledge\u002F\u003CSubject>\"\n```\n\nOne folder per subject area. Each folder gets an overview file. Topic files go inside the same folder.\n\n## Step 5 — Write Overview Files\n\nEach overview file follows this template:\n\n```yaml\n---\ntags: [overview, \u003Csubject>, \u003Clevel>, \u003Ccurriculum-source>]\n---\n```\n\n### Required Sections\n\n1. **Header block** — Subject name, course codes, topic count, duration, source, leads-to links\n2. **What Is This?** — 2-3 paragraph explanation\n3. **Topic\u002FConcept Area Breakdown** — Numbered list with `[[wikilinks]]`, grouped by category\n4. **Progression Table** — Shows how topics distribute across years\u002Flevels\n5. **Prerequisites** — What's needed before each level\n6. **Mermaid Diagram** — Shows how topics connect (use `flowchart TD`)\n7. **Cross-links** — Connections to related subjects with `[[wikilinks]]`\n8. **Reading Paths** — Different routes through the material\n9. **Related** — Back-link to parent overview, forward links to child subjects\n\n### Format Patterns\n\n- YAML frontmatter with tags array\n- `> **bold key:**` for header metadata blocks\n- Tables for progression\u002Fcomparison\n- `[[Topic Name|→ Full Overview]]` for overview links\n- `[[Topic Name]]` for topic wikilinks\n- Mermaid `flowchart TD` for relationship diagrams\n- Emoji prefixes for visual category grouping (🔢 Math, ⚛️ Physics, etc.)\n\n## Step 6 — Write Top-Level Index\n\nThe `Body of Knowledge - Overview.md` is the master index:\n\n1. Summary table of all subject areas (name, course codes, topic count, focus)\n2. One section per subject with brief description and link to full overview\n3. Mermaid diagram showing how ALL subjects interconnect\n4. Reading paths for different tracks (engineering, medicine, etc.)\n5. Curriculum notes (governing body, course code system, textbook sources)\n6. Related links to other vault sections (e.g., English Skill)\n\n## Step 7 — Create Book Checklist\n\nAfter the BOK structure is complete, create a `checklist\u002F` folder with book recommendations:\n\n```\nchecklist\u002F\n├── Book Checklist - Overview.md      ← master index + publisher guide\n├── \u003CSubject> - Books.md              ← one per subject\n```\n\nEach subject file uses priority tiers:\n- 🔴 **Essential** — Must-have (IPST textbooks + primary reference)\n- 🟡 **Recommended** — Very useful supplement (Thai study books, exam prep)\n- 🟢 **Optional** — Deeper exploration (international textbooks)\n\nSections per file:\n1. **IPST Textbooks** — Official curriculum books (free PDFs at ipst.ac.th)\n2. **Thai Study Books** — สรุปเข้ม (MIS), ตะลุยโจทย์ (iQBook), พ.ก.ศึกษาศาสตร์ (แบบเรียนเร็ว)\n3. **International Textbooks** — Standard references (Giancoli → Halliday for physics, Zumdahl\u002FChang for chemistry, Campbell for biology, Stewart for calculus)\n4. **Exam Prep** — O-NET, A-Level, PAT, กสพท.\n5. **Famous Tutors** — Popular tutoring materials (ครูพี่ยม, ครูพี่วิเวียน, ครูพี่ลูกกอล์ฟ, OnDemand)\n\n**Research method:** Use `delegate_task` with 2 subagents running in parallel — one for comprehensive book research across all subjects, one for cross-referencing Thai publishers and exam-prep specific books. Each returns in 1-3 minutes while you create files. The research output should also be saved to `references\u002Fthai-book-recommendations.md` for future sessions. Include both Thai-language books and English international textbooks with their Thai translations where available (e.g., Campbell → ชีววิทยา แคมป์เบลล์).\n\n**Pitfall:** Don't skip IPST textbooks — they're the PRIMARY reference and free. Always list them as 🔴 Essential. International textbooks come as 🟡\u002F🟢 for deeper exploration. Don't forget to mention that Campbell is non-negotiable for กสพท. preparation.\n\n## Step 8 — Verify and Report\n\n- Check all files created: use `terminal` with `find \"\u003Cvault>\u002Fbody-of-knowledge\" -name \"*.md\" -type f | sort` instead of `search_files` (see pitfall below)\n- Check checklist created: same `find` pattern under `\u003Cvault>\u002Fchecklist`\n- Report total topic count and structure to user\n- Offer to dive deeper into any specific subject\n\n> **⚠️ Pitfall — `search_files` silently returns 0 on F:\\ drives for `target='files'`:** When the vault is on a non-C: drive (F:\\), `search_files(target='files', pattern='*.md', path='F:\\\\...')` returns `{\"total_count\": 0}` with NO error message — a silent failure, not an exception. This affects BOTH `target='files'` (file listing) and `target='content'` (grep). Always use `terminal` with `find \"\u003CF:\u002Fpath>\" -name \"*.md\" -type f | sort` for file listing, and `grep` for content search. Do NOT retry `search_files` with different path formats — it fails silently every time on F:\\ drives.\n\n## Step 9 — BOK Enrichment Pass (Sub-Overview Creation)\n\nAfter the initial overview files are created, the user may ask to **enrich** a subject to match the depth of another (e.g., \"review and add gaps, make it like Social Studies\"). This happens when a BOK has only flat topic lists without deeper category breakdowns.\n\n### When to Enrich\n\n- User explicitly compares depth across BOK subjects (e.g., \"Math is thin vs Social Studies\")\n- A BOK has only 2 thin files while another has 6+ files with sub-overviews\n- User has reorganized vault and consolidated subjects\n\n### Enrichment Pattern\n\n1. **Identify categories** — Group existing flat topic lists into 5-10 logical categories\n2. **Create sub-folders** — `mkdir -p` for each category under the subject folder\n3. **Write sub-overviews** — Each gets: YAML frontmatter, overview paragraph, topic table with grade bands, learning progression (Mermaid), key formulas\u002Ftheorems, Thai terminology, common misconceptions, exam relevance, cross-links\n4. **Update main overviews** — Add a category table at the top linking to each sub-overview\n5. **Maintain wikilinks** — Sub-overviews link back to main overview and across to related categories\n\n**Result example:** Mathematics: 2 files (20KB) → 12 files (92KB)\n\n### Sub-Overview Template\n\nSee `references\u002Fthai-math-strand-overview-pattern.md` for the complete proven template used across 10 Mathematics strand sub-overview files. The template includes:\n- YAML frontmatter with strand-specific tags\n- Per-sub-strand: grade band table, key formulas, Thai terminology (Thai\u002Fromanized\u002FEnglish), common misconceptions, real-life connections (Thai context)\n- Cross-reference progression summary table\n- Exam relevance with approximate weights\n- IPST textbook references per level\n- Mermaid diagrams (quadrantChart for coordinate planes, flowchart for hierarchies)\n\n### Pitfall\n\n**Don't duplicate topic detail between overview and sub-overview.** The main overview delegates to sub-overviews via a category table. Put deep content (formulas, misconceptions, grade-band details) in the sub-overview. The main overview retains the topic list, progression table, mermaid diagram, and reading paths.\n\n**Use `delegate_task`** to research enrichment content while you create directory structure — the research takes 2-5 minutes and returns comprehensive strand\u002Ftopic breakdowns that match the enriched format.\n\n- **After enrichment, regroup by parent subject.** Once all sub-overviews are created, the user may want them moved under parent folders (e.g., Physics\u002F, Chemistry\u002F, Biology\u002F) rather than flat-numbered. Use `mv` to relocate sub-folders, then `rmdir` to clean up empty old directories. This makes the structure cleaner:\n\n### Pitfall — SearXNG MCP Rate Limiting (429)\n\nWhen using the SearXNG MCP (`mcp__searxng__searxng_web_search`) for curriculum research, the server may rate-limit after ~3 rapid consecutive calls, returning `429: Rate limit exceeded`. This is a transient throttle, NOT a permanent failure.\n\n**Strategy:**\n1. Fire 2-3 initial searches for the most uncertain topics, then STOP.\n2. Complete remaining files from model knowledge — the model's training knowledge of Thai history, economics, civics, geography is accurate and sufficient for BOK notes.\n3. Do NOT retry the same failing MCP call repeatedly — the tool loop warning fires after 3 consecutive failures.\n4. If a single `web_url_read` works, use it; don't cascade into more searches.\n5. **If the user says the rate limit is fixed** (infra team adjusted settings), test with one search. If it works, use it strategically for the 2-3 most specialized topics, then proceed from model knowledge.\n\n**Search quality:** SearXNG returns mixed relevance — commercial sites (Best Buy, hotels, gaming PCs) sometimes outrank educational content. Filter results for Wikipedia, `.org`, `.ac.th`, and known educational domains. Wikipedia articles load reliably via `web_url_read` and are the best source for historical\u002Fgeographic detail.\n\n**Curriculum verification pattern (proven for IPST Physics 2026-07-30):** When verifying Thai curriculum topic distribution before creating advanced notes, search for `\"[subject] ม.ปลาย หลักสูตร สสวท เรียนอะไรบ้าง\"` (e.g., `\"ฟิสิกส์ ม.ปลาย หลักสูตร สสวท เรียนอะไรบ้าง\"`). The site smartmathpro.com publishes per-subject IPST curriculum summaries with chapter names in Thai, topic distribution by semester, and source attribution to IPST textbooks. Fetch the full article via `mcp__searxng__web_url_read` and cross-reference against the BOK overview. Note: our BOK overviews may be a superset of the standard IPST curriculum (e.g., we include Special Relativity and Astrophysics as extension topics beyond the standard ~20 chapters).\n\n**When SearXNG is unavailable entirely (403\u002Fconnection error):** Fall back fully to the two-pass pattern (produce from knowledge, verify against Wikipedia which loads reliably).\n\n**Failure mode 2 — subprocess death (seen 2026-08-28, distinct from 429):** every `mcp__searxng__searxng_web_search` call fails fast with `TimeoutError: MCP stdio subprocess for 'searxng' has exited`. No call succeeds, not even spaced out — this is a dead server, not a throttle. Do not keep retrying the MCP (loop warning fires at 3 failures). Fallback that works: the built-in `web_search` tool (SearXNG-backed) — run 1–2 verification searches for the most load-bearing facts (e.g., English มาตรฐาน codes อ1.1–อ4.2, course code อ21101), then build the rest from model knowledge. Never block note creation on search tooling when the curriculum structure is already known.\n\n### Pitfall — File Truncation in `write_file`\n\nWhen batch-creating multiple large files (8KB+), occasionally a `write_file` call returns success but the file is truncated (e.g., 2,385 bytes instead of the expected ~11KB). The tool reports `bytes_written` in its result.\n\n**Strategy:**\n- After batch writes, scan the `bytes_written` values. Any file significantly smaller than siblings (e.g., \u003C 4KB when siblings are 7-12KB) is likely truncated.\n- For truncated files, rewrite with `write_file` using the full content.\n- Do NOT patch truncated files piecemeal — rewrite the whole file.\n\n**Observed variants (2026-08-28, glm model):** truncation is not the only failure shape.\n- **Silent path typo = junk root.** A single-char path typo (`obsidian_note` → `obsian_note`) made `write_file` create the full directory tree in a NEW junk root with `dirs_created: true` and `verified: true`. The corrupt file hid there while the real vault stayed clean. After any batch, `ls` the vault root for unexpected directories; delete junk roots explicitly (user-approved `rm -rf`).\n- **Garbage tail at full length.** One file arrived at expected size (7,005 bytes) with the last sections replaced by duplicated\u002Fgarbled fragments (repeated headings, `. Use the...` fragments). Size checks alone do not catch this — tail-check the final 10–15 lines of a sample of files, or grep for repeated heading strings.\n\n### Pitfall — Thai Text Corruption in YAML Frontmatter and Body Text\n\nAI models occasionally produce Latin-script garbage mid-Thai-string in YAML frontmatter values (e.g., `ปร. Walshาสตร์` instead of `ประวัติศาสตร์`). This happens with longer Thai strings in `strand:` and `source:` fields.\n\nWith the **glm-5.2 model** (zai provider), the corruption extends beyond YAML into **body text and wikilink display text** — and scales with strand size. Small strands (10 files) see ~4 sporadic instances; large strands (23+ files) can produce **20+ distinct corruption strings** across most files. Observed corruption types: `พ.ศ. ไ2๕51` in frontmatter, `การพูดแสดงคว Thai: มีอักษรผิด` inside a wikilink, Latin-mid-Thai insertions (`ควam` for `ความ`, `กlอน` for `กลอน`, `วrอง` for `วรรค`), and single-character word swaps (`พูก` for `พูด`, `สงบสุข` for `สงบใจ`).\n\n**Strategy — small strands (≤15 files):**\n- After batch file creation, scan for corruption: `grep -rn '[ไ-ฮ][A-Za-z]' *.md` catches Latin-script characters adjacent to Thai script.\n- After batch file creation, scan YAML frontmatter for non-Thai, non-ASCII garbage: `grep -rn 'strand:' *.md | grep -v 'ประวัติ\\|เศรษฐ\\|หน้าที่\\|ศาสนา\\|ภูมิ'`\n- Fix with `patch` — the corrupted string is always unique in the file.\n\n**Strategy — large strands (15+ files) — batch sed cleanup:**\nWhen corruption is too widespread for individual patches, run a batch `sed` cleanup via `execute_code`:\n```python\nfrom hermes_tools import terminal\nfixes = [(\"ควam\", \"ความ\"), (\"กlอน\", \"กลอน\"), (\"วrอง\", \"วรรค\"), ...]  # discovered via grep first\nfor old, new in fixes:\n    cmd = f'find \"{base}\" -name \"*.md\" -exec sed -i \\'s\u002F{old}\u002F{new}\u002Fg\\' {{}} \\\\;'\n    terminal(cmd)\n```\nRun `grep -rn '[ไ-ฮ][A-Za-z]' *.md` FIRST to discover all patterns, build the fixes list, apply sed, then verify with a final grep.\n\n**Pitfall — self-correction leakage and foreign-script slips in long English notes (proven 2026-09-08, 14\u002F20 files needed cleanup):** when authoring many dense knowledge notes in sequence, the drafting voice leaks into the final text, even in English-only domains. Four shapes seen:\n- Self-correction phrases left in body text: `... no: X`, `(corrected below)`, `(keep only documented)`, `(replace)`, `PLACEHOLDER`, and whole duplicated blocks (broken section + meta-comment line + fixed copy).\n- Foreign-script slips inside English text: CJK in an English phrase, Devanagari in romanized transliteration (एक in a Thai parenthetical), Vietnamese tone marks in Thai context.\n- Mermaid `timeline` lines with a stray trailing `|` (breaks rendering silently in Obsidian — happened twice).\n- Unbalanced quotes\u002Fbrackets in mermaid node labels.\n\n**Prevention rule:** compose final sentences only — if a correction thought occurs mid-sentence, rewrite the whole sentence; never write the wrong clause and append `... no: fix`.\n\n**Detection gate after every batch, before starting the next:** scan all files in `execute_code` for `[r\"\\.\\.\\.\\s*(no|keep|replace|corrected)\", r\"\\(corrected\", r\"\\(keep \", r\"\\(replace\", \"PLACEHOLDER\"]` plus CJK `[\\u4e00-\\u9fff]`, Devanagari `[\\u0900-\\u097f]`, Vietnamese `[\\u1e00-\\u1eff]`, a per-line quote\u002Fbracket parity scan, and a mermaid check (fence closed, valid diagram-type first line, no trailing `|` on timeline lines).\n\n**Repair rule:** fix artifacts with exact-string Python `s.replace` wrapped in `assert old in s` — the `patch` tool's fuzzy matcher can match the wrong duplicate occurrence and return `no_change` (\"already applied\") while the artifact is still on disk. Verify every text fix with grep, never with the tool's success flag.\n\n```\nBefore (flat):                    After (grouped):\nScience\u002F                          Science\u002F\n├── 05 Mechanics\u002F                 ├── Physics\u002F\n├── 06 Thermodynamics\u002F            │   ├── 05 Mechanics\u002F\n├── 07 Electricity\u002F               │   ├── 06 Thermodynamics\u002F\n├── 09 Chemical Foundations\u002F      │   └── ...\n└── ...                           ├── Chemistry\u002F\n                                  │   ├── 09 Chemical Foundations\u002F\n                                  │   └── ...\n                                  └── ...\n```\n\nThe user will explicitly ask for this: \"group them following by Physics Chem Bio Earth Com for me like create Physic folder and under it might have 05 Mechanics\". Execute the move in one batch, then rmdir old empty folders.\n\n## Step 9b — Progress Tracker Overviews (00_overview.md)\n\nAfter grouping topic notes into strand folders, create a `00_overview.md` in each strand folder. This serves as a **continuation guide** for other educator agents.\n\n### 00_overview.md Template\n\nEach file contains:\n1. **YAML frontmatter** with strand tag and `ipst` source\n2. **Overview paragraph** explaining the strand\n3. **Concept area table** — ALL concept areas in the strand, with grade band columns (ป.1–3, ป.4–6, ม.1–3, ม.4–6)\n4. **Progress tracker table** — Each concept area marked ✅ Done (with filename) or ❌ Pending\n5. **Completion percentage** — e.g., \"Completion: 4\u002F13 (31%)\"\n6. **Cross-links** to other strand overviews\n\n### Progress Tracker Table Format\n\n```markdown\n| # | Concept Area | Status | Files Created | Notes |\n|---|---|---|---|---|\n| 01 | Topic Name | ✅ Done | `01_Topic_Name.md` | |\n| 02 | Another Topic | ❌ Pending | — | Brief note on what's needed |\n```\n\n### Pitfall\n- **Don't create 00_overview.md before topic notes exist.** Create topic notes first, then the overview tracks what's done vs pending.\n- **Numbering convention varies by subject — CONFIRM the existing content root's convention before creating any file.** Two proven layouts in this vault: per-folder numbering restarting at 01 (Social Studies, Student Development, Health-PE) vs CONTINUOUS numbering across the whole subject (English Curriculum: strands hold 01–06, 07–12, 13–18, 19–24; Career & Technology: 01–22 across 5 strand folders). Derive it from the closest sibling content root, or ask. Creating files before the scheme is locked caused a 3-file rename + 7-link repair on 2026-08-28.\n\n## Step 9c — Continuing Work From Other Agents\n\nWhen a progress tracker shows ❌ Pending items, another educator agent can pick up the work. Before creating new files:\n\n1. **Read ALL existing files first** — understand the format, style, and depth the previous agent used\n2. **Check cross-links in existing files** — previous agents often planned filenames that don't match what was actually created (e.g., `02_Rights_and_Duties` in a link vs `04_Rights_Duties_and_Laws` as the actual file). Fix broken links before proceeding.\n3. **Watch for encoding errors** — AI models sometimes produce Chinese characters (e.g., 男性 instead of ชาย) mid-sentence in Thai text. Scan existing files for CJK: `grep -P '[\\x{4e00}-\\x{9fff}]' *.md`\n4. **Match the format exactly** — YAML frontmatter structure, section numbering style, table column count, terminology table placement\n5. **Update the progress tracker** — mark items ✅ Done with actual filenames, recalculate completion percentage\n\n**Pitfall — Cross-link filenames diverge from actual files.** When one agent plans the overview with placeholder wikilinks and another agent creates the actual files, the filenames often differ (planned `02_Rights_and_Duties` vs actual `04_Rights_Duties_and_Laws`). Always verify cross-links match real filenames after continuing work. Use `find` via `terminal` (NOT `search_files` — see Step 8 pitfall) to get the actual file list, then patch broken links.\n\n**Tip — `read_file` returns `similar_files` on path mismatch.** When `read_file` can't find the exact path (e.g., you guessed `Fundamental Mathematics - Overview.md` but the actual file is `00_Fundamental Mathematics - Overview.md`), the tool returns a `similar_files` array with the correct path. This is the fastest way to discover the actual filename when you know the approximate name but not the exact prefix\u002Fnumbering. Use it before falling back to `find` or `ls`.\n\n## Step 9c-2 — Continuing a Vault Built by a Non-Educator AI Agent (Foreign-Spec Continuation)\n\nWhen the vault was built by a different AI agent (Claude, Codex, etc.) that shipped its **own authoring spec file** at the vault root (commonly `CLAUDE.md`, `AGENTS.md`, `.cursorrules`), that file is the authority for the vault — NOT the educator SOUL's lesson format. This is a distinct case from Step 9c (continuing another *educator* agent's work via `00_overview.md` trackers).\n\n### Procedure\n\n1. **Read the foreign spec file first** — before reading any notes. It defines the vault's note model (reference vs lesson), quality gates, templates, and textbook mapping. Obey it; do not impose the SOUL's `lesson_type`\u002F`audience_level` frontmatter or hands-on-project format unless the spec calls for it.\n2. **Read the roadmap\u002Ftracker and trust its status field.** A roadmap row saying \"0 deep notes\" can be accurate even when N note files exist on disk — the spec's quality gate defines what counts as a \"deep note,\" and stubs that fail it are not counted. Do not \"fix\" the count by reclassifying stubs as done.\n3. **Diagnose stubs against the spec's quality gate, not against content volume.** A 4 KB stub with concepts, tables, and code can still fail a spec that requires a named-textbook `source:` in frontmatter. List the specific deltas between stub and spec (missing frontmatter fields, missing sections, wrong H1 format) — these become the upgrade work items.\n4. **Upgrade in place, do not recreate.** Overwrite stubs at their existing paths with upgraded content that closes each delta. Preserve the stub's good content (concepts, tables, code, cross-links); add what the spec requires around it.\n5. **Reconcile the working tree before starting.** Run `git diff HEAD` (not just `git status`) to distinguish real content changes from line-ending normalization noise — on Windows, `git status` can flag files as modified when only CRLF\u002FLF differs. If the diff is empty, the tree is clean; do not commit phantom changes.\n6. **For 15+ stub upgrades, use the build-spec-then-dispatch-4-subagents pattern from Step 9e (World Literature Build).** It works for any BOK vault. Write the KA overview yourself while the subagents run — it does not depend on the deep-note contents.\n7. **Batch one KA per session.** The user prefers one knowledge area per session: deep notes + KA overview + roadmap update + commit, then stop for review. Use `clarify` at the start to confirm which KA and the batching. After the user reviews and you flip 🟨 → ✅, stop and wait for the go-ahead before starting the next KA.\n\n**Pitfall — content-rich stubs that fail the spec's quality gate**\n\nA stub with real prose, tables, and code is easy to mistake for a finished deep note. The spec's quality gate is the only test that matters: if the spec requires `source: \"Textbook, Ch N\"` in frontmatter and the stub has only `tags: [...]`, the stub is a draft (🟨), not done (✅), regardless of how much content it carries. Expanding the BOK paragraph into prose yields \"a glossary, not a note\" — the named textbook is the content source; the BOK is only the coverage map.\n\nSee `references\u002Fstub-upgrade-build-spec-pattern.md` for the full procedure: diagnosing deltas, writing the build spec, dispatching 4 parallel subagents, the QA gate (including em-dash calibration against the gold-standard pilot), subagent sizing rules, and the **cross-vault bridge note pattern** (when a sibling vault like swe-knowledge already holds the deep SWEBOK content, write CS2023-framed bridge notes that point there instead of duplicating).\n\n## Step 9d — Completing a Strand from Partial Coverage\n\nWhen a strand is partially complete (e.g., 3\u002F14 files done) and the user asks to \"proceed the pending and also update existing with ม.4-6\", use this **two-phase completion workflow**:\n\n### Phase 1: Create All Pending Files\n\n1. **Read the overview** to identify which files are pending (❌ Pending in tracker)\n2. **Read 2-3 existing files** to match format, depth, and style exactly\n3. **Batch-create all pending files** using `write_file` — create files in parallel batches of 3-4\n4. **Match existing format:**\n   - YAML frontmatter with strand\u002Fcourse_codes\u002Ftags\n   - Grade band table (ป.1–3, ป.4–6, ม.1–3, ม.4–6)\n   - Numbered sections (## 1 | Grade Band, ## 2 | Topic, etc.)\n   - Thai-English terminology tables\n   - Real-world examples section\n   - Cross-links section\n\n### Phase 2: Update Existing Files\n\nFor files that exist but are missing upper secondary (ม.4-6) content:\n\n1. **Patch the grade band table** — add a new row for ม.4–6 with appropriate content summary\n2. **Add new section before cross-links** — insert \"## N | Upper Secondary (ม.4-6): [Topic]\" with advanced content\n3. **Update YAML tags** — add `upper-secondary` if not present\n4. **Renumber cross-links section** if needed (e.g., section 9 → section 10)\n\n### Example Patch Pattern\n\n```markdown\n## 9 | Upper Secondary (ม.4-6): Advanced Economics\n\n### Microeconomic Analysis\n\n| Concept | Thai | Description |\n|---|---|---|\n| **Elasticity** | ความยืดหยุ่น | Responsiveness to price changes |\n| **Marginal utility** | อรรถประโยชน์ส่วนเพิ่ม | Additional satisfaction from one more unit |\n```\n\n### Pitfalls\n\n- **Don't skip Phase 2.** Creating new files without updating existing ones leaves inconsistent depth across the strand.\n- **Read existing files FIRST.** The format (section numbering, table structure, terminology style) varies by strand. Match it exactly.\n- **Batch efficiently.** Create pending files in batches of 3-4 using multiple `write_file` calls in one response. Don't create one at a time.\n- **Update the overview tracker last.** After all files are created\u002Fupdated, mark all items ✅ Done and recalculate to 100%.\n\n## Step 9e — Learner Development Activities (กิจกรรมพัฒนาผู้เรียน)\n\nThe Thai Basic Education Core Curriculum has **8 academic learning areas**, plus a separate required curriculum component called **Learner Development Activities** (`กิจกรรมพัฒนาผู้เรียน`). Do not classify this as a ninth `กลุ่มสาระการเรียนรู้`, and do not omit it from a parent-child curriculum map.\n\n### Three Forms\n\n1. **Guidance and Counseling Activities** (`กิจกรรมแนะแนว`) — educational, career, personal, and social development; life skills, well-being, self-understanding, educational pathways, and career preparation.\n2. **Student Activities** (`กิจกรรมนักเรียน`) — Scouts\u002FGirl Guides (`ลูกเสือ-เนตรนารี`), Red Cross Youth (`ยุวกาชาด`), volunteer\u002Fstudent organizations, clubs, and student leadership. The school selects and schedules the available activity; Scouts are not a guaranteed standalone subject at every school.\n3. **Social and Public Benefit Activities** (`กิจกรรมเพื่อสังคมและสาธารณประโยชน์`) — service learning and community\u002Fpublic-interest work. It may be integrated into student activities according to the school's structure.\n\n### How to Model It in a BOK\n\nCreate a separate top-level `Learner Development Activities\u002F` area beside the 8 learning areas, not inside Social Studies, Health, or Career. Use a parent overview plus three child overviews. For parent-child communication, describe what students actually participate in, the developmental purpose, and the fact that implementation varies by school.\n\nSuggested progression:\n\n| Level | Guidance | Student activities | Public benefit |\n|---|---|---|---|\n| **ป.1–3** | Self-awareness, school adjustment, social skills, career awareness | Cooperation, rules, simple Scout\u002Fclub activities | Simple helping and school\u002Fcommunity care |\n| **ป.4–6** | Study habits, interests, basic career awareness | Scout skills, teamwork, responsibility, outdoor activities | Local service and environmental care |\n| **ม.1–3** | Self-exploration, interests\u002Faptitudes, upper-secondary or vocational pathways | Leadership, clubs, Scouts or alternative groups | Planned service projects |\n| **ม.4–6** | Higher-education planning, career preparation, personal\u002Fsocial well-being | Clubs, leadership, school projects; Scout continuation is school-dependent | Community engagement and service learning |\n\n### Verification Rules\n\n- Use the official curriculum phrase **`กิจกรรมพัฒนาผู้เรียน`**, not “extra subjects” or “survival class.”\n- Translate `ลูกเสือ` as **Scouts** and `เนตรนารี` as **Girl Guides**; describe practical survival skills as possible content, not the official identity of the component.\n- Do not infer a national fixed hour allocation from one school's timetable. The national framework defines the activity types; school curricula determine the detailed timetable and delivery.\n- Treat the number of guidance teachers as a school staffing arrangement, not a national curriculum requirement.\n- Distinguish **national framework** from **school implementation** in the note: label school-specific examples as examples.\n\nSee `references\u002Fthai-learner-development-activities.md` for the official-source map, terminology, grade progression, and evidence boundaries.\n\n### Proven Research and Placement Workflow\n\nFor this component, search the official OBEC curriculum hub and Guidance Development Group with SearXNG first, then read the selected official PDF or page with `mcp__searxng__web_url_read`. Use the search result only to locate the source: distinguish what the national document establishes from what a sample school's timetable demonstrates. If a query returns no results, vary the query rather than concluding that the activity is absent.\n\nPlace the BOK overview at `body-of-knowledge\u002FStudent Development Activities\u002F`, separate from academic subject BOKs. Keep detailed implementation or future topic notes in the corresponding non-BOK content root if the user later requests them. Do not put Scout or Guidance notes inside Social Studies merely because both concern citizenship or development; use cross-links instead.\n\n### World Literature Build (proven 2026-09-06, 22\u002F22 notes)\n\nBuilding a beyond-curriculum humanities domain (Philosophy 22\u002F22 2026-09-05, World Literature 22\u002F22 2026-09-06) follows one recipe:\n\n1. **Write a shared build spec into `Audit\u002F`** (e.g. `world-literature-build-spec-20260906.md`): full note template with exact section order, hard formatting rules (colons not em-dashes, mermaid label safety, wikilink discipline), a VERIFIED TARGET LIST of cross-vault links checked against disk before dispatch, per-topic briefs for all N notes, and the quality bar (8-15 KB). Children read ONLY the spec — it makes their work consistent.\n2. **Adapt the domain's natural format.** For literature, cherry-pick from the musical-note format the user points to (oralita_md musicals): About-the-Work Detail\u002FInfo table, act\u002Fpart-structured plot summary with a spoiler flag line, Key Passages blockquotes (EN + Thai rendering), era timeline Mermaid, Sources. Merge onto the Philosophy 8-section body.\n3. **Dispatch 4 parallel subagents (5-6 notes each), all in one `delegate_task` call, grouped** so they report together. Also write `00_overview.md` yourself while they run.\n4. **Pitfall — slow-model subagents stall before the first write.** On deepseek-class reasoning models the children may spend 10-15+ minutes exploring the vault and composing before any `write_file` hits disk (transcripts show only their last tool call). They are NOT hung. Steer each with: \"Write each note to disk IMMEDIATELY when complete, one write_file call per note. Do not compose all notes before writing the first.\" Files land within minutes after the steer.\n5. **QA gate:** Thai-Latin corruption grep, CJK grep, self-correction-trace grep (see the leakage pitfall under Thai corruption), em-dash-in-prose grep (calibrated: exclude frontmatter, blockquote citations, code blocks, and Related link descriptions — the user's approved AL pilot averages ~14.5 em-dash lines\u002Fnote in those structural contexts, so a blanket grep produces false positives), ASCII-box grep, frontmatter presence, section-completeness check (all 8 sections + Related + mermaid + opening quote), mermaid label safety scan, and a Python wikilink resolver (basenames + relpaths on disk, plus a whitelist for planned forward-contract filenames of domains not yet built).\n6. **Close the BOK contract:** patch the domain BOK (status line, content-root line, all tracker rows ❌→✅ with real filenames, completion count) and the parent index (status line, domain table row, build-status table, topic-count line). Mirror how the Philosophy BOK was closed (content root line format: `Philosophy\u002F` in the general-knowledge vault...).\n\n## Step 9f — Closing an Audit-Flagged Partial BOK Subject (Supplementary-Root Pattern)\n\nWhen a vault audit flags a subject 🟡 Partial because only a *supplementary* root exists (e.g., `English Skill\u002F` teaching-ordered notes) while the BOK's own curriculum strands have zero content notes, do NOT expand the supplementary root. Proven 2026-08-28 for English: created `English Curriculum\u002F` (28 files) to close the finding \"4-strand curriculum notes still absent\".\n\n1. **Read the audit finding and the BOK overview first.** The BOK's topic tables are the contract — build exactly one note per enumerated concept area (24 for English), not a list from memory.\n2. **Keep the supplementary root untouched** as a sibling content root; create a NEW root named after the subject (`English Curriculum\u002F`), one folder per strand.\n3. **Cross-link bidirectionally into the supplementary notes** (curriculum note ↔ skill deep-dive by FILE name). The two systems interlink instead of duplicating.\n4. **Decide the numbering scheme BEFORE the first write** — see the Step 9b numbering pitfall. Mirror the closest sibling content root.\n5. **Topic note shape:** YAML with strand + มาตรฐาน codes (อ1.1–อ4.2 for English), grade-band table (ป.1–3 → ม.4–6), Mermaid progression, Thai-speaker difficulty section, Thai terminology, cross-links. English subject → English text.\n6. **Write 00_overview.md trackers LAST**, then wire the BOK overview: a \"Curriculum Content Notes\" wikilink table under each strand section + strand-overview links in Related. NEVER reference content as inline-code paths — audits flag link-graph orphans (their finding N1); use path-qualified links for ambiguous basenames like `00_overview` (finding N2's own recommendation).\n7. **QA gate before reporting closure:** file count vs BOK concept-area count, size scan (3.9–7.3 KB per note here), Thai-Latin + CJK artifact greps, and a full wikilink resolution check — see `scripts\u002Fverify_vault_links.py`.\n\n**Pitfall — numbering drift mid-build:** creating files before locking the numbering plan forced a rename of 3 strand-3 files (19–21 → 13–18) and fixing 7 broken links on 2026-08-28. Lock the scheme first.\n\n## Step 10 — What Comes Next (Topic Note Filling)\n\nAfter the user approves the overview structure, they may ask to fill in the individual topic files behind each `[[wikilink]]`. This is handled by `educational-content-authoring` (see \"BOK Topic Note Filling\" workflow variant).\n\nKey points for the handoff:\n- **Topic notes go in a DIFFERENT vault path** than the BOK overviews. Example: overviews in `body-of-knowledge\u002FFundamental Mathematics\u002F`, full notes in `Mathematics\u002F`. **CRITICAL: The user corrected this explicitly** — do NOT put topic notes inside `body-of-knowledge\u002F`. Topic notes go in the main content folder (e.g., `F:\\obsidian_note\\general-knowledge\\Social Studies\\`, NOT `F:\\obsidian_note\\general-knowledge\\body-of-knowledge\\Social Studies\\`).\n- **Group topic notes by subject\u002Fstrand.** After creating topic notes, the user will ask to group them into subject folders matching the BOK strand structure. Example for Social Studies: `01 Religion\u002F`, `02 Civics\u002F`, `03 Economics\u002F`, `04 History\u002F`, `05 Geography\u002F`. Move files with `mv` into subfolders, then `rmdir` empty old folders. The user explicitly requested this grouping.\n- **For spiral curriculum (ป.1-ม.3):** Each topic file covers all 3 grade bands with a progression table — don't split by grade.\n- **For linear curriculum (ม.4-ม.6):** Each topic file covers one year's content.\n- Use `delegate_task` with parallel subagents to research topic batches (split into 2 batches of ~10 topics each).\n- **Confirm style before creating:** The user may want swe-knowledge style (YAML frontmatter with `source:`, hierarchical sections, cited, professional) or English Skill style (concise, table-heavy, Thai terminology). Ask explicitly.\n- **Always verify and fix after grouping.** Run `sed` to fix double-backslash LaTeX issues. Check Mermaid syntax. Replace ASCII diagrams with Mermaid. Then verify the final file count and structure.\n- **User may expand scope from ป.1-ม.3 to ม.6.** Initially create topic notes for ป.1-ม.3 (fundamental level). The user will often later ask to expand overviews to include ม.4-ม.6. When this happens, update the concept area tables to add a ม.4–6 column and update progress trackers. Topic notes for ม.4-ม.6 can be created later — the overview just needs the grade band column.\n- **User may request post-fix passes:** After file creation, the user often requests: (a) replacing ASCII diagrams with Mermaid, (b) fixing LaTeX rendering errors, (c) replacing specific diagrams with better Mermaid types (e.g., `gitGraph` for number lines, `quadrantChart` for quadrants). Budget time for this — it's part of the workflow, not a surprise.\n- **User may reorganize folder structure mid-project.** A common pattern: start with flat topic files in one folder, then the user asks to split into subfolders by level (e.g., `Fundamental\u002F` for ป.1–ม.3, `Advance\u002F` for ม.4–ม.6). When this happens, create the subfolders, `mv` existing files in one batch, then create new files in the new subfolder. Wikilinks across subfolders resolve automatically in Obsidian (no path changes needed). Confirm the split structure with the user before moving — flat vs. by-grade-band is a user preference.\n- **Batch-create new topic notes with `execute_code` + `hermes_tools.write_file`.** When creating 10+ files of consistent format, use `execute_code` with a Python script that builds the full file content as Python string variables (one per file) and calls `hermes_tools.write_file` for each. Proven: 23 files in ~12 runs (2 files per run), ~3 seconds per run. Each file follows the same 6-section template (YAML → coverage table → terminology → concepts → problems → cross-links). This is much more reliable than `delegate_task` for content you can produce from model knowledge — no research subagent needed, no context pollution from subagent transcripts.\n**Subject-folder-per-topic pattern (user preference, proven 2026-07-30).** For multi-subject content vaults (Science with Physics\u002FChem\u002FBio\u002FEarthSci\u002FCS), the user prefers **one subfolder per subject** mirroring the Social Studies pattern (`01 Religion\u002F`, `02 Civics\u002F`). The folder name uses the subject English name (or close to it — the user once wrote `physic\u002F` for `physics\u002F`). Layout (COMPLETE as of 2026-07-30, 85 advanced notes):\n```text\nScience\u002FAdvance\u002F\n├── physic\u002F            ← 23 notes, ม.4-ม.6 ว301-ว303\n├── Chemistry\u002F         ← 20 notes, ม.4-ม.6 ว311-ว313\n├── Biology\u002F           ← 20 notes, ม.4-ม.6 ว321-ว323\n├── Earth_Science\u002F     ← 10 notes, ว341 elective\n└── Computer_Science\u002F  ← 12 notes, ม.4-ม.6 ว331-ว333\n```\n  The BOK overviews continue to use **short wikilinks** (`[[01_Measurement_and_Scientific_Method]]`, NOT `[[Advance\u002Fphysic\u002F01_Measurement_and_Scientific_Method]]`) because Obsidian resolves wikilinks by filename. Long paths add visual noise without functional benefit. **Pitfall:** When patching BOK overview wikilinks in Phase 3, the first `execute_code` attempt's `hermes_tools.write_file` calls can silently fail due to the dedup cache (the file was read earlier in the session). Symptom: script exits 0, but `grep` shows the original short links unchanged. **Fix:** use direct Python `open()\u002Fread()\u002Fwrite()` in `execute_code` for batch wikilink patching — that bypasses the dedup cache. Always verify with `grep -c 'Fundamental\u002F'` (or `Advance\u002F`) afterward.\n- **Fundamental\u002FAdvance split may NOT be subject-grouped.** When the user says \"the fundamental can be there, in case student want to read up to ม3, so not restructuring\" — keep fundamental as a single flat folder of integrated content (covering all subjects) for the integrated ป.1-ม.3 curriculum. Only the **Advance** folder needs subject grouping. The BOK `00_Fundamental Science - Overview.md` links to flat `[[Fundamental\u002F01_Scientific_Method]]`-style paths and the user keeps the flat folder (don't split it), but those path-prefixed links are broken — no root-level `Fundamental\u002F` exists. Keep the folders as the user said; when remediation runs, convert the links to bare basenames `[[01_Scientific_Method]]`.\n- **For 20+ advanced science notes, use 3 parallel `delegate_task` subagents instead of `execute_code`.** When creating 20+ notes that require accurate physics\u002Fchemistry\u002Fbiology content (not just template-filling from model knowledge of simple math), dispatch 3 parallel subagents via `delegate_task` with `tasks` array. Each subagent gets 6-8 topics, the 5-section template, and a topic content guide. Proven across ALL 5 subjects (2026-07-30): Physics (23 notes ว301-ว303, ~3 min), Chemistry (20 notes ว311-ว313), Biology (20 notes ว321-ว323), Earth Science (10 notes ว341, 2 subagents), Computer Science (12 notes ว331-ว333, 2 subagents). For 10-note batches use 2 subagents (5+5) not 3. See `references\u002Fadvanced-science-note-pattern.md` for the complete template, all 5 subject topic distributions, subagent sizing rules, and the English-narrative-with-Thai-in-parens style guide.\n- **Reorganize vault into Fundamental\u002FAdvance folders when expanding from ป.1-ม.3 to ม.4-ม.6.** When the user asks to expand a subject from fundamental (ป.1-ม.3) to advanced (ม.4-ม.6) coverage, split the flat folder into `Fundamental\u002F` and `Advance\u002F` subfolders (mirroring the Mathematics structure). Move existing notes with `mv` in one batch, then create new advanced notes in `Advance\u002F`. After moving, **fix BOK overview wikilinks to bare basenames** (`[[01_Topic]]`) or full subject-rooted paths (`[[Science\u002FFundamental\u002F01_Topic]]`). Path prefixes like `[[Fundamental\u002F01_Topic]]` do NOT resolve from BOK overviews or other subjects' notes: the vault has no root-level `Fundamental\u002F` or `Advance\u002F` folder, so both relative-to-note and vault-root resolution fail (link-checker verified). Use `execute_code` with direct Python file I\u002FO (not `hermes_tools.write_file`) for batch wikilink patching — the dedup cache can block writes to files read earlier in the session. See `references\u002Fadvanced-science-note-pattern.md` for the batch patching script and verification pattern.\n\n## Pitfalls\n\n### Structural\n- **Don't cram multiple subjects into one file** — one subject per folder, one overview per folder\n- **Don't skip the mermaid diagram** — it's the most valuable part for showing relationships\n- **Don't use vague folder names** — \"Science\" is bad, \"Fundamental Science\" or \"Physics\" is good\n- **Don't forget course codes** — they're essential for curriculum alignment\n- **Don't mix levels in one overview** — keep ป.1-ม.3 separate from ม.4-ม.6\n- **Don't create topic files before the overview is approved** — overview first, then depth\n- **Don't confuse spiral vs linear curriculum** — if each grade band revisits the SAME concepts (just deeper), use concept-area organization. If each year covers DIFFERENT topics, use year-based organization.\n- **Choose the right language for each BOK.** Thai subject (ภาษาไทย) → write in Thai. English subject (ภาษาอังกฤษ) → write in English (even for Thai students — the user corrected this explicitly). Math-science → English with Thai terminology as needed. This is NOT optional — the user will ask you to rewrite if wrong.\n## Step 11 — Non-Academic BOK Subjects (Arts, Health & PE, Career & Technology)\n\nWhen the user's BOK covers ALL 8 Thai basic education learning areas, the remaining 3 (Arts, Health & PE, Career & Technology) need overview files too. These use the **same academic format** as other subjects — NOT a simplified parent-focused format.\n\n### When to Use\n\n- User has built BOKs for core subjects (Math, Science, Thai, English, Social Studies) and asks \"what else?\"\n- User says the \"out of scope\" subjects should be included\n- User wants comprehensive curriculum coverage\n\n### Format — Same as Academic Subjects\n\n**CRITICAL: The user explicitly rejected a \"parent-focused\" format with \"What You Can Do at Home\" columns.** They want the SAME format as Mathematics, Science, etc. — concept area tables, grade band progression, Thai terminology, cross-links, Mermaid diagrams. The PURPOSE may be parent-child communication, but the FORMAT must be academic.\n\nEach overview file should have:\n\n1. **YAML frontmatter** with tags, source, duration\n2. **Overview paragraph** explaining the subject\n3. **Domains\u002FStrands summary table** — what the subject covers\n4. **Concept area tables** — one per domain\u002Fstrand, with grade band columns (ป.1–3, ป.4–6, ม.1–3, ม.4–6)\n5. **Grade band progression table** — summary across all domains\n6. **Key Thai terminology table** — Thai → English\n7. **Mermaid diagram** — showing domain interconnections\n8. **Cross-links** — to related subjects and back to master overview\n\n### Covered Subjects\n\n| Subject | Domains | Notes |\n|---|---|---|\n| **Arts (ศิลปะ)** | Visual Arts, Music, Performing Arts | 3 domains, ~15 concept areas |\n| **Health & PE (สุขศึกษาและพลศึกษา)** | Health Education, Physical Education | 2 strands, ~14 concept areas |\n| **Career & Technology (การงานอาชีพ)** | Home Economics, Agriculture, Crafts, Career, Technology | 5 strands, ~22 concept areas |\n\n### Proven Career and Technology Filling Pattern\n\nWhen filling the existing Career and Technology overview, preserve its actual wikilinked topic list and use a Social Studies-style content root outside `body-of-knowledge`. The proven layout is:\n\n```text\nwork-careers-technology\u002F\n├── 01 Home Economics\u002F\n│   ├── 00_overview.md\n│   └── 01-04 topic notes\n├── 02 Agriculture\u002F\n│   ├── 00_overview.md\n│   └── 05-09 topic notes\n├── 03 Crafts and Industry\u002F\n│   ├── 00_overview.md\n│   └── 10-13 topic notes\n├── 04 Career Education\u002F\n│   ├── 00_overview.md\n│   └── 14-17 topic notes\n└── 05 Technology\u002F\n    ├── 00_overview.md\n    └── 18-22 topic notes\n```\n\nFor the current Thai Career and Technology overview, this produces 5 strand overviews and 22 topic notes. Do not invent additional topics merely because a parent overview says \"~25\" when only 22 concrete wikilinks exist. Preserve the existing numbering across strand folders, use `00_overview.md` progress trackers, and create the detailed notes in the separate `work-careers-technology` root rather than under `body-of-knowledge`.\n\nEach strand overview should include: YAML frontmatter with OBEC source and strand, a concept-area table, four grade bands, a Mermaid progression diagram, a progress tracker, related links, and sources. Each topic note should include: English-first narrative with Thai terms in parentheses, grade-band breakdown, concept or process tables, safety\u002Fethics where relevant, one hands-on project, Thai terminology, Mermaid flowchart, cross-links, and authoritative sources.\n\nFor source research, use the OBEC Basic Education Core Curriculum as the curriculum anchor. Use IPST Computing Science and technology pages for the Technology strand, then add authoritative sector sources where the topic needs current safety, health, labour, agriculture, or information-literacy guidance. A search result URL and source citation can be retained when full page extraction is unavailable; do not let a source-fetch issue block creation when the curriculum structure is already verified.\n\nSee `references\u002Fcareer-technology-topic-pattern.md` for the complete topic inventory, file layout, note template, source map, and verification checklist.\n\nSee `references\u002Fcareer-path-overlay-pattern.md` for the career-path overlay note pattern: creating senior-level application notes that layer on top of existing BOK foundations (SWEBOK, PMBOK, BABOK) without duplicating them. Proven for Senior SWE Technical Ownership (7 files, 56.6 KB). Includes folder structure, topic note template, BOK anchoring table, and proven file sizes.\n\n### Pitfalls\n\n- **Don't use parent-focused columns** (\"What Your Child Learns\", \"What You Can Do at Home\"). The user wants standard academic tables with concept areas and grade bands.\n- **Career and Technology is a Social Studies-style exception to the integrated-subject rule.** Organize it into five strand folders with one `00_overview.md` and numbered topic notes per strand. Do not create an additional hierarchy beneath those strand folders unless the user explicitly requests it.\n- **Don't split into sub-overviews.** Arts, Health, and Career are integrated subjects — one overview per subject is sufficient.\n- **Don't skip concept area tables.** Even though these aren't exam-focused, they still need structured topic breakdowns.\n- **Language:** Write in English with Thai terminology where needed. Only Thai language subject (ภาษาไทย) must be written in Thai.\n\n- **Cross-links in sub-overviews** use relative wikilinks: `[[01_Physics - Overview|Physics]]` for main overviews, `[[05 Mechanics|Mechanics]]` for sub-categories. For cross-BOK links, use the full filename: `[[03_Biology - Overview|Biology]]`.\n\n### Diagram Formatting (CRITICAL — user preference)\n- **PREFER MERMAID OVER ASCII.** The user wants Mermaid diagrams in Obsidian notes, not ASCII box-drawing. Replace `├──`\u002F`└──` trees, hand-drawn number lines, and box-drawing with proper Mermaid diagrams. Key patterns from this session:\n  - **Factor trees** → `flowchart TD` with `A[\"84\"] --> B[\"2\"]` style arrows\n  - **Number lines** → `gitGraph` with `commit id: \"-3\"` nodes (use `type: HIGHLIGHT` for zero\u002Fellipsis, `\"...\"` for terminal ellipses)\n  - **Real number hierarchy** → `flowchart TD` tree with subgraphs (ℕ→ℤ→ℚ→ℝ, irrationals as sibling)\n  - **Quadrant diagrams** → `quadrantChart` with `quadrant-1` through `quadrant-4` (hyphenated numbers — NOT `quadrant I` or `quadrant \"Q I\"` — those produce syntax errors). Use `[nl]` in labels for newlines. **CRITICAL:** y-axis direction in Mermaid quadrantChart is `y-axis \"bottom-label\" --> \"top-label\"`. So for standard Cartesian (positive-y up): `y-axis \"y (negative ↓)\" --> \"y (positive ↑)\"`. The first quoted string goes at the bottom, second at the top. Also: `x-axis \"left-label\" --> \"right-label\"`. Failure to get y-axis direction right is the #1 user-reported bug.\n  - **Venn diagrams** → `flowchart TD` with nested `subgraph` blocks and `-->` arrows to show overlap regions\n  - **Probability scales** → `flowchart LR` with chained `-->` nodes\n- **Check Mermaid syntax against official docs (mermaid.js.org).** For newer chart types (`quadrantChart`, `gitGraph`), verify syntax matches current spec. The user catches syntax errors.\n- **ASCII is acceptable for simple alignments.** Use plain code blocks (` ``` `) for: column arithmetic, decimal addition alignments, and short text diagrams where Mermaid would be overkill.\n\n### LaTeX \u002F Math Formatting (CRITICAL — Obsidian rendering)\n- **`write_file` behavior:** The `write_file` tool writes content literally. Single backslashes in source (`\\frac`) → single backslashes in file → correct rendering. Double backslashes in source (`\\\\frac`) → literal `\\\\frac` on disk → broken rendering as \"f ac a b\". **Rule: always use single backslashes in LaTeX commands.** `\\frac`, `\\times`, `\\div`, `\\sqrt`, `\\boxed`, `\\mathbf`, `\\text`, `\\begin{aligned}`, `\\end{aligned}`.\n- **Formula-in-table pattern (user-preferred):** Use `$$...$$` inside table cells for display math formulas. This is the user's established format for Key Formulas sections: `| **Concept** | $$formula$$ |`. Example: `| **Mass-energy** | $$E = mc^2$$ |`. This avoids the fragility of inline math and produces clean, readable formula tables. The user applied this pattern to Modern Physics themselves and it works reliably.\n- **Chemical formulas:** Use `$$\\ce{CH4}$$` for chemical notation in Obsidian (MathJax mhchem extension — standard in Obsidian). For functional groups: `$$\\ce{-OH}$$`, `$$\\ce{C=C}$$`, `$$\\ce{CH3COOH}$$`.\n- **When LaTeX fails, simplify to plain text.** Prefer readability over fragile formatting. Fallbacks:\n  - `a\u002Fb` instead of `\\frac{a}{b}`\n  - `(x₁+x₂)\u002F2` instead of `\\frac{x₁+x₂}{2}`\n  - `m = (y₂−y₁)\u002F(x₂−x₁)` instead of `m = \\frac{y₂-y₁}{x₂-x₁}`\n  - `√[(x₂−x₁)² + (y₂−y₁)²]` instead of `\\sqrt{(x₂-x₁)^2+(y₂-y₁)^2}`\n- **`\\\\` (double backslash) is ONLY correct** as LaTeX line breaks inside `{aligned}`, `{array}`, or `{cases}`. Everywhere else: single backslash.\n- **Batch-fix sed:** Run ONCE on newly created files. Verify with `grep -c '\\\\\\\\\\\\\\\\' *.md | grep -v ':0$'` first. Only apply to files that actually contain `\\\\`. Fix remaining with `patch` — do NOT re-run sed iteratively (corrupts already-correct content).\n- **⚠️ Greek letter corruption in `patch`:** When using `patch` to insert LaTeX with Greek letters (\\rho, \\lambda, \\mu) via `execute_code`, line-wrapping in the patch body can insert newlines between the backslash and the letter (e.g., `\\` on one line, `ho` on the next for \\rho). This produces visible corruption. **Mitigation:** (1) Keep formula lines short (\u003C 60 chars) in patch strings, (2) After any patch with Greek letters, read back the affected lines to verify, (3) Prefer `write_file` for formula-heavy sections where line-wrapping risk is high. If corruption occurs, re-patch with shorter lines or rewrite the section.\n- **Avoid `\\left`, `\\right`, `\\middle`** — fragile in Obsidian MathJax, use plain brackets instead.\n\n### Workflow\n- **Two-pass pattern:** When research is slow (2+ min), create initial overviews from your knowledge FIRST, then update when research returns. The user gets something to review immediately. For Thai curriculum, do not assume that search failure means the official source is unavailable: open the governing body's landing page, inspect its direct PDF\u002FHTML links, and use direct retrieval when needed. For IPST Computing Science, start at `https:\u002F\u002Fwww.ipst.ac.th\u002Fcs`, which exposes the official course descriptions, teacher guide, textbooks, and grade resources. Use Wikipedia only as contextual fallback, never as primary evidence for curriculum status. If an extraction backend reports search-only, switch retrieval method rather than repeating the same search; record what the official source actually supports.\n- **`write_file` requires a prior `read_file` on the SAME file before overwriting.** Reading a file via `terminal` (`cat`, `head`, `tail`) or seeing its content in another tool's output does NOT satisfy the guard — `write_file` returns `stale_write_blocked: true` and leaves the file untouched. Before overwriting any existing `.md` file, call `read_file` on it (every page if it needs offset\u002Flimit) in the same task, then retry `write_file`. For targeted edits to a file you have not `read_file`-loaded, use `patch` instead — it does not require a prior full read.\n- **Book checklists come after overviews:** Don't skip the book checklist step — the user uses it to find books for future summarizing.\n- **Use `delegate_task` for research:** Curriculum research (topic lists, course codes, grade bands) is reasoning-heavy and benefits from subagent isolation.\n- **For topic-filling (Step 9):** Use 2 parallel subagents to research ~10 topics each. Write files in swe-knowledge style (detailed, source-cited) for math-sci content. Put topic files in the user's specified destination (e.g., `Mathematics\u002F`, NOT inside `body-of-knowledge\u002F`). Confirm format preference BEFORE writing — the user may want swe-knowledge style (YAML frontmatter with source, hierarchical, professional) or English Skill style (concise, table-heavy, Thai terminology).\n\n## References\n\n- See `references\u002Fcomputing-and-science-bok-frameworks.md` for the professional-vs-curriculum-vs-taxonomy decision table, CS2023 mapping pattern, science-framework choices, and recommended build order.\n- Thai IPST curriculum: [ipst.ac.th](https:\u002F\u002Fwww.ipst.ac.th) (free textbooks)\n- Thai course code system: ค=Math, ว=Science, ท=Thai Language, อ=English, ส=Social Studies; 1xx=primary, 2xx=lower secondary, 3xx=upper secondary\n- See `references\u002Fthai-curriculum-structure.md` for detailed Thai curriculum cross-reference with AP\u002FIB\u002FA-Level\n- See `references\u002Fthai-career-technology-curriculum-research.md` for the official-source-first workflow, the Order 921\u002F2561 status correction, grade-band progression, applied-topic classification, safety source bank, and blueprint quality gates for Crafts and Industry and Career Education topics.\n- See `references\u002Fthai-book-recommendations.md` for book recommendations, publishers, and exam prep details\n- See `references\u002Fipst-math-concepts-01-10.md` for pre-researched IPST Fundamental Math curriculum: grade-band breakdowns, Thai terminology tables, key formulas, worked examples, and cross-links for concepts 01-10 (Numbers through Algebraic Thinking). Saves re-researching the same 10 concept areas.\n- See `references\u002Fipst-math-concepts-11-20.md` for the companion reference covering concepts 11-20 (Basic Algebra through Mathematical Processes): includes all formula references (Pythagorean, distance\u002Fslope, volume\u002Fsurface area, mean\u002FSD), probability rules, set operations, Polya's problem-solving steps, and integration matrix showing how Mathematical Processes connects to every strand.\n- See `references\u002Flatex-formatting-obsidian.md` for LaTeX formatting rules: single vs double backslash behavior, `write_file` literal writing, batch sed fix commands, fallback-to-plain-text patterns, and common LaTeX pitfalls in Obsidian MathJax.\n- See `references\u002Flatex-formula-table-pattern.md` for the LaTeX formula-in-table pattern: using `$$...$$` inside table cells for Key Formulas sections, correct syntax examples for physics\u002Fchemistry\u002Fmath, and common formula types with their LaTeX representations.\n\n- See `references\u002Fmermaid-patterns-for-obsidian-math.md` for tested Mermaid diagram patterns: factor trees (flowchart), number lines (gitGraph), number hierarchies (flowchart tree), Venn diagrams (subgraphs), probability scales (flowchart LR), and quadrant charts (quadrantChart).\n- See `references\u002Fthai-language-curriculum.md` for the Thai language BOK structure: 5 strands (การอ่าน, การเขียน, การฟังการดูและการพูด, หลักการใช้ภาษาไทย, วรรณคดีและวรรณกรรม), grade bands (ป.1-ม.6), key literature works by level, and Thai language components. Use this when building a Thai language curriculum BOK.\n- See `references\u002Fthai-language-topic-note-pattern.md` for the fully-Thai topic note template (YAML, 6-section body, mermaid rules, batch creation via execute_code), strand-by-strand workflow for ~78 notes, content filter workaround, and completion tracker for all 5 strands. Use this when filling in ภาษาไทย topic notes.\n- See `references\u002Fthai-language-session-progress.md` for the current completion status of the ภาษาไทย vault (2\u002F5 strands done as of 2026-08-02), next session resume point, and session learnings (duplicate filename pitfall, SearXNG integration strategy).\n- See `references\u002Fthai-social-studies-curriculum.md` for the Social Studies BOK structure: 5 strands (ศาสนาฯ, หน้าที่พลเมืองฯ, เศรษฐศาสตร์, ประวัติศาสตร์, ภูมิศาสตร์), course codes (ส11101–ส33102), grade bands (ป.1-ม.6), and spiral model across all 12 years. Use this when building a Social Studies curriculum BOK.\n- See `references\u002Fthai-social-studies-topic-notes-pattern.md` for the Social Studies topic note creation pattern: 5 strands, YAML frontmatter with strand\u002Fcourse_codes, grade band tables, strand-specific content (Buddhist doctrine, government structure, economics, Thai history, geography), and example topic list\n- See `references\u002Fthai-social-studies-progress-tracker-pattern.md` for the Social Studies progress tracker pattern: 00_overview.md template with completion tracking, folder structure with independent numbering, and continuation guide for other educator agents\n- See `references\u002Fstrand-completion-workflow.md` for the proven two-phase workflow when completing a partially-done strand (Phase 1: create pending files, Phase 2: add ม.4-6 to existing files, Phase 3: update tracker). Includes quality checks (truncation, YAML corruption, cross-link verification) and proven strand size reference table.\n- See `references\u002Fadvanced-science-note-pattern.md` for the advanced science note template (5-section format for ม.4-ม.6), IPST Physics topic distribution (verified via SearXNG → smartmathpro.com), parallel subagent batching pattern for 20+ notes, IPST Chemistry\u002FBiology\u002FEarth Science topic distributions, and wikilink path-prefix update script for Fundamental\u002FAdvance folder reorganization.\n- See `references\u002Fthai-history-strand-reference.md` for the History strand (สาระที่ 4) curriculum: 15 concept areas, seven มหาราช kings, key historical dates (พ.ศ.\u002FCE), calendar conversion formula, Mermaid patterns for timelines\u002Fdynasties, and cross-strand connections.\n- See `references\u002Fthai-geography-strand-reference.md` for the Geography strand (สาระที่ 5) curriculum: 14 concept areas, six regions of Thailand, key geographic features, three seasons, climate change impacts, Mermaid patterns for geographic processes, and cross-strand connections.\n- See `references\u002Fthai-english-curriculum.md` for the English BOK structure: 4 strands, grade bands with hour allocations, language choice rule (English overviews must be in English — user correction from session), exam structure (O-NET, A-Level, TOEFL, IELTS, TOEIC, CU-TEP, TU-GET).\n- See `references\u002Fvault-link-verification.md` for the post-creation QA gate: reusable wikilink resolution checker (execute_code, handles `[[note\\|alias]]` table escapes and vault-root-relative path links), artifact grep set, false-positive notes, and the 2026-08-28 English Curriculum closure log (28 files, 249 links).\n- See `references\u002Fstub-upgrade-build-spec-pattern.md` for the stub-to-deep-note upgrade procedure when continuing a vault built by a non-educator AI agent: diagnosing deltas against the spec's quality gate, the 5-delta upgrade (source frontmatter, H1 renumbering, Source blockquote, numbered sections, Key Takeaways + Related), the build-spec-then-dispatch-4-subagents pattern, the QA gate with em-dash calibration, and subagent sizing rules.\n- See `references\u002Fthai-math-strand-overview-pattern.md` for the proven strand sub-overview template used across 10 Mathematics files: per-sub-strand structure with grade bands, Thai terminology, misconceptions, real-life connections, exam relevance, and IPST references. Copy this when creating strand-level sub-overviews for any subject.\n- **Thai language domain — write overviews in Thai.** When the curriculum IS Thai language (ภาษาไทย), write all overviews and topic files in Thai. When the curriculum is math-sci for Thai students, write in English with Thai terminology as needed.\n- **English language domain — write overviews in English.** When the curriculum IS English (ภาษาอังกฤษ), write all overviews in English — even when the user is Thai and the audience is Thai students. The user corrected this explicitly. Thai language overviews = Thai. English language overviews = English. Math-sci = English with Thai terminology as needed.\n- **Cross-vault format adaptation (proven 2026-08-02).** When the user points to an existing vault format (e.g., `oralita_md\u002Fmusical\u002F`) and says \"adapt to this subject,\" study the source format's structure — overview files, individual entry notes, detail tables, cross-references — then map each element to the target domain. The musical format (era overview + song note with lyric-translation-detail table) mapped cleanly to literature (era overview + work note with classical-passage-modern-Thai-detail table). This technique produces richer hierarchical structures than flat numbered files for content that has natural groupings (by era, by author, by artist). The user explicitly validated this approach: \"i think it makesense to represent this way, what do you think.\"\n","# Curriculum-to-Vault Authoring\n\nCreate Obsidian vault structures that map educational curricula into organized Body of Knowledge (BOK) hierarchies. Used when building knowledge reference vaults from scratch — not for filling gaps in existing vaults (use `educational-content-authoring` for that).\n\n## When to Use\n\n- User wants to create a new BOK structure in an Obsidian vault\n- Mapping a curriculum (Thai, international, or custom) into topic-organized notes\n- Building overview\u002Findex files for a knowledge domain\n- Organizing subjects by concept area, course code, or grade level\n\n## Prerequisites\n\n- Target vault path confirmed\n- Scope clarified: level (primary\u002Fsecondary\u002Funiversity), subjects, depth\n- Format reference if user has an existing vault pattern\n\n## Step 1 — Clarify Scope\n\nAsk the user:\n1. **Level** — Primary, secondary, university, or mixed?\n2. **Subjects** — Which subjects to include?\n3. **Source** — Official curriculum (IPST, AP, IB, A-Level) or custom?\n- **Goal** — Personal reference, curriculum map, teaching resource, or **parent-child communication tool** (parents tracking what their child learns at school to support learning at home)? The purpose shapes the overview style: exam-focused (formulas, test weights) vs parent-focused (\\\"What Your Child Learns\\\" tables, home activity suggestions).\n\n## Step 2 — Research the Curriculum\n\nUse web search or delegation to find:\n- Official course codes (e.g., Thai ค301, ว301)\n- Topic distribution by year\u002Fsemester\n- Governing body standards (e.g., สสวท.\u002FIPST for math-science, สพฐ.\u002FOBEC for Thai language and other subjects)\n- International equivalents if needed\n\n### Career & Technology \u002F Home Economics and Agriculture research pattern\n\nFor Career & Technology requests (การงานอาชีพ), especially Home Economics and Agriculture, treat the national curriculum as a **standards umbrella**, not as a guaranteed chapter list. The requested applied topics may be school-level units or useful concept clusters rather than headings that appear verbatim in the national document.\n\n1. **Anchor the research in the exact document version.** Start with the OBEC curriculum index and the official Career & Technology indicator document. Record whether the source is the legacy 2551 guide, a 2560 revision, or a school curriculum derived from it. Do not silently mix old `การงานอาชีพและเทคโนโลยี` strand names with post-2560 subject arrangements.\n2. **Separate three claims in the note:** (a) `National-standard alignment`, (b) `Suggested school-unit progression`, and (c) `Extension \u002F practical knowledge`. This prevents an inferred sequence such as “cooking in ป.3” from being presented as an official nationwide placement.\n3. **Map applied topics to broad outcomes:** work process (กระบวนการทำงาน), management (ทักษะการจัดการ), problem solving (การแก้ปัญหา), collaboration (การทำงานร่วมกัน), safe tool\u002Fmaterial use (การใช้วัสดุ อุปกรณ์ และเครื่องมืออย่างปลอดภัย), resource and environmental responsibility (การใช้พลังงาน ทรัพยากร และสิ่งแวดล้อม), and career orientation (การอาชีพ). Verify any `ง 1.1` \u002F `ง 2.1` indicator number against the cited document and grade before quoting it.\n4. **Use the four requested bands as a spiral progression:** ป.1–3 = self-help, recognition, routines, and supervised tools; ป.4–6 = repeatable procedures, measurement, planning, hygiene, and teamwork; ม.1–3 = analysis, troubleshooting, resource management, and career awareness; ม.4–6 = specialization, quality control, costing, sustainability, entrepreneurship, and evidence-based decisions. This is a blueprinting model, not a claim that every school allocates every topic identically.\n5. **Cross-link rather than overclaim.** Nutrition connects to Health (สุขศึกษา), child development connects to Health and family\u002Flife skills, cultivation and animal husbandry connect to Science, soil\u002Fwater to Earth\u002Fenvironment, and food processing to health, chemistry, and entrepreneurship. Keep the Career & Technology alignment explicit while labeling the cross-curricular support.\n6. **Source hierarchy:** use OBEC\u002FMOE for standards; Thai government technical agencies for practice (กรมวิชาการเกษตร, กรมพัฒนาที่ดิน, กรมปศุสัตว์, อย.\u002Fกองอาหาร, กรมอนามัย); WHO\u002FUNICEF\u002FFAO for internationally recognized health, child-development, food-safety, and agriculture guidance; universities only as secondary explanatory sources. Put the direct URL beside each topic rather than a generic homepage alone.\n7. **Research efficiently and stop on evidence.** Batch a small number of high-value searches, select the authoritative result, and record its URL and what it supports. If a PDF is difficult to extract, use the official landing page, indexed metadata, or a second official HTML\u002FPDF representation; do not keep repeating the same query or infer exact wording from a corrupted extraction. Never let search-tool throttling turn into a loop.\n\nSee `references\u002Fthai-career-technology-curriculum.md` for the nine-topic Home Economics\u002FAgriculture mapping, grade-band blueprint, terminology bank, and source directory. See `references\u002Fthai-career-technology-curriculum-research.md` for the broader curriculum-status distinction, technology-strand transition, workshop-safety hierarchy, and career\u002Ftechnical source workflow.\n\n**Pitfall:** Don't assume topic distribution — always verify against official curriculum docs. Thai curriculum uses \"ค\" prefix for math, \"ว\" prefix for science, \"ท\" for Thai language, with 1xx=primary, 2xx=lower secondary, 3xx=upper secondary. Math-science is governed by IPST (สสวท.); Thai language is governed by OBEC (สพฐ.).\n\n**Pitfall — source access and evidence:** Do not infer that a curriculum source is unavailable from a poor search result or one failed fetch. Open the official landing page, inspect its linked document titles and direct URLs, and use an alternate official HTML\u002FPDF representation when needed. For Thai Career & Technology, use the OBEC hub and Order 921\u002F2561 before relying on training knowledge or Wikipedia. Wikipedia is a contextual fallback, not primary evidence for curriculum status. Do not repeat identical failed searches; change the source or retrieval method and record what the source actually supports.\n\n## Step 2b — Professional, Scientific, and Cross-Vault BOK Frameworks\n\nUse this branch when the requested domain is broader than one national curriculum or when the user wants to organize Computer Science or science knowledge like SWEBOK.\n\n### Classify the source before choosing the vault structure\n\n| Source type | Examples | Use it for |\n|---|---|---|\n| **Professional BOK \u002F standard** | SWEBOK, SEBoK, CyBOK, DMBOK, BABOK, PMBOK | Practice-oriented knowledge areas, professional roles, processes, and competencies |\n| **Academic curriculum framework** | CS2023, Computer Engineering Curricula, IT curricula, Data Science competencies | University-level learning areas, knowledge units, and progression |\n| **Taxonomy \u002F classification** | ACM CCS, MSC2020, PhySH | Indexing, search, and grouping; not a complete learning sequence by itself |\n| **Core-concept \u002F literacy framework** | Vision and Change\u002FBioCore, Earth Science Literacy Principles | Scientific ideas, competencies, and big-picture understanding |\n\nDo not call every taxonomy or curriculum a formal BOK. Name the source type in the overview and explain how the vault adapts it.\n\n### Procedure\n\n1. **Inventory before creating a new vault or root.** Read the existing master indexes and relevant overviews, then list current folders and notes. On the user's `F:` vaults, use `terminal` with `find` for discovery because file-tool filename searches may return empty results on that drive.\n2. **Choose one structural spine.** Select the source with explicit knowledge areas or core concepts. Use a professional BOK for professional practice, a curriculum framework for academic Computer Science, a taxonomy for classification only, and a literacy framework for science understanding.\n3. **Build a mapping matrix before writing files:**\n\n   ```markdown\n   | Framework area | Existing note or folder | Reuse \u002F split \u002F create | Cross-BOK links |\n   |---|---|---|---|\n   ```\n\n   This exposes duplication and gaps before content creation.\n4. **Reuse existing content first.** Keep the BOK overview\u002Findex under `body-of-knowledge\u002F` and keep detailed topic notes in the established content root outside it, unless the user explicitly approves a separate vault. Link existing notes into the new spine instead of copying them.\n5. **For academic Computer Science, use the official CS2023 Body of Knowledge as the main spine.** Use the final report's Body of Knowledge and knowledge-model materials, and record the official URL in the overview. Model the hierarchy as `Knowledge Area → Knowledge Unit → Topic + learning outcomes`; preserve `CS Core`, `KA Core`, `Non-core`, and professional dispositions. Treat SWEBOK, SEBoK, CyBOK, and DMBOK as complementary professional overlays, not as replacements for CS2023 and not as one merged list. Preserve the distinction between the Thai upper-secondary `วิทยาการคำนวณ` overview and a university-level Computer Science BOK.\n6. **Choose vault boundaries before mapping content.** When the user wants low coupling, keep Computer Science, Data, Computer Engineering, and AI\u002FML as separate vaults, each with its own BOK overview, content root, projects, references, and version history. Give each topic one canonical home and connect vaults with stable external links or explicit bridge notes; do not duplicate full topic notes merely to make local links convenient.\n7. **For science, combine the domain framework with a learning progression.** A physics classification, chemistry degree guideline, biology core-concept framework, or Earth-science literacy framework may organize the domain, but it does not automatically define one universal curriculum. Label extensions and local sequencing as adaptations.\n7. **Research official sources narrowly.** Search the issuing association or governing body first, record the direct landing page or PDF URL, and use search snippets only for claims they literally state. If extraction is unavailable, use the official landing page or indexed metadata and narrow the claim; do not repeat identical failed retrievals or fill an unverified framework list from memory.\n8. **Verify the contract before reporting.** Compare the overview's area count and names with the authoritative source, resolve wikilinks against actual filenames, and mark each area as complete, mapped, partial, or pending. A framework overview is not evidence that all topic notes exist.\n\n### Reusable pitfalls\n\n- **Do not open a new Computer Science vault before the inventory and mapping matrix.** Existing computing-foundation notes may already cover most areas, and a new root can create duplicate authority.\n- **Do not present CS2023, MSC2020, ACM CCS, or PhySH as interchangeable BOKs.** Their roles differ: curriculum, classification, and professional knowledge require different overview language.\n- **Do not collapse SWEBOK into Computer Science.** Software engineering, Computer Science, Systems Engineering, cybersecurity, and data management overlap but answer different questions; connect them with wikilinks and overlays.\n- **Do not claim a science framework is an official national course sequence unless the source actually defines one.** Big ideas and professional guidelines need an explicit local progression when used for a vault.\n\nSee `references\u002Fcomputing-and-science-bok-frameworks.md` for the CS2023 knowledge-area map, existing-vault mapping pattern, framework decision table, and recommended build order.\n\n## Step 3 — Choose Organization Strategy\n\nThis is the most important structural decision:\n\n### Linear Progression (year-based)\nUse when each year covers **different topics**:\n```\nPhysics\u002F\n├── Physics - Overview.md\n├── ม4\u002F (Mechanics, Waves, Thermo)\n├── ม5\u002F (E&M, Optics)\n├── ม6\u002F (Modern Physics)\n```\n**Best for:** Upper secondary specialized subjects (ม.4-ม.6), university courses\n\n### Spiral Progression (concept-area-based)\nUse when **same concepts** appear at every level, just deeper:\n```\nFundamental Mathematics\u002F\n├── Fundamental Mathematics - Overview.md\n├── 01_Numbers_and_Numeration.md  (covers ป.1-ม.3 progression)\n├── 02_Fractions.md               (covers ป.1-ม.3 progression)\n```\n**Best for:** Primary\u002Flower secondary (ป.1-ม.3), integrated subjects. Note: Thai language and Social Studies both use spiral progression across all 12 years (ป.1-ม.6).\n\n**Pitfall:** Don't split spiral-curriculum subjects by grade band — you'll get 60 files with repeated content instead of 20 clean concept-area files. Use progression tables within each file to show grade-band depth.\n\n## Step 4 — Create Directory Structure\n\n```bash\nmkdir -p \"\u003Cvault>\u002Fbody-of-knowledge\u002F\u003CSubject>\"\n```\n\nOne folder per subject area. Each folder gets an overview file. Topic files go inside the same folder.\n\n## Step 5 — Write Overview Files\n\nEach overview file follows this template:\n\n```yaml\n---\ntags: [overview, \u003Csubject>, \u003Clevel>, \u003Ccurriculum-source>]\n---\n```\n\n### Required Sections\n\n1. **Header block** — Subject name, course codes, topic count, duration, source, leads-to links\n2. **What Is This?** — 2-3 paragraph explanation\n3. **Topic\u002FConcept Area Breakdown** — Numbered list with `[[wikilinks]]`, grouped by category\n4. **Progression Table** — Shows how topics distribute across years\u002Flevels\n5. **Prerequisites** — What's needed before each level\n6. **Mermaid Diagram** — Shows how topics connect (use `flowchart TD`)\n7. **Cross-links** — Connections to related subjects with `[[wikilinks]]`\n8. **Reading Paths** — Different routes through the material\n9. **Related** — Back-link to parent overview, forward links to child subjects\n\n### Format Patterns\n\n- YAML frontmatter with tags array\n- `> **bold key:**` for header metadata blocks\n- Tables for progression\u002Fcomparison\n- `[[Topic Name|→ Full Overview]]` for overview links\n- `[[Topic Name]]` for topic wikilinks\n- Mermaid `flowchart TD` for relationship diagrams\n- Emoji prefixes for visual category grouping (🔢 Math, ⚛️ Physics, etc.)\n\n## Step 6 — Write Top-Level Index\n\nThe `Body of Knowledge - Overview.md` is the master index:\n\n1. Summary table of all subject areas (name, course codes, topic count, focus)\n2. One section per subject with brief description and link to full overview\n3. Mermaid diagram showing how ALL subjects interconnect\n4. Reading paths for different tracks (engineering, medicine, etc.)\n5. Curriculum notes (governing body, course code system, textbook sources)\n6. Related links to other vault sections (e.g., English Skill)\n\n## Step 7 — Create Book Checklist\n\nAfter the BOK structure is complete, create a `checklist\u002F` folder with book recommendations:\n\n```\nchecklist\u002F\n├── Book Checklist - Overview.md      ← master index + publisher guide\n├── \u003CSubject> - Books.md              ← one per subject\n```\n\nEach subject file uses priority tiers:\n- 🔴 **Essential** — Must-have (IPST textbooks + primary reference)\n- 🟡 **Recommended** — Very useful supplement (Thai study books, exam prep)\n- 🟢 **Optional** — Deeper exploration (international textbooks)\n\nSections per file:\n1. **IPST Textbooks** — Official curriculum books (free PDFs at ipst.ac.th)\n2. **Thai Study Books** — สรุปเข้ม (MIS), ตะลุยโจทย์ (iQBook), พ.ก.ศึกษาศาสตร์ (แบบเรียนเร็ว)\n3. **International Textbooks** — Standard references (Giancoli → Halliday for physics, Zumdahl\u002FChang for chemistry, Campbell for biology, Stewart for calculus)\n4. **Exam Prep** — O-NET, A-Level, PAT, กสพท.\n5. **Famous Tutors** — Popular tutoring materials (ครูพี่ยม, ครูพี่วิเวียน, ครูพี่ลูกกอล์ฟ, OnDemand)\n\n**Research method:** Use `delegate_task` with 2 subagents running in parallel — one for comprehensive book research across all subjects, one for cross-referencing Thai publishers and exam-prep specific books. Each returns in 1-3 minutes while you create files. The research output should also be saved to `references\u002Fthai-book-recommendations.md` for future sessions. Include both Thai-language books and English international textbooks with their Thai translations where available (e.g., Campbell → ชีววิทยา แคมป์เบลล์).\n\n**Pitfall:** Don't skip IPST textbooks — they're the PRIMARY reference and free. Always list them as 🔴 Essential. International textbooks come as 🟡\u002F🟢 for deeper exploration. Don't forget to mention that Campbell is non-negotiable for กสพท. preparation.\n\n## Step 8 — Verify and Report\n\n- Check all files created: use `terminal` with `find \"\u003Cvault>\u002Fbody-of-knowledge\" -name \"*.md\" -type f | sort` instead of `search_files` (see pitfall below)\n- Check checklist created: same `find` pattern under `\u003Cvault>\u002Fchecklist`\n- Report total topic count and structure to user\n- Offer to dive deeper into any specific subject\n\n> **⚠️ Pitfall — `search_files` silently returns 0 on F:\\ drives for `target='files'`:** When the vault is on a non-C: drive (F:\\), `search_files(target='files', pattern='*.md', path='F:\\\\...')` returns `{\"total_count\": 0}` with NO error message — a silent failure, not an exception. This affects BOTH `target='files'` (file listing) and `target='content'` (grep). Always use `terminal` with `find \"\u003CF:\u002Fpath>\" -name \"*.md\" -type f | sort` for file listing, and `grep` for content search. Do NOT retry `search_files` with different path formats — it fails silently every time on F:\\ drives.\n\n## Step 9 — BOK Enrichment Pass (Sub-Overview Creation)\n\nAfter the initial overview files are created, the user may ask to **enrich** a subject to match the depth of another (e.g., \"review and add gaps, make it like Social Studies\"). This happens when a BOK has only flat topic lists without deeper category breakdowns.\n\n### When to Enrich\n\n- User explicitly compares depth across BOK subjects (e.g., \"Math is thin vs Social Studies\")\n- A BOK has only 2 thin files while another has 6+ files with sub-overviews\n- User has reorganized vault and consolidated subjects\n\n### Enrichment Pattern\n\n1. **Identify categories** — Group existing flat topic lists into 5-10 logical categories\n2. **Create sub-folders** — `mkdir -p` for each category under the subject folder\n3. **Write sub-overviews** — Each gets: YAML frontmatter, overview paragraph, topic table with grade bands, learning progression (Mermaid), key formulas\u002Ftheorems, Thai terminology, common misconceptions, exam relevance, cross-links\n4. **Update main overviews** — Add a category table at the top linking to each sub-overview\n5. **Maintain wikilinks** — Sub-overviews link back to main overview and across to related categories\n\n**Result example:** Mathematics: 2 files (20KB) → 12 files (92KB)\n\n### Sub-Overview Template\n\nSee `references\u002Fthai-math-strand-overview-pattern.md` for the complete proven template used across 10 Mathematics strand sub-overview files. The template includes:\n- YAML frontmatter with strand-specific tags\n- Per-sub-strand: grade band table, key formulas, Thai terminology (Thai\u002Fromanized\u002FEnglish), common misconceptions, real-life connections (Thai context)\n- Cross-reference progression summary table\n- Exam relevance with approximate weights\n- IPST textbook references per level\n- Mermaid diagrams (quadrantChart for coordinate planes, flowchart for hierarchies)\n\n### Pitfall\n\n**Don't duplicate topic detail between overview and sub-overview.** The main overview delegates to sub-overviews via a category table. Put deep content (formulas, misconceptions, grade-band details) in the sub-overview. The main overview retains the topic list, progression table, mermaid diagram, and reading paths.\n\n**Use `delegate_task`** to research enrichment content while you create directory structure — the research takes 2-5 minutes and returns comprehensive strand\u002Ftopic breakdowns that match the enriched format.\n\n- **After enrichment, regroup by parent subject.** Once all sub-overviews are created, the user may want them moved under parent folders (e.g., Physics\u002F, Chemistry\u002F, Biology\u002F) rather than flat-numbered. Use `mv` to relocate sub-folders, then `rmdir` to clean up empty old directories. This makes the structure cleaner:\n\n### Pitfall — SearXNG MCP Rate Limiting (429)\n\nWhen using the SearXNG MCP (`mcp__searxng__searxng_web_search`) for curriculum research, the server may rate-limit after ~3 rapid consecutive calls, returning `429: Rate limit exceeded`. This is a transient throttle, NOT a permanent failure.\n\n**Strategy:**\n1. Fire 2-3 initial searches for the most uncertain topics, then STOP.\n2. Complete remaining files from model knowledge — the model's training knowledge of Thai history, economics, civics, geography is accurate and sufficient for BOK notes.\n3. Do NOT retry the same failing MCP call repeatedly — the tool loop warning fires after 3 consecutive failures.\n4. If a single `web_url_read` works, use it; don't cascade into more searches.\n5. **If the user says the rate limit is fixed** (infra team adjusted settings), test with one search. If it works, use it strategically for the 2-3 most specialized topics, then proceed from model knowledge.\n\n**Search quality:** SearXNG returns mixed relevance — commercial sites (Best Buy, hotels, gaming PCs) sometimes outrank educational content. Filter results for Wikipedia, `.org`, `.ac.th`, and known educational domains. Wikipedia articles load reliably via `web_url_read` and are the best source for historical\u002Fgeographic detail.\n\n**Curriculum verification pattern (proven for IPST Physics 2026-07-30):** When verifying Thai curriculum topic distribution before creating advanced notes, search for `\"[subject] ม.ปลาย หลักสูตร สสวท เรียนอะไรบ้าง\"` (e.g., `\"ฟิสิกส์ ม.ปลาย หลักสูตร สสวท เรียนอะไรบ้าง\"`). The site smartmathpro.com publishes per-subject IPST curriculum summaries with chapter names in Thai, topic distribution by semester, and source attribution to IPST textbooks. Fetch the full article via `mcp__searxng__web_url_read` and cross-reference against the BOK overview. Note: our BOK overviews may be a superset of the standard IPST curriculum (e.g., we include Special Relativity and Astrophysics as extension topics beyond the standard ~20 chapters).\n\n**When SearXNG is unavailable entirely (403\u002Fconnection error):** Fall back fully to the two-pass pattern (produce from knowledge, verify against Wikipedia which loads reliably).\n\n**Failure mode 2 — subprocess death (seen 2026-08-28, distinct from 429):** every `mcp__searxng__searxng_web_search` call fails fast with `TimeoutError: MCP stdio subprocess for 'searxng' has exited`. No call succeeds, not even spaced out — this is a dead server, not a throttle. Do not keep retrying the MCP (loop warning fires at 3 failures). Fallback that works: the built-in `web_search` tool (SearXNG-backed) — run 1–2 verification searches for the most load-bearing facts (e.g., English มาตรฐาน codes อ1.1–อ4.2, course code อ21101), then build the rest from model knowledge. Never block note creation on search tooling when the curriculum structure is already known.\n\n### Pitfall — File Truncation in `write_file`\n\nWhen batch-creating multiple large files (8KB+), occasionally a `write_file` call returns success but the file is truncated (e.g., 2,385 bytes instead of the expected ~11KB). The tool reports `bytes_written` in its result.\n\n**Strategy:**\n- After batch writes, scan the `bytes_written` values. Any file significantly smaller than siblings (e.g., \u003C 4KB when siblings are 7-12KB) is likely truncated.\n- For truncated files, rewrite with `write_file` using the full content.\n- Do NOT patch truncated files piecemeal — rewrite the whole file.\n\n**Observed variants (2026-08-28, glm model):** truncation is not the only failure shape.\n- **Silent path typo = junk root.** A single-char path typo (`obsidian_note` → `obsian_note`) made `write_file` create the full directory tree in a NEW junk root with `dirs_created: true` and `verified: true`. The corrupt file hid there while the real vault stayed clean. After any batch, `ls` the vault root for unexpected directories; delete junk roots explicitly (user-approved `rm -rf`).\n- **Garbage tail at full length.** One file arrived at expected size (7,005 bytes) with the last sections replaced by duplicated\u002Fgarbled fragments (repeated headings, `. Use the...` fragments). Size checks alone do not catch this — tail-check the final 10–15 lines of a sample of files, or grep for repeated heading strings.\n\n### Pitfall — Thai Text Corruption in YAML Frontmatter and Body Text\n\nAI models occasionally produce Latin-script garbage mid-Thai-string in YAML frontmatter values (e.g., `ปร. Walshาสตร์` instead of `ประวัติศาสตร์`). This happens with longer Thai strings in `strand:` and `source:` fields.\n\nWith the **glm-5.2 model** (zai provider), the corruption extends beyond YAML into **body text and wikilink display text** — and scales with strand size. Small strands (10 files) see ~4 sporadic instances; large strands (23+ files) can produce **20+ distinct corruption strings** across most files. Observed corruption types: `พ.ศ. ไ2๕51` in frontmatter, `การพูดแสดงคว Thai: มีอักษรผิด` inside a wikilink, Latin-mid-Thai insertions (`ควam` for `ความ`, `กlอน` for `กลอน`, `วrอง` for `วรรค`), and single-character word swaps (`พูก` for `พูด`, `สงบสุข` for `สงบใจ`).\n\n**Strategy — small strands (≤15 files):**\n- After batch file creation, scan for corruption: `grep -rn '[ไ-ฮ][A-Za-z]' *.md` catches Latin-script characters adjacent to Thai script.\n- After batch file creation, scan YAML frontmatter for non-Thai, non-ASCII garbage: `grep -rn 'strand:' *.md | grep -v 'ประวัติ\\|เศรษฐ\\|หน้าที่\\|ศาสนา\\|ภูมิ'`\n- Fix with `patch` — the corrupted string is always unique in the file.\n\n**Strategy — large strands (15+ files) — batch sed cleanup:**\nWhen corruption is too widespread for individual patches, run a batch `sed` cleanup via `execute_code`:\n```python\nfrom hermes_tools import terminal\nfixes = [(\"ควam\", \"ความ\"), (\"กlอน\", \"กลอน\"), (\"วrอง\", \"วรรค\"), ...]  # discovered via grep first\nfor old, new in fixes:\n    cmd = f'find \"{base}\" -name \"*.md\" -exec sed -i \\'s\u002F{old}\u002F{new}\u002Fg\\' {{}} \\\\;'\n    terminal(cmd)\n```\nRun `grep -rn '[ไ-ฮ][A-Za-z]' *.md` FIRST to discover all patterns, build the fixes list, apply sed, then verify with a final grep.\n\n**Pitfall — self-correction leakage and foreign-script slips in long English notes (proven 2026-09-08, 14\u002F20 files needed cleanup):** when authoring many dense knowledge notes in sequence, the drafting voice leaks into the final text, even in English-only domains. Four shapes seen:\n- Self-correction phrases left in body text: `... no: X`, `(corrected below)`, `(keep only documented)`, `(replace)`, `PLACEHOLDER`, and whole duplicated blocks (broken section + meta-comment line + fixed copy).\n- Foreign-script slips inside English text: CJK in an English phrase, Devanagari in romanized transliteration (एक in a Thai parenthetical), Vietnamese tone marks in Thai context.\n- Mermaid `timeline` lines with a stray trailing `|` (breaks rendering silently in Obsidian — happened twice).\n- Unbalanced quotes\u002Fbrackets in mermaid node labels.\n\n**Prevention rule:** compose final sentences only — if a correction thought occurs mid-sentence, rewrite the whole sentence; never write the wrong clause and append `... no: fix`.\n\n**Detection gate after every batch, before starting the next:** scan all files in `execute_code` for `[r\"\\.\\.\\.\\s*(no|keep|replace|corrected)\", r\"\\(corrected\", r\"\\(keep \", r\"\\(replace\", \"PLACEHOLDER\"]` plus CJK `[\\u4e00-\\u9fff]`, Devanagari `[\\u0900-\\u097f]`, Vietnamese `[\\u1e00-\\u1eff]`, a per-line quote\u002Fbracket parity scan, and a mermaid check (fence closed, valid diagram-type first line, no trailing `|` on timeline lines).\n\n**Repair rule:** fix artifacts with exact-string Python `s.replace` wrapped in `assert old in s` — the `patch` tool's fuzzy matcher can match the wrong duplicate occurrence and return `no_change` (\"already applied\") while the artifact is still on disk. Verify every text fix with grep, never with the tool's success flag.\n\n```\nBefore (flat):                    After (grouped):\nScience\u002F                          Science\u002F\n├── 05 Mechanics\u002F                 ├── Physics\u002F\n├── 06 Thermodynamics\u002F            │   ├── 05 Mechanics\u002F\n├── 07 Electricity\u002F               │   ├── 06 Thermodynamics\u002F\n├── 09 Chemical Foundations\u002F      │   └── ...\n└── ...                           ├── Chemistry\u002F\n                                  │   ├── 09 Chemical Foundations\u002F\n                                  │   └── ...\n                                  └── ...\n```\n\nThe user will explicitly ask for this: \"group them following by Physics Chem Bio Earth Com for me like create Physic folder and under it might have 05 Mechanics\". Execute the move in one batch, then rmdir old empty folders.\n\n## Step 9b — Progress Tracker Overviews (00_overview.md)\n\nAfter grouping topic notes into strand folders, create a `00_overview.md` in each strand folder. This serves as a **continuation guide** for other educator agents.\n\n### 00_overview.md Template\n\nEach file contains:\n1. **YAML frontmatter** with strand tag and `ipst` source\n2. **Overview paragraph** explaining the strand\n3. **Concept area table** — ALL concept areas in the strand, with grade band columns (ป.1–3, ป.4–6, ม.1–3, ม.4–6)\n4. **Progress tracker table** — Each concept area marked ✅ Done (with filename) or ❌ Pending\n5. **Completion percentage** — e.g., \"Completion: 4\u002F13 (31%)\"\n6. **Cross-links** to other strand overviews\n\n### Progress Tracker Table Format\n\n```markdown\n| # | Concept Area | Status | Files Created | Notes |\n|---|---|---|---|---|\n| 01 | Topic Name | ✅ Done | `01_Topic_Name.md` | |\n| 02 | Another Topic | ❌ Pending | — | Brief note on what's needed |\n```\n\n### Pitfall\n- **Don't create 00_overview.md before topic notes exist.** Create topic notes first, then the overview tracks what's done vs pending.\n- **Numbering convention varies by subject — CONFIRM the existing content root's convention before creating any file.** Two proven layouts in this vault: per-folder numbering restarting at 01 (Social Studies, Student Development, Health-PE) vs CONTINUOUS numbering across the whole subject (English Curriculum: strands hold 01–06, 07–12, 13–18, 19–24; Career & Technology: 01–22 across 5 strand folders). Derive it from the closest sibling content root, or ask. Creating files before the scheme is locked caused a 3-file rename + 7-link repair on 2026-08-28.\n\n## Step 9c — Continuing Work From Other Agents\n\nWhen a progress tracker shows ❌ Pending items, another educator agent can pick up the work. Before creating new files:\n\n1. **Read ALL existing files first** — understand the format, style, and depth the previous agent used\n2. **Check cross-links in existing files** — previous agents often planned filenames that don't match what was actually created (e.g., `02_Rights_and_Duties` in a link vs `04_Rights_Duties_and_Laws` as the actual file). Fix broken links before proceeding.\n3. **Watch for encoding errors** — AI models sometimes produce Chinese characters (e.g., 男性 instead of ชาย) mid-sentence in Thai text. Scan existing files for CJK: `grep -P '[\\x{4e00}-\\x{9fff}]' *.md`\n4. **Match the format exactly** — YAML frontmatter structure, section numbering style, table column count, terminology table placement\n5. **Update the progress tracker** — mark items ✅ Done with actual filenames, recalculate completion percentage\n\n**Pitfall — Cross-link filenames diverge from actual files.** When one agent plans the overview with placeholder wikilinks and another agent creates the actual files, the filenames often differ (planned `02_Rights_and_Duties` vs actual `04_Rights_Duties_and_Laws`). Always verify cross-links match real filenames after continuing work. Use `find` via `terminal` (NOT `search_files` — see Step 8 pitfall) to get the actual file list, then patch broken links.\n\n**Tip — `read_file` returns `similar_files` on path mismatch.** When `read_file` can't find the exact path (e.g., you guessed `Fundamental Mathematics - Overview.md` but the actual file is `00_Fundamental Mathematics - Overview.md`), the tool returns a `similar_files` array with the correct path. This is the fastest way to discover the actual filename when you know the approximate name but not the exact prefix\u002Fnumbering. Use it before falling back to `find` or `ls`.\n\n## Step 9c-2 — Continuing a Vault Built by a Non-Educator AI Agent (Foreign-Spec Continuation)\n\nWhen the vault was built by a different AI agent (Claude, Codex, etc.) that shipped its **own authoring spec file** at the vault root (commonly `CLAUDE.md`, `AGENTS.md`, `.cursorrules`), that file is the authority for the vault — NOT the educator SOUL's lesson format. This is a distinct case from Step 9c (continuing another *educator* agent's work via `00_overview.md` trackers).\n\n### Procedure\n\n1. **Read the foreign spec file first** — before reading any notes. It defines the vault's note model (reference vs lesson), quality gates, templates, and textbook mapping. Obey it; do not impose the SOUL's `lesson_type`\u002F`audience_level` frontmatter or hands-on-project format unless the spec calls for it.\n2. **Read the roadmap\u002Ftracker and trust its status field.** A roadmap row saying \"0 deep notes\" can be accurate even when N note files exist on disk — the spec's quality gate defines what counts as a \"deep note,\" and stubs that fail it are not counted. Do not \"fix\" the count by reclassifying stubs as done.\n3. **Diagnose stubs against the spec's quality gate, not against content volume.** A 4 KB stub with concepts, tables, and code can still fail a spec that requires a named-textbook `source:` in frontmatter. List the specific deltas between stub and spec (missing frontmatter fields, missing sections, wrong H1 format) — these become the upgrade work items.\n4. **Upgrade in place, do not recreate.** Overwrite stubs at their existing paths with upgraded content that closes each delta. Preserve the stub's good content (concepts, tables, code, cross-links); add what the spec requires around it.\n5. **Reconcile the working tree before starting.** Run `git diff HEAD` (not just `git status`) to distinguish real content changes from line-ending normalization noise — on Windows, `git status` can flag files as modified when only CRLF\u002FLF differs. If the diff is empty, the tree is clean; do not commit phantom changes.\n6. **For 15+ stub upgrades, use the build-spec-then-dispatch-4-subagents pattern from Step 9e (World Literature Build).** It works for any BOK vault. Write the KA overview yourself while the subagents run — it does not depend on the deep-note contents.\n7. **Batch one KA per session.** The user prefers one knowledge area per session: deep notes + KA overview + roadmap update + commit, then stop for review. Use `clarify` at the start to confirm which KA and the batching. After the user reviews and you flip 🟨 → ✅, stop and wait for the go-ahead before starting the next KA.\n\n**Pitfall — content-rich stubs that fail the spec's quality gate**\n\nA stub with real prose, tables, and code is easy to mistake for a finished deep note. The spec's quality gate is the only test that matters: if the spec requires `source: \"Textbook, Ch N\"` in frontmatter and the stub has only `tags: [...]`, the stub is a draft (🟨), not done (✅), regardless of how much content it carries. Expanding the BOK paragraph into prose yields \"a glossary, not a note\" — the named textbook is the content source; the BOK is only the coverage map.\n\nSee `references\u002Fstub-upgrade-build-spec-pattern.md` for the full procedure: diagnosing deltas, writing the build spec, dispatching 4 parallel subagents, the QA gate (including em-dash calibration against the gold-standard pilot), subagent sizing rules, and the **cross-vault bridge note pattern** (when a sibling vault like swe-knowledge already holds the deep SWEBOK content, write CS2023-framed bridge notes that point there instead of duplicating).\n\n## Step 9d — Completing a Strand from Partial Coverage\n\nWhen a strand is partially complete (e.g., 3\u002F14 files done) and the user asks to \"proceed the pending and also update existing with ม.4-6\", use this **two-phase completion workflow**:\n\n### Phase 1: Create All Pending Files\n\n1. **Read the overview** to identify which files are pending (❌ Pending in tracker)\n2. **Read 2-3 existing files** to match format, depth, and style exactly\n3. **Batch-create all pending files** using `write_file` — create files in parallel batches of 3-4\n4. **Match existing format:**\n   - YAML frontmatter with strand\u002Fcourse_codes\u002Ftags\n   - Grade band table (ป.1–3, ป.4–6, ม.1–3, ม.4–6)\n   - Numbered sections (## 1 | Grade Band, ## 2 | Topic, etc.)\n   - Thai-English terminology tables\n   - Real-world examples section\n   - Cross-links section\n\n### Phase 2: Update Existing Files\n\nFor files that exist but are missing upper secondary (ม.4-6) content:\n\n1. **Patch the grade band table** — add a new row for ม.4–6 with appropriate content summary\n2. **Add new section before cross-links** — insert \"## N | Upper Secondary (ม.4-6): [Topic]\" with advanced content\n3. **Update YAML tags** — add `upper-secondary` if not present\n4. **Renumber cross-links section** if needed (e.g., section 9 → section 10)\n\n### Example Patch Pattern\n\n```markdown\n## 9 | Upper Secondary (ม.4-6): Advanced Economics\n\n### Microeconomic Analysis\n\n| Concept | Thai | Description |\n|---|---|---|\n| **Elasticity** | ความยืดหยุ่น | Responsiveness to price changes |\n| **Marginal utility** | อรรถประโยชน์ส่วนเพิ่ม | Additional satisfaction from one more unit |\n```\n\n### Pitfalls\n\n- **Don't skip Phase 2.** Creating new files without updating existing ones leaves inconsistent depth across the strand.\n- **Read existing files FIRST.** The format (section numbering, table structure, terminology style) varies by strand. Match it exactly.\n- **Batch efficiently.** Create pending files in batches of 3-4 using multiple `write_file` calls in one response. Don't create one at a time.\n- **Update the overview tracker last.** After all files are created\u002Fupdated, mark all items ✅ Done and recalculate to 100%.\n\n## Step 9e — Learner Development Activities (กิจกรรมพัฒนาผู้เรียน)\n\nThe Thai Basic Education Core Curriculum has **8 academic learning areas**, plus a separate required curriculum component called **Learner Development Activities** (`กิจกรรมพัฒนาผู้เรียน`). Do not classify this as a ninth `กลุ่มสาระการเรียนรู้`, and do not omit it from a parent-child curriculum map.\n\n### Three Forms\n\n1. **Guidance and Counseling Activities** (`กิจกรรมแนะแนว`) — educational, career, personal, and social development; life skills, well-being, self-understanding, educational pathways, and career preparation.\n2. **Student Activities** (`กิจกรรมนักเรียน`) — Scouts\u002FGirl Guides (`ลูกเสือ-เนตรนารี`), Red Cross Youth (`ยุวกาชาด`), volunteer\u002Fstudent organizations, clubs, and student leadership. The school selects and schedules the available activity; Scouts are not a guaranteed standalone subject at every school.\n3. **Social and Public Benefit Activities** (`กิจกรรมเพื่อสังคมและสาธารณประโยชน์`) — service learning and community\u002Fpublic-interest work. It may be integrated into student activities according to the school's structure.\n\n### How to Model It in a BOK\n\nCreate a separate top-level `Learner Development Activities\u002F` area beside the 8 learning areas, not inside Social Studies, Health, or Career. Use a parent overview plus three child overviews. For parent-child communication, describe what students actually participate in, the developmental purpose, and the fact that implementation varies by school.\n\nSuggested progression:\n\n| Level | Guidance | Student activities | Public benefit |\n|---|---|---|---|\n| **ป.1–3** | Self-awareness, school adjustment, social skills, career awareness | Cooperation, rules, simple Scout\u002Fclub activities | Simple helping and school\u002Fcommunity care |\n| **ป.4–6** | Study habits, interests, basic career awareness | Scout skills, teamwork, responsibility, outdoor activities | Local service and environmental care |\n| **ม.1–3** | Self-exploration, interests\u002Faptitudes, upper-secondary or vocational pathways | Leadership, clubs, Scouts or alternative groups | Planned service projects |\n| **ม.4–6** | Higher-education planning, career preparation, personal\u002Fsocial well-being | Clubs, leadership, school projects; Scout continuation is school-dependent | Community engagement and service learning |\n\n### Verification Rules\n\n- Use the official curriculum phrase **`กิจกรรมพัฒนาผู้เรียน`**, not “extra subjects” or “survival class.”\n- Translate `ลูกเสือ` as **Scouts** and `เนตรนารี` as **Girl Guides**; describe practical survival skills as possible content, not the official identity of the component.\n- Do not infer a national fixed hour allocation from one school's timetable. The national framework defines the activity types; school curricula determine the detailed timetable and delivery.\n- Treat the number of guidance teachers as a school staffing arrangement, not a national curriculum requirement.\n- Distinguish **national framework** from **school implementation** in the note: label school-specific examples as examples.\n\nSee `references\u002Fthai-learner-development-activities.md` for the official-source map, terminology, grade progression, and evidence boundaries.\n\n### Proven Research and Placement Workflow\n\nFor this component, search the official OBEC curriculum hub and Guidance Development Group with SearXNG first, then read the selected official PDF or page with `mcp__searxng__web_url_read`. Use the search result only to locate the source: distinguish what the national document establishes from what a sample school's timetable demonstrates. If a query returns no results, vary the query rather than concluding that the activity is absent.\n\nPlace the BOK overview at `body-of-knowledge\u002FStudent Development Activities\u002F`, separate from academic subject BOKs. Keep detailed implementation or future topic notes in the corresponding non-BOK content root if the user later requests them. Do not put Scout or Guidance notes inside Social Studies merely because both concern citizenship or development; use cross-links instead.\n\n### World Literature Build (proven 2026-09-06, 22\u002F22 notes)\n\nBuilding a beyond-curriculum humanities domain (Philosophy 22\u002F22 2026-09-05, World Literature 22\u002F22 2026-09-06) follows one recipe:\n\n1. **Write a shared build spec into `Audit\u002F`** (e.g. `world-literature-build-spec-20260906.md`): full note template with exact section order, hard formatting rules (colons not em-dashes, mermaid label safety, wikilink discipline), a VERIFIED TARGET LIST of cross-vault links checked against disk before dispatch, per-topic briefs for all N notes, and the quality bar (8-15 KB). Children read ONLY the spec — it makes their work consistent.\n2. **Adapt the domain's natural format.** For literature, cherry-pick from the musical-note format the user points to (oralita_md musicals): About-the-Work Detail\u002FInfo table, act\u002Fpart-structured plot summary with a spoiler flag line, Key Passages blockquotes (EN + Thai rendering), era timeline Mermaid, Sources. Merge onto the Philosophy 8-section body.\n3. **Dispatch 4 parallel subagents (5-6 notes each), all in one `delegate_task` call, grouped** so they report together. Also write `00_overview.md` yourself while they run.\n4. **Pitfall — slow-model subagents stall before the first write.** On deepseek-class reasoning models the children may spend 10-15+ minutes exploring the vault and composing before any `write_file` hits disk (transcripts show only their last tool call). They are NOT hung. Steer each with: \"Write each note to disk IMMEDIATELY when complete, one write_file call per note. Do not compose all notes before writing the first.\" Files land within minutes after the steer.\n5. **QA gate:** Thai-Latin corruption grep, CJK grep, self-correction-trace grep (see the leakage pitfall under Thai corruption), em-dash-in-prose grep (calibrated: exclude frontmatter, blockquote citations, code blocks, and Related link descriptions — the user's approved AL pilot averages ~14.5 em-dash lines\u002Fnote in those structural contexts, so a blanket grep produces false positives), ASCII-box grep, frontmatter presence, section-completeness check (all 8 sections + Related + mermaid + opening quote), mermaid label safety scan, and a Python wikilink resolver (basenames + relpaths on disk, plus a whitelist for planned forward-contract filenames of domains not yet built).\n6. **Close the BOK contract:** patch the domain BOK (status line, content-root line, all tracker rows ❌→✅ with real filenames, completion count) and the parent index (status line, domain table row, build-status table, topic-count line). Mirror how the Philosophy BOK was closed (content root line format: `Philosophy\u002F` in the general-knowledge vault...).\n\n## Step 9f — Closing an Audit-Flagged Partial BOK Subject (Supplementary-Root Pattern)\n\nWhen a vault audit flags a subject 🟡 Partial because only a *supplementary* root exists (e.g., `English Skill\u002F` teaching-ordered notes) while the BOK's own curriculum strands have zero content notes, do NOT expand the supplementary root. Proven 2026-08-28 for English: created `English Curriculum\u002F` (28 files) to close the finding \"4-strand curriculum notes still absent\".\n\n1. **Read the audit finding and the BOK overview first.** The BOK's topic tables are the contract — build exactly one note per enumerated concept area (24 for English), not a list from memory.\n2. **Keep the supplementary root untouched** as a sibling content root; create a NEW root named after the subject (`English Curriculum\u002F`), one folder per strand.\n3. **Cross-link bidirectionally into the supplementary notes** (curriculum note ↔ skill deep-dive by FILE name). The two systems interlink instead of duplicating.\n4. **Decide the numbering scheme BEFORE the first write** — see the Step 9b numbering pitfall. Mirror the closest sibling content root.\n5. **Topic note shape:** YAML with strand + มาตรฐาน codes (อ1.1–อ4.2 for English), grade-band table (ป.1–3 → ม.4–6), Mermaid progression, Thai-speaker difficulty section, Thai terminology, cross-links. English subject → English text.\n6. **Write 00_overview.md trackers LAST**, then wire the BOK overview: a \"Curriculum Content Notes\" wikilink table under each strand section + strand-overview links in Related. NEVER reference content as inline-code paths — audits flag link-graph orphans (their finding N1); use path-qualified links for ambiguous basenames like `00_overview` (finding N2's own recommendation).\n7. **QA gate before reporting closure:** file count vs BOK concept-area count, size scan (3.9–7.3 KB per note here), Thai-Latin + CJK artifact greps, and a full wikilink resolution check — see `scripts\u002Fverify_vault_links.py`.\n\n**Pitfall — numbering drift mid-build:** creating files before locking the numbering plan forced a rename of 3 strand-3 files (19–21 → 13–18) and fixing 7 broken links on 2026-08-28. Lock the scheme first.\n\n## Step 10 — What Comes Next (Topic Note Filling)\n\nAfter the user approves the overview structure, they may ask to fill in the individual topic files behind each `[[wikilink]]`. This is handled by `educational-content-authoring` (see \"BOK Topic Note Filling\" workflow variant).\n\nKey points for the handoff:\n- **Topic notes go in a DIFFERENT vault path** than the BOK overviews. Example: overviews in `body-of-knowledge\u002FFundamental Mathematics\u002F`, full notes in `Mathematics\u002F`. **CRITICAL: The user corrected this explicitly** — do NOT put topic notes inside `body-of-knowledge\u002F`. Topic notes go in the main content folder (e.g., `F:\\obsidian_note\\general-knowledge\\Social Studies\\`, NOT `F:\\obsidian_note\\general-knowledge\\body-of-knowledge\\Social Studies\\`).\n- **Group topic notes by subject\u002Fstrand.** After creating topic notes, the user will ask to group them into subject folders matching the BOK strand structure. Example for Social Studies: `01 Religion\u002F`, `02 Civics\u002F`, `03 Economics\u002F`, `04 History\u002F`, `05 Geography\u002F`. Move files with `mv` into subfolders, then `rmdir` empty old folders. The user explicitly requested this grouping.\n- **For spiral curriculum (ป.1-ม.3):** Each topic file covers all 3 grade bands with a progression table — don't split by grade.\n- **For linear curriculum (ม.4-ม.6):** Each topic file covers one year's content.\n- Use `delegate_task` with parallel subagents to research topic batches (split into 2 batches of ~10 topics each).\n- **Confirm style before creating:** The user may want swe-knowledge style (YAML frontmatter with `source:`, hierarchical sections, cited, professional) or English Skill style (concise, table-heavy, Thai terminology). Ask explicitly.\n- **Always verify and fix after grouping.** Run `sed` to fix double-backslash LaTeX issues. Check Mermaid syntax. Replace ASCII diagrams with Mermaid. Then verify the final file count and structure.\n- **User may expand scope from ป.1-ม.3 to ม.6.** Initially create topic notes for ป.1-ม.3 (fundamental level). The user will often later ask to expand overviews to include ม.4-ม.6. When this happens, update the concept area tables to add a ม.4–6 column and update progress trackers. Topic notes for ม.4-ม.6 can be created later — the overview just needs the grade band column.\n- **User may request post-fix passes:** After file creation, the user often requests: (a) replacing ASCII diagrams with Mermaid, (b) fixing LaTeX rendering errors, (c) replacing specific diagrams with better Mermaid types (e.g., `gitGraph` for number lines, `quadrantChart` for quadrants). Budget time for this — it's part of the workflow, not a surprise.\n- **User may reorganize folder structure mid-project.** A common pattern: start with flat topic files in one folder, then the user asks to split into subfolders by level (e.g., `Fundamental\u002F` for ป.1–ม.3, `Advance\u002F` for ม.4–ม.6). When this happens, create the subfolders, `mv` existing files in one batch, then create new files in the new subfolder. Wikilinks across subfolders resolve automatically in Obsidian (no path changes needed). Confirm the split structure with the user before moving — flat vs. by-grade-band is a user preference.\n- **Batch-create new topic notes with `execute_code` + `hermes_tools.write_file`.** When creating 10+ files of consistent format, use `execute_code` with a Python script that builds the full file content as Python string variables (one per file) and calls `hermes_tools.write_file` for each. Proven: 23 files in ~12 runs (2 files per run), ~3 seconds per run. Each file follows the same 6-section template (YAML → coverage table → terminology → concepts → problems → cross-links). This is much more reliable than `delegate_task` for content you can produce from model knowledge — no research subagent needed, no context pollution from subagent transcripts.\n**Subject-folder-per-topic pattern (user preference, proven 2026-07-30).** For multi-subject content vaults (Science with Physics\u002FChem\u002FBio\u002FEarthSci\u002FCS), the user prefers **one subfolder per subject** mirroring the Social Studies pattern (`01 Religion\u002F`, `02 Civics\u002F`). The folder name uses the subject English name (or close to it — the user once wrote `physic\u002F` for `physics\u002F`). Layout (COMPLETE as of 2026-07-30, 85 advanced notes):\n```text\nScience\u002FAdvance\u002F\n├── physic\u002F            ← 23 notes, ม.4-ม.6 ว301-ว303\n├── Chemistry\u002F         ← 20 notes, ม.4-ม.6 ว311-ว313\n├── Biology\u002F           ← 20 notes, ม.4-ม.6 ว321-ว323\n├── Earth_Science\u002F     ← 10 notes, ว341 elective\n└── Computer_Science\u002F  ← 12 notes, ม.4-ม.6 ว331-ว333\n```\n  The BOK overviews continue to use **short wikilinks** (`[[01_Measurement_and_Scientific_Method]]`, NOT `[[Advance\u002Fphysic\u002F01_Measurement_and_Scientific_Method]]`) because Obsidian resolves wikilinks by filename. Long paths add visual noise without functional benefit. **Pitfall:** When patching BOK overview wikilinks in Phase 3, the first `execute_code` attempt's `hermes_tools.write_file` calls can silently fail due to the dedup cache (the file was read earlier in the session). Symptom: script exits 0, but `grep` shows the original short links unchanged. **Fix:** use direct Python `open()\u002Fread()\u002Fwrite()` in `execute_code` for batch wikilink patching — that bypasses the dedup cache. Always verify with `grep -c 'Fundamental\u002F'` (or `Advance\u002F`) afterward.\n- **Fundamental\u002FAdvance split may NOT be subject-grouped.** When the user says \"the fundamental can be there, in case student want to read up to ม3, so not restructuring\" — keep fundamental as a single flat folder of integrated content (covering all subjects) for the integrated ป.1-ม.3 curriculum. Only the **Advance** folder needs subject grouping. The BOK `00_Fundamental Science - Overview.md` links to flat `[[Fundamental\u002F01_Scientific_Method]]`-style paths and the user keeps the flat folder (don't split it), but those path-prefixed links are broken — no root-level `Fundamental\u002F` exists. Keep the folders as the user said; when remediation runs, convert the links to bare basenames `[[01_Scientific_Method]]`.\n- **For 20+ advanced science notes, use 3 parallel `delegate_task` subagents instead of `execute_code`.** When creating 20+ notes that require accurate physics\u002Fchemistry\u002Fbiology content (not just template-filling from model knowledge of simple math), dispatch 3 parallel subagents via `delegate_task` with `tasks` array. Each subagent gets 6-8 topics, the 5-section template, and a topic content guide. Proven across ALL 5 subjects (2026-07-30): Physics (23 notes ว301-ว303, ~3 min), Chemistry (20 notes ว311-ว313), Biology (20 notes ว321-ว323), Earth Science (10 notes ว341, 2 subagents), Computer Science (12 notes ว331-ว333, 2 subagents). For 10-note batches use 2 subagents (5+5) not 3. See `references\u002Fadvanced-science-note-pattern.md` for the complete template, all 5 subject topic distributions, subagent sizing rules, and the English-narrative-with-Thai-in-parens style guide.\n- **Reorganize vault into Fundamental\u002FAdvance folders when expanding from ป.1-ม.3 to ม.4-ม.6.** When the user asks to expand a subject from fundamental (ป.1-ม.3) to advanced (ม.4-ม.6) coverage, split the flat folder into `Fundamental\u002F` and `Advance\u002F` subfolders (mirroring the Mathematics structure). Move existing notes with `mv` in one batch, then create new advanced notes in `Advance\u002F`. After moving, **fix BOK overview wikilinks to bare basenames** (`[[01_Topic]]`) or full subject-rooted paths (`[[Science\u002FFundamental\u002F01_Topic]]`). Path prefixes like `[[Fundamental\u002F01_Topic]]` do NOT resolve from BOK overviews or other subjects' notes: the vault has no root-level `Fundamental\u002F` or `Advance\u002F` folder, so both relative-to-note and vault-root resolution fail (link-checker verified). Use `execute_code` with direct Python file I\u002FO (not `hermes_tools.write_file`) for batch wikilink patching — the dedup cache can block writes to files read earlier in the session. See `references\u002Fadvanced-science-note-pattern.md` for the batch patching script and verification pattern.\n\n## Pitfalls\n\n### Structural\n- **Don't cram multiple subjects into one file** — one subject per folder, one overview per folder\n- **Don't skip the mermaid diagram** — it's the most valuable part for showing relationships\n- **Don't use vague folder names** — \"Science\" is bad, \"Fundamental Science\" or \"Physics\" is good\n- **Don't forget course codes** — they're essential for curriculum alignment\n- **Don't mix levels in one overview** — keep ป.1-ม.3 separate from ม.4-ม.6\n- **Don't create topic files before the overview is approved** — overview first, then depth\n- **Don't confuse spiral vs linear curriculum** — if each grade band revisits the SAME concepts (just deeper), use concept-area organization. If each year covers DIFFERENT topics, use year-based organization.\n- **Choose the right language for each BOK.** Thai subject (ภาษาไทย) → write in Thai. English subject (ภาษาอังกฤษ) → write in English (even for Thai students — the user corrected this explicitly). Math-science → English with Thai terminology as needed. This is NOT optional — the user will ask you to rewrite if wrong.\n## Step 11 — Non-Academic BOK Subjects (Arts, Health & PE, Career & Technology)\n\nWhen the user's BOK covers ALL 8 Thai basic education learning areas, the remaining 3 (Arts, Health & PE, Career & Technology) need overview files too. These use the **same academic format** as other subjects — NOT a simplified parent-focused format.\n\n### When to Use\n\n- User has built BOKs for core subjects (Math, Science, Thai, English, Social Studies) and asks \"what else?\"\n- User says the \"out of scope\" subjects should be included\n- User wants comprehensive curriculum coverage\n\n### Format — Same as Academic Subjects\n\n**CRITICAL: The user explicitly rejected a \"parent-focused\" format with \"What You Can Do at Home\" columns.** They want the SAME format as Mathematics, Science, etc. — concept area tables, grade band progression, Thai terminology, cross-links, Mermaid diagrams. The PURPOSE may be parent-child communication, but the FORMAT must be academic.\n\nEach overview file should have:\n\n1. **YAML frontmatter** with tags, source, duration\n2. **Overview paragraph** explaining the subject\n3. **Domains\u002FStrands summary table** — what the subject covers\n4. **Concept area tables** — one per domain\u002Fstrand, with grade band columns (ป.1–3, ป.4–6, ม.1–3, ม.4–6)\n5. **Grade band progression table** — summary across all domains\n6. **Key Thai terminology table** — Thai → English\n7. **Mermaid diagram** — showing domain interconnections\n8. **Cross-links** — to related subjects and back to master overview\n\n### Covered Subjects\n\n| Subject | Domains | Notes |\n|---|---|---|\n| **Arts (ศิลปะ)** | Visual Arts, Music, Performing Arts | 3 domains, ~15 concept areas |\n| **Health & PE (สุขศึกษาและพลศึกษา)** | Health Education, Physical Education | 2 strands, ~14 concept areas |\n| **Career & Technology (การงานอาชีพ)** | Home Economics, Agriculture, Crafts, Career, Technology | 5 strands, ~22 concept areas |\n\n### Proven Career and Technology Filling Pattern\n\nWhen filling the existing Career and Technology overview, preserve its actual wikilinked topic list and use a Social Studies-style content root outside `body-of-knowledge`. The proven layout is:\n\n```text\nwork-careers-technology\u002F\n├── 01 Home Economics\u002F\n│   ├── 00_overview.md\n│   └── 01-04 topic notes\n├── 02 Agriculture\u002F\n│   ├── 00_overview.md\n│   └── 05-09 topic notes\n├── 03 Crafts and Industry\u002F\n│   ├── 00_overview.md\n│   └── 10-13 topic notes\n├── 04 Career Education\u002F\n│   ├── 00_overview.md\n│   └── 14-17 topic notes\n└── 05 Technology\u002F\n    ├── 00_overview.md\n    └── 18-22 topic notes\n```\n\nFor the current Thai Career and Technology overview, this produces 5 strand overviews and 22 topic notes. Do not invent additional topics merely because a parent overview says \"~25\" when only 22 concrete wikilinks exist. Preserve the existing numbering across strand folders, use `00_overview.md` progress trackers, and create the detailed notes in the separate `work-careers-technology` root rather than under `body-of-knowledge`.\n\nEach strand overview should include: YAML frontmatter with OBEC source and strand, a concept-area table, four grade bands, a Mermaid progression diagram, a progress tracker, related links, and sources. Each topic note should include: English-first narrative with Thai terms in parentheses, grade-band breakdown, concept or process tables, safety\u002Fethics where relevant, one hands-on project, Thai terminology, Mermaid flowchart, cross-links, and authoritative sources.\n\nFor source research, use the OBEC Basic Education Core Curriculum as the curriculum anchor. Use IPST Computing Science and technology pages for the Technology strand, then add authoritative sector sources where the topic needs current safety, health, labour, agriculture, or information-literacy guidance. A search result URL and source citation can be retained when full page extraction is unavailable; do not let a source-fetch issue block creation when the curriculum structure is already verified.\n\nSee `references\u002Fcareer-technology-topic-pattern.md` for the complete topic inventory, file layout, note template, source map, and verification checklist.\n\nSee `references\u002Fcareer-path-overlay-pattern.md` for the career-path overlay note pattern: creating senior-level application notes that layer on top of existing BOK foundations (SWEBOK, PMBOK, BABOK) without duplicating them. Proven for Senior SWE Technical Ownership (7 files, 56.6 KB). Includes folder structure, topic note template, BOK anchoring table, and proven file sizes.\n\n### Pitfalls\n\n- **Don't use parent-focused columns** (\"What Your Child Learns\", \"What You Can Do at Home\"). The user wants standard academic tables with concept areas and grade bands.\n- **Career and Technology is a Social Studies-style exception to the integrated-subject rule.** Organize it into five strand folders with one `00_overview.md` and numbered topic notes per strand. Do not create an additional hierarchy beneath those strand folders unless the user explicitly requests it.\n- **Don't split into sub-overviews.** Arts, Health, and Career are integrated subjects — one overview per subject is sufficient.\n- **Don't skip concept area tables.** Even though these aren't exam-focused, they still need structured topic breakdowns.\n- **Language:** Write in English with Thai terminology where needed. Only Thai language subject (ภาษาไทย) must be written in Thai.\n\n- **Cross-links in sub-overviews** use relative wikilinks: `[[01_Physics - Overview|Physics]]` for main overviews, `[[05 Mechanics|Mechanics]]` for sub-categories. For cross-BOK links, use the full filename: `[[03_Biology - Overview|Biology]]`.\n\n### Diagram Formatting (CRITICAL — user preference)\n- **PREFER MERMAID OVER ASCII.** The user wants Mermaid diagrams in Obsidian notes, not ASCII box-drawing. Replace `├──`\u002F`└──` trees, hand-drawn number lines, and box-drawing with proper Mermaid diagrams. Key patterns from this session:\n  - **Factor trees** → `flowchart TD` with `A[\"84\"] --> B[\"2\"]` style arrows\n  - **Number lines** → `gitGraph` with `commit id: \"-3\"` nodes (use `type: HIGHLIGHT` for zero\u002Fellipsis, `\"...\"` for terminal ellipses)\n  - **Real number hierarchy** → `flowchart TD` tree with subgraphs (ℕ→ℤ→ℚ→ℝ, irrationals as sibling)\n  - **Quadrant diagrams** → `quadrantChart` with `quadrant-1` through `quadrant-4` (hyphenated numbers — NOT `quadrant I` or `quadrant \"Q I\"` — those produce syntax errors). Use `[nl]` in labels for newlines. **CRITICAL:** y-axis direction in Mermaid quadrantChart is `y-axis \"bottom-label\" --> \"top-label\"`. So for standard Cartesian (positive-y up): `y-axis \"y (negative ↓)\" --> \"y (positive ↑)\"`. The first quoted string goes at the bottom, second at the top. Also: `x-axis \"left-label\" --> \"right-label\"`. Failure to get y-axis direction right is the #1 user-reported bug.\n  - **Venn diagrams** → `flowchart TD` with nested `subgraph` blocks and `-->` arrows to show overlap regions\n  - **Probability scales** → `flowchart LR` with chained `-->` nodes\n- **Check Mermaid syntax against official docs (mermaid.js.org).** For newer chart types (`quadrantChart`, `gitGraph`), verify syntax matches current spec. The user catches syntax errors.\n- **ASCII is acceptable for simple alignments.** Use plain code blocks (` ``` `) for: column arithmetic, decimal addition alignments, and short text diagrams where Mermaid would be overkill.\n\n### LaTeX \u002F Math Formatting (CRITICAL — Obsidian rendering)\n- **`write_file` behavior:** The `write_file` tool writes content literally. Single backslashes in source (`\\frac`) → single backslashes in file → correct rendering. Double backslashes in source (`\\\\frac`) → literal `\\\\frac` on disk → broken rendering as \"f ac a b\". **Rule: always use single backslashes in LaTeX commands.** `\\frac`, `\\times`, `\\div`, `\\sqrt`, `\\boxed`, `\\mathbf`, `\\text`, `\\begin{aligned}`, `\\end{aligned}`.\n- **Formula-in-table pattern (user-preferred):** Use `$$...$$` inside table cells for display math formulas. This is the user's established format for Key Formulas sections: `| **Concept** | $$formula$$ |`. Example: `| **Mass-energy** | $$E = mc^2$$ |`. This avoids the fragility of inline math and produces clean, readable formula tables. The user applied this pattern to Modern Physics themselves and it works reliably.\n- **Chemical formulas:** Use `$$\\ce{CH4}$$` for chemical notation in Obsidian (MathJax mhchem extension — standard in Obsidian). For functional groups: `$$\\ce{-OH}$$`, `$$\\ce{C=C}$$`, `$$\\ce{CH3COOH}$$`.\n- **When LaTeX fails, simplify to plain text.** Prefer readability over fragile formatting. Fallbacks:\n  - `a\u002Fb` instead of `\\frac{a}{b}`\n  - `(x₁+x₂)\u002F2` instead of `\\frac{x₁+x₂}{2}`\n  - `m = (y₂−y₁)\u002F(x₂−x₁)` instead of `m = \\frac{y₂-y₁}{x₂-x₁}`\n  - `√[(x₂−x₁)² + (y₂−y₁)²]` instead of `\\sqrt{(x₂-x₁)^2+(y₂-y₁)^2}`\n- **`\\\\` (double backslash) is ONLY correct** as LaTeX line breaks inside `{aligned}`, `{array}`, or `{cases}`. Everywhere else: single backslash.\n- **Batch-fix sed:** Run ONCE on newly created files. Verify with `grep -c '\\\\\\\\\\\\\\\\' *.md | grep -v ':0$'` first. Only apply to files that actually contain `\\\\`. Fix remaining with `patch` — do NOT re-run sed iteratively (corrupts already-correct content).\n- **⚠️ Greek letter corruption in `patch`:** When using `patch` to insert LaTeX with Greek letters (\\rho, \\lambda, \\mu) via `execute_code`, line-wrapping in the patch body can insert newlines between the backslash and the letter (e.g., `\\` on one line, `ho` on the next for \\rho). This produces visible corruption. **Mitigation:** (1) Keep formula lines short (\u003C 60 chars) in patch strings, (2) After any patch with Greek letters, read back the affected lines to verify, (3) Prefer `write_file` for formula-heavy sections where line-wrapping risk is high. If corruption occurs, re-patch with shorter lines or rewrite the section.\n- **Avoid `\\left`, `\\right`, `\\middle`** — fragile in Obsidian MathJax, use plain brackets instead.\n\n### Workflow\n- **Two-pass pattern:** When research is slow (2+ min), create initial overviews from your knowledge FIRST, then update when research returns. The user gets something to review immediately. For Thai curriculum, do not assume that search failure means the official source is unavailable: open the governing body's landing page, inspect its direct PDF\u002FHTML links, and use direct retrieval when needed. For IPST Computing Science, start at `https:\u002F\u002Fwww.ipst.ac.th\u002Fcs`, which exposes the official course descriptions, teacher guide, textbooks, and grade resources. Use Wikipedia only as contextual fallback, never as primary evidence for curriculum status. If an extraction backend reports search-only, switch retrieval method rather than repeating the same search; record what the official source actually supports.\n- **`write_file` requires a prior `read_file` on the SAME file before overwriting.** Reading a file via `terminal` (`cat`, `head`, `tail`) or seeing its content in another tool's output does NOT satisfy the guard — `write_file` returns `stale_write_blocked: true` and leaves the file untouched. Before overwriting any existing `.md` file, call `read_file` on it (every page if it needs offset\u002Flimit) in the same task, then retry `write_file`. For targeted edits to a file you have not `read_file`-loaded, use `patch` instead — it does not require a prior full read.\n- **Book checklists come after overviews:** Don't skip the book checklist step — the user uses it to find books for future summarizing.\n- **Use `delegate_task` for research:** Curriculum research (topic lists, course codes, grade bands) is reasoning-heavy and benefits from subagent isolation.\n- **For topic-filling (Step 9):** Use 2 parallel subagents to research ~10 topics each. Write files in swe-knowledge style (detailed, source-cited) for math-sci content. Put topic files in the user's specified destination (e.g., `Mathematics\u002F`, NOT inside `body-of-knowledge\u002F`). Confirm format preference BEFORE writing — the user may want swe-knowledge style (YAML frontmatter with source, hierarchical, professional) or English Skill style (concise, table-heavy, Thai terminology).\n\n## References\n\n- See `references\u002Fcomputing-and-science-bok-frameworks.md` for the professional-vs-curriculum-vs-taxonomy decision table, CS2023 mapping pattern, science-framework choices, and recommended build order.\n- Thai IPST curriculum: [ipst.ac.th](https:\u002F\u002Fwww.ipst.ac.th) (free textbooks)\n- Thai course code system: ค=Math, ว=Science, ท=Thai Language, อ=English, ส=Social Studies; 1xx=primary, 2xx=lower secondary, 3xx=upper secondary\n- See `references\u002Fthai-curriculum-structure.md` for detailed Thai curriculum cross-reference with AP\u002FIB\u002FA-Level\n- See `references\u002Fthai-career-technology-curriculum-research.md` for the official-source-first workflow, the Order 921\u002F2561 status correction, grade-band progression, applied-topic classification, safety source bank, and blueprint quality gates for Crafts and Industry and Career Education topics.\n- See `references\u002Fthai-book-recommendations.md` for book recommendations, publishers, and exam prep details\n- See `references\u002Fipst-math-concepts-01-10.md` for pre-researched IPST Fundamental Math curriculum: grade-band breakdowns, Thai terminology tables, key formulas, worked examples, and cross-links for concepts 01-10 (Numbers through Algebraic Thinking). Saves re-researching the same 10 concept areas.\n- See `references\u002Fipst-math-concepts-11-20.md` for the companion reference covering concepts 11-20 (Basic Algebra through Mathematical Processes): includes all formula references (Pythagorean, distance\u002Fslope, volume\u002Fsurface area, mean\u002FSD), probability rules, set operations, Polya's problem-solving steps, and integration matrix showing how Mathematical Processes connects to every strand.\n- See `references\u002Flatex-formatting-obsidian.md` for LaTeX formatting rules: single vs double backslash behavior, `write_file` literal writing, batch sed fix commands, fallback-to-plain-text patterns, and common LaTeX pitfalls in Obsidian MathJax.\n- See `references\u002Flatex-formula-table-pattern.md` for the LaTeX formula-in-table pattern: using `$$...$$` inside table cells for Key Formulas sections, correct syntax examples for physics\u002Fchemistry\u002Fmath, and common formula types with their LaTeX representations.\n\n- See `references\u002Fmermaid-patterns-for-obsidian-math.md` for tested Mermaid diagram patterns: factor trees (flowchart), number lines (gitGraph), number hierarchies (flowchart tree), Venn diagrams (subgraphs), probability scales (flowchart LR), and quadrant charts (quadrantChart).\n- See `references\u002Fthai-language-curriculum.md` for the Thai language BOK structure: 5 strands (การอ่าน, การเขียน, การฟังการดูและการพูด, หลักการใช้ภาษาไทย, วรรณคดีและวรรณกรรม), grade bands (ป.1-ม.6), key literature works by level, and Thai language components. Use this when building a Thai language curriculum BOK.\n- See `references\u002Fthai-language-topic-note-pattern.md` for the fully-Thai topic note template (YAML, 6-section body, mermaid rules, batch creation via execute_code), strand-by-strand workflow for ~78 notes, content filter workaround, and completion tracker for all 5 strands. Use this when filling in ภาษาไทย topic notes.\n- See `references\u002Fthai-language-session-progress.md` for the current completion status of the ภาษาไทย vault (2\u002F5 strands done as of 2026-08-02), next session resume point, and session learnings (duplicate filename pitfall, SearXNG integration strategy).\n- See `references\u002Fthai-social-studies-curriculum.md` for the Social Studies BOK structure: 5 strands (ศาสนาฯ, หน้าที่พลเมืองฯ, เศรษฐศาสตร์, ประวัติศาสตร์, ภูมิศาสตร์), course codes (ส11101–ส33102), grade bands (ป.1-ม.6), and spiral model across all 12 years. Use this when building a Social Studies curriculum BOK.\n- See `references\u002Fthai-social-studies-topic-notes-pattern.md` for the Social Studies topic note creation pattern: 5 strands, YAML frontmatter with strand\u002Fcourse_codes, grade band tables, strand-specific content (Buddhist doctrine, government structure, economics, Thai history, geography), and example topic list\n- See `references\u002Fthai-social-studies-progress-tracker-pattern.md` for the Social Studies progress tracker pattern: 00_overview.md template with completion tracking, folder structure with independent numbering, and continuation guide for other educator agents\n- See `references\u002Fstrand-completion-workflow.md` for the proven two-phase workflow when completing a partially-done strand (Phase 1: create pending files, Phase 2: add ม.4-6 to existing files, Phase 3: update tracker). Includes quality checks (truncation, YAML corruption, cross-link verification) and proven strand size reference table.\n- See `references\u002Fadvanced-science-note-pattern.md` for the advanced science note template (5-section format for ม.4-ม.6), IPST Physics topic distribution (verified via SearXNG → smartmathpro.com), parallel subagent batching pattern for 20+ notes, IPST Chemistry\u002FBiology\u002FEarth Science topic distributions, and wikilink path-prefix update script for Fundamental\u002FAdvance folder reorganization.\n- See `references\u002Fthai-history-strand-reference.md` for the History strand (สาระที่ 4) curriculum: 15 concept areas, seven มหาราช kings, key historical dates (พ.ศ.\u002FCE), calendar conversion formula, Mermaid patterns for timelines\u002Fdynasties, and cross-strand connections.\n- See `references\u002Fthai-geography-strand-reference.md` for the Geography strand (สาระที่ 5) curriculum: 14 concept areas, six regions of Thailand, key geographic features, three seasons, climate change impacts, Mermaid patterns for geographic processes, and cross-strand connections.\n- See `references\u002Fthai-english-curriculum.md` for the English BOK structure: 4 strands, grade bands with hour allocations, language choice rule (English overviews must be in English — user correction from session), exam structure (O-NET, A-Level, TOEFL, IELTS, TOEIC, CU-TEP, TU-GET).\n- See `references\u002Fvault-link-verification.md` for the post-creation QA gate: reusable wikilink resolution checker (execute_code, handles `[[note\\|alias]]` table escapes and vault-root-relative path links), artifact grep set, false-positive notes, and the 2026-08-28 English Curriculum closure log (28 files, 249 links).\n- See `references\u002Fstub-upgrade-build-spec-pattern.md` for the stub-to-deep-note upgrade procedure when continuing a vault built by a non-educator AI agent: diagnosing deltas against the spec's quality gate, the 5-delta upgrade (source frontmatter, H1 renumbering, Source blockquote, numbered sections, Key Takeaways + Related), the build-spec-then-dispatch-4-subagents pattern, the QA gate with em-dash calibration, and subagent sizing rules.\n- See `references\u002Fthai-math-strand-overview-pattern.md` for the proven strand sub-overview template used across 10 Mathematics files: per-sub-strand structure with grade bands, Thai terminology, misconceptions, real-life connections, exam relevance, and IPST references. Copy this when creating strand-level sub-overviews for any subject.\n- **Thai language domain — write overviews in Thai.** When the curriculum IS Thai language (ภาษาไทย), write all overviews and topic files in Thai. When the curriculum is math-sci for Thai students, write in English with Thai terminology as needed.\n- **English language domain — write overviews in English.** When the curriculum IS English (ภาษาอังกฤษ), write all overviews in English — even when the user is Thai and the audience is Thai students. The user corrected this explicitly. Thai language overviews = Thai. English language overviews = English. Math-sci = English with Thai terminology as needed.\n- **Cross-vault format adaptation (proven 2026-08-02).** When the user points to an existing vault format (e.g., `oralita_md\u002Fmusical\u002F`) and says \"adapt to this subject,\" study the source format's structure — overview files, individual entry notes, detail tables, cross-references — then map each element to the target domain. The musical format (era overview + song note with lyric-translation-detail table) mapped cleanly to literature (era overview + work note with classical-passage-modern-Thai-detail table). This technique produces richer hierarchical structures than flat numbered files for content that has natural groupings (by era, by author, by artist). The user explicitly validated this approach: \"i think it makesense to represent this way, what do you think.\"\n",{"name":5,"tags":24,"triggers":30,"description":7},[25,26,27,28,29],"obsidian","curriculum","education","body-of-knowledge","vault-structure",[31,32,33,34,35,36,37],"create body of knowledge for","map curriculum to obsidian","build knowledge area overview","curriculum structure for vault","bok overview","continue vault from another agent","upgrade stub notes to deep notes","main","2988869c5a7d7be2225c9ea7a54a4a56a59b0d45","workflow\u002Feducator\u002Fcurriculum-vault-authoring",0,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup","https:\u002F\u002Fgithub.com\u002Foat431","https:\u002F\u002Fpanomete.com\u002F","Hope and Luck is not a part of the strategy, \r\n\r\nSoftskill produces plan Hard skill produce product.","2026-11-03 00:43:08",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add oat431\u002Fhermes_config_backup --skill curriculum-vault-authoring",{"tool":53,"command":54},"bunx","bunx skills add oat431\u002Fhermes_config_backup --skill curriculum-vault-authoring",{"tool":56,"command":57},"pnpm","pnpm dlx skills add oat431\u002Fhermes_config_backup --skill curriculum-vault-authoring","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002FSKILL.md",true,[61,67,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143,147,151,155,159,163,167,171],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fadvanced-science-note-pattern.md","REFERENCE","参考文档",27394,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fadvanced-science-note-pattern.md",{"path":68,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fcareer-path-overlay-pattern.md",13494,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fcareer-path-overlay-pattern.md",{"path":72,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fcareer-technology-topic-pattern.md",5715,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fcareer-technology-topic-pattern.md",{"path":76,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fcomputing-and-science-bok-frameworks.md",11147,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fcomputing-and-science-bok-frameworks.md",{"path":80,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fipst-math-concepts-01-10.md",5076,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fipst-math-concepts-01-10.md",{"path":84,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fipst-math-concepts-11-20.md",10037,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fipst-math-concepts-11-20.md",{"path":88,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Flatex-formatting-obsidian.md",4625,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Flatex-formatting-obsidian.md",{"path":92,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":93,"sourceHtmlUrl":94},"references\u002Flatex-formula-table-pattern.md",2256,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Flatex-formula-table-pattern.md",{"path":96,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":97,"sourceHtmlUrl":98},"references\u002Fmermaid-patterns-for-obsidian-math.md",6274,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fmermaid-patterns-for-obsidian-math.md",{"path":100,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":101,"sourceHtmlUrl":102},"references\u002Fscouts-and-red-cross-youth-verified.md",11903,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fscouts-and-red-cross-youth-verified.md",{"path":104,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":105,"sourceHtmlUrl":106},"references\u002Fstrand-completion-workflow.md",5318,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fstrand-completion-workflow.md",{"path":108,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":109,"sourceHtmlUrl":110},"references\u002Fstub-upgrade-build-spec-pattern.md",10931,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fstub-upgrade-build-spec-pattern.md",{"path":112,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":113,"sourceHtmlUrl":114},"references\u002Fthai-book-recommendations.md",3872,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fthai-book-recommendations.md",{"path":116,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":117,"sourceHtmlUrl":118},"references\u002Fthai-career-technology-curriculum-research.md",9095,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fthai-career-technology-curriculum-research.md",{"path":120,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":121,"sourceHtmlUrl":122},"references\u002Fthai-career-technology-curriculum.md",23508,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fthai-career-technology-curriculum.md",{"path":124,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":125,"sourceHtmlUrl":126},"references\u002Fthai-curriculum-structure.md",3290,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fthai-curriculum-structure.md",{"path":128,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":129,"sourceHtmlUrl":130},"references\u002Fthai-english-curriculum.md",2470,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fthai-english-curriculum.md",{"path":132,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":133,"sourceHtmlUrl":134},"references\u002Fthai-geography-strand-reference.md",5286,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fthai-geography-strand-reference.md",{"path":136,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":137,"sourceHtmlUrl":138},"references\u002Fthai-history-strand-reference.md",4667,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fthai-history-strand-reference.md",{"path":140,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":141,"sourceHtmlUrl":142},"references\u002Fthai-language-curriculum.md",4958,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fthai-language-curriculum.md",{"path":144,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":145,"sourceHtmlUrl":146},"references\u002Fthai-language-session-progress.md",6555,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fthai-language-session-progress.md",{"path":148,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":149,"sourceHtmlUrl":150},"references\u002Fthai-language-topic-note-pattern.md",13133,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fthai-language-topic-note-pattern.md",{"path":152,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":153,"sourceHtmlUrl":154},"references\u002Fthai-learner-development-activities.md",4390,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fthai-learner-development-activities.md",{"path":156,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":157,"sourceHtmlUrl":158},"references\u002Fthai-math-strand-overview-pattern.md",6229,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fthai-math-strand-overview-pattern.md",{"path":160,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":161,"sourceHtmlUrl":162},"references\u002Fthai-social-studies-curriculum.md",22458,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fthai-social-studies-curriculum.md",{"path":164,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":165,"sourceHtmlUrl":166},"references\u002Fthai-social-studies-progress-tracker-pattern.md",3524,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fthai-social-studies-progress-tracker-pattern.md",{"path":168,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":169,"sourceHtmlUrl":170},"references\u002Fthai-social-studies-topic-notes-pattern.md",6149,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fthai-social-studies-topic-notes-pattern.md",{"path":172,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":173,"sourceHtmlUrl":174},"references\u002Fvault-link-verification.md",7716,"https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Feducator\u002Fcurriculum-vault-authoring\u002Freferences\u002Fvault-link-verification.md",[176,184,191,198,205,212],{"skillNo":177,"name":178,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":180,"licenseFileUrl":6,"sourceHtmlUrl":181,"categories":182,"keywords":183,"publishedAt":19},"01M7AYZ2JY3NFKAPQSC39N5F3F","project-spec-docs","Fill\u002Fupdate project_spec docs (templates, MM handoffs).","MIT","https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Fui-ux\u002Fproject-spec-docs\u002FSKILL.md",[],[],{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":180,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"publishedAt":19},"01M7AYYRZPE7HQX7778558X52S","penpot-mcp","Penpot MCP: connect, verify, and fix streaming via nginx.","https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Fui-ux\u002Fpenpot-mcp\u002FSKILL.md",[],[],{"skillNo":192,"name":193,"nameZh":6,"description":194,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":195,"categories":196,"keywords":197,"publishedAt":19},"01M7AYYNKP61CN2281VMJDXMB5","nginx-streaming-proxy","Configure nginx for streaming endpoints (SSE, MCP, WS).","https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Fui-ux\u002Fnginx-streaming-proxy\u002FSKILL.md",[],[],{"skillNo":199,"name":200,"nameZh":6,"description":201,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":180,"licenseFileUrl":6,"sourceHtmlUrl":202,"categories":203,"keywords":204,"publishedAt":19},"01M7AYYJP0MDV1D3WVEEZB3SGA","branding-ci","Use for brand\u002FCI identity, style guides, and brand docs.","https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Fui-ux\u002Fbranding-ci\u002FSKILL.md",[],[],{"skillNo":206,"name":207,"nameZh":6,"description":208,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":209,"categories":210,"keywords":211,"publishedAt":19},"01M7AYYGCXVT97DDTCM0ZJT6F6","yuanbao","Yuanbao (元宝) groups: @mention users, query info\u002Fmembers.","https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Fshared-skills\u002Fyuanbao\u002FSKILL.md",[],[],{"skillNo":213,"name":214,"nameZh":6,"description":215,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":216,"categories":217,"keywords":218,"publishedAt":19},"01M7AYYC2Y65NMGMD4GQXAZMMS","slidev","Create and present web-based slidedecks for developers using Slidev with Markdown, Vue components, code highlighting, animations, and interactive features. Use when building technical presentations, conference talks, code walkthroughs, teaching materials, or developer decks.","https:\u002F\u002Fgithub.com\u002Foat431\u002Fhermes_config_backup\u002Fblob\u002Fmain\u002Fworkflow\u002Fshared-skills\u002Fslidev\u002FSKILL.md",[],[]]