util.doc-system

util.doc-system is a command for Claude Code, GitHub Copilot from stefaniuk/loadout. It costs 22 tokens per session (1,089 once invoked), scanned A, original, MIT.

A documentation-management command for creating, updating, synchronising, or checking a repository's documentation system. It can work on areas such as architecture, reference material, tutorials, operations, and governance.

In plain words
What is it for?
Use it to establish documentation, refresh a selected documentation area, or audit documentation and make one corrective pass when drift is found.
Why use it?
It helps keep documentation organised and aligned with the repository instead of allowing outdated or inconsistent pages to accumulate.

Command for Claude CodeGitHub Copilot

Written for Claude Code and GitHub Copilot: argument-hint in frontmatter, but also a Copilot chat mode or prompt. Also seen: agent in frontmatter; mentions subagents; mentions AGENTS.md.

Good fit Use it to establish documentation, refresh a selected documentation area, or audit documentation and make one corrective pass when drift is found.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/stefaniuk/loadout/util.doc-system
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/stefaniuk/loadout

Made for: Claude Code, GitHub Copilot.

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 util.doc-system

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/stefaniuk/loadout/util.doc-system"><img src="https://agentmods.dev/badge/commands/stefaniuk/loadout/util.doc-system.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 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,089 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.00022 $0.01089
Opus 5.5 $0.00009 $0.00436
Sonnet 5.5 $0.00004 $0.00218
Haiku 4.5 $0.00002 $0.00109

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

Security

Grade A, and why

util.doc-system 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.

.github/prompts/util.doc-system.prompt.md · 98 lines

How it starts

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

This prompt delegates to the system-documentation skill.

Run the system-documentation skill and resolve the request in this order:

  1. Detect combined produce-and-review requests. If the user asks to create, establish, synchronise, update, refresh, regenerate, fix drift in, or bring documentation up to date, and also asks to review, audit, check, verify, validate, assess, or deep-review it, run a two-phase workflow:
    • first resolve the producing phase through the rules below
    • then run audit
    • if audit surfaces resolvable drift, re-enter the producing phase to fix it, then re-run the documentation validation gates; stop after at most one corrective pass and report any drift that remains
    • report the two phases separately
  2. Resolve the step. If the user input names a step (foundation, architecture, reference, explanation, how-to, tutorials, operations, audience-indexes, governance, all), use it. Otherwise default to all.
  3. Resolve the mode for a single-phase request, or for the producing phase of a combined request:
    • an explicit mode wins
    • an explicit legacy alias (feature-sync, adr-sync, surface-sync, release-sync) maps through the skill's compatibility rules
    • a diff-based, PR-based, or changed-files-only review resolves to pre-pr-review
    • a request to review, audit, check, verify, validate, assess, or deep-review documentation quality, completeness, placement, or drift resolves to audit
    • a request to establish missing structure, create the canonical baseline, or recover clearly missing anchors resolves to establish
    • a request to synchronise, update, refresh, regenerate, or fix drift resolves to sync
    • when none of the above apply and no diff, PR, or explicit scope narrows the run, default to audit rather than sync; an unbounded sync over a full repository is edit-heavy and should be requested explicitly
  4. Resolve scope. An explicit scope wins. Otherwise use changed files when diff or PR context is available; if not, use the repository root.
  5. When all is resolved, run the ordered step sequence defined by the skill. Within each step, create or update only the evidenced outputs and the minimal landing pages or indexes allowed by that step and mode. sync may legitimately produce zero edits when no drift is evidenced; in that case report "no changes; no drift detected" and proceed to validation.
  6. If the user supplies an unrecognised or contradictory step, mode, alias, or scope, respond with an error that names the offending value and lists the accepted step and mode values. Do not start the run. Do not error solely because step, mode, or scope was omitted when the defaults above resolve it.
  7. Before writing, state the resolved step, mode, scope, and whether the run is single-phase or combined. audit and pre-pr-review are non- destructive: they MUST NOT create, edit, rename, or delete files, and they do not need to execute validation gates. If you delegate either mode to a subagent, repeat the read-only contract in the subagent prompt.
  8. For repositories with non-trivial documentation systems, prefer delegating inventory and drift analysis to a read-only exploration subagent before editing. Keep edits in the main agent so the planning context stays focused.
$ARGUMENTS

Examples:

  • establish
  • reference sync docs/reference/
  • audit
  • pre-pr-review changed files
  • sync then audit docs/reference/

Report using this skeleton; omit phase sections that did not run.

## Run report

### Resolved invocation
- step / mode / scope / phase (single or combined)

### Phase 1 - <mode>
- Canonical files created or updated
- Validation gates executed and their exit codes (documentation-scoped only)
- Unresolved drift by class and canonical target

### Phase 2 - audit (or pre-pr-review)
- Findings grouped by canonical target file, with severity and class
- Totals by severity and by class
- Overall verdict
- Recommended follow-ups (out of scope for this run)

Read the full file on GitHub · 98 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. 1mo ago First seen · 98 lines · 22 tokens per session scan A ba972327ad3a

Subscribe to this mod's changes

util.doc-system is a command published in the GitHub repository stefaniuk/loadout (1 stars, last pushed 13d ago), licensed MIT. It adds 22 tokens to every session and 1,089 once invoked, about $0.0001 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-09-12.

Related

Other commands, from other repositories

sddp-implement-qc-loop

Command description: Run implement and QC in a continuous loop. Argument hint: [optional: feature directory or branch name] Command category: orchestration Prerequisites: spec, plan, tasks.

attilaszasz/sdd-pilot · 0 tokens

sddp-plan

Command description: Create an implementation plan from the current feature specification. Argument hint: [optional: planning constraints or focus areas] Command category: feature-delivery Prerequisites: spec.

attilaszasz/sdd-pilot · 0 tokens

sddp-prd

Command description: Create or refine the canonical product document. Argument hint: [rough product idea, users, domain, or market opportunity] Command category: project-bootstrap Prerequisites: none.

attilaszasz/sdd-pilot · 0 tokens

sddp-qc

Command description: Run quality control against the implemented feature. Argument hint: [optional: testing focus such as unit tests, security audit, requirements sync] Command category: feature-delivery Prerequisites: spec, plan, tasks, implementation:complete.

attilaszasz/sdd-pilot · 0 tokens

sddp-specify

Command description: Create a feature specification from a feature description. Argument hint: [feature description] Command category: feature-delivery Prerequisites: project-instructions.

attilaszasz/sdd-pilot · 0 tokens

sddp-amend

Command description: Propagate a bootstrap change across canonical project artifacts and the project plan. Argument hint: [project-level change to propagate across bootstrap artifacts] Command category: project-bootstrap Prerequisites: project-instructions, product-document, technical-context, project-plan.

attilaszasz/sdd-pilot · 0 tokens