structured-document-creation
它能做什么
这项技能指导智能体根据同一份源文件,编写面向不同读者的多份文档。适合需要同一政策或流程的内部版和外部版的人。
适用场景
- ✓当你需要根据同一份素材制作内部文档和外部文档的时候。
- ✓当时间安排、角色或政策需要在多份文档中保持一致时。
- ✓当相关文档需要相互指向对方的交叉引用时。
技能链接
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/structured-document-creation/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请根据这份政策文件,制作一份内部员工指南和一份对外公开摘要。两份文档中的日期和角色要保持一致。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体读取参考文件,列出其中的章节、时间线、角色和流程步骤。然后它使用这份结构化清单为每类读者编写文档,保持事实一致,并把相关文档互相链接。
技术内容(原始 SKILL.md)
作者在 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
常见问题
智能体首先提取什么?
它先从源文件中提取关键章节、政策、时间线、角色和流程步骤。
它如何保持一致?
它基于同一份结构化清单工作,因此每份文档使用相同的事实。
敏感内容会如何处理?
技能要求标出仅限内部的信息,避免对外发布。
详情
作者的原始描述
Create coordinated internal/external documents from reference materials with consistent formatting and cross-references
repo: HKUDS/AgentPilot
热度
- GitHub 星标
- 7.8k
- 排名
- #13022
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
agentpilot
7.8k帮你的智能体准备任务并运行 AgentPilot 循环,逐步改进项目:循环会提出修改、测试修改并为其打分。
openspace
7.8k帮你的智能体设置 OpenSpace,这是一个用于存储和获取智能体技能的工具,并通过 MCP 将其连接到你的 AI 应用。
rsi-arena
7.8k帮你的智能体设置并运行标准 AI 基准测试,例如 AIME 和 Terminal-Bench,用来比较不同的改进方法。
experiment-guide
7.8k帮你的智能体规划小型实验、阅读实验结果并记录发现,同时研究如何改进一个程序。