一键导入
save-topic
Use when the user wants to save or checkpoint topic progress, persist current discussion state, or save all topics before ending a session.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when the user wants to save or checkpoint topic progress, persist current discussion state, or save all topics before ending a session.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when the user wants to ignore, skip, or exclude specific topics from being archived. Triggers on "ignore topic", "don't archive", "skip topic", "stop remembering", "list ignored topics", "remove ignore rule".
Use when the user asks about topics discussed in the current session, wants to see a topic list, or asks what has been talked about.
Use when the user wants to persistently remember something across sessions (e.g., "always use bun", "never auto-commit", "my name is Alex"). Also use when you detect a clear user preference or constraint worth persisting.
| name | save-topic |
| description | Use when the user wants to save or checkpoint topic progress, persist current discussion state, or save all topics before ending a session. |
Saves a structured summary of a topic to a persistent file. Supports saving the current topic, a specific topic by slug, or multiple topics at once.
Get the session ID from the SessionStart injection in your context:
[SessionStart] session=SESSION_ID source=...
Get the plugin scripts path from the SessionStart injection:
Plugin scripts path: /path/to/scripts
Determine which topics to save:
Get the current topic slug from your topic tag (the › \slug`` you've been outputting).
Write a structured summary using the format below (section headings in English, content in user's language, skip empty sections):
## Status
What was done, key progress.
## Decisions
What was chosen, why, what was rejected.
## Failures
What was tried, why it failed, the fix or workaround.
## Next Steps
What to do next. Be specific and actionable.
bash "<plugin_scripts_path>/save-topic.sh" "<slug>" "<session_id>" "<summary>"
For topics you are NOT currently discussing, your LLM context is likely incomplete. Use the --cold flag to force cold-read from JSONL:
bash "<plugin_scripts_path>/save-topic.sh" --cold "<slug>" "<session_id>" ""
The script will extract the conversation from JSONL and generate a summary via claude -p. The third argument (summary) is ignored when --cold succeeds.
node "<plugin_scripts_path>/extract-topic.js" "$HOME/.claude/projects/<project_id>/<session_id>.jsonl" __all__
Filter out __untagged__ from the output.--cold flag.--cold — do not attempt to write summaries from degraded LLM memory.