Agents Reference: Doc Domain
Language: English | 日本語 Last updated: 2026-04-30 Update history:
- 2026-04-30: New page — Doc domain agents added (#54) Audience: Agent developers
This page covers the Doc domain agents: the 6 author agents launched by doc-flow to generate customer-deliverable documents. These agents are the sixth Agents Reference page alongside Orchestrators & Cross-Cutting, Discovery, Delivery, Operations, and Maintenance.
The doc-flow orchestrator itself is documented in Agents Reference: Orchestrators & Cross-Cutting.
Table of Contents
Section titled “Table of Contents”Doc Domain
Section titled “Doc Domain”The Doc domain (6 author agents + doc-flow orchestrator) generates customer-deliverable documents from existing Aphelion artifacts. All 6 author agents are launched by doc-flow in sequence; each can also be invoked standalone with explicit arguments.
Tools for all author agents: Read, Write, Glob, Grep (no Bash — side-effect-free by design).
Invocation pattern: Author agents receive --slug, --lang, --repo-root, and output_path from doc-flow. When invoked standalone, pass these arguments directly.
Template resolution order (applies to all author agents):
{project_root}/.claude/templates/doc-flow/{type}.{lang}.md{project_root}/.claude/templates/doc-flow/{type}.md(lang fallback){repo_root}/.claude/templates/doc-flow/{type}.{lang}.md(Aphelion built-in){repo_root}/.claude/templates/doc-flow/{type}.md(Aphelion built-in lang fallback)- Agent-emit fallback (minimal chapter structure built into the agent)
Output path convention: docs/deliverables/{slug}/{type}.{lang}.md. When --lang matches the project’s Output Language, the language suffix may be omitted ({type}.md).
hld-author
Section titled “hld-author”- Canonical: .claude/agents/hld-author.md
- Domain: Doc (customer-deliverable)
- Responsibility: Generates a High-Level Design document for customer architects and project leads. Repackages
SPEC.mdandARCHITECTURE.mdinto a system overview at component boundary level. Does not include implementation details. - Fixed chapter structure (IEEE 1471 / ISO/IEC/IEEE 42010 reference):
- System Overview
- Overall System Architecture
- Subsystem Decomposition
- External Integrations
- Non-Functional Requirements
- Technology Stack
- Constraints and Assumptions
- Inputs:
SPEC.md(required)ARCHITECTURE.md(required)DISCOVERY_RESULT.md(optional — supplements §5 Non-Functional Requirements)- Template file (resolved via template resolution order above)
- Outputs:
docs/deliverables/{slug}/hld.{lang}.md - Out of scope:
src/*implementation code; class/function-level specs (lld-author); internal developer docs (doc-writer) - AGENT_RESULT fields:
STATUS(success|error|blocked),OUTPUT_FILE,TEMPLATE_USED,TEMPLATE_VERSION,INPUT_ARTIFACTS,SKIPPED_SECTIONS,NEXT,BLOCKED_REASON - NEXT conditions:
- Normal completion →
lld-author(next phase in doc-flow) - Standalone →
done - Template major bump →
STATUS: blocked,BLOCKED_REASON: template_major_bump
- Normal completion →
- Standalone invocation: Required arguments:
--slug {value},--lang {ja|en},--repo-root {path}(default cwd). Createdocs/deliverables/{slug}/directory manually before invocation.
lld-author
Section titled “lld-author”- Canonical: .claude/agents/lld-author.md
- Domain: Doc (customer-deliverable)
- Responsibility: Generates a Low-Level Design document for the customer’s developer and maintenance team. Reads
ARCHITECTURE.mdandsrc/*at signature level to produce module/class/API signature documentation. Does not explain implementation logic line by line. - Fixed chapter structure (IEEE 1016 SDD reference):
- Module Structure
- Class / Function Specifications
- Data Structures
- API Signatures
- Algorithms
- Error Handling
- Inputs:
ARCHITECTURE.md(required)src/**(Glob — signature extraction only, not full body)TASK.md(optional — supplements implementation history)- Template file
- Outputs:
docs/deliverables/{slug}/lld.{lang}.md - Out of scope: Line-by-line implementation logic explanation; private/internal APIs not exposed to customers
- AGENT_RESULT fields:
STATUS(success|error|blocked),OUTPUT_FILE,TEMPLATE_USED,TEMPLATE_VERSION,INPUT_ARTIFACTS,NEXT - NEXT conditions:
- Normal completion →
api-reference-author - Standalone →
done
- Normal completion →
api-reference-author
Section titled “api-reference-author”- Canonical: .claude/agents/api-reference-author.md
- Domain: Doc (customer-deliverable)
- Responsibility: Generates a customer-developer facing API reference. Integrates
SPEC.mduse cases,ARCHITECTURE.mdAPI design section, andsrc/*endpoint signatures. Produces external SDK / API usage guide level documentation. Distinct fromdoc-writer’s internal API docs — different audience, granularity, and output path. - Inputs:
SPEC.mdARCHITECTURE.md(## 5. API Designor equivalent)src/**(Glob — endpoint signature extraction)openapi.yaml/openapi.json(optional — takes priority when present)- Template file
- Outputs:
docs/deliverables/{slug}/api-reference.{lang}.md - Out of scope: Private/internal endpoints;
doc-writer-generated internal API docs (not read to avoid duplication) - AGENT_RESULT fields:
STATUS(success|error|skipped),OUTPUT_FILE,TEMPLATE_USED,TEMPLATE_VERSION,ENDPOINT_COUNT,SKIP_REASON,NEXT - NEXT conditions:
- Normal completion →
ops-manual-author - No API endpoints found →
STATUS: skipped,SKIP_REASON: no API endpoints found - Standalone →
done
- Normal completion →
ops-manual-author
Section titled “ops-manual-author”- Canonical: .claude/agents/ops-manual-author.md
- Domain: Doc (customer-deliverable)
- Responsibility: Repackages infrastructure scripts, deployment procedures, and observability runbooks into a customer operations team facing manual. Covers startup/shutdown, monitoring, restore, and escalation flows in a single operations manual.
- Chapter structure (ITIL v4 Service Operation reference): Startup/Shutdown, Monitoring, Incident Response, Backup/Restore, Escalation
- Inputs:
Dockerfile,docker-compose.yml,infra/**(Glob)OBSERVABILITY.md(optional)OPS_PLAN.md(optional — Operations Flow final output)OPS_RESULT.md(optional)- Template file
- Outputs:
docs/deliverables/{slug}/ops-manual.{lang}.md - Out of scope: Developer environment setup (README territory); detailed security content (SECURITY_AUDIT.md excerpts only)
- AGENT_RESULT fields:
STATUS(success|error|skipped|blocked),OUTPUT_FILE,TEMPLATE_USED,TEMPLATE_VERSION,SKIP_REASON,INPUT_ARTIFACTS,NEXT - NEXT conditions:
- Normal completion →
user-manual-author PRODUCT_TYPE: tool / library / cliwith no infra artifacts →STATUS: skipped,SKIP_REASON: no infra artifacts (PRODUCT_TYPE != service)- Standalone →
done
- Normal completion →
user-manual-author
Section titled “user-manual-author”- Canonical: .claude/agents/user-manual-author.md
- Domain: Doc (customer-deliverable)
- Responsibility: Generates a UC-by-UC operation guide for the actual end users of the system. Requires
UI_SPEC.mdto produce meaningful output; returnsSTATUS: skippedwhenUI_SPEC.mdis absent (typical for CLI / library / tool projects). Each Use Case fromSPEC.mdbecomes one chapter; UI screen operation notes are added as subsections whenUI_SPEC.mdis present. - Inputs:
SPEC.md(required)UI_SPEC.md(optional — absence triggers skip logic)- Template file
- Outputs:
docs/deliverables/{slug}/user-manual.{lang}.md - Out of scope: Screenshot automation (placeholders only); video tutorials; API usage content (api-reference-author’s responsibility)
- AGENT_RESULT fields:
STATUS(success|error|skipped),OUTPUT_FILE,TEMPLATE_USED,TEMPLATE_VERSION,UC_COUNT,HAS_UI_SPEC,SKIP_REASON,NEXT - NEXT conditions:
- Normal completion →
handover-author UI_SPEC.mdabsent →STATUS: skipped,SKIP_REASON: no UI (UI_SPEC.md not found)- Standalone with explicit
--types user-manual+ UI absent → AskUserQuestion before generating empty deliverable - Standalone →
done
- Normal completion →
handover-author
Section titled “handover-author”- Canonical: .claude/agents/handover-author.md
- Domain: Doc (customer-deliverable)
- Responsibility: Generates a handover package for the successor maintenance team at project closeout. Integrates SPEC.md, ARCHITECTURE.md, SECURITY_AUDIT.md, TEST_PLAN.md, and active
docs/design-notes/*.md(archived docs excluded) into a single handover document. Includes cross-references to all other deliverables generated in the same run. - Fixed chapter structure:
- Project Overview
- Design Decision History
- Known Issues and Outstanding Tasks
- Test / Security Audit Result Summary
- Operations Handoff Notes
- Related Document Index
- Inputs:
SPEC.md,ARCHITECTURE.md,SECURITY_AUDIT.md,TEST_PLAN.mddocs/design-notes/*.md(archived/ excluded — MVP scope, per doc-flow-architecture.md §2.6)- Other deliverables in the same slug (indexed in §6)
- Template file
- Outputs:
docs/deliverables/{slug}/handover.{lang}.md - Out of scope:
docs/design-notes/archived/(Phase 2 scope); migration plans (Phase 2 separate doc type) - AGENT_RESULT fields:
STATUS(success|error),OUTPUT_FILE,TEMPLATE_USED,TEMPLATE_VERSION,DESIGN_NOTES_REFERENCED,RELATED_DELIVERABLES,NEXT - NEXT conditions:
- Normal completion →
done(final phase in doc-flow) - Standalone →
done
- Normal completion →
Related Pages
Section titled “Related Pages”- Agents Reference: Orchestrators & Cross-Cutting — includes doc-flow orchestrator entry
- Agents Reference: Discovery Domain
- Agents Reference: Delivery Domain
- Agents Reference: Operations Domain
- Agents Reference: Maintenance Domain
- Architecture: Domain Model
- Triage System
- Contributing
Canonical Sources
Section titled “Canonical Sources”- .claude/agents/ — All agent definition files (authoritative source)
- .claude/agents/doc-flow.md — Doc Flow orchestrator definition
- .claude/templates/doc-flow/ — Document templates (HLD, LLD, API reference, Ops manual, User manual, Handover)