reflectlisted
Install: claude install-skill justinramos101/ramstack
# Reflect
Mine the current conversation for durable learnings, then route them into skill edits.
## When to invoke
- The user said "reflect" or "/reflect".
- A complex task (5+ tool calls) just landed cleanly and the recipe is worth keeping.
- The agent hit dead ends, found the working path, and the path generalizes.
- The user corrected the agent's approach mid-task.
- A non-trivial workflow emerged that isn't captured anywhere.
Skip when the conversation is trivial, off-topic, or already covered by an existing skill the parent followed correctly. One-offs are not learnings.
## Process
### 1. Locate the active transcript
The parent finds its own transcript file before fanning out. Claude Code stores the workspace's transcripts in `~/.claude/projects/<slug>/`, where `<slug>` is the workspace path with each `/` turned into `-` (so `/Users/a/dev/app` becomes `-Users-a-dev-app`); Codex stores session rollouts under `~/.codex/sessions/<yyyy>/<mm>/<dd>/`. Use only the current workspace's transcripts. Do not glob across other projects' directories; that crosses workspace boundaries and reads private chats from unrelated projects.
```bash
ls -t <transcript-dir>/*.jsonl <transcript-dir>/**/*.jsonl 2>/dev/null | head -10
```
Three transcript layouts: legacy flat (`<id>.jsonl`), current nested (`<id>/<id>.jsonl`), and subagent (`<parent>/subagents/<child>.jsonl`).
For each candidate, read the first JSONL line and check that `message.content[0].text` contains the conversation'