Files
conversation-history/Kimi Conversations/.archive-skill.md
T

65 lines
2.0 KiB
Markdown

# Kimi Code → Obsidian Archivist Skill
## Quick Start
### 1. Start a session with the scratchpad
At the **start** of any Kimi Code session, say:
```
Start a new session. Read Session Notes/Current.md, update the date and project fields, and set the goal to: "<your goal>". Append your understanding of the task to the Milestones section.
```
### 2. Log milestones during the session
Any time you want to capture a decision or progress:
```
Append a milestone to Session Notes/Current.md: "<milestone text>"
```
### 3. Archive at the end
**Option A — Manual prompt (works with hermes-mcp):**
```
Archive this session to my Obsidian vault.
- Read Session Notes/Current.md
- Summarize the session into a clean markdown note
- Write it to Kimi Conversations/YYYY-MM-DD-<topic>.md with YAML frontmatter
- Include: goal, key decisions, prompts used, files modified, errors/fixes, next steps
- Clear Session Notes/Current.md back to template state (keep YAML and headers, reset body)
Topic: <brief-kebab-case-topic>
```
**Option B — Run the archive script directly (from terminal):**
```bash
cd ~/hermes-mcp/scripts
./archive-kimi-session.sh hermes-mcp-oauth-fix
```
Or with a specific session ID:
```bash
python3 ~/hermes-mcp/scripts/kimi-session-to-obsidian.py <session-id> <topic>
```
## How It Works
- Kimi Code stores sessions in `~/.kimi/sessions/<session-id>/`
- The Python script parses `context.jsonl` and converts it to a markdown note
- Output goes to `~/obsidian/vaults/Kimi Conversations/YYYY-MM-DD-<topic>.md`
- The archive includes: goal, summary, files modified, tools used, key transcript, and final outcome
## Files
| File | Purpose |
|------|---------|
| `Session Notes/Current.md` | Running scratchpad for the active session |
| `Kimi Conversations/YYYY-MM-DD-topic.md` | Final archived sessions |
| `~/hermes-mcp/scripts/kimi-session-to-obsidian.py` | Python archive converter |
| `~/hermes-mcp/scripts/archive-kimi-session.sh` | Bash wrapper (auto-detects latest session) |