session-flow 精选
Reorient in the current Claude Code session with an evidence-backed map of its goal, pivots, outcomes, current step, and open decisions.
安装方式
cp -r skills/session-flow ~/.claude/skills/session-flow把该 skill 目录放进客户端 skills 目录。不同客户端的目录可能不同,Claude Code 默认是 ~/.claude/skills/
/plugin marketplace add Yeachan-Heo/oh-my-claudecode⚠️ 该命令形态随客户端版本变化,仅在检测到 .claude-plugin/marketplace.json 时展示;不可用时请用「目录复制」。
https://raw.githubusercontent.com/Yeachan-Heo/oh-my-claudecode/8262f9f790eed35e6cbd66572b36c2acba18f679/skills/session-flow/SKILL.md下载后另存为 ~/.claude/skills/session-flow/SKILL.md。链接锁定采集时的 commit,内容与本站展示一致。
整仓一次性获取:git clone --depth 1 https://github.com/Yeachan-Heo/oh-my-claudecode.git
依赖与权限
- 无需 API Key
- 无需联网
- 依赖外部命令:
make - 以上为按正文与 frontmatter 自动推断的信号,仅供参考;安装前建议先阅读原文。
SKILL.md 正文
Session Flow
Build a compact, evidence-backed map of how this conversation actually unfolded so the user can reorient after switching sessions or compacting. This is an advisory summary, not a planner, executor, or replacement for the user's task list.
Modes
- No argument: render the full map and reconcile its session-flow Tasks when native Task tools are available.
short: return only the goal, current stage, and what (if anything) needs the user. Read-only; do not change Tasks.reset: discover and delete only Tasks owned by this skill, then confirm what was removed. Do not render a new map.
Workflow
- Reconstruct the flow from this conversation's user messages and tool results. Do not treat repository state alone as evidence that a stage happened. Separate the original goal from explicit goal changes, pivots, completed outcomes, dropped paths, and decisions still waiting on the user.
- Make 4–8 meaningful stages when the history supports them; use fewer rather than padding sparse histories or inventing work. Use one outcome per stage:
✅completed with an outcome supported by the conversation▶the current unfinished stage○an explicitly planned but unstarted stage✂dropped, with the stated reason↪a pivot, with the old direction and the evidenced new direction
- Give every stage one compact evidence pointer. Use a real URL or artifact path when one appears in the conversation; otherwise cite a distinctive short user quote or tool result. Never invent a link or state an inference as fact. Mark uncertain or pre-compaction reconstruction as
inferred. - Keep the full map to at most 15 lines: one line per stage, plus concise goal,
Needs you, andNextlines. Include open decisions inNeeds you; saynonewhen there are none.Nextmust be a concrete next action only when the conversation supports one. - In the default and
resetmodes, callTaskListand inspect every[S<number>]candidate withTaskGetbefore mutating it. A Task belongs to this skill only when its subject starts with[S<number>]and its description contains the exact marker linesession-flow: managed stage. Never edit, complete, delete, or reuse an unmarked Task. - In the default mode, update owned Tasks that still represent a stage, create missing stages with
TaskCreate, a subject beginning[S<number>], and a description whose first line is the ownership marker followed by stage evidence. Match statuses to the map: completed (including dropped or pivoted) iscompleted, current isin_progress, and planned ispending. Delete owned Tasks for stages no longer in the reconstructed map withTaskUpdatestatusdeleted; keep surviving stage numbers stable and avoid collisions with unowned Tasks. - The OMC continuation hook excludes Tasks with both the
[S<number>]subject prefix and the exact ownership marker, so these descriptive records are not treated as unfinished work. Preserve both markers on every create or update.shortmust not call mutating Task tools. - For
reset, discover owned Tasks withTaskListandTaskGet, then useTaskUpdatestatusdeletedonly on confirmed owned Tasks. - If the native Task tools are unavailable, render the map without claiming it was persisted. For
reset, report that owned Tasks could not be inspected or removed; do not guess which Tasks belong to the skill.
Output
Use a stable, concise shape:
🎯 Goal: <goal and any evidenced change>
✅ S1 <stage> → <outcome> — evidence: <source pointer>
↪ S2 <old direction> → <new direction> — evidence: <source pointer>
▶ S3 <current stage> — evidence: <source pointer>
✂ S4 <dropped path> — <reason> — evidence: <source pointer>
⏸ Needs you: <decision or none>
➡ Next: <supported next action or none>
Omit example rows that do not apply. Keep the stage order stable across calls unless the conversation provides evidence to correct it; update the owned Tasks to match any correction.
质量与来源
- 所属仓库
- Yeachan-Heo/oh-my-claudecode
- 仓库星标
- 4.0 万
- 最近更新
- 今天
- 采集时间
- 今天
- commit
- 8262f9f790ee
- 内容指纹
- sha256:a82f27ed258fdb8
- 文件路径
- skills/session-flow/SKILL.md