/kenji:workflow-merge-conflictsfrom kenji skills
Resolves in-progress merge or rebase conflicts by tracing each side's intent from commits and PRs, preserving both intents where possible.
Ships in kenji skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Degree of freedom: MIXED. Which intent wins [HIGH freedom]; inspect,
never --abort unasked, and run real checks [LOW freedom — run exactly].
Adapted from mattpocock/skills (MIT).
Copy this checklist and tick items as you go:
- [ ] Step 1: See the current state: operation and conflicting files
- [ ] Step 2: Find the primary sources for each conflict; read the intent
- [ ] Step 3: Resolve each hunk; keep both intents; never --abort unasked
- [ ] Step 4: Run the project's automated checks: typecheck, tests, lint
- [ ] Step 5: Finish the operation; tree clean and checks green
Identify: rebase of
fix/cart-skuontomain; conflict insrc/lib/cart.ts. Intent: this branch treats missing SKU as invalid; main extractedquoteCartto a new file. Preserve: keep the extraction and the missing-SKU branch — move the guard intoquoteCart. Verify:pnpm typecheck && pnpm testgreen;git rebase --continue; tree clean.
workflow-git-commit; open PR lifecycle → workflow-prSee the current state. [LOW freedom — run exactly] git status for the operation in progress
(merge/rebase/cherry-pick) and the conflicting files; git log --oneline --left-right HEAD...MERGE_HEAD (or the rebase equivalent) for what each side
contains.
Find the primary sources for each conflict. [HIGH freedom] Understand why each
change was made and what the original intent was: read the commit messages,
check the PRs, check the original issues or tickets. Never resolve a hunk on
textual appearance alone.
Resolve each hunk. [HIGH freedom] Preserve both intents where possible. Where they are
incompatible, pick the one matching the merge's stated goal and note the
trade-off. Do not invent new behavior. Always resolve; never --abort
without the user's explicit instruction.
Run the project's automated checks [LOW freedom — run exactly] — typecheck, then tests, then
format/lint, using the repo's real scripts. Fix anything the merge broke;
conflicts that merge cleanly at the text level can still conflict
semantically.
Finish the operation. [LOW freedom — run exactly] Stage everything and commit (or git rebase --continue until all commits are replayed). Confirm the tree is clean and
checks are green before reporting done.
Related: workflow-git-commit, workflow-pr, verification-before-completion.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub kensaurus/skills --plugin kenji162 skills in this plugin
/audit-accessibilityWCAG 2.2 AA audit via playwright-cli: axe-core, keyboard, contrast, target size, focus, ARIA. Use when "audit accessibility", "check a11y", "WCAG audit", "check keyboard nav", or "test screen reader".
/audit-agent-speedMeasure and fix a slow coding-agent setup: status line, hooks, instruction bloat, effort, worktree pile-up, antivirus and indexer scans. Use when "Claude is slow" or "CPU is pinned". App speed → audit-performance.
/audit-analyticsRead-only audit of product-analytics events (PostHog, Amplitude, Mixpanel, GA4): taxonomy, funnels, consent-gated firing, dead or duplicate events. Use when "audit our analytics", "are we tracking the right events", or "funnel instrumentation".
/audit-auth-flowsRead-only audit of app-layer auth: route×gate matrix, session lifecycle, OAuth, provider traps (getSession vs getUser, middleware-only gates, CVE-2025-29927). Use when "audit our auth" or "check middleware protection". RLS → plan-rls-audit.
/audit-backend-architectureRead-only backend-architecture audit and pattern advisor, gated by stack. Use when "audit backend architecture", "which pattern should I use", "am I over-engineering", or "sync vs event-driven". Enforced boundaries → enhance-arch-boundaries.
/audit-bundle-sizeAnalyse and shrink a web app's JavaScript bundle. Use when "reduce bundle size", "code splitting", "slow initial load", or "why is the bundle so big". Runtime → audit-performance.
Other plugins' skills for the same job