/kenji:workflow-prfrom kenji skills
Manages an existing PR lifecycle: validates checks, opens PRs with templates, drives review feedback, resolves conflicts, and merges only when explicitly asked.
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. Feedback judgment [HIGH freedom]; validations,
poll loop, and merge-only-if-asked [LOW freedom — run exactly].
Full checklist for an already-committed branch or an open PR.
Uncommitted / staged / untracked working tree that still needs review,
commit, and a merge-ready PR is workflow-release-prep. This skill
does not own that sequence.
| Skill | Owns |
|---|---|
| workflow-pr (this) | Existing PR lifecycle: review, bot feedback, conflicts, merge if asked |
workflow-release-prep | Uncommitted working tree to a merge-ready PR; never merges |
workflow-build-feature | Feature end to end: spec, TDD, tests, Playwright, then PR |
workflow-fix-and-ship | One bug-fix lifecycle: triage, debug, test, fix, then PR |
workflow-mobile-native-uiux | Full native UI/UX run on Capacitor, Expo, or RN to a PR |
Validate:
pnpm typecheck && pnpm testgreen; no.envin the diff. Open: PR uses the repo template; titlefix(checkout): handle deleted SKU. Drive: CI red on lint → fix, push, re-poll; reply + resolve the bot thread. Gate:mergeable_state=clean, 0 threads; user did not ask to merge → report merge-ready and stop.
workflow-release-prepmergeable: true as approvalworkflow-release-prep; keep-green loop after open → babysitworkflow-release-prep: open the PR and return its URL.
babysit owns the green loop; the caller stops before merge.JavaScript/TypeScript:
pnpm typecheck && pnpm build && pnpm test
# or: npm run typecheck && npm run build && npm test
Python:
mypy . && python -m pytest && ruff check .
With Makefile:
make typecheck && make build && make test
Before committing, verify:
/Users/username/...)pull_request_template.md in repoCheck every 60-90 seconds until checks complete:
Understanding Check Status:
mergeable: true → Only means no git conflictsmergeable_state: "clean" → ALL checks passed, safe to mergeMergeable State Values:
| State | Meaning | Action |
|---|---|---|
"clean" | ✅ All passed | Safe to merge |
"unstable" | ⚠️ Pending/failing | Wait, poll again |
"blocked" | ❌ Protection rules | Check requirements |
"behind" | ⚠️ Needs update | Update branch |
When reviews complete:
After pushing fixes:
SUCCESSTwo gates must pass:
| Gate | Check |
|---|---|
| Gate 1 | mergeable_state == "clean" |
| Gate 2 | unresolved_thread_count == 0 |
Both must be TRUE to merge.
Only after both gates pass and the user explicitly asked to merge:
gh pr merge --merge
Otherwise report that the PR is merge-ready and stop.
Confirm merge was successful and report status.
| Situation | Action |
|---|---|
| Checks fail 3x | Pause, ask for guidance |
| Unclear feedback | Ask clarifying questions |
| Merge blocked | Check protection rules, report |
| Checks stuck | Run local validation, ask permission |
mergeable_state is "unstable"Fix: Always check mergeable_state, poll again if unstable
mergeable: true as approvalFix: mergeable ≠ mergeable_state. Check the latter.
Fix: After every push, re-fetch comments for new threads
Fix: After addressing each comment, mark thread resolved
# Check PR status
gh pr status
# View checks
gh pr checks <number>
# View comments
gh pr view <number> --comments
# Merge (only when both gates pass)
gh pr merge <number> --merge
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