AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Rig Tidy

skill-agent-rig-rig-rig-tidy · by agent-rig

Run post-merge code cleanup: audit recent changes for dead code, duplicates, and stale comments, then safely remove them. Triggers on: 'cleanup', 'simplify', 'clean up code', 'remove dead code', 'post-merge cleanup'.

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

Install

$ agentstack add skill-agent-rig-rig-rig-tidy

✓ 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.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-agent-rig-rig-rig-tidy)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
23d ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Rig Tidy? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Post-Merge Cleanup

Audit and clean up the diff from the last N commits. Catches dead code, unused imports, stale comments, and obvious duplicates that slipped in during rapid development.

Configuration

Reads .rig/config.json:

  • sourceScope[0] — the default directory to audit when no scope is

given (default: src).

  • test.command — the suite run in the verify step (default: npm test).
  • agents.reviewer — the project's name for the canonical reviewer

role (default: reviewer).

If the file is absent, use the defaults above and note you're running unconfigured.

Arguments

The user invoked this with: $ARGUMENTS

What to do

  1. Parse the arguments.
  • scope: directory to audit (default: the default source scope from

.rig/config.json (sourceScope[0], default src)).

  • commits: number of recent commits to review (default: 10)

Examples:

  • /rig-tidy → default scope, 10 commits
  • /rig-tidy path/to/dir 5 → that directory, 5 commits
  • /rig-tidy 20 → default scope, 20 commits
  1. Show what will be audited.

``bash git log --oneline -${commits} git diff HEAD~${commits} --stat -- ${scope} | tail -20 ``

  1. Audit the diff via a fresh-context subagent. Spawn a reviewer

agent (mapped through agents.reviewer) with this prompt (don't do the audit inline — the implementer context is too close to the code to spot dead-on-arrival abstractions):

> "Audit the diff git diff HEAD~${commits} -- ${scope} for > cleanup candidates. Categories: (a) dead code — exported symbols > with no callers in the tree, internal helpers used once; (b) > unused imports; (c) stale comments — TODOs completed by the diff, > comments describing prior behavior, doc lines that no longer > match the code; (d) duplicates — near-identical helpers, repeated > inline expressions that could collapse; (e) inconsistencies — > naming drift, mixed patterns introduced during the window. > > For each finding give file:line, the category, one-line > justification, and the proposed deletion or merge. Skip anything > you're not confident about. If the window is clean, say so."

  1. Apply the high-confidence findings. For each item the reviewer

flagged with concrete file:line + proposed edit, apply the Edit. Skip anything ambiguous and surface it to the user instead.

  1. Verify. Run the test command from .rig/config.json

(test.command, default npm test): ```bash

`` If anything fails, revert the offending edits (git checkout -- `) and report which removal broke tests so the user can decide whether to keep or rework.

  1. Report. Lines removed, files touched, anything skipped and why.

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.