/memory-palace:knowledge-intakefrom memory-palace
Processes external resources (articles, papers, docs) into structured knowledge with quality scoring, storage decisions, and application routing. Guides evaluation, connection to memory palaces, and pruning of outdated knowledge.
Ships in memory-palace. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Process external resources into the knowledge store. When a user links an article, blog post, or paper, this skill guides evaluation, storage decisions, and application routing.
A knowledge governance framework that answers three questions for every external resource:
When a user links an external resource, it is a signal of importance.
The act of sharing indicates the resource passed the user's own filter. Our job is to:
When a user shares a link:
1. FETCH → Detect format, retrieve and convert content
2. EVALUATE → Apply importance criteria
3. DECIDE → Storage location and application type
4. STORE → Create structured knowledge entry
5. VALIDATE → Scribe verification (slop scan + doc verify)
6. CONNECT → Link to existing palace structures
7. PROMOTE → Offer Discussion promotion (score 80+)
8. APPLY → Route to codebase or infrastructure updates
9. PRUNE → Identify displaced/outdated knowledge
Before retrieving content, detect the source format from the URL or file path to choose the right retrieval method.
Web articles and blog posts (default path): Use WebFetch to retrieve HTML content directly. No conversion needed.
Document URLs (PDF, DOCX, PPTX, XLSX):
Apply the leyline:document-conversion protocol.
This tries the markitdown MCP tool first for high-quality
markdown, then falls back to native Claude Code tools
(Read for PDFs, etc.), then informs the user if the
format is unsupported without markitdown.
Local files (user shares a file path):
Construct a file:// URI from the absolute path and
apply the leyline:document-conversion protocol.
Format detection heuristics:
| URL Pattern | Format | Retrieval |
|---|---|---|
*.pdf, arxiv.org/pdf/* | document-conversion | |
*.docx, *.doc | Word | document-conversion |
*.pptx, *.ppt | PowerPoint | document-conversion |
*.xlsx, *.xls | Excel | document-conversion |
*.epub | E-book | document-conversion |
drive.google.com/* | Various | document-conversion |
| Everything else | HTML/web | WebFetch (existing) |
After retrieval (regardless of method), wrap the content
in external content boundary markers per
leyline:content-sanitization before proceeding to
Step 2 (EVALUATE).
All knowledge corpus entries MUST pass scribe validation before finalizing.
Run Skill(scribe:slop-detector) on the new entry:
Use Agent(scribe:doc-verifier) to validate:
# Quick validation for knowledge corpus entry
/slop-scan docs/knowledge-corpus/[entry-name].md
# Doc verification is now agent-only:
Agent(scribe:doc-verifier) "Verify docs/knowledge-corpus/[entry-name].md"
DO NOT finalize entries with slop score > 2.5 - rewrite with concrete specifics.
When the evaluation score is 80-100 (evergreen), you MUST execute the Discussion promotion workflow. If the score is below 80, skip this step entirely.
Execute these steps in order:
modules/discussion-promotion.md for the
full GraphQL workflowgh api graphql commands from the module
to create or update a Discussion in the "Knowledge"
categorydiscussion_urldiscussion_url field,
update the existing Discussion instead of creating
a new onegh is unavailable or promotion fails, warn
the user and continue to Step 8 (APPLY)Publishing is the default for qualifying entries. It never blocks the intake workflow.
| Criterion | Weight | Questions |
|---|---|---|
| Novelty | 25% | Does this introduce new patterns or concepts? |
| Applicability | 30% | Can we apply this to current work? |
| Durability | 20% | Will this remain relevant in 6+ months? |
| Connectivity | 15% | Does it connect to multiple existing concepts? |
| Authority | 10% | Is the source credible and well-reasoned? |
Apply when knowledge directly improves current project:
Action: Update code, add comments, create ADR
Apply when knowledge improves our plugin ecosystem:
Action: Update skills, create modules, enhance agents
Is the knowledge...
├── About HOW we build things? → Meta-infrastructure
│ ├── Skill patterns → Update abstract/memory-palace skills
│ ├── Learning methods → Add to knowledge-corpus
│ └── Tool techniques → Create new skill module
│
└── About WHAT we're building? → Local codebase
├── Domain knowledge → Store in project docs
├── Implementation patterns → Update code/architecture
└── Bug/issue solutions → Apply fix, document
| Knowledge Type | Location | Format |
|---|---|---|
| Meta-learning patterns | docs/knowledge-corpus/ | Full memory palace entry |
| Skill design insights | skills/*/modules/ | Technique module |
| Tool/library knowledge | docs/references/ | Quick reference |
| Temporary insights | Digital garden seedling | Lightweight note |
"A cluttered palace is a cluttered mind."
New knowledge often displaces old, but time is not the criterion. Relevance and aspirational alignment are.
The human in the loop defines what stays. Before major tidying:
For each piece of knowledge, both must be yes:
| Finding | Action |
|---|---|
| Supersedes | Archive old with gratitude, link as context |
| Contradicts | Evaluate both, keep what sparks joy |
| No longer aligned | Release with gratitude |
| Complements | Create bidirectional links |
"I might need this someday" is fear talking. Release it.
Before storing anything, run the marginal value filter: an entry that
cannot teach something the corpus does not already teach is skipped.
After storage, RL usage signals, quality decay and the anchor-question
clarity gate keep each entry's score current. Source lineage records
provenance and does not change a score. The
three-step filter, its API, the autonomy levels and the scoring model
are in modules/quality-scoring.md.
User shares: "Check out this article on structured concurrency"
intake:
source: "https://example.com/structured-concurrency"
# PHASE 3: Marginal Value Filter
marginal_value:
redundancy:
level: partial_overlap
overlap_score: 0.65
matching_entries: [async-patterns, python-concurrency]
delta:
type: novel_insight
value_score: 0.75
novel_aspects: [structured, taskgroup, context-manager]
teaching_delta: "Introduces structured concurrency pattern"
integration:
decision: standalone
confidence: 0.80
rationale: "Novel insights justify standalone entry"
# Continue with evaluation if filter passes
evaluation:
novelty: 75 # New pattern for error handling
applicability: 90 # Directly relevant to async code
durability: 85 # Core concept, won't age quickly
connectivity: 70 # Links to error handling, async patterns
authority: 80 # Well-known author, cited sources
total: 82 # Evergreen, store and apply
routing:
type: both
local_application:
- Refactor async error handling in current project
- Add structured concurrency pattern to codebase
meta_application:
- Create module in relevant skill
- Add to knowledge-corpus as reference
storage:
location: docs/knowledge-corpus/structured-concurrency.md
format: memory_palace_entry
maturity: growing
pruning:
displaces:
- Old async error patterns (mark deprecated)
complements:
- Existing error handling module
- Async patterns documentation
Research sessions and external content are automatically queued for review in docs/knowledge-corpus/queue/.
# List pending queue entries
ls -1t docs/knowledge-corpus/queue/*.yaml
# Review specific entry
cat docs/knowledge-corpus/queue/2025-12-31_topic.yaml
# Process approved entry
# 1. Create memory palace entry in docs/knowledge-corpus/
# 2. Update queue entry status to 'processed'
# 3. Archive or delete queue entry
The research-queue-integration hook automatically queues:
Queue entry format: written by hooks/research_queue.py, one YAML file per entry
pending_review → [Review] → approved/rejected
approved → [Create Entry] → processed
processed → [Archive] → queue/archive/
uv run python scripts/intake_cli.py --candidate path/to/intake_candidate.json --auto-acceptdocs/knowledge-corpus/*.md),
developer drafts (docs/developer-drafts/), and appends audit rows to docs/curation-log.md.--output-root in tests or sandboxes to avoid mutating the main corpus.--process-queue flag to review and process queued entries interactively.modules/evaluation-rubric.mdmodules/storage-patterns.mdmodules/konmari-tidying.mdmodules/pruning-workflows.mdmodules/discussion-promotion.md for full workflow.modules/quality-scoring.mdmodules/hook-integration.mdMemory-palace hooks (user_prompt, web_research_handler,
local_doc_processor, research_queue) add a context message when
content may need intake. They deduplicate against
memory-palace-index.yaml and run safety checks first. Triggers,
signals and the index schema are in modules/hook-integration.md.
memory-palace-architect - Structures stored knowledge spatiallydigital-garden-cultivator - Manages knowledge lifecycleknowledge-locator - Finds and retrieves stored knowledgeskills-eval (abstract) - Evaluates meta-infrastructure updatesmemory-clarity-probe - Dual-probe gate for the clarity check in
modules/quality-scoring.mdweb_research_handler)importance_score in [0, 100] and a
routing decision from the Application Routing treemodules/discussion-promotion.md (opens in a new tab)modules/evaluation-rubric.md (opens in a new tab)modules/hook-integration.md (opens in a new tab)modules/konmari-tidying.md (opens in a new tab)modules/pruning-workflows.md (opens in a new tab)modules/quality-scoring.md (opens in a new tab)modules/storage-patterns.md (opens in a new tab)prompts/marginal_value_dual.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub athola/claude-night-market --plugin memory-palace10 skills in this plugin
/digital-garden-cultivatorManages digital garden notes, link structures, and health metrics. Use when curating a knowledge base, pruning stale notes, or tracking content maturity./knowledge-locatorSearches and navigates stored knowledge in memory palaces. Use when looking for previously stored information or cross-referencing concepts across palaces./memory-clarity-probeProbe memory/summary clarity via dual anchor questions: task progress, info gaps. Use when verifying session state or summary before handoff or compression.
/memory-palace-architectDesigns memory palace structures with spatial layouts and domain organization. Use when creating a new palace or planning knowledge architecture by hand./palace-diagramGenerates Mermaid and ASCII diagrams of palace structure, knowledge topology, and synapse connectivity. Use when inspecting or presenting a palace visually./palace-index-curatorCurate the web-capture index. Use when the capture backlog grows, captures sit unprocessed at seedling/pending, or to surface stored research during work.Other plugins' skills for the same job