document-service

document-service is a skill for Claude Code from awslabs/agent-plugins. It costs 141 tokens per session (3,536 once invoked), scanned A, original, Apache-2.0.

A codebase analysis and documentation workflow that explains a service’s structure, behaviour, and reasons for its design. It produces technical documents and architecture diagrams with links to the exact source files and lines.

In plain words
What is it for?
Use it to document a service, analyse an inherited codebase, explain APIs and message handlers, create architecture diagrams, and support developer onboarding.
Why use it?
It helps developers understand unfamiliar or undocumented systems without relying only on component lists. It traces requests and messages through the system and highlights complex logic and likely failure points.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ![Architecture](./docs/<name>.drawio.png).

Part of the codebase-documentor-for-aws plugin — 1 skill shipped together

Good fit Use it to document a service, analyse an inherited codebase, explain APIs and message handlers, create architecture diagrams, and support developer onboarding.

Compare 6 skills from other repositories ↓
About the project

awslabs/agent-plugins is a collection of plugins, skills, instructions, an MCP server, a hook, and a setting that guide AI coding agents in architecting, deploying, and operating software on Amazon Web Services. It is for developers using coding agents such as Claude Code, Codex, and Cursor with AWS projects. The catalogue entries are the repository's own agent workflows and supporting components.

awslabs/agent-plugins · 924 stars · on GitHub

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/awslabs/agent-plugins
agentmods
npx agentmods add skills/awslabs/agent-plugins/document-service

Made for: Claude Code.

Or install codebase-documentor-for-aws, the plugin that ships this one along with the rest of its 1 skill.

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 document-service

README.md
[![agentmods](https://agentmods.dev/badge/skills/awslabs/agent-plugins/document-service/github.svg)](https://agentmods.dev/skills/awslabs/agent-plugins/document-service)
Your own site
<a href="https://agentmods.dev/skills/awslabs/agent-plugins/document-service"><img src="https://agentmods.dev/badge/skills/awslabs/agent-plugins/document-service/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 document-service

Your own site · 80×15
<a href="https://agentmods.dev/skills/awslabs/agent-plugins/document-service"><img src="https://agentmods.dev/badge/skills/awslabs/agent-plugins/document-service.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 141 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,536 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00141 $0.03536
Opus 5.5 $0.00056 $0.01414
Sonnet 5.5 $0.00028 $0.00707
Haiku 4.5 $0.00014 $0.00354

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

Security

Grade A, and why

document-service 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.

plugins/codebase-documentor-for-aws/skills/document-service/SKILL.md · 216 lines

How it starts

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

Document Service

Analyze codebases to produce structured technical documentation and architecture diagrams with source-of-truth citations. Every finding links back to the exact file and line it was derived from. Optimized for AWS workloads but works with any codebase.

Core Principles

  • Explain WHY, not just WHAT. The reader inherited this codebase and has zero context. Listing components is not enough — explain why the architecture is shaped this way. Search for code comments, TODOs, and commit messages that reveal design rationale. When no rationale exists, mark it [RATIONALE UNKNOWN].
  • Trace end-to-end flows. For every API endpoint or message handler, trace the complete request path from entry to response. Note every intermediate step, transformation, timeout, and failure point. This is the "if it breaks at 3am, where do I look?" analysis.
  • Deep-dive complex logic. Identify the most complex or domain-specific code paths (ML pipelines, business rule engines, state machines, custom algorithms). Document HOW they work at the implementation level — the algorithm, key parameters, edge cases, and where production bugs will occur. Surface-level summaries of complex code provide no value over a naive AI prompt.
  • Surface implicit knowledge. Look for hardcoded values, magic numbers, environment-dependent behavior, and undocumented assumptions. These are the tribal knowledge items that disappear when teams leave.
  • Every claim must be traceable. Include file:line citations for every finding. See citation-format.md. Verify citations precisely — re-read the cited file and confirm the line number is within ±3 lines. Anchor with function/variable names.
  • Code is the source of truth. Document what actually exists in code, not what READMEs or wikis claim. Flag every discrepancy between documentation and reality.
  • Mark unknowns and risks explicitly. Use [UNKNOWN] for items not inferable from code, [RISK] for unhandled failure modes, [INFERRED] for educated guesses, [RATIONALE UNKNOWN] for unexplained architecture choices. Omitting markers undermines trust.
  • Verify quantitative claims. List directory entries programmatically and use exact counts.

Read the full file on GitHub · 216 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 First seen · 216 lines · 141 tokens per session scan A 5a43cae02e5d

Subscribe to this mod's changes

document-service is a skill published in the GitHub repository awslabs/agent-plugins (924 stars, last pushed 2d ago), licensed Apache-2.0. It adds 141 tokens to every session and 3,536 once invoked, about $0.0006 per session on Opus 5.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-30.

Related

Other skills, from other repositories

investigation-cost-guardrail

Cost guardrail for AWS DevOps Agent that covers ALL AWS services and native agent tools. Before the agent makes any paid API call, this skill estimates cost, enforces budgets per investigation, detects expensive operations across all services (Athena queries, S3 scans, DynamoDB scans, SageMaker inference, PromQL…

aws/tools-for-devops-agent · 105 tokens

ecs-operation-review

Performs a comprehensive Amazon ECS operations review across the 6 review pillars (Resiliency & HA, Observability, Security, Operations, Performance, Additional Analysis) using read-only AWS APIs, with a 7-day CloudWatch metrics baseline, recommended alarm thresholds for IDR onboarding, per-pillar PASS/FAIL/N/A…

aws/tools-for-devops-agent · 134 tokens

sagemaker-ai-ops-review

Amazon SageMaker AI Operational Review. Use this skill when a user asks to review, audit, or assess Amazon SageMaker AI workloads (endpoints, training jobs, pipelines, notebooks, Studio domains) for best-practices posture across Security, Performance, Cost Optimization, Service Quotas, Resiliency, Operational…

aws/tools-for-devops-agent · 166 tokens

support-cases

ALWAYS use this skill in the beginning of any incident investigation, root cause analysis, or operational troubleshooting. This skill retrieves and analyzes AWS Support cases (open and resolved) to find historical incidents with similar symptoms, error patterns, or affected services. Activate this skill when…

aws/tools-for-devops-agent · 132 tokens

cis-aws-compute-12.8

Ensure that Code Signing is enabled for Lambda functions.

CyberStrikeus/CyberStrike · 19 tokens

cis-aws-foundations-3.1.1

Ensure S3 Bucket Policy is set to deny HTTP requests.

CyberStrikeus/CyberStrike · 23 tokens