stacking-prs

stacking-prs is a skill for Claude Code, Codex from jovandyaz/knowtis-app. It costs 68 tokens per session (601 once invoked), scanned A, original, MIT.

A workflow for managing stacked pull requests on GitHub. Stacked pull requests split related work into small, ordered reviews, while CodeRabbit provides automated first-pass code review.

In plain words
What is it for?
Use it when splitting work across dependent branches, opening or adopting stacked PRs, responding to CodeRabbit comments, and merging or synchronising the stack.
Why use it?
It gives repository-specific rules for creating, linking, reviewing, updating, and merging a stack, including keeping reviews below the stated file limit.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/jovandyaz/knowtis-app/stacking-prs
Any agent
npx skills add jovandyaz/knowtis-app --skill stacking-prs
Clone the repo
git clone --depth 1 https://github.com/jovandyaz/knowtis-app

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for stacking-prs

README.md
[![agentmods](https://agentmods.dev/badge/skills/jovandyaz/knowtis-app/stacking-prs.svg)](https://agentmods.dev/skills/jovandyaz/knowtis-app/stacking-prs)
Your own site
<a href="https://agentmods.dev/skills/jovandyaz/knowtis-app/stacking-prs"><img src="https://agentmods.dev/badge/skills/jovandyaz/knowtis-app/stacking-prs.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 601 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00068 $0.00601
Opus 5 $0.00034 $0.00300
Sonnet 5 $0.00014 $0.00120
Haiku 4.5 $0.00007 $0.00060

Measured 5d ago against content hash 8850812c52e3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

stacking-prs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/stacking-prs/SKILL.md · 34 lines

How it starts

The opening of the file, as written. The whole thing — 34 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Stacking PRs (GitHub + CodeRabbit)

Knowtis uses GitHub's gh-stack extension for stacked PRs and CodeRabbit for automated first-pass review.

Workflow

  1. Branch with a Conventional prefix: feat/<name>, fix/<name>, docs/<name>.
  2. Install the extension once with gh extension install github/gh-stack if gh stack is unavailable.
  3. Build a tracked stack with gh stack init <bottom-branch>, gh stack add <next-branch>, and gh stack submit --auto --open, or adopt existing PRs with gh stack link <bottom> … <top>. link takes PRs or branches bottom-first, creates no local tracking, and only adds membership.
  4. Keep every PR under 100 changed files; CodeRabbit refuses larger reviews. Check with git diff --name-only <base> <head> | wc -l before opening.
  5. Trigger CodeRabbit with @coderabbitai full review and confirm inline comments exist. A green check without comments can mean the review was skipped; fair-usage failures must be retried after the named window.
  6. Address all review feedback before human review.
  7. Merge with an explicit target, for example gh stack merge <pr-number> --yes, then run gh stack sync locally. Never manually rebase a stacked branch after GitHub merges and retargets a layer.
  8. Detailed context lives in the PR description; commits stay single-line.

Gotchas

  • gh stack view needs local tracking; after link, run gh stack checkout <stack-number> first.
  • gh pr edit is broken on this repo (deprecated GraphQL field). Change bases and bodies with gh api repos/<owner>/<repo>/pulls/<n> -X PATCH --input -.
  • Deleting a branch that is the base of an open PR auto-closes that PR, and GitHub then refuses both a base change and a reopen. Run gh pr list --base <branch> before deleting anything.
  • Verify gh auth status shows the intended account before every write.

Rules of thumb

  • A PR that mixes a refactor with a behavior change should be split into a stack (refactor below, behavior on top).
  • Do not merge a middle layer independently; use the stack-aware merge flow.
  • CI must be green per-PR; nx affected keeps each stack level cheap.

Read the full file on GitHub · 34 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 34 lines · 68 tokens per session scan A 8850812c52e3

Subscribe to this mod's changes

stacking-prs is a skill published in the GitHub repository jovandyaz/knowtis-app (3 stars, last pushed today), licensed MIT. It adds 68 tokens to every session and 601 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

git-wrapup

Land working-tree changes as logical commits — the work grouped by concern, topped by a release commit (version bump, changelog, regenerated artifacts) and an annotated tag. Verify, commit, tag. Stops at "committed and tagged locally" — no push, no publish. The release-and-publish skill picks up from here. Distilled…

cyanheads/obsidian-mcp-server · 82 tokens

release-and-publish

Ship a release end-to-end across every registry the project targets (npm, MCP Registry, GitHub Releases for .mcpb bundles, GHCR). Runs the final verification gate, pushes commits and tags, then publishes to each applicable destination. Assumes git wrapup (version bumps, changelog, commit, annotated tag) is already…

cyanheads/obsidian-mcp-server · 112 tokens

save

Use when the user says 'push my work', 'save everything', or 'commit and push' — pushes the working branch and opens a PR to develop. Not when the user is leaving/done (/handoff, which auto-saves).

egregore-labs/egregore · 51 tokens

release-extensions

Publish or cut a release of the five @docs.plus/extension- packages — package contract, release-family flow, OTP publish, version doctrine, preflight gates, and CHANGELOG style. Use when publishing, cutting a release, bumping an extension version, or preparing a CHANGELOG for npm.

docs-plus/docs.plus · 64 tokens

kiln-prerelease-check

Run the Kiln pre-release smoke test suite plus the standard CI checks (checks.sh), diagnose every prerelease test that broke (and why), and write a clean readable report with recommended actions. Read-only — it never edits code. Use when the user wants to validate a release candidate, run prerelease tests, or asks for…

Kiln-AI/Kiln · 84 tokens

release-digest

Post a "what's changed since the last release" recap to the release Slack channel for final QA. Groups merged PRs by author and classifies each as feature / bug fix / task. Use when the user wants a release recap, a changelog since the last tag, or to prep QA before cutting a release from main.

Kiln-AI/Kiln · 71 tokens