agentleFS
everpcpceverpcpc/KMReader/.agents/skills/pr-workflow/SKILL.md

pr-workflow

Skill118 starsChanged 7 days agoMITView on GitHub

Create and merge KMReader GitHub pull requests. Use when asked to open a PR, push local changes for review, or merge an existing PR — including composing the squash merge message.

  • Commits and pushes

22 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use workflow and code-review.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • VercelSkill

    workflow

    Creates durable, resumable workflows using Vercel's Workflow SDK. Use when building workflows that need to survive restarts, pause for external events, retry on failure, or coordinate multi-step operations over time. Triggers on mentions of "workflow", "durable functions", "resumable", "workflow sdk", "queue", "event", "push", "subscribe", or step-based orchestration.

    Also in 4 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All git-facing text is English: commits, PR titles and bodies, review comments.

    line 12
  2. Distinctive:

    All changes land via PR.

    line 14
  3. Very specific:

    Commit and git push -u origin <branch>.

    line 29
  4. Very specific:

    Write the body to a file and create the PR with gh pr create --body-file.

    line 30

“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

KMReader PR Workflow

Conventions for opening and merging PRs in this repo. Release-copy and version-cycle PRs follow ../appstore-release/SKILL.md instead.

Ground Rules

  • All git-facing text is English: commits, PR titles and bodies, review comments.
  • Conventional-commit titles with a scope: fix(reader): ..., feat(browse): ..., refactor(offline): ....
  • All changes land via PR.
  • A make bump commit rides inside the feature/fix PR — that is the normal delivery flow, not a separate PR. Skip it only when the user says so.
  • Validate before opening: make format, then make build (all platforms). When localization keys changed, also make localize and fill translations per ../localization/SKILL.md.

Open a PR

  1. Sync and branch:
git fetch origin
git switch -c <type>/<short-topic> origin/main

Name the branch after the title scope, e.g. fix/reader-end-page-cover.

  1. Commit and git push -u origin <branch>. Intermediate commits may be work-in-progress; only the squash message lands on main.
  2. Write the body to a file and create the PR with gh pr create --body-file; never pass a Markdown body inline:
cat > /tmp/kmreader-pr-body.md <<'EOF'
...
EOF
gh pr create --title "<conventional title>" --body-file /tmp/kmreader-pr-body.md
  1. Body sections by change type:
    • fix: ## Problem (add ## Root cause when non-obvious) → ## Fix → ## Validation
    • feat / refactor: ## What → ## Why → ## Validation
    • Validation lists the commands actually run and their results (make build per platform, simulator or manual checks). There are no XCTest targets in this repo; state how behavior was verified.
    • End with Includes \make bump` to build NNN.` when a bump commit is included.
  2. Link issues deliberately: Closes #N only when merging completes the whole issue; otherwise Part of #N.
  3. Open ready for review; pass --draft only when the user asks. Report the PR URL.

Merge a PR

  1. Gate on green CI and a clean merge state:
gh pr checks <N>
gh pr view <N> --json mergeable,mergeStateStatus

iOS / macOS / tvOS checks must all pass and the state must be CLEAN. When checks are red, fix and push again; merge red only on explicit user instruction.

  1. Squash merge with a freshly composed message — never the auto-generated commit list. Write the body as a self-contained summary of the merged change: what user-visible behavior changed and why, plus side effects worth knowing later (removed localization keys, migrations, follow-ups). ../changelog/SKILL.md generates App Store notes from main's commit bodies (%s + %b between the latest tag and HEAD), so this message is the changelog source material: behavior first, file/class names only when they aid understanding. The PR discussion stays on GitHub; the commit must stand alone.
  2. Merge and clean up. Like PR creation, the body goes through a file — never inline a Markdown body into --body:
cat > /tmp/kmreader-merge-body.md <<'EOF'
<summary from step 2>
EOF
gh pr merge <N> --squash --delete-branch \
  --subject "<conventional title> (#N)" \
  --body-file /tmp/kmreader-merge-body.md

git fetch --prune origin
git switch main
git pull --ff-only origin main
  1. Done when: main contains the squash commit with the new message, and both remote and local feature branches are gone.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.