一键导入
handover-product-branch
Compare current branch (with uncommitted changes) to main/master and preview PRODUCT_HANDOVER updates for pending changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Compare current branch (with uncommitted changes) to main/master and preview PRODUCT_HANDOVER updates for pending changes.
用 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
Generate preview of PRODUCT_HANDOVER updates without modifying actual docs. Creates parallel directory with proposed changes highlighted.
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)
Update PRODUCT_HANDOVER based on code changes since last documentation commit. Reviews diff product-wise and adds new features.
| name | handover-product-branch |
| description | Compare current branch (with uncommitted changes) to main/master and preview PRODUCT_HANDOVER updates for pending changes. |
Preview and generate PRODUCT_HANDOVER updates for work-in-progress changes before they merge to main.
Run this command when:
/handover-product-branch
Options (when supported):
--apply - Actually update PRODUCT_HANDOVER/ (default is preview only)--output <dir> - Custom preview directory (default: PRODUCT_HANDOVER_BRANCH/)# Find default branch
git symbolic-ref refs/remotes/origin/HEAD
# Get current branch
git branch --show-current
# Committed changes on this branch
git diff origin/main..HEAD -- . ':!PRODUCT_HANDOVER/' ':!node_modules/'
# Uncommitted changes
git diff HEAD -- . ':!PRODUCT_HANDOVER/'
git ls-files --others --exclude-standard
Use change-analyzer sub-skill to:
Use doc-previewer sub-skill to:
Show summary of what would change:
PRODUCT_HANDOVER_BRANCH/ # Preview directory
├── PRODUCT.md # With proposed changes highlighted
├── api/
│ ├── PRODUCT.md
│ └── {new-endpoint}.md # Marked as NEW
├── frontend/
│ └── {screen}/
│ └── PRODUCT.md # With MODIFIED sections
└── DIFF_REPORT.md # Summary of all changes
# Product Handover Diff Report
## New Features (3)
- api/todos-bulk.md - Bulk todo operations
- frontend/todos/filters/PRODUCT.md - Advanced filtering UI
## Modified Features (2)
- api/auth.md - Added OAuth providers (Google, GitHub)
- frontend/todos/PRODUCT.md - Updated table columns
## Removed Features (1)
- api/legacy-webhooks.md - Deprecated webhook system
## Impact Summary
- New user capabilities: Bulk operations, OAuth login
- UI changes: New filter panel on todos screen
- Breaking changes: Legacy webhooks removed
Branch: feature/bulk-todos
Changes: New bulk operations + UI
Preview generates:
api/todos-bulk.md (new file - highlighted)api/PRODUCT.md with new endpoint listedfrontend/todos/bulk/PRODUCT.md for bulk UIUser reviews, then either:
--apply to update actual PRODUCT_HANDOVER/