feat(wrap): /wrap skill + meta/wrap way for deliberate session close#196
Merged
Conversation
The `compaction-checkpoint` way already handles the automatic, near-limit checkpoint. This adds the on-demand counterpart: a way the user pulls when they decide the session is at a seam. - skills/wrap/SKILL.md — the procedure: read the context gauge first (early-vs-late shapes how heavy the handoff is), loose-ends check (ship is iterative, wrap is terminal — wrap doesn't ship, it confirms nothing stranded), an honest TaskList pass (close done, retire stale, write real remaining with resume-detail), a dense continuation prompt that survives even /clear, and a gauge-dependent handoff to a directed /compact. A skill can't trigger /compact itself, so it hands over a ready-to-run line. - hooks/ways/meta/wrap/wrap.md — keyword + semantic router that catches "wrap up / hand this off / done for the day" and points Claude at the skill with the why (the three failure modes of a freehand wrap). - Cross-refs: compaction-checkpoint and todos now point back at wrap, closing the loop between the automatic and on-demand siblings. Claude-Session: https://claude.ai/code/session_01TFyiQNDZ8RTMHX4Tnmp1wY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the on-demand counterpart to the automatic
compaction-checkpointway — a wrap-up the user triggers when they decide the session is at a seam.skills/wrap/SKILL.md— the procedure: gauge first (ways context; early-vs-late shapes handoff weight) → loose-ends check (ship is iterative, wrap is terminal — wrap doesn't ship) → honest TaskList pass (close done, retire stale, write real remaining with resume-detail) → dense continuation prompt (survives/clear) → gauge-dependent handoff to a directed/compact.hooks/ways/meta/wrap/wrap.md— keyword + semantic router that catches "wrap up / hand this off / done for the day" and points Claude at the skill with the why.compaction-checkpointandtodosnow point back atwrap, closing the loop between automatic and on-demand.Design note
A skill/way cannot self-trigger
/compact(Claude Code forbids invoking/commands programmatically), so/wrapprepares everything and hands over a ready-to-run/compact <focus>line. Verified against the docs.Test plan
ways lint hooks/ways— 0 errors, 0 warnings (125 ways)meta/wrapembedded (154 ways)ways scan promptinjects the router body)meta/wrapnear top on non-regex phrasing/wrapinvocation next sessionhttps://claude.ai/code/session_01TFyiQNDZ8RTMHX4Tnmp1wY