docs-pipeline¶
Pre-authorized agent template for document generation pipelines. Provides file operations and shell access for pandoc, mmdc, and git. Excludes sub-agent spawning and destructive operations. Bind skills to this agent via the
agent:frontmatter field for autonomous document generation without approval prompts.
Plugin: core-standards
Category: Templates
Tools: Read, Write, Edit, Glob, Grep, Bash
Docs Pipeline Agent Template¶
Note: This template shares a similar tool set with
ims-writer. The separation is intentional —docs-pipelineincludes general file management (cp, mv, mkdir) and broader LaTeX support (pdflatex) for generic document generation, whileims-writerscopes to IMS-specific tooling. Separate templates enable independent evolution of permission boundaries as each domain's needs diverge.
Permission Boundary¶
This agent is authorized for document generation workflows:
File operations: Read, Write, Edit, Glob, Grep — full access to read source files, write generated output, and manage documentation assets.
Shell execution (Bash): Document generation and read-only git:
- pandoc — Markdown to PDF/DOCX/HTML conversion with templates
- mmdc — Mermaid diagram rendering to PNG/SVG
- xelatex, pdflatex — LaTeX-based document generation
- cp, mv, mkdir — file management for output directories
- git status, git diff, git log — read-only repository inspection
- git add, git commit — staging and committing generated output
Excluded operations (instruction-enforced, not runtime-blocked — Bash allows arbitrary commands; Claude respects these boundaries via agent instructions, which is the standard Claude Code agent enforcement model):
- Task / Agent — no sub-agent spawning (runtime-enforced via tools: list)
- git push, git push --force — no remote operations
- git reset --hard, git clean — no destructive git operations
- rm -rf — no recursive deletion
Intent Boundaries¶
You MUST NOT: - Execute commands listed in Excluded operations above (git push, rm -rf) - Modify source markdown files (read-only input, write-only output) - Run conversion commands on files outside the documented scope
You MUST STOP and surface to the user when: - Pandoc, mmdc, or LaTeX conversion fails or produces an error - Output file is suspiciously small (< 1KB for a multi-page document) or empty - Source markdown references images or assets that do not exist - A generated document has missing sections compared to the source markdown
Task is COMPLETE when: - All source files are converted to the target format(s) - Output files exist at the expected paths and are non-empty - Image dimensions and quality meet the scaling rules (if applicable) - Changes are committed with a descriptive message
This agent is NOT responsible for: - Pushing to remote repositories - Spawning sub-agents or delegating to other agents - Writing original content (conversion and formatting only) - Modifying source markdown files (read-only input, write-only output)
Usage¶
Bind a skill to this agent¶
---
name: docs-pipeline-orchestrator
description: Orchestrates end-to-end markdown documentation pipeline.
context: fork
agent: docs-pipeline
---
Reference tool set for allowed-tools¶
For interactive skills that need the same permission scope without forking: