skills/dev-tools/feature-port-doc-generator/SKILL.md
Generates standardized porting documentation from completed feature changes. Analyzes commit diffs or file contents, extracts change intent, and outputs Markdown documentation for cross-team understanding. Should be used when the user needs to document a change for cross-team or cross-project consumption. Distinguished from cross-branch-fix-porter which actively re-implements fixes, this skill documents changes.
npx skillsauth add ImaginerLabs/skill-manager feature-port-doc-generatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Not copying code — transmitting intent. Let the receiving team understand "what changed, why it changed, and how to implement it in their own project."
Case A: User provided a commit ID
1. Get commit basic info (message, author, time)
2. Get commit code diff
3. Count changed files, assess change scope
Case B: User specified file paths (no commit ID)
1. Read the user-specified file contents
2. Find recent related commit history for those files
3. Confirm the relevant commits and get their diffs
1. [Change type] What kind of change is this? (New feature / Bug fix / Performance optimization / Refactoring)
2. [Problem/Goal] What problem does this change solve, or what goal does it achieve?
3. [Change scope] Which files are involved? What's the purpose of each file's change?
4. [Core logic] What's the key behavioral change (not code change)?
5. [External dependencies] Does the change introduce new dependencies (npm packages, utility functions, components, APIs)?
6. [Porting prerequisites] What baseline conditions must other projects meet before porting?
1. For file paths in the commit diff, combine with project root to form absolute paths
2. Use git rev-parse --show-toplevel to get the project root
3. All file paths in the final document should use absolute path format
| Complexity | Criteria | Porting advice | | ----------- | ----------------------------------------------------------------------------- | ------------------------------------------ | | Simple | Single file change, no new dependencies, independent logic | Can directly reference code implementation | | Medium | Multi-file change, few dependencies, related logic | Port file by file in order | | Complex | Involves architectural changes, many dependencies, requires prerequisite work | Port in phases |
The document must include these sections:
## [Feature Name] Porting Document
### Change Overview
- **Type**: New feature / Bug fix / Performance optimization / Refactoring
- **Goal**: [One-sentence description]
- **Background**: [Why this change was needed]
### File Scope
| File path | Change description |
| ------------------- | ------------------- |
| /abs/path/file1.ts | [Purpose of change] |
| /abs/path/file2.tsx | [Purpose of change] |
### Core Logic Explanation
**Before**: [Original behavior]
**After**: [New behavior]
### Dependency List
**New dependencies**:
- [Dependency package/utility function/component]
**Prerequisites**:
- [Baseline conditions the project must meet]
### Porting Steps
1. [Step 1: specific action]
2. [Step 2: specific action]
3. [Step 3: specific action]
### Notes
- [Risk point or common issue]
development
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.
devops
Create a new implementation plan file for new features, refactoring existing code or upgrading packages, design, architecture or infrastructure.
tools
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
development
Cross-branch fix porting expert. Understands fix intent and re-implements the same fix goal in the current branch's code context when direct cherry-pick isn't feasible. Should be used when the user needs to apply a fix from one branch to another where code structures differ significantly. Distinguished from feature-port-doc-generator which documents changes, this skill actively re-implements fixes.