AgentStack
SKILL verified MIT Self-run

Cleanup Artifacts

skill-ethanaubuchon-dossier-tradecraft-cleanup-artifacts · by ethanaubuchon

Use in /implement at the draft→ready boundary, before publish-pr's squash, to delete this branch's transient plan/spec artifacts so they don't ship in the PR. Deletes .claude/plans/<branch>.md (flattened name). Distinct from repo-setup's prune of previously-merged branches' artifacts.

No reviews yet
0 installs
1 views
0.0% view→install

Install

$ agentstack add skill-ethanaubuchon-dossier-tradecraft-cleanup-artifacts

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Cleanup Artifacts? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Cleanup Artifacts

Deletes this branch's transient working artifacts — the plan file and any spec scratch — at the draft→ready boundary, so they don't ship in the PR. One of /implement's two distinct cleanups:

  • repo-setup prunes previously-merged branches' worktrees + plan files (at setup).
  • cleanup-artifacts deletes this branch's plan file (at finalize).

Runs before publish-pr's squash.

Input

  • branch — the current feature branch.

Steps

  1. Delete this branch's plan file: rm -f .claude/plans/.md, using the /- flattened branch name (feat/foo.claude/plans/feat-foo.md, matching plan-file).
  2. Delete any other transient spec/scratch artifacts the project marks for this branch.

Output / contract

  • In: the branch.
  • Out: working tree with this branch's plan/spec artifacts removed.
  • Side effects: deletes the plan file. With the default gitignored plan location the deletion isn't part of the diff (pure housekeeping); if a project tracks plan files, the deletion is a real change — which is why it must run before publish-pr's squash, so it folds into the single commit (no plan file in PR history). publish-pr stages this deletion with git add -A before committing — without that staging the reset --soft index would re-commit the tracked plan file.

Project overrides

  • Plan-artifact location — a repo that stores plans/specs elsewhere (e.g. docs/plans/) overrides the path; keep the flatten rule consistent with plan-file and repo-setup.

Future scope

  • (none beyond per-project artifact locations.)

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.