Claude-scholar obsidian-project-memory
This skill should be used when the user asks to maintain an Obsidian knowledge base for a research project, import an existing research repository into Obsidian, keep project memory or daily notes synchronized, summarize project context into durable notes, or update experiments, results, papers, writing, and plans in an Obsidian vault without requiring MCP.
git clone https://github.com/Galaxy-Dawn/claude-scholar
T=$(mktemp -d) && git clone --depth=1 https://github.com/Galaxy-Dawn/claude-scholar "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/obsidian-project-memory" ~/.claude/skills/galaxy-dawn-claude-scholar-obsidian-project-memory && rm -rf "$T"
skills/obsidian-project-memory/SKILL.mdObsidian Project Memory
Maintain a filesystem-first, agent-driven Obsidian knowledge base for a research project.
Default note output language follows the project's configured
note_language; if no note language is configured, default to English. Keep technical terms, paper titles, and established folder names in their original form when that is clearer. Only switch note prose to another language when the user explicitly asks.
Prefer this skill when working inside a repository that:
- already contains
, or.claude/project-memory/registry.yaml - clearly looks like a research project and should be bound to an Obsidian vault.
Core principles
- Use scripts for project state management.
- Use agents for project understanding and synthesis.
- Write only durable research knowledge into a small vault structure.
- Do not require MCP, API keys, REST plugins, or
artifacts..base - Do not depend on
globally, but allow literature workflows to maintain.canvas
as a default literature graph artifact.Maps/literature.canvas - Treat internal experiment summary reports as durable result-facing notes under
, not asResults/Reports/
notes.Writing/
Default vault structure
Write into this project layout only:
Research/{project-slug}/ 00-Hub.md 01-Plan.md Knowledge/ Papers/ Experiments/ Results/ Reports/ Writing/ Daily/ Archive/
Read references/SCHEMA.md for the exact structure and note roles.
Deterministic helper script
Use
scripts/project_kb.py only for low-freedom operations such as detect, bootstrap, sync, and lifecycle management:
python3 scripts/project_kb.py detect --cwd "$PWD" python3 scripts/project_kb.py bootstrap --cwd "$PWD" --vault-path "$OBSIDIAN_VAULT_PATH" python3 scripts/project_kb.py sync --cwd "$PWD" --scope auto python3 scripts/project_kb.py lifecycle --cwd "$PWD" --mode archive python3 scripts/project_kb.py query-context --cwd "$PWD" --kind broad python3 scripts/project_kb.py query-context --cwd "$PWD" --kind experiment --query freezing python3 scripts/project_kb.py find-canonical-note --cwd "$PWD" --kind experiment --query freezing python3 scripts/project_kb.py note-lifecycle --cwd "$PWD" --mode archive --note "Results/Old-Result.md"
Do not expect the script to understand project meaning. It manages state; it does not replace synthesis.
Read references/SCRIPT-VS-AGENT.md when deciding whether a task belongs in the script or must stay agent-driven.
Default workflow
1. Detect and bind
- Run
.scripts/project_kb.py detect --cwd "$PWD" - If the repo is already bound, continue with the existing project.
- If the repo is not yet bound but is a strong research-project candidate, bootstrap it with
.project_kb.py bootstrap
For the detailed lifecycle, read references/WORKFLOW.md.
2. Read the minimum context
Before writing anything, read only the minimum stable context:
.claude/project-memory/<project_id>.md00-Hub.md01-Plan.md- today's
if it existsDaily/YYYY-MM-DD.md
If the task is about project understanding, existing docs, or historical results, load more context selectively using the references below.
3. Classify the knowledge delta
Route the current turn into one or more of these buckets:
knowledgepaperexperimentresultwritingdailyproject-structure
Read references/NOTE-ROUTING.md before writing.
4. Follow the default durable research path
Default path for substantive research work:
-> extract reusable ideas, baselines, and project relevancePapers/
-> turn those into testable hypotheses, runbooks, or ablationsExperiments/
-> promote stable findings with evidence and interpretationResults/
-> store one round or one batch's internal experiment report when a complete retrospective has been writtenResults/Reports/
-> externalize durable claims into reviews, proposals, drafts, slides, or rebuttal notesWriting/
Use
Daily/ as chronology and staging, not the final home for durable research knowledge.
Read references/PAPERS-TO-WRITING.md when deciding how a turn should advance along this path.
5. Decide whether agent-first synthesis is required
Use agent-first import/synthesis when:
- importing an existing repository for the first time,
- the user says the knowledge base is empty or lacks background,
- multiple source documents must be synthesized into stable project knowledge,
- the project needs a durable overview, research questions, experiment map, or results summary.
In these cases, first use an agent to read key sources, then write the synthesized result back into Obsidian.
Read references/AGENT-FIRST-IMPORT.md for the recommended source-reading order.
6. Write back minimally
Always keep write-back conservative.
Write back at least:
- today's
when this turn changes project state,Daily/YYYY-MM-DD.md
only when recent progress or top-level status truly changes,00-Hub.md
when project state changes..claude/project-memory/<project_id>.md
Then write only the durable note that matches the bucket:
->knowledgeKnowledge/
->paperPapers/
->experimentExperiments/
->resultResults/
->writingWriting/
->dailyDaily/
-> usuallyproject-structure
orKnowledge/Project-Overview.mdKnowledge/Source-Inventory.md
Internal experiment round reports should default to:
Results/Reports/YYYY-MM-DD--{experiment-line}--r{round}--{purpose}.md
Read references/NOTE-TEMPLATES.md when a note needs a stable shape.
Knowledge CRUD rules
Treat the vault as a small set of canonical notes plus supporting daily context.
Create
- Ingest new knowledge deliberately; do not equate every new Markdown file with a durable note.
- Keep one canonical note per durable object whenever possible:
- one stable project overview,
- one stable experiment note per experiment line,
- one stable result note per durable finding,
- one stable paper note per paper.
- For new Markdown files, default to summarize first, then route:
- promote directly only when the file is already stable and self-contained,
- otherwise merge into an existing canonical note or stage it in
.Daily/
- If the new durable object is a full internal experiment report, store it under
and link the matchingResults/Reports/
and canonicalExperiments/
notes.Results/
Read
- Query narrowly first:
- broad project questions ->
+ key00-Hub.md
notes,Knowledge/ - active work questions ->
+ today's01-Plan.md
+ project memory,Daily/ - specific experiment/result/paper questions -> the matching canonical note first,
- specific internal experiment retrospective -> the matching note in
first.Results/Reports/
- broad project questions ->
- Use agent synthesis only when the answer spans multiple durable sources or still depends on repo material after reading canonical notes.
Update
- Prefer updating an existing canonical note over creating a sibling note.
- Treat raw material as input, not as a final vault object.
- Allow fast append-only logging in
, but keep durable knowledge inDaily/
,Knowledge/
,Papers/
,Experiments/
,Results/
, orResults/Reports/
.Writing/
Delete
- Treat “remove”, “delete”, or “stop using” as archive by default.
- Purge only when the user explicitly asks for permanent deletion.
- When archiving or purging a durable note, repair direct links in
,00-Hub.md
, and explicit index notes so the main working surface does not point to missing files.01-Plan.md
Safety rules
- Do not mirror the whole repository into the vault.
- Do not generate empty folder taxonomies or placeholder notes without real content.
- Do not write every repo delta into a new note.
- Do not treat every code change as a knowledge update.
- Do not create
files unless the user explicitly asks for them..base - Do not create arbitrary
sprawl; the main default exception is.canvas
for literature workflows.Maps/literature.canvas - For engineering-only turns, prefer
plus project memory unless there is a real experiment, result, or planning impact.Daily/ - Treat “remove project knowledge” as archive by default; purge only when the user explicitly asks for permanent deletion.
Reference files
Load only what is needed:
- vault structure and note rolesreferences/SCHEMA.md
- detect/bootstrap/sync/archive workflowreferences/WORKFLOW.md
- default handoff from literature to experiments, results, and writingreferences/PAPERS-TO-WRITING.md
- boundary between low-freedom script operations and agent-only reasoningreferences/SCRIPT-VS-AGENT.md
- create/read/update/delete rules for durable research knowledgereferences/KNOWLEDGE-CRUD.md
- where each kind of knowledge should goreferences/NOTE-ROUTING.md
- how to ingest a newly created Markdown filereferences/NEW-MD-INGESTION.md
- how to import an existing project with agent synthesisreferences/AGENT-FIRST-IMPORT.md
- lightweight note shapes for common note typesreferences/NOTE-TEMPLATES.md