[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FDQQ7Z9RX8Z82ZH8VR3ZQ7":3,"skill-same:01M7FDQQ7Z9RX8Z82ZH8VR3ZQ7":48},{"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":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7FDQQ7Z9RX8Z82ZH8VR3ZQ7","interview-cheatsheet",null,"Generate a long-form Chinese interview-prep cheat sheet on a specific ML\u002FLLM topic — formulas with derivations, from-scratch PyTorch code, comparison tables, and 25 高频面试题 (L1 必会 \u002F L2 进阶 \u002F L3 顶级 lab). Use when the user says '写面试 cheat sheet', '写一份 X 教程', '帮我准备 Y 面试题', '出一份 X 速查', or wants a 600-1000 line Chinese tutorial on a specific ML topic.","CZX-LBJ\u002Fdeepseek-science","CZX-LBJ","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F204594689?v=4","01M7FC59WQ9PFXT04MKGJDCFFT","czx","01M7FC59XB2GW0BKWN9JTDBQS7",1,"MIT","https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fskills-codex\u002Finterview-cheatsheet\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: interview-cheatsheet\ndescription: \"Generate a long-form Chinese interview-prep cheat sheet on a specific ML\u002FLLM topic — formulas with derivations, from-scratch PyTorch code, comparison tables, and 25 高频面试题 (L1 必会 \u002F L2 进阶 \u002F L3 顶级 lab). Use when the user says '写面试 cheat sheet', '写一份 X 教程', '帮我准备 Y 面试题', '出一份 X 速查', or wants a 600-1000 line Chinese tutorial on a specific ML topic.\"\nargument-hint: '\u003Ctopic> [--effort balanced|max] [--byline \"Name (姓名), Affiliation\"] [--commit false]'\nallowed-tools: Bash(*), Read, Write, Edit, spawn_agent\n---\n\n# \u002Finterview-cheatsheet — long-form Chinese ML\u002FLLM interview prep\n\nGenerate one comprehensive Chinese cheat sheet per invocation: formulas + derivations + from-scratch code + 25 高频题. Output receives fresh-agent same-family provisional math\u002Fcode review before rendering. **Detect-only by default: never auto-commits.**\n\n## Inputs\n\n- **`\u003Ctopic>`** (required) — narrow enough for one 600-1000 line tutorial. Good: \"RLHF \u002F DPO \u002F PPO\", \"MoE\", \"KV Cache + Speculative Decoding\". Bad (too broad): \"all of LLM training\", \"diffusion\" (split into Forward Process \u002F Sampling \u002F CFG separately).\n- **`--effort`** (default `balanced`) — `balanced` ≈ 600 lines, `max` ≈ 1000 lines with deeper proofs and more L3 questions.\n- **`--byline`** (default `\"\u003CYour Name>, \u003CAffiliation>\"`) — passed to `\u002Frender-html --author`.\n- **`--commit`** (default `false`) — if `false` (default), stop after rendering; user reviews and commits. Never push without explicit user approval.\n\n## Style guide — STRICT (read `docs\u002Ftutorials\u002Fattention_tutorial.md` as canonical reference)\n\n### Section skeleton (12-14 sections)\n\n```\n## §0 TL;DR — callout intro line + numbered list of 5-7 takeaways\n## §1 直觉 — why this matters; analogy; one-paragraph mental model\n## §2 核心公式 — main formula + derivation (variance \u002F scaling \u002F boundary)\n## §3 实现细节 — 50-80 line from-scratch PyTorch\n## §4-7 变体 \u002F 工程实践 \u002F 常见 bug — variants, comparison tables, footguns\n## §8 复杂度 \u002F 资源 — time + memory complexity\n## §9 与相关方法对比 — placement in the ecosystem\n## §10 25 高频面试题 — L1 (10 必会) + L2 (10 进阶) + L3 (5 顶级 lab), all with \u003Cdetails>\u003Csummary> collapsible answers\n## §A 附录 (optional) — sanity-check output, reference list\n```\n\n### Conventions — bake the established lessons in\n\n| Rule | Why | Example |\n|---|---|---|\n| Heading format `## §N Title` with **space after §N** | Older versions had `§0TL;DR` glued | `## §0 TL;DR Cheat Sheet` |\n| Math in table cells: use `\\lvert ... \\rvert` not `\\|...\\|` | `\\|` inside markdown table = cell separator → row break | `$\\text{score}_{ij} - m \\cdot \\lvert i-j \\rvert$` |\n| Callouts with body list: **split** into callout intro line + separate list | Otherwise the list's first item is swallowed by the callout, then items 2..N restart numbering at 1 | `> 💡 **Sampler 选择** — 按 NFE\u002F质量排序如下。`\u003Cbr\u002F>`- Euler …`\u003Cbr\u002F>`- Heun …` |\n| Callout prefixes only: `💡` `⚠️` `✅` `❌` (others won't get class) | renderer maps these to `callout-info\u002Fwarn\u002Fgood\u002Fbad` | `> ⚠️ **FP16 overflow** — 即使除了 √d_k …` |\n| Math: `$...$` inline, `$$...$$` display, `$$\\boxed{...}$$` for key boxes | MathJax CDN; literal in source | — |\n| Code: ```python fences, **real PyTorch that would run** | reviewer will check executability | — |\n| Personal-info banlist: owner's institution\u002Flab\u002Fcenter names, degree-program affiliations, private server aliases, job-search context, `\u002FUsers\u002F...` paths, specific lab\u002Fcompany names | reviewer flags as FAIL | byline goes via `--author` at render time, not in body |\n| Language: Chinese primary, English technical terms in-place | matches established cheat-sheet style | \"softmax 饱和\", \"vector field\" |\n\n### Eyebrow \u002F subtitle \u002F title naming\n\n| Field | Pattern |\n|---|---|\n| `--eyebrow` | `Interview Prep · \u003CTopic>` |\n| `--subtitle` | one Chinese sentence describing scope (e.g. `公式推导 + From-Scratch 代码 + 25 高频题（L1 必会 · L2 进阶 · L3 顶级 lab）`) |\n| `--title` | `\u003CTopic> 面试 Cheat Sheet` or `\u003CTopic> Quick Reference` |\n| `--lang` | `zh-CN` |\n\n### Slug\n`\u003Ctopic>` → kebab\u002Fsnake-case `\u003Cslug>` for filenames. e.g. \"RLHF \u002F DPO \u002F PPO\" → `rlhf_dpo_ppo`.\n\n## Workflow\n\n### Step 1 — Plan structure (no files written)\n\nInternally sketch:\n- 12-14 section titles\n- List of major formulas (with derivation outline for each)\n- List of code blocks (skeleton + what it demonstrates)\n- 25 interview questions sorted by L1 \u002F L2 \u002F L3 difficulty (each with one-line expected answer)\n- Comparison table topics (e.g., \"RLHF vs DPO vs IPO vs SimPO\")\n\nIf the topic is too broad to fit in one cheat sheet, **stop and ask the user to scope** before drafting.\n\n### Step 2 — Draft MD\n\nWrite directly to `docs\u002Ftutorials\u002F\u003Cslug>_tutorial.md`. Follow the style guide. Length target: 600 lines (balanced) or 1000 lines (max), ±20%.\n\n### Step 3 — Fresh-agent math\u002Fcode review (Codex GPT-6-Astra xhigh, same-family provisional)\n\nInvoke `spawn_agent` with `model: gpt-6-astra`, `reasoning_effort: xhigh`, and a fresh thread. Do not reuse prior reviewer context.\n\nReviewer prompt:\n\n```\nYou are reviewing a long-form Chinese interview-prep tutorial on \u003CTOPIC> for math\u002Fcode\u002Ffactual correctness and style discipline.\n\n## Files to read (READ-ONLY)\n- Draft MD: \u003CMD_PATH>\n- Style reference: docs\u002Ftutorials\u002Fattention_tutorial.md\n  (Read this only for STYLE — do NOT score the draft against the reference's content topic.)\n\n## Return JSON with these 10 checks\n\n1. formula_correctness — Independently re-derive each $$ display formula. Flag any error with file:line.\n2. code_correctness — For each python block: would it run? Does it implement the stated math? Imports \u002F shapes \u002F device handling consistent?\n3. interview_answer_correctness — Each L1\u002FL2\u002FL3 question's \u003Cdetails> answer. Specifically flag wrong year \u002F wrong paper \u002F wrong author \u002F off-by-one indexing \u002F inverted comparison.\n4. historical_citations — Paper authors + year + venue. Flag wrong attributions (e.g., \"DPO: Rafailov 2023 NeurIPS\" must be checkable).\n5. table_pipe_escape — Any markdown table cell containing `|x|` math (not `\\lvert x \\rvert`)? Cite line.\n6. callout_list_collision — Any line matching the pattern `^> (?:💡|⚠️|✅|❌) \\*\\*[^*]+\\*\\* — (?:- |\\d+\\. )`? That swallows the list.\n7. heading_consistency — All `## §N` and `### N.M` follow style guide (space after §N, no glued chars).\n8. section_completeness — Sections §0..§10 (and §A if effort=max) present and non-trivial.\n9. length_target — Within ±20% of target (600 for balanced, 1000 for max).\n10. personal_info_leak — None of: the owner's institution \u002F lab \u002F center names, degree-program affiliations, private server aliases, job-search or recruitment context, absolute `\u002FUsers\u002F...` paths. (Keep the concrete string banlist in local untracked notes — the public SKILL defines only the CATEGORIES; listing the real values here would itself be the leak.)\n\nReturn JSON:\n{\n  \"verdict\": \"PASS | WARN | FAIL\",\n  \"checks\": {\u003Ccheck_name>: \"pass|warn|fail with one-line note + file:line if applicable\"},\n  \"blocking_issues\": [\"...\"],\n  \"warnings\": [\"...\"]\n}\n\nVerdict: PASS = all pass, WARN = at most cosmetic issues (length slight off \u002F cosmetic style), FAIL = any math\u002Fcode\u002Ffactual error OR personal-info leak OR table-pipe \u002F callout-list bug.\n```\n\n### Step 4 — Fix and loop (no hard cap — judge by trajectory)\n\nFor each FAIL issue, edit the MD. Then re-invoke Codex with a **fresh `spawn_agent` call** (never continue with `send_input`). Stop when verdict = PASS or WARN with no FAIL items.\n\n**No hard round cap.** Use these heuristics instead:\n\n- ✅ **Keep going** if each round's FAIL items are *shrinking, concrete, enumerable* (e.g., citation year fixes, off-by-one, single-line code bugs). The reviewer is doing useful work — let it converge.\n- ⛔ **Stop and report** if the same issue keeps coming back (loop detected), or if the FAIL items shift to architectural \u002F scope concerns that need user input, or if the round count exceeds ~6 without convergence.\n\nMost tutorials converge in 3-5 rounds. Going to 5-6 rounds is fine if substantive bugs are still being caught — the Video Generation tutorial (May 2026) went to 5 rounds and the final 2 rounds caught real citation errors and an over-attribution to Sora's patch size that would have shipped otherwise.\n\n### Step 5 — Render via \u002Frender-html\n\nCall directly (do not invoke `\u002Frender-html` as a sub-skill; call its python script — gives clear control):\n\n```bash\npython3 skills\u002Frender-html\u002Fscripts\u002Frender_html.py docs\u002Ftutorials\u002F\u003Cslug>_tutorial.md \\\n  --template academic \\\n  --out docs\u002Ftutorials\u002F\u003Cslug>_tutorial.html \\\n  --title \"\u003CTopic> 面试 Cheat Sheet\" \\\n  --subtitle \"\u003Cone-line scope summary>\" \\\n  --eyebrow \"Interview Prep · \u003CTopic>\" \\\n  --author \"\u003Cbyline>\" \\\n  --lang zh-CN\n```\n\n`render_html.py` runs its own 13-check codex review automatically. If that FAILs, fix the MD (often a table-pipe or callout-list issue the math\u002Fcode reviewer missed) and re-render. Note that `render_html.py` itself writes `\u003Cslug>_tutorial.review.json` for the render-stage audit.\n\n### Step 6 — Combine audit trail\n\nAfter both reviews pass, merge math\u002Fcode review history + render review history into one `docs\u002Ftutorials\u002F\u003Cslug>_tutorial.review.json`:\n\n```json\n{\n  \"skill\": \"interview-cheatsheet\",\n  \"source\": \"docs\u002Ftutorials\u002F\u003Cslug>_tutorial.md\",\n  \"source_sha256_prefix\": \"\u003C16-char prefix>\",\n  \"output\": \"docs\u002Ftutorials\u002F\u003Cslug>_tutorial.html\",\n  \"topic\": \"\u003CTOPIC>\",\n  \"effort\": \"balanced | max\",\n  \"byline\": \"\u003Cauthor string>\",\n  \"math_code_review\": {\n    \"verdict\": \"PASS\",\n    \"rounds\": [\n      {\"run\": 1, \"verdict\": \"...\", \"thread_id\": \"...\", \"issue\": \"...\", \"fix\": \"...\"},\n      ...\n    ]\n  },\n  \"render_review\": {\n    \"verdict\": \"PASS\",\n    \"rounds\": [...]\n  },\n  \"summary\": \"\u003Cone-line: N-round math\u002Fcode review + M-round render review settled at PASS>\",\n  \"rendered_at\": \"\u003CYYYY-MM-DD>\"\n}\n```\n\n### Step 7 — Stop. Report to user.\n\nDo **NOT** `git add` \u002F `git commit` \u002F `git push`. Report:\n\n```\n✅ \u002Finterview-cheatsheet \"\u003CTOPIC>\" complete.\n\n  Files:\n    docs\u002Ftutorials\u002F\u003Cslug>_tutorial.md          (\u003Clines> lines, \u003Cbytes> bytes)\n    docs\u002Ftutorials\u002F\u003Cslug>_tutorial.html        (\u003Cbytes> bytes, \u003CTOC> TOC entries)\n    docs\u002Ftutorials\u002F\u003Cslug>_tutorial.review.json\n\n  Math\u002Fcode review:  PASS after \u003CN> rounds (\u003Cthread IDs>)\n  Render review:     PASS after \u003CM> rounds\n  Length:            \u003Cactual> lines (target \u003Ceffort>)\n\n  Issues caught + fixed during review:\n    - \u003Cone line per non-trivial fix>\n\n  Suggested commit message:\n    docs(tutorials): add \u003CTopic> cheat sheet (rendered via \u002Frender-html)\n\n  ⚠️ Did NOT auto-commit — user reviews and pushes manually.\n  Also update docs\u002Ftutorials\u002FREADME.md to add the new row.\n```\n\n## Update the index\n\nAfter the tutorial passes, optionally append a row to `docs\u002Ftutorials\u002FREADME.md`:\n\n```\n| **\u003CTopic> 面试 Cheat Sheet** | [`\u003Cslug>_tutorial.md`](\u003Cslug>_tutorial.md) | [`\u003Cslug>_tutorial.html`](https:\u002F\u002Fwanshuiyin.github.io\u002FAuto-claude-code-research-in-sleep\u002Ftutorials\u002F\u003Cslug>_tutorial.html) | \u003Cone-line topic list> |\n```\n\nSuggest the row to the user but let them edit it in themselves if they want to curate.\n\n## Key invariants (the ARIS rules baked in)\n\n| Invariant | How it's enforced |\n|---|---|\n| Executor\u002Freviewer family | Codex drafts; fresh gpt-6-astra reviews (math\u002Fcode stage and render stage), same-family provisional |\n| Fresh agent per reviewer call | Step 3 + render's own gate both use fresh `spawn_agent` calls, not `send_input` |\n| Codex reasoning = xhigh | Hardcoded in Step 3 reviewer config |\n| Personal info redaction | Both math\u002Fcode reviewer and render reviewer check; banlist in style guide |\n| Lessons-learned encoded | Table-pipe + callout-list collision rules in style guide AND review checks 5+6 |\n| No silent failure | If review FAILs and the FAIL set is no longer shrinking (loop) or hits ~6 rounds without convergence, stop and report — don't push |\n\n## When NOT to use\n\n- Topic too broad — split into smaller scopes first\n- Topic outside ML\u002FLLM core — this style guide assumes math + code + Chinese; for general topics use a different format or write directly\n- Already have a draft you want to edit — use Edit directly, this skill is for greenfield generation\n- Don't want HTML output — call `\u002Frender-html` separately or skip Step 5\n\n## Reference invocations\n\n```\n\u002Finterview-cheatsheet \"RLHF \u002F DPO \u002F PPO\"\n\u002Finterview-cheatsheet \"MoE (Mixture-of-Experts)\" — effort: max\n\u002Finterview-cheatsheet \"KV Cache + Speculative Decoding\"\n\u002Finterview-cheatsheet \"Long-context: RoPE \u002F YaRN \u002F NTK \u002F MLA\"\n\u002Finterview-cheatsheet \"Distributed Training (DDP \u002F FSDP \u002F ZeRO \u002F TP \u002F PP)\"\n\u002Finterview-cheatsheet \"Quantization (GPTQ \u002F AWQ \u002F INT4 \u002F FP8 \u002F SmoothQuant)\"\n```\n\n## Reference style files\n\n- Style canonical: `docs\u002Ftutorials\u002Fattention_tutorial.md` + `.html`\n- Style secondary: `docs\u002Ftutorials\u002Fflow_matching_tutorial.md` + `.html`\n- Review audit format: `docs\u002Ftutorials\u002Fattention_tutorial.review.json`\n\n## Provenance\n\nExtracted from the two pilot tutorials (Attention + Flow Matching, May 2026). Both passed fresh-agent review; that review is same-family provisional in the base Codex mirror. The attention tutorial required 3 rounds and caught a table-pipe collision plus a callout-list collision.\n","# \u002Finterview-cheatsheet — long-form Chinese ML\u002FLLM interview prep\n\nGenerate one comprehensive Chinese cheat sheet per invocation: formulas + derivations + from-scratch code + 25 高频题. Output receives fresh-agent same-family provisional math\u002Fcode review before rendering. **Detect-only by default: never auto-commits.**\n\n## Inputs\n\n- **`\u003Ctopic>`** (required) — narrow enough for one 600-1000 line tutorial. Good: \"RLHF \u002F DPO \u002F PPO\", \"MoE\", \"KV Cache + Speculative Decoding\". Bad (too broad): \"all of LLM training\", \"diffusion\" (split into Forward Process \u002F Sampling \u002F CFG separately).\n- **`--effort`** (default `balanced`) — `balanced` ≈ 600 lines, `max` ≈ 1000 lines with deeper proofs and more L3 questions.\n- **`--byline`** (default `\"\u003CYour Name>, \u003CAffiliation>\"`) — passed to `\u002Frender-html --author`.\n- **`--commit`** (default `false`) — if `false` (default), stop after rendering; user reviews and commits. Never push without explicit user approval.\n\n## Style guide — STRICT (read `docs\u002Ftutorials\u002Fattention_tutorial.md` as canonical reference)\n\n### Section skeleton (12-14 sections)\n\n```\n## §0 TL;DR — callout intro line + numbered list of 5-7 takeaways\n## §1 直觉 — why this matters; analogy; one-paragraph mental model\n## §2 核心公式 — main formula + derivation (variance \u002F scaling \u002F boundary)\n## §3 实现细节 — 50-80 line from-scratch PyTorch\n## §4-7 变体 \u002F 工程实践 \u002F 常见 bug — variants, comparison tables, footguns\n## §8 复杂度 \u002F 资源 — time + memory complexity\n## §9 与相关方法对比 — placement in the ecosystem\n## §10 25 高频面试题 — L1 (10 必会) + L2 (10 进阶) + L3 (5 顶级 lab), all with \u003Cdetails>\u003Csummary> collapsible answers\n## §A 附录 (optional) — sanity-check output, reference list\n```\n\n### Conventions — bake the established lessons in\n\n| Rule | Why | Example |\n|---|---|---|\n| Heading format `## §N Title` with **space after §N** | Older versions had `§0TL;DR` glued | `## §0 TL;DR Cheat Sheet` |\n| Math in table cells: use `\\lvert ... \\rvert` not `\\|...\\|` | `\\|` inside markdown table = cell separator → row break | `$\\text{score}_{ij} - m \\cdot \\lvert i-j \\rvert$` |\n| Callouts with body list: **split** into callout intro line + separate list | Otherwise the list's first item is swallowed by the callout, then items 2..N restart numbering at 1 | `> 💡 **Sampler 选择** — 按 NFE\u002F质量排序如下。`\u003Cbr\u002F>`- Euler …`\u003Cbr\u002F>`- Heun …` |\n| Callout prefixes only: `💡` `⚠️` `✅` `❌` (others won't get class) | renderer maps these to `callout-info\u002Fwarn\u002Fgood\u002Fbad` | `> ⚠️ **FP16 overflow** — 即使除了 √d_k …` |\n| Math: `$...$` inline, `$$...$$` display, `$$\\boxed{...}$$` for key boxes | MathJax CDN; literal in source | — |\n| Code: ```python fences, **real PyTorch that would run** | reviewer will check executability | — |\n| Personal-info banlist: owner's institution\u002Flab\u002Fcenter names, degree-program affiliations, private server aliases, job-search context, `\u002FUsers\u002F...` paths, specific lab\u002Fcompany names | reviewer flags as FAIL | byline goes via `--author` at render time, not in body |\n| Language: Chinese primary, English technical terms in-place | matches established cheat-sheet style | \"softmax 饱和\", \"vector field\" |\n\n### Eyebrow \u002F subtitle \u002F title naming\n\n| Field | Pattern |\n|---|---|\n| `--eyebrow` | `Interview Prep · \u003CTopic>` |\n| `--subtitle` | one Chinese sentence describing scope (e.g. `公式推导 + From-Scratch 代码 + 25 高频题（L1 必会 · L2 进阶 · L3 顶级 lab）`) |\n| `--title` | `\u003CTopic> 面试 Cheat Sheet` or `\u003CTopic> Quick Reference` |\n| `--lang` | `zh-CN` |\n\n### Slug\n`\u003Ctopic>` → kebab\u002Fsnake-case `\u003Cslug>` for filenames. e.g. \"RLHF \u002F DPO \u002F PPO\" → `rlhf_dpo_ppo`.\n\n## Workflow\n\n### Step 1 — Plan structure (no files written)\n\nInternally sketch:\n- 12-14 section titles\n- List of major formulas (with derivation outline for each)\n- List of code blocks (skeleton + what it demonstrates)\n- 25 interview questions sorted by L1 \u002F L2 \u002F L3 difficulty (each with one-line expected answer)\n- Comparison table topics (e.g., \"RLHF vs DPO vs IPO vs SimPO\")\n\nIf the topic is too broad to fit in one cheat sheet, **stop and ask the user to scope** before drafting.\n\n### Step 2 — Draft MD\n\nWrite directly to `docs\u002Ftutorials\u002F\u003Cslug>_tutorial.md`. Follow the style guide. Length target: 600 lines (balanced) or 1000 lines (max), ±20%.\n\n### Step 3 — Fresh-agent math\u002Fcode review (Codex GPT-6-Astra xhigh, same-family provisional)\n\nInvoke `spawn_agent` with `model: gpt-6-astra`, `reasoning_effort: xhigh`, and a fresh thread. Do not reuse prior reviewer context.\n\nReviewer prompt:\n\n```\nYou are reviewing a long-form Chinese interview-prep tutorial on \u003CTOPIC> for math\u002Fcode\u002Ffactual correctness and style discipline.\n\n## Files to read (READ-ONLY)\n- Draft MD: \u003CMD_PATH>\n- Style reference: docs\u002Ftutorials\u002Fattention_tutorial.md\n  (Read this only for STYLE — do NOT score the draft against the reference's content topic.)\n\n## Return JSON with these 10 checks\n\n1. formula_correctness — Independently re-derive each $$ display formula. Flag any error with file:line.\n2. code_correctness — For each python block: would it run? Does it implement the stated math? Imports \u002F shapes \u002F device handling consistent?\n3. interview_answer_correctness — Each L1\u002FL2\u002FL3 question's \u003Cdetails> answer. Specifically flag wrong year \u002F wrong paper \u002F wrong author \u002F off-by-one indexing \u002F inverted comparison.\n4. historical_citations — Paper authors + year + venue. Flag wrong attributions (e.g., \"DPO: Rafailov 2023 NeurIPS\" must be checkable).\n5. table_pipe_escape — Any markdown table cell containing `|x|` math (not `\\lvert x \\rvert`)? Cite line.\n6. callout_list_collision — Any line matching the pattern `^> (?:💡|⚠️|✅|❌) \\*\\*[^*]+\\*\\* — (?:- |\\d+\\. )`? That swallows the list.\n7. heading_consistency — All `## §N` and `### N.M` follow style guide (space after §N, no glued chars).\n8. section_completeness — Sections §0..§10 (and §A if effort=max) present and non-trivial.\n9. length_target — Within ±20% of target (600 for balanced, 1000 for max).\n10. personal_info_leak — None of: the owner's institution \u002F lab \u002F center names, degree-program affiliations, private server aliases, job-search or recruitment context, absolute `\u002FUsers\u002F...` paths. (Keep the concrete string banlist in local untracked notes — the public SKILL defines only the CATEGORIES; listing the real values here would itself be the leak.)\n\nReturn JSON:\n{\n  \"verdict\": \"PASS | WARN | FAIL\",\n  \"checks\": {\u003Ccheck_name>: \"pass|warn|fail with one-line note + file:line if applicable\"},\n  \"blocking_issues\": [\"...\"],\n  \"warnings\": [\"...\"]\n}\n\nVerdict: PASS = all pass, WARN = at most cosmetic issues (length slight off \u002F cosmetic style), FAIL = any math\u002Fcode\u002Ffactual error OR personal-info leak OR table-pipe \u002F callout-list bug.\n```\n\n### Step 4 — Fix and loop (no hard cap — judge by trajectory)\n\nFor each FAIL issue, edit the MD. Then re-invoke Codex with a **fresh `spawn_agent` call** (never continue with `send_input`). Stop when verdict = PASS or WARN with no FAIL items.\n\n**No hard round cap.** Use these heuristics instead:\n\n- ✅ **Keep going** if each round's FAIL items are *shrinking, concrete, enumerable* (e.g., citation year fixes, off-by-one, single-line code bugs). The reviewer is doing useful work — let it converge.\n- ⛔ **Stop and report** if the same issue keeps coming back (loop detected), or if the FAIL items shift to architectural \u002F scope concerns that need user input, or if the round count exceeds ~6 without convergence.\n\nMost tutorials converge in 3-5 rounds. Going to 5-6 rounds is fine if substantive bugs are still being caught — the Video Generation tutorial (May 2026) went to 5 rounds and the final 2 rounds caught real citation errors and an over-attribution to Sora's patch size that would have shipped otherwise.\n\n### Step 5 — Render via \u002Frender-html\n\nCall directly (do not invoke `\u002Frender-html` as a sub-skill; call its python script — gives clear control):\n\n```bash\npython3 skills\u002Frender-html\u002Fscripts\u002Frender_html.py docs\u002Ftutorials\u002F\u003Cslug>_tutorial.md \\\n  --template academic \\\n  --out docs\u002Ftutorials\u002F\u003Cslug>_tutorial.html \\\n  --title \"\u003CTopic> 面试 Cheat Sheet\" \\\n  --subtitle \"\u003Cone-line scope summary>\" \\\n  --eyebrow \"Interview Prep · \u003CTopic>\" \\\n  --author \"\u003Cbyline>\" \\\n  --lang zh-CN\n```\n\n`render_html.py` runs its own 13-check codex review automatically. If that FAILs, fix the MD (often a table-pipe or callout-list issue the math\u002Fcode reviewer missed) and re-render. Note that `render_html.py` itself writes `\u003Cslug>_tutorial.review.json` for the render-stage audit.\n\n### Step 6 — Combine audit trail\n\nAfter both reviews pass, merge math\u002Fcode review history + render review history into one `docs\u002Ftutorials\u002F\u003Cslug>_tutorial.review.json`:\n\n```json\n{\n  \"skill\": \"interview-cheatsheet\",\n  \"source\": \"docs\u002Ftutorials\u002F\u003Cslug>_tutorial.md\",\n  \"source_sha256_prefix\": \"\u003C16-char prefix>\",\n  \"output\": \"docs\u002Ftutorials\u002F\u003Cslug>_tutorial.html\",\n  \"topic\": \"\u003CTOPIC>\",\n  \"effort\": \"balanced | max\",\n  \"byline\": \"\u003Cauthor string>\",\n  \"math_code_review\": {\n    \"verdict\": \"PASS\",\n    \"rounds\": [\n      {\"run\": 1, \"verdict\": \"...\", \"thread_id\": \"...\", \"issue\": \"...\", \"fix\": \"...\"},\n      ...\n    ]\n  },\n  \"render_review\": {\n    \"verdict\": \"PASS\",\n    \"rounds\": [...]\n  },\n  \"summary\": \"\u003Cone-line: N-round math\u002Fcode review + M-round render review settled at PASS>\",\n  \"rendered_at\": \"\u003CYYYY-MM-DD>\"\n}\n```\n\n### Step 7 — Stop. Report to user.\n\nDo **NOT** `git add` \u002F `git commit` \u002F `git push`. Report:\n\n```\n✅ \u002Finterview-cheatsheet \"\u003CTOPIC>\" complete.\n\n  Files:\n    docs\u002Ftutorials\u002F\u003Cslug>_tutorial.md          (\u003Clines> lines, \u003Cbytes> bytes)\n    docs\u002Ftutorials\u002F\u003Cslug>_tutorial.html        (\u003Cbytes> bytes, \u003CTOC> TOC entries)\n    docs\u002Ftutorials\u002F\u003Cslug>_tutorial.review.json\n\n  Math\u002Fcode review:  PASS after \u003CN> rounds (\u003Cthread IDs>)\n  Render review:     PASS after \u003CM> rounds\n  Length:            \u003Cactual> lines (target \u003Ceffort>)\n\n  Issues caught + fixed during review:\n    - \u003Cone line per non-trivial fix>\n\n  Suggested commit message:\n    docs(tutorials): add \u003CTopic> cheat sheet (rendered via \u002Frender-html)\n\n  ⚠️ Did NOT auto-commit — user reviews and pushes manually.\n  Also update docs\u002Ftutorials\u002FREADME.md to add the new row.\n```\n\n## Update the index\n\nAfter the tutorial passes, optionally append a row to `docs\u002Ftutorials\u002FREADME.md`:\n\n```\n| **\u003CTopic> 面试 Cheat Sheet** | [`\u003Cslug>_tutorial.md`](\u003Cslug>_tutorial.md) | [`\u003Cslug>_tutorial.html`](https:\u002F\u002Fwanshuiyin.github.io\u002FAuto-claude-code-research-in-sleep\u002Ftutorials\u002F\u003Cslug>_tutorial.html) | \u003Cone-line topic list> |\n```\n\nSuggest the row to the user but let them edit it in themselves if they want to curate.\n\n## Key invariants (the ARIS rules baked in)\n\n| Invariant | How it's enforced |\n|---|---|\n| Executor\u002Freviewer family | Codex drafts; fresh gpt-6-astra reviews (math\u002Fcode stage and render stage), same-family provisional |\n| Fresh agent per reviewer call | Step 3 + render's own gate both use fresh `spawn_agent` calls, not `send_input` |\n| Codex reasoning = xhigh | Hardcoded in Step 3 reviewer config |\n| Personal info redaction | Both math\u002Fcode reviewer and render reviewer check; banlist in style guide |\n| Lessons-learned encoded | Table-pipe + callout-list collision rules in style guide AND review checks 5+6 |\n| No silent failure | If review FAILs and the FAIL set is no longer shrinking (loop) or hits ~6 rounds without convergence, stop and report — don't push |\n\n## When NOT to use\n\n- Topic too broad — split into smaller scopes first\n- Topic outside ML\u002FLLM core — this style guide assumes math + code + Chinese; for general topics use a different format or write directly\n- Already have a draft you want to edit — use Edit directly, this skill is for greenfield generation\n- Don't want HTML output — call `\u002Frender-html` separately or skip Step 5\n\n## Reference invocations\n\n```\n\u002Finterview-cheatsheet \"RLHF \u002F DPO \u002F PPO\"\n\u002Finterview-cheatsheet \"MoE (Mixture-of-Experts)\" — effort: max\n\u002Finterview-cheatsheet \"KV Cache + Speculative Decoding\"\n\u002Finterview-cheatsheet \"Long-context: RoPE \u002F YaRN \u002F NTK \u002F MLA\"\n\u002Finterview-cheatsheet \"Distributed Training (DDP \u002F FSDP \u002F ZeRO \u002F TP \u002F PP)\"\n\u002Finterview-cheatsheet \"Quantization (GPTQ \u002F AWQ \u002F INT4 \u002F FP8 \u002F SmoothQuant)\"\n```\n\n## Reference style files\n\n- Style canonical: `docs\u002Ftutorials\u002Fattention_tutorial.md` + `.html`\n- Style secondary: `docs\u002Ftutorials\u002Fflow_matching_tutorial.md` + `.html`\n- Review audit format: `docs\u002Ftutorials\u002Fattention_tutorial.review.json`\n\n## Provenance\n\nExtracted from the two pilot tutorials (Attention + Flow Matching, May 2026). Both passed fresh-agent review; that review is same-family provisional in the base Codex mirror. The attention tutorial required 3 rounds and caught a table-pipe collision plus a callout-list collision.\n",{"name":5,"description":7,"allowed-tools":24,"argument-hint":25},"Bash(*), Read, Write, Edit, spawn_agent","\u003Ctopic> [--effort balanced|max] [--byline \"Name (姓名), Affiliation\"] [--commit false]","main","18193d71ea3441d7c033dbf195b8a7c75ac96f75","packages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fskills-codex\u002Finterview-cheatsheet",0,"https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science","https:\u002F\u002Fgithub.com\u002FCZX-LBJ","一个没事喜欢随便写点代码的小菜鸡\r\n","2026-10-22 09:48:04",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add CZX-LBJ\u002Fdeepseek-science --skill interview-cheatsheet",{"tool":40,"command":41},"bunx","bunx skills add CZX-LBJ\u002Fdeepseek-science --skill interview-cheatsheet",{"tool":43,"command":44},"pnpm","pnpm dlx skills add CZX-LBJ\u002Fdeepseek-science --skill interview-cheatsheet","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fskills-codex\u002Finterview-cheatsheet\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7FEEKSNMRMKW6JEK93PFDFY","bio-free-energy-calculations","Performs alchemical free-energy calculations including relative binding free energy (RBFE \u002F FEP+) and absolute binding free energy (ABFE) via OpenFE, FEP+, GROMACS, AMBER pmemd, and OpenMM with explicit lambda scheduling, soft-core potentials, MBAR\u002FBAR analysis, cycle-closure validation, and protocol-appropriate enhanced sampling. Compares ML alternatives (Boltz-2 affinity, DeepDock). Use when ranking analogs by binding affinity beyond docking accuracy, performing prospective lead optimization, or validating SAR predictions.","https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Fbioskills\u002Fchemoinformatics\u002Ffree-energy-calculations\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7FEE5CTE5QK55CEMXNNVWY9","bio-conformer-generation","Generates 3D conformer ensembles using RDKit ETKDGv3 with knowledge-enhanced distance geometry, MMFF94\u002FUFF force-field optimization, CREST + GFN2-xTB semi-empirical refinement, and macrocycle-aware torsion preferences. Provides explicit decision rules for single vs ensemble conformer use, RMSD pruning, energy windows, conformer count, and force-field choice. Use when preparing 3D ligands for docking, generating descriptor input for 3D QSAR, or sampling macrocycle\u002Fpeptide conformational ensembles.","https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Fbioskills\u002Fchemoinformatics\u002Fconformer-generation\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7FEDNGFEMFWD1MSEDR5H7CY","bio-admet-prediction","Predicts ADMET properties using ADMETlab 3.0 (119 platform features, including 77 prediction models with modeled-endpoint uncertainty), ADMET-AI, DeepChem MolNet, and chemprop D-MPNN with explicit handling of OECD QSAR principles, applicability domain assessment, calibration, hERG\u002FCYP\u002FAMES endpoints, and PAINS \u002F Lipinski \u002F Ro5 \u002F Veber \u002F BBB druglikeness filters. Use when filtering compounds for drug-likeness, prioritizing leads by predicted safety, or building an in-house ADMET QSAR model.","https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Fbioskills\u002Fchemoinformatics\u002Fadmet-prediction\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7FED69GFB54FRF7AV5066DN","writing-systems-papers","Paragraph-level structural blueprint for 10-12 page systems papers targeting OSDI, SOSP, ASPLOS, NSDI, and EuroSys. Provides page allocation, paragraph templates, and writing patterns. Use when user says \"写系统论文\", \"systems paper structure\", \"OSDI paper\", \"SOSP paper\", or wants fine-grained structural guidance for a systems conference submission.","https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fwriting-systems-papers\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7FECVVDWZ0X0VEDTCE4B4DZ","wiki-enrich","Fill in the per-paper TODO sections of research-wiki\u002Fpapers\u002F\u003Cslug>.md pages that literature-ingest skills leave as bare scaffolds. Use when user says 'enrich wiki', 'fill paper TODOs', 'wiki body 補完', '把 paper 摘要寫進 wiki', 'research-wiki 自動填', or after a batch ingest that left papers\u002F as TODO scaffolds.","https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fwiki-enrich\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7FECD4BCJ2MTSBDDSE3ZAJ5","web-debug-search","Search GitHub, Stack Exchange, Chinese technical communities, official documentation, and general developer web sources for software errors, compatibility problems, API usage questions, and real-world workarounds. Use for debugging and discovery only; results are not paper-citation evidence.","https:\u002F\u002Fgithub.com\u002FCZX-LBJ\u002Fdeepseek-science\u002Fblob\u002Fmain\u002Fpackages\u002Fskill\u002Fskill-science\u002Fassets\u002Fsources\u002Faris\u002Fskills\u002Fweb-debug-search\u002FSKILL.md",[],[]]