Composite skill. Distill an academic paper into a structured wiki entry following the six-section format (Goal/Background/Related Works/Method/Evaluation/Results). Trigger whenever the user says 'distill this paper', 'add paper to wiki', 'summarize paper', or provides a paper title/PDF/URL for knowledge extraction. After writing the new entry, performs a second-pass wiki scan to update cross-references and flag contradictions across existing pages.
Transform an academic paper into a structured, reusable wiki entry, then propagate its impact across the existing knowledge base. Two-phase process: first write the new entry, then update the wiki graph.
| Phase | Skill | Required? | Purpose |
|---|---|---|---|
| Phase 1 | read-wiki | yes | Check for duplicates, gather related context |
| Phase 1 | clone-codebase | conditional | Cross-reference paper claims with source code |
| Phase 1 | write-wiki-page | yes | Write new entry to Knowledge Base |
| Phase 2 | read-wiki | yes | Second pass — scan all pages for cross-references |
| Phase 2 | write-wiki-page |
| conditional |
| Update Related Works sections of other pages |
| Phase 2 | write-comments | conditional | Flag contradictions on affected pages |
The user must provide at least ONE of:
/mnt/user-data/uploads/Optional:
If none are provided, ask the user to specify the paper.
Execute read-wiki to:
If an entry already exists:
Wiki entry for "{paper title}" already exists (last updated {date}).
Update the existing entry, or skip?
Based on the input source:
/mnt/user-data/uploads/web_fetch to retrieveExtract all content needed for the six-section format.
Only if the user provides a repo URL.
Execute clone-codebase with the provided URL.
After cloning, search the codebase for:
Add findings to the Method section as implementation notes.
If no repo URL is provided, skip this step entirely.
Generate the wiki entry in mandatory format:
## Goal
{What problem does this paper solve? Core motivation.}
## Background
{Prerequisites, assumptions, target domain.
Link to related wiki entries found in Step 1.}
## Related Works
{Papers compared against. How this work differs.
Cross-reference existing wiki entries:
- "See also: [Wiki: {related paper}] — {relationship}"}
## Method
{Core algorithm and data flow.
Processing model (parallelism, dataflow pattern).
Architecture design (hardware/software structure).
[If code cross-referenced]: Implementation notes from {repo}.}
## Evaluation
{Benchmark setup: datasets, platforms, baselines.
Experimental methodology.}
## Results
{Key metrics and numbers — exact values, not paraphrased.
Limitations and applicability scope.
Claims that could NOT be verified from the paper alone.}
Present the draft to the user. Do NOT write to Notion until approved.
After user approval:
Target folder: "Knowledge Base"
Page title: "{Paper title} ({year})"
Content: {approved six-section entry}
Execute read-wiki again — this time scanning ALL pages to find:
A. Pages that should link to the new entry:
B. Pages whose claims contradict the new entry:
Present the changelist to the user:
[CROSS-REFERENCE CHANGELIST]
--- Direct Updates (will apply automatically if approved) ---
1. "{page title}" — Related Works section
Add: "See also: [{new paper title}] — {relationship description}"
2. "{page title}" — Related Works section
Add: "See also: [{new paper title}] — {relationship description}"
--- Contradictions (will post as inline comments) ---
3. "{page title}" — {section}
Content: "{existing claim}"
Contradicts: "{new paper's finding}"
Comment to post: "[CONTRADICTION from {new paper}] {explanation}"
4. ...
Type "confirm" to apply all changes, or specify which to skip.
After user approval:
For direct updates (Related Works links):
Execute write-wiki-page for each affected page, updating only the
Related Works section to add a cross-reference link and short description.
Do NOT modify any other section of the affected page.
For contradictions:
Execute write-comments to post inline comments on the affected pages:
page_id: {affected page id}