wiki-compile
/wiki-compile
Fill concept stubs with citation-grounded definitions. Use when user says 'fill in the stubs', 'compile concepts', 'flesh out concepts', or as follow-up after wiki-lint reports stubs. Do NOT use for new sources not yet in vault — that's wiki-ingest.
- Author
- noopz ↗
- Repository
- commonplace ↗
- Licence
- MIT
- Last repository change
- 26.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Fill concept stubs with citation-grounded definitions. Use when user says 'fill in the stubs', 'compile concepts', 'flesh out concepts', or as follow-up after wiki-lint reports stubs. Do NOT use for new sources not yet in vault — that's wiki-ingest.
Triggers from the description
Original author description
Fill concept stubs with citation-grounded definitions. Use when user says 'fill in the stubs', 'compile concepts', 'flesh out concepts', or as follow-up after wiki-lint reports stubs. Do NOT use for new sources not yet in vault — that's wiki-ingest.
How it works
- Why Stubs Exist
- Workflow
SKILL.md preview
---
name: wiki-compile
description: "Fill concept stubs with citation-grounded definitions. Use when user says 'fill in the stubs', 'compile concepts', 'flesh out concepts', or as follow-up after wiki-lint reports stubs. Do NOT use for new sources not yet in vault — that's wiki-ingest."
---
# Wiki Compile
Transform concept stubs ("Definition pending") into complete concept notes by reading the source papers that reference them and synthesizing real definitions.
## Why Stubs Exist
When wiki-ingest creates a source note, it extracts concepts and creates stub notes for any that don't exist yet. Stubs are placeholders that say "Definition pending - please update." They're intentional — creating a proper definition requires reading the source papers, which is expensive. This skill does that batch compilation efficiently.
## Workflow
### Step 0: Resolve vault path
The plugin states the vault path above this skill's text; use it directly. Only if it is missing, run `commonplace vault-path`. Use it in all commands and paths below.
### Step 1: Find stubs
```bash
commonplace lint --check stubs
```
Or if the user names specific concepts, just check those files directly.
### Step 2: Filter out malformed names
Before compiling, check each stub name. Skip any that look like sentence fragments:
- Names with 5 or more words
- Names that end with prepositions, articles, or conjunctions
- Names that don't look like real noun-phrase concepts
Flag skipped names to the user: "Skipping 'Context File Quality Directly Impacts' — looks like a sentence fragment, not a concept name. You may want to delete or rename these."
### Step 3: Compile each stub
For each valid stub:
1. **Find referencing sources**: `vault_links note:"<concept name>" direction:"in"` lists every note that links the concept, with the sentence each one uses it in (CLI twin: `commonplace links --ref "<concept name>" --direction in`). A long incoming list means the concept is referenced widely and deserves a richer definition. Cite only sources visible from the concept's own scope: a public concept never cites a private-domain source, even one open this session.
2. **Read those source notes**: Understand how the concept is used in context
3. **Synthesize a definition AND an abstraction**: Write a real definition based on how the concept appears across sources, and add an `abstraction:` frontmatter field — one canonical descriptor, ~6–12 words, noun-phrase-first, no citations or dates (e.g. 'memory architecture separating working, episodic, and semantic layers'). Filling a stub means writing both; the abstraction is the concept's primary retrieval key and its absence is what marked the note as a stub.
4. **Record source hashes**: For each source note cited, record its current commit in the `compiledFrom` frontmatter array so staleness can be detected later:
```bash
git -C "$VAULT_PATH" log -1 --format=%H -- "<source note's vault-relative path>"
```
If the vault isn't a git repo (the command errors or prints nothing), omit `compiledFrom` entirely rather than writing a placeholder hash.
### What a Good Concept Note Looks Like
Reference: a compiled concept note's record (`commonplace records --kind concept --match "<name>"`)
```markdown
---
tags: [concept, wikilinks]
cssclasses: []
created: 2025-11-07
updated: 2026-04-04
abstraction: 'memory architecture separating working, episodic, and semantic layers'
compiledFrom:
- path: 01 - Sources/Foo.md
hash: <git commit hash of Foo.md at compile time>
---
# Concept Name
One paragraph definition explaining what this concept is, written clearly enough that someone unfamiliar with the specific papers could understand it.
**Key Characteristics:**
- Characteristic 1
- Characteristic 2
- Characteristic 3
## Papers Using This Concept
- [[Paper Name 1]]
- [[Paper Name 2]]
## Related Concepts
- [[Related Concept 1]]
- [[Related Concept 2]]
```
### Writing Style
- **Be specific**: "A memory architecture with separate working, episodic, and semantic layers" not "A type of memory system"
- **Ground in the papers**: The definition should reflect how the concept is actually used in the vault's sources
- **Keep it concise**: One paragraph for the definition, bullet points for characteristics
- **Update the `updated` date** in frontmatter to today's date
- **List all referencing papers** in the Papers section
### Step 4: Post-compilation
After writing a compiled concept:
- Run `commonplace link --target "<concept name>"` to insert wikilinks for the new concept across any source notes that mention it but don't link it. Deterministic — safe to run without review.
### Batch Control
- **Default**: Compile up to 5 stubs per invocation
- **If user says "all"**: Compile all valid stubs (can be many — warn if >20)
- **If user names specific concepts**: Compile just those, e.g., `$ARGUMENTS` = "ReAct and behavioral cloning"
### Step 5: Report
Tell the user:
- How many stubs were compiled
- How many were skipped (malformed names)
- Any stubs with zero backlinks (orphan concepts that may not need definitions)
Versions
The database has no other skills named wiki-compile.
Database snapshot: 13.11.2026 · package version 6c8bdf0234e3 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100wiki-ingest
Compile articles, documents, or notes into a structured wiki knowledge base. Use when user says 'ingest to wiki', 'compile to knowledge base', 'update wiki', 'wiki ingest', 'add this to wiki', or invokes /wiki-ingest. Supports single or batch ingest. Triggers: wiki, ingest,… - 86wiki-ingest
Compile changed context/ material into wiki pages, update index and log, run the lint. Use when a librarian ingests into wiki/. - 90research
This skill should be used when wiki-researcher needs to investigate a topic from scratch with web search, capture multiple sources, identify concepts, write cross-linked wiki pages with confidence scoring, and detect contradictions with existing knowledge. Triggers on "research… - 84ingest
Ingest a paper into the wiki — creates pages (papers + concepts + people + claims) and builds all cross-references and graph edges. Trigger whenever the user says "ingest", "add this paper", drops a `.pdf` / `.tex` / arXiv URL, or asks to fold a paper into the knowledge base. - 90lint-wiki
Health-check the podcast wiki (wiki/) and fix what's found. Use when the user asks to lint, audit, clean up, or check the wiki, or after a large ingest. - 100wiki-lint
Read-only vault health check. Use when user says 'how's the vault', 'audit', 'lint', 'anything broken', 'show me broken links/stubs/orphans'. Do NOT use when user wants fixes applied — hand off to autoimprove.