Skip to content
Back to skills

Sp Cleanup

ASecurity

Interactively run the sandbox-pal POST-MERGE CLEANUP phase for a merged agent PR — tracking-doc updates, review-ledger follow-up issues, branch deletion. Fallback/recovery path for the headless post_merge dispatch.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 20, 2026
ai-agentsgit

Security analysis

A100/100

Scanned November 20, 2026

npx -y skills add jnurre64/sandbox-pal-action --skill sp-cleanup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sp Cleanup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sp Cleanup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jnurre64-sp-cleanup/badge)](https://www.skillsdirectory.com/skills/jnurre64-sp-cleanup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sp-cleanup
description: Interactively run the sandbox-pal POST-MERGE CLEANUP phase for a merged agent PR — tracking-doc updates, review-ledger follow-up issues, branch deletion. Fallback/recovery path for the headless post_merge dispatch.
argument-hint: "<pr-number> [owner/repo]"
user-invocable: true
---

# sp-cleanup — interactive post-merge cleanup

Runs the cleanup phase in THIS session using the same `prompts/cleanup.md` the headless dispatch uses.

## Steps

### 1. Resolve the sandbox-pal install
Same resolution as sp-implement: `$SANDBOX_PAL_HOME/prompts/`, `~/agent-infra/prompts/`, `~/repos/sandbox-pal-action/prompts/`.

### 2. Preconditions
- `gh pr view <PR> --repo <REPO> --json title,body,headRefName,mergedAt,author,closingIssuesReferences`
- The PR must be MERGED. Confirm with the user before proceeding if the PR author is not the repo's agent bot (cleanup normally covers agent PRs only).

### 3. Execute
- Delete the merged remote branch (best-effort): `git push origin --delete <branch>`
- On an up-to-date main checkout, follow `prompts/cleanup.md`, mapping `$AGENT_PR_TITLE`/`$AGENT_PR_BODY`/`$AGENT_MERGED_BRANCH`/`$AGENT_ISSUE_NUMBER` to the PR fields and `$AGENT_REVIEW_LEDGER` to `.agent-data/review-ledger.json` from main (if present).
- Create the follow-up issues from your structured output via `gh issue create` (confirm the list with the user first — this is the interactive path's advantage).
- Push the doc commits to main (or open a chore PR if main is protected).
- Strip any remaining `agent:*` labels from the linked issue.

### 4. Report
Summarize: docs updated, issues filed, branch deleted.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.