create-doc
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "create-doc":https://skillpi.com/zh/skills/deepskill-eb10ffd66918e3b092296f37a9c6051ec103e8c0b21fc7f3c26017efbf237c0c。安装前核对上游来源和版本:https://github.com/avibebuilder/claude-prime。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
在用户希望将知识以持久文件保存以便他人无需重复探索时生成文档。适用于创建或更新入职指南、操作手册、架构决策记录、API 文档、故障复盘、变更日志、环境搭建指南等。触发条件为用户明确要求将知识记录为文件,而非仅作解释或继续决策。
介绍来源: third_party · avibebuilder · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 翻译待完成,请参阅来源文档。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: create-doc
description: YAML-driven document creation engine with mandatory user interaction. Use when creating PRDs, epics, or any document from a YAML template that requires section-by-section collaboration.Create Document from Template (YAML-Driven)
When to Use This Skill
Activate this skill when:
- Creating documents from YAML templates (PRDs, epics, architecture docs)
- User needs structured, interactive document creation
- Template-driven workflows require section-by-section validation
- Documents need comprehensive rationale for decisions
- User collaboration is essential (not just document generation)
Note: This skill is typically invoked by higher-level skills like new-product-prd or create-prd, not directly by users.
⚠️ CRITICAL EXECUTION RULES ⚠️
This is an Executable Workflow - NOT Reference Material
When this skill is activated:
- DISABLE ALL EFFICIENCY OPTIMIZATIONS - Full user interaction required
- MANDATORY STEP-BY-STEP EXECUTION - Each section processed sequentially
- ELICITATION IS REQUIRED - When
elicit: true, MUST use 1-9 format - NO SHORTCUTS ALLOWED - Complete documents cannot be created without following this workflow
VIOLATION INDICATOR: If you create a complete document without user interaction, you have violated this workflow.
Mandatory Elicitation Format
When elicit: true in template, this is a HARD STOP requiring user interaction:
YOU MUST:
- Present section content - Show drafted content for the section
- Provide detailed rationale:
- Explain trade-offs and choices made
- Document key assumptions
- Highlight questionable decisions needing user attention
- Identify areas requiring validation
- STOP and present numbered options 1-9:
- Option 1: Always "Proceed to next section"
- Options 2-9: Select 8 methods from
resources/elicitation-methods.md - End with: "Select 1-9 or just type your question/feedback:"
- WAIT FOR USER RESPONSE - Do not proceed until user selects option or provides feedback
NEVER:
- Ask yes/no questions
- Use any format other than 1-9 numbered options
- Create content for elicit=true sections without user interaction
- Proceed without waiting for user response
Processing Flow
1. Template Discovery
If YAML template not provided:
- List all templates from
resources/ - Ask user to select or provide template path
2. Parse YAML Template
Load and parse:
- Template metadata (id, name, version, output format)
- Workflow settings (mode, elicitation style)
- Section structure (including nested sections)
- Section properties (instruction, elicit, repeatable, conditions, agent permissions)
OKF frontmatter (v0.1): the generated document's YAML frontmatter must carry a non-empty
type(OKF's one hard requirement — e.g.prd,epic,architecture) and should carry a one-sentencedescription(OKF-recommended);tagsis optional. Derivetypefrom the template's domain when the template metadata does not specify it. See OKF conformance.
3. Set Preferences
- Show current mode: Interactive (default) or YOLO (user can toggle with
#yolo) - Confirm output file path
- Explain workflow to user
4. Process Each Section Sequentially
For each section:
a. Check Conditions
- Skip section if condition not met (e.g., "PRD has UX/UI requirements")
b. Check Agent Permissions
- Note if section restricted to specific agents (owner/editors)
- Mark readonly sections
- Include permission note in generated document if restricted
c. Draft Content
- Use section instruction to guide content creation
- Follow section type (bullet-list, numbered-list, paragraphs, table)
- Use examples if provided in template
- Apply prefix/item_template if specified
d. Present Content + Rationale
- Show drafted section content
- Provide detailed rationale explaining:
- Trade-offs: What was chosen over alternatives and why
- Assumptions: Key assumptions made during drafting
- Decisions: Interesting or questionable choices
- Validation needs: Areas that might need user attention
e. Elicitation (if elicit: true)
- MANDATORY 1-9 format:
Select an option:
1. Proceed to next section
2. [Elicitation Method A from resources/elicitation-methods.md]
3. [Elicitation Method B]
4. [Elicitation Method C]
5. [Elicitation Method D]
6. [Elicitation Method E]
7. [Elicitation Method F]
8. [Elicitation Method G]
9. [Elicitation Method H]
Select 1-9 or just type your question/feedback:
f. Save to File
- Incrementally save completed sections to output file
- Write the Change Log when the template declares a
changelog(orchange-log) section. Canonical format:references/document-change-log.md— append-only, newest row last, four columns (Date,Version,Description,Author).- On the first save, seed exactly one row:
| {today} | 1.0 | Initial draft | create-doc | - On any later save that revises an already-written section, append a new row describing the
revision — never edit an existing row. Bump
Versionfor a substantive revision. - Every appended row bumps the document's frontmatter
updated:field in the same edit.
- On the first save, seed exactly one row:
- If the template declares no changelog section, write nothing — do not invent the section.
g. Handle Repeatable Sections
- For sections marked
repeatable: true(e.g., epics, stories) - Ask user if they want to add another instance
- Repeat section processing as needed
h. Visual Diagrams (conditional, via mermaid-architect)
- If a section's drafted content describes a multi-actor flow, system topology, state lifecycle, sequence of API calls, or data shape — and a diagram would materially clarify it — invoke
mermaid-architect. - A Mermaid diagram is mandatory only if it enhances understanding of the section. Do not pad documents with diagrams.
- Pass the document path, the section anchor, and any actors/systems already named in the prose.
- If the section template marks
diagram: optional|recommended|required, honour that hint. Otherwise letmermaid-architectdecide and accept itsno diagram justified — {reason}response without pushing back. - Paste the returned Mermaid block (with YAML metadata header) and the 2-sentence "Architectural assumptions" summary into the section before continuing.
5. Continue Until Complete
- Process all sections in order
- Handle nested sections recursively
- Maintain document structure and formatting
Elicitation Methods
Available in resources/elicitation-methods.md:
Core Reflective Methods
- Expand or Contract for Audience
- Explain Reasoning (CoT Step-by-Step)
- Critique and Refine
Structural Analysis Methods
- Analyze Logical Flow and Dependencies
- Assess Alignment with Overall Goals
Risk and Challenge Methods
- Identify Potential Risks and Unforeseen Issues
- Challenge from Critical Perspective
Creative Exploration Methods
- Tree of Thoughts Deep Dive
- Hindsight is 20/20: The 'If Only...' Reflection
Multi-Persona Collaboration Methods
- Agile Team Perspective Shift
- Stakeholder Round Table
- Meta-Prompting Analysis
Advanced Techniques
- Self-Consistency Validation
- ReWOO (Reasoning Without Observation)
- Persona-Pattern Hybrid
- Emergent Collaboration Discovery
Game-Based Methods
- Red Team vs Blue Team
- Innovation Tournament
- Escape Room Challenge
Elicitation Results Flow
After user selects elicitation method (2-9):
- Execute method from
resources/elicitation-methods.md - Present results with insights and analysis
- Offer options:
- 1. Apply changes and update section
- 2. Return to elicitation menu (show 1-9 options again)
- 3. Ask any questions or engage further with this elicitation
Agent Permissions
When processing sections with agent permission fields:
- owner: Note which agent role initially creates/populates the section
- editors: List agent roles allowed to modify the section
- readonly: Mark sections that cannot be modified after creation
For sections with restricted access:
- Include note in generated document:
_(This section is owned by dev-agent and can only be modified by dev-agent)_
YOLO Mode
User can type #yolo to toggle YOLO mode:
- Interactive Mode (default): Section-by-section with elicitation stops
- YOLO Mode: Process all sections at once without elicitation stops
- Toggle: User can switch modes mid-document by typing
#yolo
Note: YOLO mode is for experienced users who trust the AI to make good decisions without frequent check-ins.
Detailed Rationale Requirements
When presenting section content, ALWAYS include rationale that explains:
- Trade-offs: What was chosen over alternatives and why
- Assumptions: Key assumptions made during drafting
- Decisions: Interesting or questionable decisions needing user attention
- Validation: Areas that might need validation or confirmation
Example:
### Requirements Section
**Drafted Content:**
- FR1: User can create new tasks via command palette
- FR2: Tasks support tags and categories
- FR3: Tasks can be filtered by status
**Rationale:**
I focused on core task management (FR1) and organization (FR2-FR3)
as these directly support the goal of reducing task overhead.
I assumed keyboard-first interaction (command palette) based on
the technical preferences for developer tools. I didn't include
task scheduling as that felt like a phase 2 feature, but this is
worth validating - should MVP include due dates?
Integration with Other Skills
This skill is typically called by:
create-prd- Uses withprd-template(mode=greenfield) orbrownfield-prd-template(mode=brownfield).new-product-prdreaches this skill viacreate-prdmode=greenfield delegation.- Other document creation workflows requiring templates
This skill calls:
pm-checklist- Often runs at end of PRD creationmermaid-architect- Generates Mermaid diagrams for any section where a visual materially clarifies the prose- Template skills - References template structures from
prd-templateorbrownfield-prd-template
Key Principles
- User Collaboration is Mandatory - This is not an AI document generator
- Transparency in Reasoning - Always explain why choices were made
- Respect Elicitation Requirements - Never skip elicit: true sections
- Incremental Progress - Save work frequently, build document section by section
- Flexibility - User can provide feedback at any time, not just during elicitation
Success Criteria
A successful create-doc execution produces:
- Complete Document - All sections processed according to template
- User-Validated Content - Elicitation stops honored, user feedback incorporated
- Clear Rationale - Every significant decision explained with trade-offs
- Saved Output - Document saved to specified file path
- Quality Validation - If applicable, validation checklist run at completion
Example Activation
Internal Activation (from create-prd):
create-prd skill: "Use create-doc with [prd-template | brownfield-prd-template] to generate PRD"
→ create-doc activates with template path
→ Processes each section interactively
→ Returns completed PRD to create-prd
(For greenfield, the chain is: new-product-prd → create-prd mode=greenfield → create-doc + prd-template.)
Direct Activation (advanced users):
User: "Create a document using the custom-epic-tmpl.yaml template"
→ create-doc activates
→ Loads custom-epic-tmpl.yaml
→ Begins interactive section-by-section processing
Common Pitfalls to Avoid
❌ Creating complete documents without interaction
- Violation of workflow mandate
❌ Skipping elicitation for efficiency
- Defeats purpose of interactive document creation
❌ Using yes/no questions instead of 1-9 format
- Not the specified interaction pattern
❌ Not providing detailed rationale
- User can't make informed decisions without understanding trade-offs
✅ Follow the workflow exactly as specified
- Present, explain, offer 1-9 options, wait for response, continue
Notes
- This skill is designed for high-stakes documents where quality and user alignment are critical
- The elicitation format (1-9 options) is intentional - provides structured choices while allowing free-form feedback
- Templates define the workflow - this skill is the execution engine
- Agent permissions enable multi-agent workflows where different agents own different sections
版本历史
-
v1.2.9
GitHub ↗
原版更新说明
## 1.2.9 - 🔧 Enforce sequential skill optimization and tighten description char hint
-
v1.2.8
GitHub ↗
原版更新说明
## 1.2.8 - 🔧 Stop ask-rule from blocking on facts Claude can look up itself - 🔧 Rebalance discuss skill so pushback is contextual, not default
-
v1.2.7
GitHub ↗
原版更新说明
## 1.2.7 - ✨ Add humanizer starter skill - 🔧 Note skill description char limits (soft ~650, hard 1024) in skill-creator - 🔧 Sharpen optimus-prime skill scoping and placement guidance
-
v1.2.6
GitHub ↗
原版更新说明
## 1.2.6 - 🐛 Ignore pycache in self-improve hook
-
v1.2.5
GitHub ↗
原版更新说明
## 1.2.5 - 🔧 Remove allow-claude-dir hooks as claude-code already fixed it - 🔧 Add .tasks/ to gitignore entries
此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供基于YAML模板的交互式文档创建引擎,支持PRD、架构文档、故障复盘等多种高价值文档类型
- 有效解决知识沉淀和团队协作痛点,避免重复探索
亮点
- 触发条件描述详尽,涵盖多种变体表达('整理成文档'、'写下来'、'记录工作原理'等)
- 明确区分了适用与不适用场景,边界清晰,避免误触
待提升项
-
文档长度略超理想范围 原报告严重程度:轻微
SKILL.md 约600行,超过建议的500行上限
改进建议:考虑将部分内容移至独立参考文件或折叠到附录
亮点
- 结构完整,包含When to Use、执行规则、处理流程、集成说明等关键章节
- 有清晰的步骤划分和出口条件,包含端到端示例
待提升项
-
依赖外部资源文件未验证存在性 原报告严重程度:轻微
流程中多次引用 resources/elicitation-methods.md 等资源文件,但未验证其是否存在
改进建议:在执行前检查所需资源文件是否存在,若缺失应提示用户或提供默认实现
亮点
- 工具来源明确,参数处理逻辑清晰
- 覆盖主要异常情况(条件检查、权限控制、重复节处理),不可逆操作有确认机制
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
翻译待完成,请参阅来源文档。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。