wanshuiyin/auto-claude-code-research-in-sleep/wiki-enrich
Claude Code and agent skill by wanshuiyin/auto-claude-code-research-in-sleep
- community
Checking that the SKILL.md file is still in the repository.
Fill in the per-paper TODO sections of research-wiki/papers/<slug>.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/ as TODO scaffolds.
Install
npx vskill@latest install wanshuiyin/auto-claude-code-research-in-sleep/wiki-enrichSKILL.md
The same SKILL.md was published earlier as wanshuiyin/auto-claude-code-research-in-sleep/wiki-enrich.
Wiki Enrich: Fill Paper TODO Sections (Karpathy LLM-Wiki)
Target: $ARGUMENTS
Why this skill exists
ingest_paper (called by /research-lit, /arxiv, /alphaxiv, /deepxiv, /semantic-scholar, /exa-search, /firecrawl-search) only renders the per-paper scaffold — frontmatter + abstract + 10 fillable _TODO._ placeholder sections (plus two protected sections: ## Connections is graph-summary and ## Abstract (original) is auto-populated when --arxiv-id is given). No downstream skill in ARIS fills those 10 sections; the wiki sits as TODO until someone reads each paper.
This contradicts the Karpathy LLM-wiki design (https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f):
"You never (or rarely) write the wiki yourself — the LLM writes and maintains all of it. … The tedious part of maintaining a knowledge base is not the reading or the thinking — it's the bookkeeping. … LLMs don't get bored, don't forget to update a cross-reference, and can touch 15 files in one pass."
/wiki-enrich is the missing back half of ingest_paper: it reads each scaffolded paper page, fetches paper content from external sources via a graceful fallback chain (see Phase 2.3 for the full 5-source chain), and rewrites the 10 fillable TODO sections into 1-3 sentence prose summaries.
Constants
- WIKI_ROOT = `research-wiki/` — Resolved relative to git root. Skill hard-fails if not a directory.
- TARGET_DEFAULT = `missing` — When no target is given, enrich only papers with ≥1 TODO section. Other targets:
<slug>(one paper) orall(every paper, even ones already enriched — usually combined with--forceto overwrite). - SOURCE_DEFAULT = `auto` — Fetch order: alphaxiv overview → alphaxiv abs → deepxiv brief → arXiv API abstract → page abstract fallback. First non-empty wins (full chain documented in Phase 2.3 table). Override with
--sourceto pin one source. - MAX_PAPERS = 20 — Hard cap per invocation; LLMs touch many files but token budgets are real. Override with
--max N. - FORCE = false — When
false(default), skip sections that already have non-TODO content. Whentrue, overwrite every fillable section, but never touch the two protected sections:## Connections(auto-generated fromedges.jsonl) and## Abstract (original)(immutable arXiv-fetched source data). - SECTIONS_TO_FILL — 10 fillable sections + 2 protected.
ingest_paper(research_wiki.py:436-473) scaffolds 11 section headers unconditionally and a 12th —## Abstract (original)— only when arXiv returns an abstract for the given--arxiv-id(research_wiki.py:469-473). Of these, 10 carry a_TODO._(or_TODO: fill in after reading._) marker and need filling. The other 2 —## Connections(position 10 in the enumeration below) and## Abstract (original)(position 12, conditional) — are protected by construction:Connectionsis auto-generated fromgraph/edges.jsonl,Abstract (original)is immutable source data from the arXiv API. This skill writes to the 10, never the 2.
One-line thesis(marker:_TODO: fill in after reading._)Problem / Gap(marker:_TODO._)Method(marker:_TODO._)Key Results(marker:_TODO._)Assumptions(marker:_TODO._)Limitations / Failure Modes(marker:_TODO._)Reusable Ingredients(marker:_TODO._)Open Questions(marker:_TODO._)Claims(marker:_TODO._) — fill with_No claims tracked yet._if noclaim:edges point to this paper; otherwise list them.Connections— NEVER edit (auto-generated fromgraph/edges.jsonl).Relevance to This Project(marker:_TODO._) — useRESEARCH_BRIEF.md,CLAUDE.md, orgap_map.mdfor project context. If no project context exists, leave as TODO and report it.Abstract (original)— leave alone (already populated byingest_paperwhen--arxiv-idwas used).
💡 Examples:-/wiki-enrich— enrich every paper with ≥1 TODO section (most common usage)-/wiki-enrich vllm— enrich a single paper by slug-/wiki-enrich all --force— rewrite every paper from scratch (use when you've adopted a new style)-/wiki-enrich --source alphaxiv --max 5— only use alphaxiv, only do 5 papers-/wiki-enrich missing --max 50— bigger batch (watch token budget)
Pre-flight
Resolve $WIKI_ROOT and $WIKI_SCRIPT (canonical chain — see shared-references/wiki-helper-resolution.md):
If either fails, hard-fail — this skill manipulates wiki state and must not run blind.
Workflow
Phase 1: Parse target + discover candidates
Parse $ARGUMENTS for the first positional (target) and flags (--source, --force, --max).
Build the candidate paper list:
If the candidate list is empty, print "✓ Nothing to enrich." and exit 0. Do not error.
Phase 2: For each paper — read, fetch, fill
Iterate one paper at a time. For each $PAPER in $PAPERS:
Step 2.1 — Read the page and project context. Use the Read tool on the full paper file. Extract from the YAML frontmatter:
node_id(e.g.paper:vllm) — slug = part afterpaper:arxivfromexternal_ids.arxiv— empty string if absenttitle- existing
## Abstract (original)blockquote (if present) — fallback content source
Additionally, on the FIRST paper of the batch (cache for the rest), read project-context files needed for the Claims and Relevance to This Project sections:
research-wiki/graph/edges.jsonl— scan forclaim:edges pointing to the current paper'snode_idRESEARCH_BRIEF.md(project root) — if present, source for project goalsCLAUDE.md(project root) — if present, fallback for project contextresearch-wiki/gap_map.md— if non-empty, source for gap framing
If none of the project-context files exist, the Relevance to This Project section will be filled with the literal "context not yet set" line (see Step 2.4 table).
Step 2.2 — Identify which sections are TODO.
Match each section header against its marker:
- A header followed by exactly
_TODO._→ fill - A header followed by
_TODO: fill in after reading._→ fill (One-line thesis) - A header followed by any other content → skip (unless
--force) ## Connections→ always skip (auto-generated)## Abstract (original)→ always skip (immutable source data)
If no fillable sections remain, log "skip: <slug> (already enriched)" and continue.
Step 2.3 — Fetch source content.
The fetch chain runs in order until one returns usable content (>200 chars of text):
| Order | Source | How | |
|---|---|---|---|
| 1 | alphaxiv overview (auto default; --source alphaxiv to pin) | WebFetch https://www.alphaxiv.org/overview/<arxiv_id>.md — LLM-optimized summary, often best for filling sections | |
| 2 | alphaxiv abs (fallback within alphaxiv) | WebFetch https://www.alphaxiv.org/abs/<arxiv_id>.md | |
| 3 | deepxiv brief (--source deepxiv to pin) | python3 "$DEEPXIV_FETCHER" paper-brief <arxiv_id> if helper resolves | |
| 4 | arXiv API abstract — fresh fetch (--source arxiv to pin) | curl http://export.arxiv.org/api/query?id_list=<arxiv_id> — log label: arxiv-api-abstract | |
| 5 | Page abstract — fallback (last resort) | Reuse the existing ## Abstract (original) blockquote already present in the page body from a prior ingest_paper run — log label: page-abstract-fallback | |
| — | No arxiv id + no page abstract | Skip this paper, log "skip: <slug> (no arxiv id, no abstract)", continue |
When trying alphaxiv: if WebFetch returns 404 / "Paper not found" / a redirect to the homepage, treat as miss and fall through.
When trying deepxiv: resolve $DEEPXIV_FETCHER per shared-references/integration-contract.md. If the helper or deepxiv CLI is missing, fall through silently.
Save the fetched content as $SOURCE_TEXT. Record which source succeeded for the log entry.
Step 2.4 — Generate per-section content.
You (Claude) are the LLM doing the grunt work. Given:
$SOURCE_TEXT(the fetched overview / brief / abstract)$TITLE- the list of fillable section headers
Write each TODO section's body following these rules:
| Section | Length | Style | What to extract | |
|---|---|---|---|---|
| One-line thesis | 1 sentence, ≤25 words | Declarative | The paper's core contribution in one sentence — what they built / proved / improved | |
| Problem / Gap | 1-2 sentences | Declarative | What problem the field had, why prior work fell short | |
| Method | 2-4 sentences | Technical, name the technique | Core mechanism — algorithm name + key idea + how it differs from baselines | |
| Key Results | 1-3 bullets OR 2-3 sentences | Quantitative | Headline numbers from the abstract / overview (X% improvement, Yx speedup, etc.). Keep units verbatim. | |
| Assumptions | 1-3 bullets | Declarative | What the paper takes for granted (workload type, hardware, model class, distribution shape) | |
| Limitations / Failure Modes | 1-3 bullets | Honest | What the paper explicitly admits OR what's structurally absent (e.g. "no multi-node evaluation", "assumes uniform request length") | |
| Reusable Ingredients | 1-3 bullets | Concrete | Techniques / datasets / insights from this paper that could be ported elsewhere. Highest value for `/idea-creator` — write carefully. | |
| Open Questions | 1-2 bullets | Question form | What the paper does NOT answer but raises | |
| Claims | 1 line | Static | If no claim: edges in graph/edges.jsonl reference this paper, write the literal italic line: _No claims tracked yet — populate via /proof-checker._. Else list claim node IDs. | |
| Relevance to This Project | 1-2 sentences | Project-contextual | Use RESEARCH_BRIEF.md / CLAUDE.md / gap_map.md to phrase the connection. If no project context, write the literal italic line: _Project context not yet set — populate RESEARCH_BRIEF.md or gap_map.md to enable this section._ and report. |
Rules (Karpathy fidelity):
- Faithful to source. If the paper doesn't say it, don't invent it. Prefer
_Not stated in source._over hallucination. - No filler. "This paper presents an approach to..." — don't write that. Start with the noun.
- Keep technical terms in English. vLLM, KV cache, prefill, decode, TTFT, etc. stay verbatim.
- Quantitative when possible. If the abstract has numbers, use them; don't paraphrase as "significant".
- Bilingual support. If the project's
CLAUDE.mddeclares a language preference (language: zhorlanguage: bilingual), match it. Otherwise default to English (or followshared-references/output-language.md).
Step 2.5 — Edit the file.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/wiki-enrich/SKILL.md
Popularity
- Repository stars
- 13,696
- Repository forks
- 1,224
- 7-day trend score
- 48
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/wanshuiyin/auto-claude-code-research-in-sleep/wiki-enrich)