Skip to content

update skill step 11 needs the snapshot path after the merge, but the skill records it nowhere #228

Description

@realmarcin

From the round-1 review of #216 (issue #174).

Where: .claude/skills/update-xmech-page/SKILL.md, steps 10 and 11.

Step 11 runs after the merge. Step 10 says to report and stop until the user gives the go-ahead, which can come after context compaction or in a new conversation. Shell variables don't persist between tool calls, and the scratchpad path contains the session id. The only record inside the snapshot, revisions.json, is in the directory being looked for, and neither the PR body nor the report carries the path.

Failure scenario: the merge is approved in a new session. Step 11 either stops at ${SNAP:?}, or points at the new session's scratchpad and removes nothing, so the 5.7 GB snapshot stays behind: the leak #174 set out to fix.

Fix: tell the refresh to put the snapshot's absolute path and size in the PR body and the report ("Snapshot: , 5.7 GB, remove after merge"), and have step 11 take the path from there.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions