agentsclimarketplace

Workflow pr

Skill kensaurus/cursor-kenji/skills/workflow-pr

Manage the full PR lifecycle — create, review, address bot feedback, resolve conflicts, and merge. Use when creating pull requests, managing PR reviews, addressing bot feedback, or merging PRs.From its SKILL.md

Install
npx -y skills add kensaurus/cursor-kenji --skill workflow-pr

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

3.3 KB, 813 tokens by cl100k_base, as published. Nobody here has run it

PR Workflow Skill

full checklist for every pull request.

Phase 1: Before Creating PR

1. Run Validations

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

2. Security Scan

Before committing, verify:

  • No hardcoded paths (/Users/username/...)
  • No secrets, API keys, or tokens
  • No machine-specific values
  • Environment variables for sensitive data

3. Create PR

  1. Search for pull_request_template.md in repo
  2. Use template structure for PR description
  3. Create PR with clear title and description

Phase 2: Monitor PR (REQUIRED)

4. Poll Status

Check every 60-90 seconds until checks complete:

Understanding Check Status:

  • mergeable: true → Only means no git conflicts
  • mergeable_state: "clean" → ALL checks passed, safe to merge

Mergeable State Values:

StateMeaningAction
"clean"✅ All passedSafe to merge
"unstable"⚠️ Pending/failingWait, poll again
"blocked"❌ Protection rulesCheck requirements
"behind"⚠️ Needs updateUpdate branch

5. Address Bot Feedback

When reviews complete:

  1. Read every comment - Track unresolved threads
  2. For each issue:
  • Analyze feedback
  • Implement fix
  • Commit and push
  • Reply confirming fix
  • Mark thread resolved
  1. Never ignore feedback - Every comment must be addressed

6. Wait for Re-validation

After pushing fixes:

  1. Poll status again
  2. All checks must show SUCCESS
  3. Re-fetch comments for NEW feedback
  4. Repeat until clean

Phase 3: Merge Criteria

7. Final Checklist

Two gates must pass:

GateCheck
Gate 1mergeable_state == "clean"
Gate 2unresolved_thread_count == 0

Both must be TRUE to merge.

8. Execute Merge

Only after both gates pass:

gh pr merge --merge

9. Verify Success

Confirm merge was successful and report status.


Error Handling

SituationAction
Checks fail 3xPause, ask for guidance
Unclear feedbackAsk clarifying questions
Merge blockedCheck protection rules, report
Checks stuckRun local validation, ask permission

Common Mistakes

❌ Merging when mergeable_state is "unstable"

Fix: Always check mergeable_state, poll again if unstable

❌ Treating mergeable: true as approval

Fix: mergeablemergeable_state. Check the latter.

❌ Not re-checking comments after push

Fix: After every push, re-fetch comments for new threads

❌ Not marking threads resolved

Fix: After addressing each comment, mark thread resolved


Quick Reference

# 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 ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,736. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.