一键导入
doc-previewer
Generate preview of PRODUCT_HANDOVER updates without modifying actual docs. Creates parallel directory with proposed changes highlighted.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate preview of PRODUCT_HANDOVER updates without modifying actual docs. Creates parallel directory with proposed changes highlighted.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate PRODUCT_HANDOVER sitemap for product managers. Creates a hierarchical documentation structure where each folder has a PRODUCT.md describing user-facing capabilities.
Analyze git diff from product perspective to identify new, modified, or removed user-facing features
Update PRODUCT_HANDOVER files based on change analysis. Creates new docs, modifies existing ones, handles removals.
Extract detailed product documentation for individual features (endpoints, screens, components)
Compare current branch (with uncommitted changes) to main/master and preview PRODUCT_HANDOVER updates for pending changes.
Update PRODUCT_HANDOVER based on code changes since last documentation commit. Reviews diff product-wise and adds new features.
| name | doc-previewer |
| description | Generate preview of PRODUCT_HANDOVER updates without modifying actual docs. Creates parallel directory with proposed changes highlighted. |
Create a preview of PRODUCT_HANDOVER changes for review before applying.
Generate a preview directory showing what docs would look like after updates:
cp -r PRODUCT_HANDOVER/ PRODUCT_HANDOVER_BRANCH/
New files: Add banner at top:
---
⚠️ **PREVIEW: NEW FILE** - This file does not exist in main yet
Feature: {feature_name}
Branch: {current_branch}
---
# {Feature Name}
...
Modified files: Highlight changes:
# Feature Name
## What Users Can Do
- **Existing action**: Description
- **NEW**: New action from this branch ← [ADDED]
## Interface Elements
- **Field 1**: Description
- **Field 2**: Description (Updated: now accepts email too) ← [MODIFIED]
Removed files: Move to archive subfolder:
PRODUCT_HANDOVER_BRANCH/
├── .archive/
│ └── api/
│ └── legacy-webhooks.md # With removal notice
└── api/
└── PRODUCT.md # Updated to remove reference
Create PRODUCT_HANDOVER_BRANCH/DIFF_REPORT.md:
# Product Handover Preview Report
**Source Branch**: {branch_name}
**Base**: origin/{default_branch}
**Generated**: {timestamp}
## Summary
- New features: {count}
- Modified features: {count}
- Removed features: {count}
## New Features
### api/todos-bulk.md
**What**: Bulk todo creation endpoint
**Impact**: Users can create up to 100 todos in one request
**Files**: [Preview](api/todos-bulk.md)
### frontend/todos/bulk/PRODUCT.md
**What**: Bulk creation UI
**Impact**: New screen for batch todo entry
**Files**: [Preview](frontend/todos/bulk/PRODUCT.md)
## Modified Features
### api/PRODUCT.md
- Added bulk endpoints section
- [View diff](.diffs/api-PRODUCT.md.diff)
## Removed Features
### api/legacy-webhooks.md
**Moved to**: `.archive/api/legacy-webhooks.md`
**Reason**: Replaced by event system in v2.0
## Next Steps
To apply these changes to PRODUCT_HANDOVER/:
/handover-product-branch --apply
To discard:
rm -rf PRODUCT_HANDOVER_BRANCH/
Preview directory structure:
PRODUCT_HANDOVER_BRANCH/
├── DIFF_REPORT.md # Overview of all changes
├── .diffs/ # Inline diffs for modified files
│ ├── api-PRODUCT.md.diff
│ └── frontend-todos-PRODUCT.md.diff
├── .archive/ # Removed files
│ └── api/
│ └── legacy-webhooks.md
├── PRODUCT.md # With preview markers
├── api/
│ ├── PRODUCT.md # With modifications marked
│ ├── todos-bulk.md # New file with [NEW] banner
│ └── todos.md # Unchanged
└── frontend/
└── todos/
├── PRODUCT.md # With modifications marked
└── bulk/
└── PRODUCT.md # New file with [NEW] banner
Use these visual indicators:
[NEW] - Brand new feature/file[ADDED] - New content in existing file[MODIFIED] - Changed content[DEPRECATED] - Scheduled for removal[REMOVED] - No longer exists