sumologic-documentation: Command for Claude Code

.claude/commands/stage-deploy.md

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

A command that deploys a pull request branch to Pantheon's shared staging website. Staging is a temporary copy used to preview changes before they are merged.

In plain words
What is it for?
Use it for UX or UI changes, Docusaurus features, and other site-wide work that needs live previewing before merge.
Why use it?
It lets reviewers see site-wide changes in context, including navigation, themes, and layouts, before release.

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/stage-deploy.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 stage-deploy

README.md
[![agentmods](https://agentmods.dev/badge/commands/sumologic/sumologic-documentation/stage-deploy/github.svg)](https://agentmods.dev/commands/sumologic/sumologic-documentation/stage-deploy)
Your own site
<a href="https://agentmods.dev/commands/sumologic/sumologic-documentation/stage-deploy"><img src="https://agentmods.dev/badge/commands/sumologic/sumologic-documentation/stage-deploy/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 stage-deploy

Your own site · 80×15
<a href="https://agentmods.dev/commands/sumologic/sumologic-documentation/stage-deploy"><img src="https://agentmods.dev/badge/commands/sumologic/sumologic-documentation/stage-deploy.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 1,383 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.01383
Opus 5.5 $0.00000 $0.00553
Sonnet 5.5 $0.00000 $0.00277
Haiku 4.5 $0.00000 $0.00138

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

Security

Grade A, and why

stage-deploy 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 1mo 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/stage-deploy.md · 113 lines

How it starts

The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Stage Deploy — Deploy PR to Shared Staging

Deploy a PR branch to the shared Pantheon staging environment for previewing UX/UI changes or other site-wide feature work before merge.

When to use this command

  • You're shipping a UX/UI change, new Docusaurus feature, or other site-wide update and need a live environment to validate it before merge.
  • A reviewer needs to see the change in context (navigation, theming, layout) rather than as a single article.

For quick, temporary article-level review, use /review-deploy instead — it targets the separate docs-review environment and keeps this slot free for feature work.

Usage

/stage-deploy {pr-number-or-branch}

Examples:

  • /stage-deploy 6701
  • /stage-deploy docs-update-jira-skill-fields

Staging environment

  • URL: https://helpdocs-sumo-logic.pantheonsite.io/help/
  • HTTP basic auth protected: Contact the docs team for credentials.
  • Single shared slot: Only one PR can be staged at a time. Deploying overwrites the previous deployment.
  • Build time: 20–30 minutes after the push triggers the workflow.

Workflow

Step 1: Resolve input to PR number

  • If input is numeric: validate the PR exists and is open with gh pr view {number} --json state --jq '.state'.
  • If input is a branch name: look up the PR number with gh pr list --head {branch} --json number --jq '.[0].number'.

You need the PR number for the staging branch name, the PR comment, and to fetch the PR's head commit in Step 4. The branch name itself isn't needed for the push — see Step 4 for why.

Step 2: Check for conflicts

git ls-remote --heads origin 'refs/heads/staging/pr-*'

Exclude staging/pr-{number} for the PR you're currently deploying from the results — redeploying the same PR after new commits isn't a conflict with itself, and shouldn't trigger the overwrite comment below on the PR's own thread.

If one or more other staging branches remain, identify who owns each one (gh pr view {n} for every match) and list all of them for the user:

Read the full file on GitHub · 113 lines

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. 1mo ago Changed e9bbcc3753f3
  2. 2mo ago First seen · 113 lines · 0 tokens per session scan A 6d9f85a30f3d

Subscribe to this mod's changes

stage-deploy 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 1,383 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

stage-deploy compared with commands from other repositories

stage-deploy next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
stage-deploySumoLogic/sumologic-documentationCommand42yesterdayMITA0Claude Code
implement-featureHoangNguyen0403/agent-skills-standardCommand583todayMITA0Claude Code
color-palettejezweb/claude-skillsCommand1.1k28d agoMITA9Claude Code
prepare-releasesaeedkolivand/ai-job-hunter-appCommand63yesterdayApache-2.0A20Claude Code
setupAsymmetric-al/coreCommand371yesterdayAGPL-3.0A0Claude Code
commit-push-prpablo-albaladejo/kaiordCommand114d agoMITA14Claude Code
figma-applynaver/design-to-uiCommand82mo agoApache-2.0A31Claude Code