一键导入
document-task
Generate product documentation for an epic and publish to Plane wiki. Use when opening a PR to staging branch or after completing epic implementation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate product documentation for an epic and publish to Plane wiki. Use when opening a PR to staging branch or after completing epic implementation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Implement a complete Plane epic by reading tasks, understanding dependencies, and coding sequentially. Use when working on a full epic or multi-task feature.
Prepare a Plane epic for implementation by refining requirements, creating detailed subtasks with relations, and writing test cases. Use before /implement-task to ensure requirements are clear.
| name | document-task |
| description | Generate product documentation for an epic and publish to Plane wiki. Use when opening a PR to staging branch or after completing epic implementation. |
Use this skill to automatically generate comprehensive product documentation for a completed task and publish it to Plane's wiki. This skill should be invoked when:
staging branch/document-task <EPIC-ID>
Example: /document-task BETON-75 or /document-task INSP-42
Epics are a distinct entity type in Plane, separate from regular work items:
work_item tools insteadretrieve_work_item_by_identifier works for epics because they share the identifier scheme (e.g., BETON-42)is_epic flag: Work item types have an is_epic: boolean field to distinguish epic typesIf retrieve_work_item_by_identifier returns unexpected results for an epic, use list_work_item_types to verify the epic type exists (look for is_epic: true).
# Find the feature branch for this epic
git branch -a | grep -i "<EPIC-ID>"
# Get the branch name
BRANCH_NAME=$(git branch -a | grep -i "<EPIC-ID>" | head -1 | xargs)
# Get all commits in this epic's branch
git log origin/staging..origin/$BRANCH_NAME --oneline
# Get detailed commit messages for context
git log origin/staging..origin/$BRANCH_NAME --pretty=format:"%h %s"
# Get summary of all changes
git diff origin/staging..origin/$BRANCH_NAME --stat
# Categorize changes by type
git diff origin/staging..origin/$BRANCH_NAME --stat | grep -E "\.(ts|tsx)$"
Based on the changed files, read the most important ones:
supabase/migrations/*.sqlsrc/app/api/**/*.tssrc/lib/**/*.tssrc/components/**/*.tsxvercel.json, environment variablesUse the Read tool to examine each key file and understand:
mcp__plane__retrieve_work_item_by_identifier:
- project_identifier: <PROJECT> (e.g., "BETON")
- sequence_id: <NUMBER> (e.g., "75")
Create documentation with these sections:
Overview
Architecture
Database Schema (if applicable)
User Flows
API Reference (if applicable)
Configuration
UI Components (if applicable)
Testing
Deployment
Known Limitations
Format the documentation as HTML for Plane's wiki. Use this structure:
<h1>Feature Name - Product Documentation</h1>
<p><strong>Epic:</strong> BETON-XX | <strong>Status:</strong> Implemented | <strong>Branch:</strong> <code>feature/BETON-XX-name</code></p>
<hr>
<h2>Overview</h2>
<p>Description here...</p>
<h3>Key Features</h3>
<ul>
<li><strong>Feature 1:</strong> Description</li>
<li><strong>Feature 2:</strong> Description</li>
</ul>
<!-- Continue with other sections... -->
<h2> for main sections<h3> for subsections<code> for inline code<pre><code> for code blocks<table> for structured data<ul>/<ol> for lists<strong> for emphasis<hr> between major sectionsUse the Plane MCP tool:
mcp__plane__create_workspace_page:
- name: "<EPIC-ID>: <Feature Name> - Product Documentation"
- description_html: "<full HTML content>"
Check that the page was created successfully and note the page ID.
Tell the user:
| Issue | Solution |
|---|---|
| Can't find branch | Check git branch -a for exact name |
| MCP tool fails | Verify Plane connection with /mcp |
| HTML rendering issues | Validate HTML structure, escape special chars |
| Missing files | Use git diff --stat to find all changes |
| Epic not found | Verify project identifier and sequence ID |
| Epic fetch returns unexpected data | Verify epics are enabled in project settings; use list_work_item_types to check for types with is_epic: true |