sumologic-documentation: Command for Claude Code

.claude/commands/remove-doc.md

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

A command for safely removing or moving a Sumo Logic documentation page. It creates a 301 redirect, updates links and navigation, removes references, and deletes the old file.

In plain words
What is it for?
Use it when deprecating old documentation, replacing duplicate or outdated pages, or moving a document to a new path.
Why use it?
It helps prevent visitors and search engines from reaching broken URLs after a page is removed or relocated. It also removes the page from related hub pages and site navigation.

Command for Claude Code

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

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/remove-doc.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 remove-doc

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/sumologic/sumologic-documentation/remove-doc"><img src="https://agentmods.dev/badge/commands/sumologic/sumologic-documentation/remove-doc.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,574 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.01574
Opus 5.5 $0.00000 $0.00630
Sonnet 5.5 $0.00000 $0.00315
Haiku 4.5 $0.00000 $0.00157

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

Security

Grade A, and why

remove-doc 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/remove-doc.md · 199 lines

How it starts

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

Remove or Move Doc — Safe Deprecation Workflow

Automates the complete workflow for removing or moving a Sumo Logic doc while preventing broken links and maintaining SEO health.

What this command does

When you invoke /remove-doc, Claude will guide you through:

  1. Create 301 redirect. Add redirect mapping to cid-redirects.json.
  2. Update internal links. Find and replace all references to the old URL.
  3. Remove from hub pages. Delete card from parent index.md and Product List.
  4. Delete the doc file. Remove the actual markdown file.
  5. Remove from navigation. Delete entry from sidebars.ts.
  6. Optional steps. Add deprecation notes, hide from search engines.

When to use this command

  • Deprecating legacy docs in favor of new versions.
  • Consolidating duplicate content.
  • Removing outdated documentation.
  • Moving docs to new locations.

Workflow

Step 1: Gather information

Ask the user for:

  • Old doc path: The file path being removed (e.g., docs/integrations/web-servers/nginx-legacy.md).
  • New doc path: The replacement doc path (e.g., docs/integrations/web-servers/nginx.md).
  • Reason: Why the doc is being removed (for context).

Step 2: Create 301 redirect

  1. Read cid-redirects.json.
  2. Convert the old file path to a URL path (remove docs/ prefix, remove .md extension).
  3. Convert the new file path to a URL path.
  4. Add the redirect mapping:
    "/docs/old-path": "/docs/new-path",
    
  5. Validate JSON syntax after adding.

Safety check: Ensure the new doc path actually exists before creating the redirect.

Step 3: Update internal links

  1. Use Grep to search for references to the old URL across all docs:
    • Search for the old file path (without docs/ and .md).
    • Search for relative path variations.
    • Search for useBaseUrl references.
  2. Show the user all files that reference the old URL.
  3. For each file, replace old URL with new URL (one by one, not Find All > Replace All).
  4. Check for references in:
    • Other markdown docs.
    • Parent hub/index pages.
    • Product List (docs/integrations/product-list/).

Read the full file on GitHub · 199 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. 2mo ago First seen · 199 lines · 0 tokens per session scan A d8dcc054a96a

Subscribe to this mod's changes

remove-doc 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,574 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

remove-doc compared with commands from other repositories

remove-doc next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
remove-docSumoLogic/sumologic-documentationCommand42yesterdayMITA0Claude Code
resume-cover-letterjezweb/claude-skillsCommand1.1k28d agoMITA12Claude Code
quotetdimino/claude-code-minoanCommand41yesterdayMITA0Claude Code
cliJNTMTMTM/eIslandCommand335yesterdayGPL-3.0A0Claude Code
canvasAgriciDaniel/claude-canvasCommand3037mo agoMITA25Claude Code
gpd:settingspsi-oss/get-physics-doneCommand9733mo agononeA36Claude Code
gpd:updatepsi-oss/get-physics-doneCommand9733mo agononeA14Claude Code