Research Memory Sync
Use this skill to turn the current discussion or workspace findings into durable Markdown notes inside a user-specified knowledge base, including Obsidian vaults.
Non-negotiable path rule
Never write to a default knowledge-base path.
Before writing, require one of:
- a path explicitly provided in the current user request;
- a path explicitly provided earlier in the same active task and clearly still in scope.
If no path is available, stop and ask the user for the knowledge-base path. Do not guess from previous unrelated projects, environment history, or common Obsidian locations.
Accept examples:
用 research-memory-sync 同步到 D:\Obsidian\documents\PLC
把这次问答沉淀到 C:\Users\admin\Documents\KnowledgeBase
Reject / ask for path:
同步到我的知识库
整理进 Obsidian
把这次内容沉淀一下
Workflow
- Confirm the destination path.
- If missing, ask for it.
- If present, verify whether it exists.
- If missing on disk, ask before creating unless the user explicitly said to create it.
- Inspect the existing folder structure.
- Preserve existing files and naming conventions where obvious.
- Do not reorganize unrelated notes.
- Classify the content.
- Use
Projects/<project-name>/... for project-specific research.
- Use
Learning/<topic>/... for general learning.
- Use
Literature/<paper-or-author>/... for paper reading.
- Use
Inbox/... when classification is unclear.
- Write concise, reusable Markdown notes.
- Separate facts, interpretations, decisions, open questions, and next actions.
- Prefer tables for metrics and comparisons.
- Preserve commands, file paths, experiment versions, and concrete dates.
- Update or create local indexes.
- Create
00_Index/Home.md if the target path is empty or lacks an index.
- Update the nearest relevant index for the note category.
- Report exactly what changed.
- List created/updated files.
- Mention if anything was intentionally not captured.
Recommended structure
For a general knowledge base:
<kb-path>/
00_Index/
Inbox/
Projects/
Learning/
Literature/
Methods/
Reports/
Slides/
For a single-project knowledge base:
<kb-path>/
00_Index/
Concepts/
QA/
Experiments/
Decisions/
Prompts/
Reports/
Slides/
Use the existing structure if the target already has one.
Note quality rules
- Do not dump the full chat transcript unless the user asks for a transcript.
- Capture durable knowledge: conclusions, definitions, metrics, tradeoffs, commands, and decisions.
- Mark judgments explicitly as judgments.
- Mark uncertain items or future work as open questions / TODOs.
- Use Chinese by default when the user is speaking Chinese.
- Use Obsidian wiki links when helpful, but keep files valid plain Markdown.
- Use YAML frontmatter with at least
type, created, updated, and useful tags.
Safety and overwrite rules
- Never delete or rewrite existing notes unless the user explicitly asks.
- Prefer appending a dated section to an existing note when the same topic already exists.
- When creating a new note, use a clear slug and avoid filename collisions.
- If a collision exists and the content is unrelated, create a suffixed filename.
- For large changes, state the planned files before writing if there is ambiguity.
Optional helper script
Use scripts/sync_markdown_note.py when you want deterministic directory creation, filename sanitization, and index updates. The script requires --kb-path; it has no default path.
Read references/note-schema.md when you need the preferred note templates or category mapping.
1---2name: research-memory-sync3description: Sync important Q&A, research discussions, experiment results, code-change summaries, decisions, and learning notes into a user-specified Markdown or Obsidian knowledge base. Use when the user explicitly asks to save, sync, archive,沉淀,整理到知识库/Obsidian/笔记库, or update research memory from the current conversation. Must ask for a knowledge-base path if none is provided.4---56# Research Memory Sync78Use this skill to turn the current discussion or workspace findings into durable Markdown notes inside a user-specified knowledge base, including Obsidian vaults.910## Non-negotiable path rule1112Never write to a default knowledge-base path.1314Before writing, require one of:1516- a path explicitly provided in the current user request;17- a path explicitly provided earlier in the same active task and clearly still in scope.1819If no path is available, stop and ask the user for the knowledge-base path. Do not guess from previous unrelated projects, environment history, or common Obsidian locations.2021Accept examples:2223```text24用 research-memory-sync 同步到 D:\Obsidian\documents\PLC25把这次问答沉淀到 C:\Users\admin\Documents\KnowledgeBase26```2728Reject / ask for path:2930```text31同步到我的知识库32整理进 Obsidian33把这次内容沉淀一下34```3536## Workflow37381. Confirm the destination path.39 - If missing, ask for it.40 - If present, verify whether it exists.41 - If missing on disk, ask before creating unless the user explicitly said to create it.422. Inspect the existing folder structure.43 - Preserve existing files and naming conventions where obvious.44 - Do not reorganize unrelated notes.453. Classify the content.46 - Use `Projects/<project-name>/...` for project-specific research.47 - Use `Learning/<topic>/...` for general learning.48 - Use `Literature/<paper-or-author>/...` for paper reading.49 - Use `Inbox/...` when classification is unclear.504. Write concise, reusable Markdown notes.51 - Separate facts, interpretations, decisions, open questions, and next actions.52 - Prefer tables for metrics and comparisons.53 - Preserve commands, file paths, experiment versions, and concrete dates.545. Update or create local indexes.55 - Create `00_Index/Home.md` if the target path is empty or lacks an index.56 - Update the nearest relevant index for the note category.576. Report exactly what changed.58 - List created/updated files.59 - Mention if anything was intentionally not captured.6061## Recommended structure6263For a general knowledge base:6465```text66<kb-path>/67 00_Index/68 Inbox/69 Projects/70 Learning/71 Literature/72 Methods/73 Reports/74 Slides/75```7677For a single-project knowledge base:7879```text80<kb-path>/81 00_Index/82 Concepts/83 QA/84 Experiments/85 Decisions/86 Prompts/87 Reports/88 Slides/89```9091Use the existing structure if the target already has one.9293## Note quality rules9495- Do not dump the full chat transcript unless the user asks for a transcript.96- Capture durable knowledge: conclusions, definitions, metrics, tradeoffs, commands, and decisions.97- Mark judgments explicitly as judgments.98- Mark uncertain items or future work as open questions / TODOs.99- Use Chinese by default when the user is speaking Chinese.100- Use Obsidian wiki links when helpful, but keep files valid plain Markdown.101- Use YAML frontmatter with at least `type`, `created`, `updated`, and useful tags.102103## Safety and overwrite rules104105- Never delete or rewrite existing notes unless the user explicitly asks.106- Prefer appending a dated section to an existing note when the same topic already exists.107- When creating a new note, use a clear slug and avoid filename collisions.108- If a collision exists and the content is unrelated, create a suffixed filename.109- For large changes, state the planned files before writing if there is ambiguity.110111## Optional helper script112113Use `scripts/sync_markdown_note.py` when you want deterministic directory creation, filename sanitization, and index updates. The script requires `--kb-path`; it has no default path.114115Read `references/note-schema.md` when you need the preferred note templates or category mapping.