savinofiore/doe-kit/port-commits
Claude Code and agent skill by savinofiore/doe-kit
- community
Checking that the SKILL.md file is still in the repository.
Port commits between branches with an enumerate-then-verify pattern. A pre-flight file enumeration plus a post-flight coverage check make silently skipped files impossible. Use when porting changes from an outdated or diverged branch.
Install
npx vskill@latest install savinofiore/doe-kit/port-commitsSKILL.md
The same SKILL.md was published earlier as savinofiore/doe-kit/port-commits.
Port Commits — enumerate, then verify
Expected input
SOURCE_BRANCH(or an explicit list of commit SHAs)TARGET_BRANCH(default: current branch)- Optional: an explicit list of files to exclude
Workflow
Step 1 — Enumerate
List EVERY file touched by the source commits:
or, for a range:
Produce a markdown table:
Show the table and ask for confirmation before proceeding.
Step 2 — Plan
For each file, decide the action:
- `port-as-is` — copy the content from the source.
- `adapt` — the source is outdated; it needs adapting to current conventions (new imports,
renamed APIs, new patterns).
- `skip-with-reason` — not applicable on the target (already refactored differently,
intentionally deleted).
Output: the Step 1 table plus an Action column and Reason (if skip).
Show the full plan and wait for explicit confirmation before Step 3.
Step 3 — Execute
Apply commit by commit, atomically. For each source commit:
- Apply the files (
Edit/Writeper the planned action). - Run the project's static analysis.
- If it fails:
- Do NOT move to the next commit.
- Roll back the partial changes (
git restore <files>). - Report and ask for instructions.
- Atomic commit, referencing the ticket (when present) and the source commit:
`` <TICKET> <description> (port of <SHORT_SHA>) ``
Step 4 — Coverage check
Verify every source file was handled:
Files in the comm -23 output are source files with no counterpart on target.
For each one:
- Was it
skip-with-reason? → fine, ignore. - Otherwise → THE PORT IS INCOMPLETE, back to Step 3.
Do not continue until comm -23 returns only files marked skip-with-reason.
Step 5 — Final report
Mandatory closing table:
Plus:
- Total source file count.
- Ported / adapted / skipped counts.
- Final static analysis output (clean, or filtered to pre-existing issues only).
RULES (STRICT)
- Never declare the port complete without the Step 4 coverage check.
- Never skip a file without a written reason in the table.
- Never merge several source commits into one target commit (atomicity).
- Clean static analysis on every commit is a closing condition.
- If the user interrupts, leave the tree in a consistent state (no dangling partial changes).
The failure pattern this prevents
A port once silently skipped 9 files and needed a second pass after the user noticed. This skill exists to make that impossible: the Step 1 enumeration and the Step 4 coverage check are the two gates that prevent silent skipping.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/port-commits/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/savinofiore/doe-kit/port-commits)