resolving-merge-conflicts
この Skill は、Git のマージまたはリベース中に発生する競合を効率的に解決するための体系的なアプローチを提供します。開発者が履歴を確認し、競合の原因を特定し、各競合チャンクを正確に処理し、自動チェックが通過することを確認する手順をガイドします。これにより、手動での競合解決にかかる時間とエラーが大幅に削減され、クリーンなコードベースとプロジェクトのスムーズな進行が保証されます。
npx skills add https://github.com/mattpocock/skills --skill resolving-merge-conflictsBefore / After 効果比較
1 组明確なガイドなしに Git マージ競合を手動で解決する際、開発者はしばしば長い時間を費やし、重要な変更を見落としたり、新たなエラーを導入したりしがちです。これにより、コードベースが不安定になり、頻繁な手戻りが発生し、開発効率とチームコラボレーションが著しく阻害されます。
この Skill は、明確な手順とベストプラクティスを提供し、開発者が競合を迅速かつ正確に解決するのに役立ちます。この Skill は、各競合解決が標準に従うことを保証し、手戻りやエラーを減らし、コードマージの成功率と開発プロセスの円滑さを大幅に向上させます。
-
See the current state of the merge/rebase. Check git history, and the conflicting files.
-
Find the primary sources for each conflict. Understand deeply why each change was made, and what the original intent was. Read the commit messages, check the PRs, check original issues/tickets.
-
Resolve each hunk. Preserve both intents where possible. Where incompatible, pick the one matching the merge's stated goal and note the trade-off. Do not invent new behaviour. Always resolve; never
--abort. -
Discover the project's automated checks and run them — typically typecheck, then tests, then format. Fix anything the merge broke.
-
Finish the merge/rebase. Stage everything and commit. If rebasing, continue the rebase process until all commits are rebased.
ユーザーレビュー (0)
レビューを書く
レビューなし
統計データ
ユーザー評価
この Skill を評価