Files

130 lines
3.3 KiB
Markdown
Raw Permalink Normal View History

# Obsidian PKM Assistant
2026-01-05 19:25:56 +08:00
> Core principles only. See `06_Metadata/WORKFLOWS.md` for detailed procedures.
2026-01-05 19:25:56 +08:00
---
## Safety First
2026-01-05 19:25:56 +08:00
### Data Integrity
- **Never delete without approval** - Always ask before removing content
- **Preserve everything when merging** - Only remove verified exact duplicates
- **Verify before moving** - Check destination exists, update all `[[wikilinks]]` after
- **Read before writing** - Use Read tool before editing any file
2026-01-05 19:25:56 +08:00
### File Operations
- Use `mv` not `cp` (avoid duplicates)
- Never move numbered folders (00-06) from vault root
- Get approval for bulk operations affecting 5+ files
2026-01-05 19:25:56 +08:00
---
## PARA Structure
2026-01-05 19:25:56 +08:00
```
00_Inbox/ → Temporary capture, process weekly
01_Projects/ → Time-bound work with deadlines
02_Areas/ → Ongoing responsibilities
03_Resources/ → Reference materials
04_Archive/ → Completed items
05_Attachments/ → Media files
06_Metadata/ → Docs & templates
2026-01-05 19:25:56 +08:00
```
**Quick Decision**: Deadline? → Projects | Ongoing? → Areas | Reference? → Resources | Unsure? → Inbox
2026-01-05 19:25:56 +08:00
---
## Git Essentials
2026-01-05 19:25:56 +08:00
```bash
# Always start sessions with
git pull
2026-01-05 19:25:56 +08:00
# After significant work
git add . && git commit -m "vault backup: $(date)" && git push
```
2026-01-05 19:25:56 +08:00
Commit format: `vault backup: YYYY-MM-DD HH:MM:SS`
2026-01-05 19:25:56 +08:00
---
## Memory Integration
2026-01-05 19:25:56 +08:00
Use Memvid MCP for persistent context across sessions:
### Core Workflow
1. **Query first**: Always search memory at task start: `memvid_search`
2. **Work**: Complete task using retrieved context
3. **Write back**: Save decisions: `memvid_add_text` + `memvid_commit`
### What to Store
- **DO**: User preferences, decisions, constraints, patterns, project context
- **DON'T**: Secrets, credentials, errors, logs, temporary data
### Memory File Location
- Default: `.claude/memory/memvid.mv2`
- Project-specific: `.claude/memory/[project-name].mv2`
### Tagging Strategy
Use consistent tags for retrieval:
- `type:preference` - User preferences and settings
- `type:decision` - Architectural and design decisions
- `type:constraint` - Project limitations and requirements
- `type:pattern` - Code patterns and conventions
- `project:[name]` - Project-specific context
- `area:[name]` - Area-specific information
### Quick Reference
```
Search: memvid_search(query, top_k=5)
Add: memvid_add_text(content, tags={"type": "decision"})
Commit: memvid_commit()
List: memvid_list_contents(limit=20)
Info: memvid_info()
```
See `06_Metadata/WORKFLOWS.md#memvid-workflows` for detailed procedures.
---
## Note Standards
### Frontmatter
```yaml
2026-01-05 19:25:56 +08:00
---
created: YYYY-MM-DD
modified: YYYY-MM-DD
tags: [specific, tags]
status: draft|active|complete|archived
2026-01-05 19:25:56 +08:00
---
```
### Linking
- Use `[[wikilinks]]` for internal connections
- Link liberally, prefer over-linking
- Check and update links after reorganizing
2026-01-05 19:25:56 +08:00
### Organization
- Inbox is temporary - process weekly
- One idea per note (atomic notes)
- Flat structure over deep nesting (max 3 levels)
- Use links not folders for relationships
2026-01-05 19:25:56 +08:00
---
## Work Approach
2026-01-05 19:25:56 +08:00
**Simple tasks** → Execute directly
**Complex changes** → Propose plan first (affected files, steps, rollback)
**Uncertain info** → Mark `[待确认]` and ask
2026-01-05 19:25:56 +08:00
For bulk operations, provide:
- What's changing and why
- Files affected
- Rollback approach
2026-01-05 19:25:56 +08:00
---
**Detailed workflows, templates, troubleshooting**: → `06_Metadata/WORKFLOWS.md`