run-after
Run After
The session has waiting steps: commands that must run only after an event the agent cannot see coming, such as a backfill after a deploy or a cache clear after a merge. The user starts that event, then runs this skill. This skill confirms, watches, then runs: nothing runs before the user approves the plan in step 3, and no step runs before its gate (the event it waits on) has passed for this session's change.
1. Collect the waiting steps
From the conversation, list each step that was put off until an event: "after deploy", "after merge", "once this is committed", "when CI is green", a migration or backfill planned but not run, and every post-deploy step closeout named. For each one record:
- Command: the exact command, with its flags and arguments as agreed in the conversation.
- Where it runs: local, a worktree, or a remote target (production through the access path the conversation used, such as SSH or ECS exec).
- Gate: commit, push, merge, CI, or deploy, plus the change it waits for: the commit SHA, branch, or PR number.
- Order: steps that depend on an earlier step (migrate before backfill).
- Writes data: yes when the step changes or deletes data outside the repo.
With an argument, keep only the steps it names or whose gate it names. When the conversation was compacted, steps from before the summary may be missing: say so in step 3.
Done when every waiting step has all five fields. With none found, ask the user which command waits on which event, and record it the same way.