/dev10x-tasks:session-wrap-upfrom dev10x-tasks
Captures and routes unfinished work when a session ends. Scans open tasks, git status, and PRs, then helps defer each item to the right context.
Ships in dev10x-tasks. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Announce: "Using dev10x-tasks:session-wrap-up to capture open loops before closing this session."
Audit GH-163 caught a session that wound down with CI still
unconfirmed, 5 newly-created follow-up issues unlinked to the
parent ticket, no plan-sync archive, and no parking note —
dev10x-tasks:session-wrap-up matched every trigger but was never
invoked, and the parent orchestrator marked its wrap-up task
completed without a Skill() call.
Hard trigger signals that REQUIRE this skill (do not skip):
dev10x-coding:work-on, dev10x-coding:fanout) reach the
plan completion gate with non-empty pending tasksAnti-pattern (PROHIBITED): Marking a "Session wrap-up" or
"Park items" task completed in an orchestrator's task list
without calling Skill(dev10x-tasks:session-wrap-up) first. The task
completion is the side effect of the skill running — not a
substitute for running it.
Collect all open loops, present them to the user, and help defer each one to the right discovery context.
This skill follows references/task-orchestration.md patterns.
Auto-advance: Complete each step, immediately start the next — no checkpoints the resolver did not ask for. Never pause to ask "should I continue?" between steps.
REQUIRED: Create tasks before ANY work. Execute these
TaskCreate calls at startup:
TaskCreate(subject="Discover open items", activeForm="Scanning for open loops")TaskCreate(subject="Route deferred items", activeForm="Routing deferred items")TaskCreate(subject="Post session summary", activeForm="Posting summary")Set dependencies: route blocked by discover, summary blocked by route. Update status as each completes.
Run all scans silently, collecting results into a structured list.
Use TaskList to get all tasks. Filter for non-completed tasks.
git status --short
Summarize: N uncommitted files, N staged files, N untracked files. Group by directory for readability.
git diff HEAD --unified=0
Scan the diff for any # TODO: or # FIXME: lines added in this
session (lines starting with + that contain TODO or FIXME).
Call mcp__plugin_dev10x_cli__pr_detect(arg="") (no arg) — the
tool auto-detects the PR for the current branch and returns
pr_number, repo, pr_url, and branch. Treat an error
response (no PR for branch) as "no open PR" rather than a
failure. No raw gh invocation or branch-name subshell is
needed.
Merge-gated completion (GH-729). An open/unmerged PR means the
session is not complete — "shippable / handed off to review" is
not terminal. When a detected PR is unmerged, the right deferral is
a "Monitor PR # for review / merge" task (owned by
dev10x-coding:gh-pr-monitor), not a passive "Verify AC and close". This
mirrors verify-acc-dod's merge-gated Decision Gate and keeps the
task-list invariant (GH-149) pointed at the real remaining work.
Read .claude/TODO.md if it exists. Extract pending items (lines
matching - [ ]).
Read the project MEMORY.md. Extract items under "## In-progress work" heading if present.
Present all discovered open loops in a scannable format:
## Session Wrap-up — Open Loops Found
### In-session tasks (N)
• [status] Task description
### Git status
• N uncommitted files in path/to/dir/
### TODOs added this session (N)
• file.py:LINE: TODO description
### Open PRs (N)
• #123: PR title (url)
### Project TODO items (N)
• Existing deferred item from previous session
---
Is there anything else to capture before closing?
REQUIRED: Call AskUserQuestion (do NOT use plain text)
to let the user add free-text items.
For each open loop, REQUIRED: Call AskUserQuestion
(do NOT use plain text) to present a choice:
Options:
dev10x-tasks:park for target selectionIf the user picks "Finish now" for any item, pause the wrap-up and let them work. When they return, resume from where they left off.
If the user picks "Defer", invoke dev10x-tasks:park with the item.
If the user picks "Drop", mark the task as completed via TaskUpdate
and move on.
When deferring an item by posting a reminder comment on an open PR,
use this standard prefix so dev10x-tasks:park-discover §2f can discover it:
🔖 **Session bookmark**
This is an automated self-reminder left by `dev10x-tasks:session-wrap-up` for the
PR author to pick up in a future session.
**Current state:** <brief summary of where the PR stands>
**Next steps:**
- <actionable item 1>
- <actionable item 2>
The 🔖 **Session bookmark** prefix on the first line is required —
dev10x-tasks:park-discover scans for this exact pattern when checking open
PRs for deferred work.
After triage, before summary, persist session state to the per-repo task index so a future session can resume where this one left off. Write it through the MCP tools — never with Write/Edit (ADR-0018 D5, GH-1009).
What to persist:
Uncompleted tasks — append each pending/in-progress entry
from TaskList with source: session-wrap-up, one call per
task:
mcp__plugin_dev10x_cli__task_index_append(entry={
"subject": "Implement fix",
"status": "pending",
"source": "session-wrap-up",
"metadata": {"type": "epic"},
})
Continuation prompt — generate a one-paragraph summary
of what was in progress and what to do next. Pass it as
continuation_prompt to task_index_set (below). This
bootstraps context after /clear or a new session.
Collected insights — any lessons learned, patterns
discovered, or decisions made during the session that
are not captured in code or commits. Pass as insights.
Freshness stamp (GH-782) — stamp the index with the wrapping
session's branch/tickets and a wrap timestamp so a later session
can tell live deferrals from stale carryover (see the scope note
below — this is park-discover's input, not the
session_adoption gate's identity). Steps 2–4 are one call:
mcp__plugin_dev10x_cli__task_index_set(
continuation_prompt="<one paragraph>",
insights=["<lesson>"],
branch="<current git branch>",
tickets=["GH-782"], # ticket IDs this session worked
wrapped_at="2026-07-09T10:30:00Z", # ISO8601 UTC
)
Only the fields you pass are written, so this cannot blank the
tasks: appended in step 1. dev10x-tasks:park-discover reads these
keys to classify each carried entry as live (branch matches,
or a ticket overlaps the resuming session) or stale (identity
mismatch, or an old wrapped_at) — see that skill's Staleness
classification. Without the stamp a months-old tasks: list /
continuation_prompt is silently re-surfaced as if current — the
GH-782 root cause.
Ephemeral-only, no durable keys (GH-774, ADR-0018). Durable
preferences — friction_level, active_modes, and the
gate_* keys — live in the global
~/.config/Dev10x/friction.yaml. This skill persists only
ephemeral state: do NOT write friction_level or active_modes
anywhere. A leftover active_modes: [solo-maintainer] carried in
session state was the PR #740 auto-merge hazard; keeping durable
keys out of what this skill rewrites removes that class of
stale-mode bug.
The freshness stamp is NOT the gate's session identity (GH-1001). Two things once shared these key names, and only one of them still lives here:
branch: / tickets: written in step 4 above stay. Their
consumer is dev10x-tasks:park-discover, which classifies each carried
entry live-or-stale against them. Dropping the stamp reintroduces
the GH-782 bug where a months-old tasks: list resurfaces as
current.session_adoption gate reads is a
different thing and does not come from here. Plan-sync persists
it (MCP-written, gate-free) and _computed_session_stale() reads
it from there — so do not expect task_index_set(branch=…) to
influence that gate, and do not treat this stamp as a durable pref.Integration with /clear: After persisting, inform the user:
"Session state saved. To resume after /clear, invoke
dev10x-coding:work-on — it will detect the saved state and offer to
continue."
Rehomed in GH-1009 (ADR-0018 D5). This phase — and the
parkfamily anddev10x-coding:gh-pr-bookmark— used to Write/Edit the task index at.claude/Dev10x/session.yaml. GH-1001 left that in place as a documented exception pending a destination decision; GH-1009 made it, because a Write/Edit under a project's.claude/trips Claude Code's self-settings consent gate on every session regardless of allow rules (ADR-0018 RC-A) — so the exception was paying the exact cost the ADR exists to remove. The index now lives outside every repo and only thetask_index_*MCP tools write it. The retired path is no longer read;dev10x:plugin-doctordeletes it.
After all items are triaged, present a brief summary:
## Wrap-up Complete
Finished: 2 items
Deferred: 3 items (2 → TODO.md, 1 → Slack)
Dropped: 1 item
Session is ready to close.
If the user has many items (>5), offer batch operations:
/dev10x-tasks:session-wrap-upWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub dev10x-guru/dev10x-claude --plugin dev10x-tasks8 skills in this plugin
/parkdev10x-tasks:parkSmart deferral router — saves tasks for later to the right place (PR, ticket, code, Slack, or the project task index) so they are actually rediscovered instead of being forgotten. TRIGGER when: a task should be saved for later instead of done now. DO NOT TRIGGER when: task should be done now, or specifically deferring to code (use dev10x-tasks:park-todo) or Slack (use dev10x-tasks:park-remind).
/park-discoverdev10x-tasks:park-discoverGather deferred items across all sources — so nothing is missed when starting a session or picking up where you left off. TRIGGER when: starting a session, picking up prior work, or checking for deferred items. DO NOT TRIGGER when: mid-session active work with no need to check deferred items.
/park-reminddev10x-tasks:park-remindSchedule a Slack reminder — so deferred items appear when you are clearing messages, not buried in a file you might not open. TRIGGER when: deferring work that should resurface via Slack notification later. DO NOT TRIGGER when: deferring to code or project storage (use dev10x-tasks:park-todo), or routing to the best destination automatically (use dev10x-tasks:park).
/park-tododev10x-tasks:park-todoDefer work to code or session-level storage — so items resurface when editing nearby code or starting a new session in the same project, instead of being forgotten. TRIGGER when: deferring work to code comments or the project task index. DO NOT TRIGGER when: deferring to Slack (use dev10x-tasks:park-remind), or routing to the best destination automatically (use dev10x-tasks:park).
/plan-syncdev10x-tasks:plan-syncReconcile persisted plan file with in-session task list. Detects divergences, recreates missing tasks, and updates plan context. TRIGGER when: session resumed after compaction and task list is empty or out of sync with the plan file. DO NOT TRIGGER when: no plan file exists or task list is already in sync with the current session work.
/reflectdev10x-tasks:reflectCollect what a finished stretch of work taught — about the solution, the platform it runs on and the way the team works — into the configured knowledge vault, so the next session finds it instead of losing it with the transcript. TRIGGER when: a play reaches its final reflect step after Verify acceptance criteria, or the user says "reflect", "lessons learned", "retro this session" or "store this in the vault". DO NOT TRIGGER when: work is still mid-flight (finish it first), or the user only wants open loops parked (use dev10x-tasks:session-wrap-up).