docs-serve

docs-serve is a command for Claude Code from ihudak/ihudak-claude-plugins. It costs 113 tokens per session (25,099 once invoked), scanned A, original, MIT.

A command for starting, stopping, or checking the development server for a configured documentation website. A development server lets you preview a site locally while working on it.

In plain words
What is it for?
Use it to preview a documentation site, stop its server, or check whether it is running. It reads the repository's existing server configuration and does not write documentation.
Why use it?
It avoids starting duplicate servers or guessing the project's command and port. It reports a URL that is actually reachable from the host machine.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the docs-workflows plugin — 1 skill, 6 commands, 11 agents shipped together

Good fit Use it to preview a documentation site, stop its server, or check whether it is running. It reads the repository's existing server configuration and does not write documentation.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ihudak/ihudak-claude-plugins
Claude Code
/plugin install docs-workflows

Made for: Claude Code.

Or install docs-workflows, the plugin that ships this one along with the rest of its 1 skill, 6 commands, 11 agents.

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 docs-serve

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/ihudak/ihudak-claude-plugins/docs-serve"><img src="https://agentmods.dev/badge/commands/ihudak/ihudak-claude-plugins/docs-serve.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 113 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 25,099 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00113 $0.25099
Opus 5.5 $0.00045 $0.10040
Sonnet 5.5 $0.00023 $0.05020
Haiku 4.5 $0.00011 $0.02510

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

Security

Grade A, and why

docs-serve scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

**Its tools must be present.** Every mode but `--build` judges ports with Phase 2's tests, and those need `curl` for the reachability probe and four reads besides: the socket table, to name the process that holds a port
plugins/docs-workflows/commands/docs-serve.md · 294 lines

How it starts

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

Core references. A citation of the form workflows-core:<name> names a shared reference in the workflows-core plugin. Load it with Skill(skill: "workflows-core:reference", args: "<name>") — never by path: ${CLAUDE_PLUGIN_ROOT} resolves to this plugin, which does not carry it.

Serve the documentation site for a profiled docs repo: $ARGUMENTS

/docs-serve runs a profiled documentation repository's own dev server and reports a URL that actually opens from the host — on any profiled repo, not only one /docs-workflows:docs-init scaffolded. It reads the dev_servers block /docs-workflows:docs-profile already wrote; it never picks a generator, a port, or a start command of its own. It writes no documentation and no artefact — no branch, no commit, no pull request, and (see Phase 0) no specs-preflight. It also runs no review gate: D17 — the docs-workflow family design's rule that every artefact-writing command of the family its §4 table lists (/docs-init, /docs-brand, /docs-audit, this command, and the commands that design plans after them — not every command in this plugin) passes a high-tier review before it is trusted — names /docs-serve as that family's sole exemption, precisely because there is no artefact here for a reviewer to check.

Signature: /docs-serve [<docs-repo-path>] [--internal] [--stop] [--status] [--build] [--port <n>]


Phase 0 — Resolve

Strip every recognized flag from $ARGUMENTS wherever it appears — --internal, --stop, --status, --build, and --port <n> (consumes the token immediately following it as its numeric argument) — before reading a positional token; the flags themselves are handled in Mode dispatch, below. What remains is the optional <docs-repo-path>.

Execute resolve-docs-repo from ${CLAUDE_PLUGIN_ROOT}/references/docs-workflow/repo-resolution.md §1 — the signal-positive form, since this command needs a docs repo that already exists, never one to create. Do not restate its ladder here; the entry point owns it. Report which rung answered, per its own hard rule — a command that quietly works in an unexpected directory is expensive to unpick afterwards.

Record the resolved absolute path as <repo>, and its git work-tree top level as <repo-root> — git -C <repo> rev-parse --show-toplevel, or, where <repo> is in no git work tree, <repo> itself as builtin cd "<repo>" >/dev/null && builtin pwd -P prints it — builtin cd, its output discarded, wherever a cd runs in the Bash tool's own shell and this command reads what follows it, and builtin pwd wherever it reads what a pwd prints: that shell carries the user's aliases and shell functions (${CLAUDE_PLUGIN_ROOT}/references/docs-profiles/render-verification.md §2, Portability), and a cd or a pwd of theirs would otherwise run in its place and could print into the path read. <repo-root> is the profile's one home (${CLAUDE_PLUGIN_ROOT}/references/docs-profiles/docs-profile-schema.md, Where the profile lives): wherever a mode below reads the profile, runs a command it records or reads and writes the state file, it does so at <repo-root>, the state file sitting beside the profile — also where <repo> is a site below that top level, such as a monorepo's docs/.

No specs-preflight. This is deliberate, not an omission: /docs-serve writes nothing into $SPECS_PATH — it starts a process in the resolved docs repo and reports a URL — so opening a branch discipline for a run with no artefact behind it would be ceremony. Its closest sibling is /workflows-core:statusline, not /docs-workflows:document: like that command, this one runs no specs-preflight and no terminal commit-artifacts. What the commands it runs write is theirs — a server's own caches, and in --build mode the site output of the profile's build command, wherever that command puts it. The only things it writes itself are three: Phase 7's pid/port record, under <repo-root>/.dev-workflows/, beside the profile; where no rule ignores that record yet, the one line naming it in the repository's local, never-committed exclude file, which keeps it out of git status unless someone committed a copy (Phase 7); and the log each start writes (Phase 4), a dw-serve-* file under the system's temporary directory, which Phase 7 records and which is removed as its A log goes with its entry says — never anything under $SPECS_PATH.

Read the full file on GitHub · 294 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 Changed bc31c7e14679
  2. 2mo ago Changed 14ef843f0b4c
  3. 2mo ago First seen · 294 lines · 113 tokens per session scan A ea80560948e1

Subscribe to this mod's changes

docs-serve is a command published in the GitHub repository ihudak/ihudak-claude-plugins (2 stars, last pushed 2mo ago), licensed MIT. It adds 113 tokens to every session and 25,099 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-19.

Related

docs-serve compared with commands from other repositories

docs-serve next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docs-serveihudak/ihudak-claude-pluginsCommand22mo agoMITA113Claude Code
memorizelucasrosati/claude-code-memory-setupCommand1.1kyesterdayMITA0Claude Code
opsfrankxai/agentic-creator-osCommand14todayApache-2.0A35Claude Code
commitjoaquimscosta/arkhe-claude-pluginsCommand241mo agoMITA11Claude Code
gws-peoplefakoli/fakoli-pluginsCommand43d agoMITA9Claude Code
package-reviewoborchers/fractional-ctoCommand391mo agoMITA41Claude Code
searchcoltonbearden/carrelCommand28d agoMITA29Claude Code