sap-doc

sap-doc is a command for Claude Code from vigneshbarani24/sap-superpowers. It costs 37 tokens per session (605 once invoked), scanned A, original, MIT.

A command for creating structured SAP documents from requirements, code, process notes, or walkthroughs. SAP is business software used to run company processes.

In plain words
What is it for?
Use `/sap-doc` to create a functional specification, technical specification, user guide, or training material.
Why use it?
It turns scattered project information into documents that follow defined templates, so teams do not have to assemble each document from scratch.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the sap-superpowers plugin — 61 skills, 8 commands, 15 agents, 5 hooks shipped together

Good fit Use /sap-doc to create a functional specification, technical specification, user guide, or training material.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/vigneshbarani24/sap-superpowers/sap-doc
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/vigneshbarani24/sap-superpowers

Made for: Claude Code.

Or install sap-superpowers, the plugin that ships this one along with the rest of its 61 skills, 8 commands, 15 agents, 5 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/vigneshbarani24/sap-superpowers/sap-doc.svg)](https://agentmods.dev/commands/vigneshbarani24/sap-superpowers/sap-doc)
Your own site
<a href="https://agentmods.dev/commands/vigneshbarani24/sap-superpowers/sap-doc"><img src="https://agentmods.dev/badge/commands/vigneshbarani24/sap-superpowers/sap-doc.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 605 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.00037 $0.00605
Opus 5 $0.00018 $0.00302
Sonnet 5 $0.00007 $0.00121
Haiku 4.5 $0.00004 $0.00060

Measured 8d ago against content hash 52d9a989e841, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

sap-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 8d 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.

commands/sap-doc.md · 63 lines

How it starts

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

/sap-doc

Invokes the sap-doc-generator agent to produce structured, client-ready SAP documentation. Supports four document types, each following a standard SAP methodology template. The agent reads your input (requirements, code, process notes) and generates a fully formatted document.

Usage

/sap-doc [document type]

Document Types:

  • functional-spec — Functional specification (FS) from business requirements or fit-gap notes
  • technical-spec — Technical design document (TDS) from functional spec or code
  • user-guide — End-user guide from transaction walkthrough or process description
  • training-material — Training module with exercises from process or system walkthrough

Examples:

  • /sap-doc functional-spec — then describe the requirement or paste fit-gap notes
  • /sap-doc technical-spec — then provide the FS or point to the code file
  • /sap-doc user-guide for VF01 billing document creation process
  • /sap-doc training-material for MM goods receipt workflow

What Happens

  1. The sap-doc-generator agent is dispatched with the selected document type.
  2. The agent reads the provided input — requirements, code, process description, or existing documents.
  3. For functional-spec: captures business process, requirements, business rules, exception handling, and acceptance criteria.
  4. For technical-spec: maps functional requirements to technical design — objects, programs, interfaces, data model changes.
  5. For user-guide: structures step-by-step instructions with transaction paths, field-level guidance, and screenshots placeholders.
  6. For training-material: builds a module with learning objectives, process overview, exercises, and knowledge check questions.
  7. The document is written to the working directory in standard SAP formatting.

Output

A formatted document file matching the selected type:

Type Format Key Sections
functional-spec Markdown Business context, requirements, process flow, rules, acceptance criteria
technical-spec Markdown Architecture, objects, program design, interfaces, error handling, testing
user-guide Markdown Role overview, step-by-step instructions, field explanations, tips
training-material Markdown Objectives, process overview, guided exercises, knowledge check

Read the full file on GitHub · 63 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. 8d ago First seen · 63 lines · 37 tokens per session scan A 52d9a989e841

Subscribe to this mod's changes

sap-doc is a command published in the GitHub repository vigneshbarani24/sap-superpowers (9 stars, last pushed 15d ago), licensed MIT. It adds 37 tokens to every session and 605 once invoked, about $0.0002 per session on Opus 5. 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-31.