sumologic-documentation: Command for Claude Code

.claude/commands/doc.md

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

A command that creates a new documentation file with its metadata, structure, and sidebar entry. It supports feature guides, how-to instructions, concept explanations, reference pages, and troubleshooting guides.

In plain words
What is it for?
Use it when adding general product documentation, tutorials, conceptual explanations, reference material, or troubleshooting content.
Why use it?
It avoids manually setting up the files and navigation needed for a new document and helps choose the right document type.

Command for Claude Code

Written for Claude Code: installed under .claude/.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/sumologic/sumologic-documentation/doc"><img src="https://agentmods.dev/badge/commands/sumologic/sumologic-documentation/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 2,628 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.02628
Opus 5.5 $0.00000 $0.01051
Sonnet 5.5 $0.00000 $0.00526
Haiku 4.5 $0.00000 $0.00263

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

Security

Grade A, and why

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

How it starts

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

Create New Doc

Use this command to create a new feature doc, how-to, concept, reference, or troubleshooting guide — it scaffolds the file, frontmatter, structure, and sidebar entry.

When to use this command

  • Creating feature documentation.
  • Writing how-to guides and tutorials.
  • Documenting concepts and reference material.
  • Creating troubleshooting guides.
  • Adding general content that does not fit specialized templates (apps, sources, release notes).

When NOT to use this command

  • App integrations. Use app-doc instead.
  • Cloud-to-Cloud sources. Use c2c-source-doc instead.
  • Release notes. Use release-note-cse or release-note-collector instead.

Doc types

Feature Documentation

  • Announces and explains product capabilities.
  • Covers what it does, why it matters, how to use it.
  • Includes configuration steps and examples.

How-to Guide

  • Step-by-step instructions for specific tasks.
  • Focuses on practical outcomes.
  • Includes prerequisites and validation steps.

Concept

  • Explains ideas, architecture, or background information.
  • Provides context for using features.
  • Educational and explanatory.

Reference

  • Detailed technical specifications.
  • API endpoints, configuration parameters, field lists.
  • Structured data meant for lookup.

Troubleshooting

  • Diagnoses and resolves common issues.
  • Problem-symptom-solution format.
  • Includes error messages and fixes.

Workflow

Step 1: Gather information

Ask the user for:

Required:

  • Doc type: Feature, how-to, concept, reference, or troubleshooting.
  • Title: Page title in Title Case (60 characters max for SEO).
  • File path: Where to save the file (e.g., docs/manage/security/access-keys.md).
  • Description: One or two sentences for search engines and metadata.

Optional:

  • Keywords: Terms for SEO and search (3-5 recommended).
  • Sidebar label: Alternative text for sidebar navigation (if different from title).
  • CID needed: Whether this doc needs a permanent URL for UI links.
  • Hub page: Whether to add a card to a parent index page.

Read the full file on GitHub · 429 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 · 429 lines · 0 tokens per session scan A a247b0016670

Subscribe to this mod's changes

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 2,628 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

doc compared with commands from other repositories

doc next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docSumoLogic/sumologic-documentationCommand42yesterdayMITA0Claude Code
codebase-reviewHoangNguyen0403/agent-skills-standardCommand583todayMITA0Claude Code
verify-bugHoangNguyen0403/agent-skills-standardCommand583todayMITA0Claude Code
doctorrepowise-dev/repowiseCommand8.1k2d agoAGPL-3.0A22Claude Code
fix-bugsaeedkolivand/ai-job-hunter-appCommand63yesterdayApache-2.0A16Claude Code
fix-issueAgriciDaniel/claude-code-essentials-vs-codeCommand661mo agoMITA7Claude Code
harness-reviewharnessworks/harness-starter-kitCommand1164mo agoMITA0Claude Code