compose-document-system

A system for composing structured documents such as standards, plans, procedures, checklists, and agreements from reviewed source material.

In plain words
What is it for?
Use it to select a document format, record sources and claims, validate the content, and produce a portable document packet.
Why use it?
It helps keep important documents traceable to their supporting evidence and checks whether the result is ready to release.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/bankszach/document-systems/compose-document-system
Any agent
npx skills add bankszach/document-systems --skill compose-document-system
Clone the repo
git clone --depth 1 https://github.com/bankszach/document-systems

Made for: Claude Code, Codex.

Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 635 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00078 $0.00635
Opus 5 $0.00039 $0.00318
Sonnet 5 $0.00016 $0.00127
Haiku 4.5 $0.00008 $0.00064

Measured yesterday against content hash da3e2cd32e4b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

compose-document-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 yesterday.

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/document-systems/skills/compose-document-system/SKILL.md · 65 lines

How it starts

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

Compose Document System

Perform the semantic reasoning, then ask the deterministic MCP to construct a proposal-scoped Expression. Render documents as traceable views of that Expression. Do not begin with a universal prose template.

Workflow

  1. Identify the document's primary job and intended user.
  2. Call list_document_profiles and select one primary profile plus no more than one secondary profile.
  3. Read the supplied sources yourself. Mark source review only as REVIEWED_BY_CALLER; this remains your assertion, not an MCP finding.
  4. Build explicit SourceRefs, semantic elements, and assertions for consequential values or transitions supported by caller-reviewed evidence.
  5. Prefer compile_document_packet to compose, validate, gate, and render once. Use SUMMARY for an efficient review handoff and FULL only when the caller needs a portable packet to store or transfer.
  6. Use the separate compose, validate, and render tools only when an existing Expression or staged diagnostic workflow requires them.
  7. Resolve integrity and semantic-assertion failures. Report readiness warnings rather than filling them speculatively.
  8. Hand off the packet identity, release gate, artifact, and unresolved human decisions. A ready gate still requires a human decision.

Populate only elements supported by the user's request or cited evidence. Keep unknown fields explicit; do not invent authority, acceptance, or proof.

Boundaries

  • The Expression state is always PROPOSED; this skill cannot promote it.
  • Treat generated requirements, claims, and procedures as proposals.
  • Never infer acceptance from validation, a completed checklist, or polished formatting.
  • Do not put acceptance, operative status, views, or validation results inside an Expression.
  • Do not create multiple independently maintained versions of the same facts.
  • Do not force a multi-profile document when one focused profile is enough.
  • If the task is a simple low-consequence note, use ordinary writing instead of this system.
  • The MCP writes nothing. A FULL packet is portable but remains NOT_PERSISTED; save it with ordinary repository tools only when the user explicitly requested project writes.

Read the full file on GitHub · 65 lines

Files

What ships with it

2 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. yesterday First seen · 65 lines · 78 tokens per session scan A da3e2cd32e4b

Subscribe to this mod's changes

compose-document-system is a skill published in the GitHub repository bankszach/document-systems (0 stars, last pushed 1mo ago), licensed MIT. It adds 78 tokens to every session and 635 once invoked, about $0.0004 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.