sumologic-documentation: Command for Claude Code

.claude/commands/review-teardown.md

review-teardown is a command for Claude Code from SumoLogic/sumologic-documentation. It costs 0 tokens per session (356 once invoked), scanned A, original, MIT.

A command for deleting a Pantheon review branch, which is a temporary branch used to preview an article or pull request. It checks the branch, removes it, and comments on the related pull request.

In plain words
What is it for?
Running `/review-teardown` with a pull-request number or branch name to remove its review deployment.
Why use it?
It frees the shared review slot after a review is finished or a pull request is merged or closed. It also reports when the review branch cannot be found.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

This is SumoLogic/sumologic-documentation's own configuration. It tells Claude Code how to work on sumologic-documentation itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything sumologic-documentation configures →

Reuse

Borrowing it

Nothing to install: this file belongs to SumoLogic/sumologic-documentation. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/SumoLogic/sumologic-documentation/main/.claude/commands/review-teardown.md
Clone the repo
git clone --depth 1 https://github.com/SumoLogic/sumologic-documentation

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for review-teardown

README.md
[![agentmods](https://agentmods.dev/badge/commands/sumologic/sumologic-documentation/review-teardown/github.svg)](https://agentmods.dev/commands/sumologic/sumologic-documentation/review-teardown)
Your own site
<a href="https://agentmods.dev/commands/sumologic/sumologic-documentation/review-teardown"><img src="https://agentmods.dev/badge/commands/sumologic/sumologic-documentation/review-teardown/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for review-teardown

Your own site · 80×15
<a href="https://agentmods.dev/commands/sumologic/sumologic-documentation/review-teardown"><img src="https://agentmods.dev/badge/commands/sumologic/sumologic-documentation/review-teardown.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 356 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00356
Opus 5.5 $0.00000 $0.00142
Sonnet 5.5 $0.00000 $0.00071
Haiku 4.5 $0.00000 $0.00036

Measured 2mo ago against content hash f03dcafdedce, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

review-teardown scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/review-teardown.md · 48 lines

What it actually says

Review Teardown — Remove a Review Deployment

Delete a review branch to free the shared Pantheon review slot.

When to use this command

  • Article review is complete and the review branch is no longer needed.
  • A PR was closed or merged and the review slot should be cleared for the next deployment.

Usage

/review-teardown {pr-number-or-branch}

Examples:

  • /review-teardown 6701
  • /review-teardown docs-update-jira-skill-fields

Workflow

Step 1: Resolve to review branch name

  • If input is numeric: review branch is review/pr-{number}.
  • If input is a branch name: look up the PR number with gh pr list --head {branch} --json number --jq '.[0].number', then use review/pr-{number}.

Step 2: Verify the branch exists

git ls-remote --heads origin refs/heads/review/pr-{number}

If the branch is not found, inform the user and exit — nothing to delete.

Step 3: Delete the review branch

git push origin --delete review/pr-{number}

Step 4: Post PR comment

Post a comment on the PR confirming the review branch was deleted and noting that the review URL may still serve the old build until the next deployment.

Limitations

  • No Slack notifications from this command: out of scope. Claude Code running locally can't read the WEBOPS_SLACK_URL webhook, or any Slack bot token, from GitHub Actions secrets — secrets are write-only once set. The PR comment in Step 4 covers coordination instead.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 48 lines · 0 tokens per session scan A f03dcafdedce

Subscribe to this mod's changes

review-teardown is a command published in the GitHub repository SumoLogic/sumologic-documentation (42 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 356 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

review-teardown compared with commands from other repositories

review-teardown next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
review-teardownSumoLogic/sumologic-documentationCommand42yesterdayMITA0Claude Code
pr-readycostajohnt/oss-autopilotCommand264d agoMITA45Claude Code
prepare-releasesaeedkolivand/ai-job-hunter-appCommand63yesterdayApache-2.0A20Claude Code
review-diffChatbotXIO/ChatbotXCommand1.1kyesterdaynoneA26Claude Code
review-fixesChatbotXIO/ChatbotXCommand1.1kyesterdaynoneA19Claude Code
speckit.spex.submitrhuss/cc-spexCommand1223d agoApache-2.0A15Claude Code
gitazrtydxb/procoderCommand21111d agoApache-2.0A20Claude Code