structured-document-creation
What it does
This skill guides the AI agent to write several audience-specific documents from one source file. It is for people who need internal and external versions of the same policy or process.
When to use it
- ✓When you need both an internal and an external document from the same source material.
- ✓When timelines, roles or policies must match across several documents.
- ✓When related documents need cross-references that point to each other correctly.
Skill link
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/structured-document-creation/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“From this policy document, make an internal staff guide and a public summary. Keep the dates and roles the same in both.”
5 new skills a week. 1 minute to read.
How it works
The agent reads the reference file and lists its sections, timelines, roles and steps. It then uses that structured list to write each audience's document, keeping the facts consistent and linking related documents together.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Structured Document Creation Workflow
This skill guides you through creating multiple audience-specific documents from a single reference source while maintaining consistency, proper formatting, and cross-references.
When to Use This Skill
Use this pattern when you need to:
- Create both internal and external-facing documents from the same source material
- Maintain consistent information across multiple documents
- Extract structured requirements (timelines, roles, steps, policies)
- Ensure proper cross-referencing between related documents
Step-by-Step Instructions
Step 1: Read and Analyze Reference Material
First, thoroughly read the reference document to understand the source content.
# Example: Read reference document
from docx import Document
def read_reference_doc(path):
doc = Document(path)
content = []
for para in doc.paragraphs:
content.append(para.text)
return '\n'.join(content)
reference_content = read_reference_doc('Reference_Document.docx')
Key actions:
- Identify all key sections, policies, and requirements
- Note any timelines, deadlines, or time-sensitive information
- Extract role definitions and responsibilities
- Identify process steps and workflows
- Flag any sensitive/internal-only information
Step 2: Extract Structured Requirements
Create a structured extraction of key information categories:
structured_requirements = {
'timelines': [], # Deadlines, timeframes, schedules
'roles': [], # Who is responsible for what
'steps': [], # Process steps in order
'policies': [], # Rules and guidelines
'contacts': [], # Points of contact
'internal_only': [] # Information not for external audiences
}
Extraction checklist:
- All dates and timeframes captured
- All roles and responsibilities identified
- All process steps documented in sequence
- All policies and rules extracted
- Sensitive information flagged for internal documents only
Step 3: Plan Document Structure
Before creating documents, plan the structure for each audience:
| Document Type | Audience | Content Focus | Formatting |
|---|---|---|---|
| Internal | Staff/Team | Full details, sensitive info, operational specifics | Detailed, technical |
| External | Clients/Partners | Public-facing info, guidelines, high-level process | Clear, professional |
Document planning template:
Internal Document:
- Title: [Descriptive internal title]
- Sections: [List all sections with subsections]
- Cross-refs: [References to external document]
- Sensitive content: [Mark internal-only sections]
External Document:
- Title: [Client/partner-friendly title]
- Sections: [Public-appropriate sections only]
- Cross-refs: [References to internal document if applicable]
- Exclusions: [List what's omitted for external audience]
Step 4: Create Documents with Consistent Formatting
Create each document maintaining:
- Consistent terminology across all documents
- Matching section numbering where applicable
- Aligned visual formatting (headers, bullets, tables)
- Clear cross-references between documents
# Example: Create document with consistent structure
from docx import Document
from docx.shared import Inches, Pt
from docx.enum.text import WD_ALIGN_PARAGRAPH
def create_document_template(title, sections):
doc = Document()
# Title
heading = doc.add_heading(title, 0)
heading.alignment = WD_ALIGN_PARAGRAPH.CENTER
# Add sections
for section in sections:
doc.add_heading(section['title'], level=1)
for content in section['content']:
doc.add_paragraph(content)
return doc
Step 5: Add Cross-References
Ensure documents reference each other appropriately:
Internal document should include:
- Reference to external document version
- Notes on what information is shared externally
- Links to related internal policies
External document should include:
- Reference to internal contact for questions
- Version/date information
- Clear scope boundaries
Cross-reference example:
For internal process details, refer to: [Internal Document Name]
For customer-facing guidelines, refer to: [External Document Name]
Step 6: Quality Check
Before finalizing, verify:
Consistency checks:
- Same terminology used in both documents
- Dates and timelines
FAQ
What does the agent extract first?
It extracts key sections, policies, timelines, roles and process steps from the source.
How does it stay consistent?
It works from one structured list, so each document uses the same facts.
Are sensitive items handled?
The skill says to flag any internal-only information so it is not published externally.
Details
Original description by the author
Create coordinated internal/external documents from reference materials with consistent formatting and cross-references
repo: HKUDS/AgentPilot
Popularity
- GitHub stars
- 7.8k
- Ranking position
- #13022
- License
- MIT
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
agentpilot
7.8kHelps your agent improve a project step by step by preparing a task and running the AgentPilot loop that proposes, tests and scores changes.
openspace
7.8kHelps your agent set up OpenSpace, a tool that stores and fetches agent skills, and connect it to your AI app through MCP.
rsi-arena
7.8kHelps your agent set up and run standard AI benchmark tests, such as AIME and Terminal-Bench, to compare different improvement methods.
experiment-guide
7.8kHelps your agent plan small experiments, read their results and record findings while it investigates how to improve a program.
Similar skills
obsidian-vault-maintainer
394kHelps your agent keep an Obsidian-friendly memory vault tidy, with working wiki links, consistent properties, and safe generated sections.
wiki-maintainer
394kHelps your agent maintain an OpenClaw memory wiki with repeatable pages, safe managed blocks, and checks for contradictions or gaps.
obsidian
394kLets your agent read, search, create, and edit Obsidian notes, tasks, links, and properties using the official Obsidian command line.