[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M782911F5WQ49HTJVJAQ0T2S":3,"skill-same:01M782911F5WQ49HTJVJAQ0T2S":66},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":47},"01M782911F5WQ49HTJVJAQ0T2S","teach",null,"Structured multi-session teaching — missions, lessons, retrieval practice.","stainless-code\u002Fpersist","stainless-code","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F188862219?v=4","01M7826VYMCF2NTQWQZRWQ454T","STAINLESS CODE","01M7826VZKNC149Y9ZNK0F93N7",5,"MIT","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Fpersist\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fteach\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: teach\ndescription: Structured multi-session teaching — missions, lessons, retrieval practice.\ndisable-model-invocation: true\nargument-hint: \"What would you like to learn about?\"\n---\n\n# Teach\n\nThe user wants to **learn something over multiple sessions**. This is stateful — progress lives in files in a **teaching workspace**, not in chat memory alone.\n\n## Teaching workspace\n\n**Default location:** `teach\u002F\u003Ctopic-slug>\u002F` at the repo root (never inside `src\u002F` package code). User may choose another directory — treat **that directory** as the workspace root.\n\n**Git:** workspaces are **personal by default** — do not commit `teach\u002F**` unless the user explicitly wants shared onboarding material in the repo (add it to `.gitignore` otherwise).\n\nState files at workspace root:\n\n| File \u002F folder             | Purpose                                                                                        |\n| ------------------------- | ---------------------------------------------------------------------------------------------- |\n| `MISSION.md`              | Why they're learning — grounds every lesson. [MISSION-FORMAT.md](.\u002FMISSION-FORMAT.md)          |\n| `GLOSSARY.md`             | Canonical terms once understood. [GLOSSARY-FORMAT.md](.\u002FGLOSSARY-FORMAT.md)                    |\n| `RESOURCES.md`            | High-trust knowledge + community sources. [RESOURCES-FORMAT.md](.\u002FRESOURCES-FORMAT.md)         |\n| `NOTES.md`                | User teaching preferences, scratchpad                                                          |\n| `.\u002Flearning-records\u002F*.md` | Decision-grade insights (ADR-shaped). [LEARNING-RECORD-FORMAT.md](.\u002FLEARNING-RECORD-FORMAT.md) |\n| `.\u002Flessons\u002F*.html`        | Primary teaching unit — one scoped win per file (`0001-slug.html`, increment)                  |\n| `.\u002Freference\u002F*.html`      | Compressed cheat sheets for revisit (syntax, flows, glossaries)                                |\n| `.\u002Fassets\u002F*`              | Reusable lesson components (stylesheet first)                                                  |\n\nCreate directories lazily when first needed.\n\n## Persist repo topics\n\nWhen the mission is **this codebase** (seams, codecs, backends, hydration, rules, skills):\n\n1. **Explore before lecturing** — `Read` \u002F `Grep` \u002F `Glob` over `src\u002F`, `docs\u002F`, `.agents\u002F` before parametric guesses.\n2. **Domain language** — if teaching the persistence model, read [`docs\u002Fglossary.md`](..\u002F..\u002F..\u002Fdocs\u002Fglossary.md) and [`docs\u002Farchitecture.md`](..\u002F..\u002F..\u002Fdocs\u002Farchitecture.md); align lesson terms.\n3. **Cite symbols and paths** — not line numbers (they drift). Link to `.agents\u002Fskills\u002F\u003Cname>\u002FSKILL.md` or concrete `src\u002F` paths.\n4. **RESOURCES.md** — include repo docs ([`.agents\u002FREADME.md`](..\u002F..\u002FREADME.md), relevant skills, [`docs\u002Farchitecture.md`](..\u002F..\u002F..\u002Fdocs\u002Farchitecture.md)) alongside external sources.\n\nGeneral topics (Rust, yoga, etc.): **never trust parametric knowledge** until `RESOURCES.md` is populated.\n\n## Philosophy\n\nThree layers: **Knowledge** (trusted resources) · **Skills** (interactive lessons + feedback loops) · **Wisdom** (communities, real-world practice).\n\nSplit **fluency** (in-session recall) vs **storage strength** (long-term retention). Design for storage: retrieval practice, spacing, interleaving (skills only).\n\n## Lessons\n\n- One self-contained **HTML** file per lesson — clean, short, one tangible win tied to `MISSION.md`.\n- Link to other lessons \u002F reference docs via anchors.\n- Cite a primary external resource per lesson when possible.\n- End with: ask the agent follow-up questions — you're the teacher.\n- Open the lesson file for the user when possible (`open .\u002Flessons\u002F0001-….html` on macOS).\n\nBefore authoring: read `.\u002Fassets\u002F`; **reuse is default**. Shared stylesheet is the first component every workspace earns — every lesson links it so the course looks consistent. When a lesson needs something reusable (quiz widget, diagram helper), add it to `.\u002Fassets\u002F` and link — never inline code a second lesson would duplicate.\n\n## Mission first\n\nIf `MISSION.md` is empty or vague, **interview the user** (one question at a time; recommend an answer) before writing lessons. Revise mission only after user confirms — record shift in a learning record.\n\n## Zone of proximal development\n\nRead `learning-records\u002F`, mission, and glossary → teach the next thing that challenges **just enough**. User may name a topic directly.\n\n## Knowledge vs skills\n\nLessons target a **skill**; include only knowledge required for it. Knowledge from `RESOURCES.md` with citations. Skills via quizzes \u002F guided steps with **tight feedback loops**. Quiz options: equal word count when possible (no formatting clues).\n\n## Wisdom\n\nFor questions needing real-world judgment, answer then point to **communities** in `RESOURCES.md`. Respect if user opts out of communities — note in `RESOURCES.md`.\n\n## Reference documents\n\nCompress lesson essence into `.\u002Freference\u002F*.html` for revisit. Glossaries live in `GLOSSARY.md` at workspace root — adhere to terms in all lessons.\n\n## Related skills\n\n- Interview mission \u002F plan: [`grilling`](..\u002Fgrilling\u002FSKILL.md)\n- Project-aware plan + docs: [`grill-with-docs`](..\u002Fgrill-with-docs\u002FSKILL.md)\n- Domain terminology: [`domain-modeling`](..\u002Fdomain-modeling\u002FSKILL.md)\n","# Teach\n\nThe user wants to **learn something over multiple sessions**. This is stateful — progress lives in files in a **teaching workspace**, not in chat memory alone.\n\n## Teaching workspace\n\n**Default location:** `teach\u002F\u003Ctopic-slug>\u002F` at the repo root (never inside `src\u002F` package code). User may choose another directory — treat **that directory** as the workspace root.\n\n**Git:** workspaces are **personal by default** — do not commit `teach\u002F**` unless the user explicitly wants shared onboarding material in the repo (add it to `.gitignore` otherwise).\n\nState files at workspace root:\n\n| File \u002F folder             | Purpose                                                                                        |\n| ------------------------- | ---------------------------------------------------------------------------------------------- |\n| `MISSION.md`              | Why they're learning — grounds every lesson. [MISSION-FORMAT.md](.\u002FMISSION-FORMAT.md)          |\n| `GLOSSARY.md`             | Canonical terms once understood. [GLOSSARY-FORMAT.md](.\u002FGLOSSARY-FORMAT.md)                    |\n| `RESOURCES.md`            | High-trust knowledge + community sources. [RESOURCES-FORMAT.md](.\u002FRESOURCES-FORMAT.md)         |\n| `NOTES.md`                | User teaching preferences, scratchpad                                                          |\n| `.\u002Flearning-records\u002F*.md` | Decision-grade insights (ADR-shaped). [LEARNING-RECORD-FORMAT.md](.\u002FLEARNING-RECORD-FORMAT.md) |\n| `.\u002Flessons\u002F*.html`        | Primary teaching unit — one scoped win per file (`0001-slug.html`, increment)                  |\n| `.\u002Freference\u002F*.html`      | Compressed cheat sheets for revisit (syntax, flows, glossaries)                                |\n| `.\u002Fassets\u002F*`              | Reusable lesson components (stylesheet first)                                                  |\n\nCreate directories lazily when first needed.\n\n## Persist repo topics\n\nWhen the mission is **this codebase** (seams, codecs, backends, hydration, rules, skills):\n\n1. **Explore before lecturing** — `Read` \u002F `Grep` \u002F `Glob` over `src\u002F`, `docs\u002F`, `.agents\u002F` before parametric guesses.\n2. **Domain language** — if teaching the persistence model, read [`docs\u002Fglossary.md`](..\u002F..\u002F..\u002Fdocs\u002Fglossary.md) and [`docs\u002Farchitecture.md`](..\u002F..\u002F..\u002Fdocs\u002Farchitecture.md); align lesson terms.\n3. **Cite symbols and paths** — not line numbers (they drift). Link to `.agents\u002Fskills\u002F\u003Cname>\u002FSKILL.md` or concrete `src\u002F` paths.\n4. **RESOURCES.md** — include repo docs ([`.agents\u002FREADME.md`](..\u002F..\u002FREADME.md), relevant skills, [`docs\u002Farchitecture.md`](..\u002F..\u002F..\u002Fdocs\u002Farchitecture.md)) alongside external sources.\n\nGeneral topics (Rust, yoga, etc.): **never trust parametric knowledge** until `RESOURCES.md` is populated.\n\n## Philosophy\n\nThree layers: **Knowledge** (trusted resources) · **Skills** (interactive lessons + feedback loops) · **Wisdom** (communities, real-world practice).\n\nSplit **fluency** (in-session recall) vs **storage strength** (long-term retention). Design for storage: retrieval practice, spacing, interleaving (skills only).\n\n## Lessons\n\n- One self-contained **HTML** file per lesson — clean, short, one tangible win tied to `MISSION.md`.\n- Link to other lessons \u002F reference docs via anchors.\n- Cite a primary external resource per lesson when possible.\n- End with: ask the agent follow-up questions — you're the teacher.\n- Open the lesson file for the user when possible (`open .\u002Flessons\u002F0001-….html` on macOS).\n\nBefore authoring: read `.\u002Fassets\u002F`; **reuse is default**. Shared stylesheet is the first component every workspace earns — every lesson links it so the course looks consistent. When a lesson needs something reusable (quiz widget, diagram helper), add it to `.\u002Fassets\u002F` and link — never inline code a second lesson would duplicate.\n\n## Mission first\n\nIf `MISSION.md` is empty or vague, **interview the user** (one question at a time; recommend an answer) before writing lessons. Revise mission only after user confirms — record shift in a learning record.\n\n## Zone of proximal development\n\nRead `learning-records\u002F`, mission, and glossary → teach the next thing that challenges **just enough**. User may name a topic directly.\n\n## Knowledge vs skills\n\nLessons target a **skill**; include only knowledge required for it. Knowledge from `RESOURCES.md` with citations. Skills via quizzes \u002F guided steps with **tight feedback loops**. Quiz options: equal word count when possible (no formatting clues).\n\n## Wisdom\n\nFor questions needing real-world judgment, answer then point to **communities** in `RESOURCES.md`. Respect if user opts out of communities — note in `RESOURCES.md`.\n\n## Reference documents\n\nCompress lesson essence into `.\u002Freference\u002F*.html` for revisit. Glossaries live in `GLOSSARY.md` at workspace root — adhere to terms in all lessons.\n\n## Related skills\n\n- Interview mission \u002F plan: [`grilling`](..\u002Fgrilling\u002FSKILL.md)\n- Project-aware plan + docs: [`grill-with-docs`](..\u002Fgrill-with-docs\u002FSKILL.md)\n- Domain terminology: [`domain-modeling`](..\u002Fdomain-modeling\u002FSKILL.md)\n",{"name":5,"description":7,"argument-hint":24,"disable-model-invocation":25},"What would you like to learn about?",true,"main","29ca2183c92cd13e04ce6c14fb431fd6993862cd",".agents\u002Fskills\u002Fteach",0,"https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Fpersist","https:\u002F\u002Fgithub.com\u002Fstainless-code","https:\u002F\u002Fstainless-code.com\u002F","Open-source tooling for JS\u002FTS and AI agents.","2026-11-01 20:56:20",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":25},[37,40,43],{"tool":38,"command":39},"npx","npx skills add stainless-code\u002Fpersist --skill teach",{"tool":41,"command":42},"bunx","bunx skills add stainless-code\u002Fpersist --skill teach",{"tool":44,"command":45},"pnpm","pnpm dlx skills add stainless-code\u002Fpersist --skill teach","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Fpersist\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fteach\u002FSKILL.md",[48,54,58,62],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"GLOSSARY-FORMAT.md","REFERENCE","参考文档",784,"https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Fpersist\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fteach\u002FGLOSSARY-FORMAT.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"LEARNING-RECORD-FORMAT.md",951,"https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Fpersist\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fteach\u002FLEARNING-RECORD-FORMAT.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"MISSION-FORMAT.md",941,"https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Fpersist\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fteach\u002FMISSION-FORMAT.md",{"path":63,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":64,"sourceHtmlUrl":65},"RESOURCES-FORMAT.md",968,"https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Fpersist\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fteach\u002FRESOURCES-FORMAT.md",[67,74,81,88,95,102],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M782D4ZQGJPNT470FSKDB6A8","vue-persist","Gate Vue 3 UI on Persist hydration with useHydrated (shallowRef). Use in setup\u002FeffectScope when avoiding flash of default state on async backends.","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Fpersist\u002Fblob\u002Fmain\u002Fskills\u002Fvue-persist\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M782D1GJRWNQ3458F3H1FK2F","svelte-store-persist","Gate Svelte store-based UI on Persist hydration with hydratedStore (Readable). Use for Svelte 3–4 or Svelte 5 apps that still use stores; runes UI → svelte-persist.","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Fpersist\u002Fblob\u002Fmain\u002Fskills\u002Fsvelte-store-persist\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M782CWBTRWAQ52TBNQ8665CC","svelte-persist","Gate Svelte 5 runes UI on Persist hydration with hydratedRune (.current). Use for Svelte 5; for stores \u002F Svelte 3–4 use svelte-store-persist.","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Fpersist\u002Fblob\u002Fmain\u002Fskills\u002Fsvelte-persist\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M782CR8Z2V3SJW661RTMWY2F","solid-persist","Gate Solid UI on Persist hydration with useHydrated (Accessor). Use when avoiding flash of default state on async backends; read hydrated() in reactive scopes.","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Fpersist\u002Fblob\u002Fmain\u002Fskills\u002Fsolid-persist\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M782CJQGP7739WA9BS801HZP","react-persist","Gate React UI on Persist hydration with useHydrated + toHydrationSignal. Use when avoiding flash of default state on async backends (IndexedDB), SSR snapshot true, or wiring HydrationSignal into React 18\u002F19.","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Fpersist\u002Fblob\u002Fmain\u002Fskills\u002Freact-persist\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M782CF96RMXCDETM5TF2JDRV","preact-persist","Gate Preact UI on Persist hydration with useHydrated (preact\u002Fcompat useSyncExternalStore). Use when avoiding flash of default state on async backends or wiring HydrationSignal into Preact.","https:\u002F\u002Fgithub.com\u002Fstainless-code\u002Fpersist\u002Fblob\u002Fmain\u002Fskills\u002Fpreact-persist\u002FSKILL.md",[],[]]