memory-writelisted
Install: claude install-skill ztnkv/personal-operating-system
# memory-write
Service skill — writes and modifies memory files. Invoked **only from `memory-retro`**, after the user has explicitly confirmed.
## Operations
### add — create a new entry
**Input:** `title`, `body`, `type`, `confidence`, dialog context (for tags).
**Steps:**
1. Get the current unix timestamp.
2. Generate a slug from the title: transliterate → lowercase → spaces → dashes, ASCII-only, no special characters. Example: *"Relationship with my mother"* → `relationship-with-my-mother`.
3. Filename: `<unix_timestamp>-<slug>.md`.
4. Call `tag-pick` with the title + body + context → receive an array of tags (2–5).
5. Create the file with frontmatter:
```yaml
---
title: <title>
tags: [<...>]
type: <type>
confidence: <high|medium|low>
status: active
created: <YYYY-MM-DD>
updated: <YYYY-MM-DD>
---
<body>
## Change log
- <YYYY-MM-DD> — created during conversation about <short description of the initiative>
```
6. Append a line to `memory/index.md` in the `## Entries` section:
`- [<title>](<filename>) — <type>, <tags comma-separated>, <one-line hook>`
### update — update an existing entry
**Input:** filename, new body (or new frontmatter fields), reason for the change.
**Steps:**
1. Read the existing file.
2. Apply the edit (body and/or frontmatter).
3. Set `updated:` to today's date.
4. If the tags changed — re-run them through `tag-pick` (do not hand-edit).
5. Append a line to `## Change log`:
`- <YYYY-MM-DD> — <sh