dsh-studio: Skill for Claude Code

.agents/skills/dsh-merging-stacked-prs/SKILL.md

dsh-merging-stacked-prs is a skill for Claude Code, Codex from jiuge2467/dsh-studio. It costs 118 tokens per session (1,737 once invoked), scanned A, a copy of dsh-merging-stacked-prs, MIT.

A procedure for merging stacked GitHub pull requests, where each change depends on the branch or pull request before it.

In plain words
What is it for?
Use it when landing a chain such as A, then B, then C in one repository, including verifying reviews, checks, branches, and exact commit versions.
Why use it?
It prevents dependent changes from being merged in the wrong order or with incorrect branch history. It also checks that GitHub's native stack support is available.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is jiuge2467/dsh-studio's own configuration. It tells Claude Code and Codex how to work on dsh-studio itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dsh-studio configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jiuge2467/dsh-studio. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jiuge2467/dsh-studio/main/.agents/skills/dsh-merging-stacked-prs/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/jiuge2467/dsh-studio

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 dsh-merging-stacked-prs

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiuge2467/dsh-studio/dsh-merging-stacked-prs/github.svg)](https://agentmods.dev/skills/jiuge2467/dsh-studio/dsh-merging-stacked-prs)
Your own site
<a href="https://agentmods.dev/skills/jiuge2467/dsh-studio/dsh-merging-stacked-prs"><img src="https://agentmods.dev/badge/skills/jiuge2467/dsh-studio/dsh-merging-stacked-prs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dsh-merging-stacked-prs

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiuge2467/dsh-studio/dsh-merging-stacked-prs"><img src="https://agentmods.dev/badge/skills/jiuge2467/dsh-studio/dsh-merging-stacked-prs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,737 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.1 $0.00118 $0.01737
Opus 5 $0.00059 $0.00869
Sonnet 5 $0.00024 $0.00347
Haiku 4.5 $0.00012 $0.00174

Measured 11d ago against content hash 1c3164317782, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

dsh-merging-stacked-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 11d 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.

Origin

This is a copy

100% identical to dsh-merging-stacked-prs — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/dsh-merging-stacked-prs/SKILL.md · 128 lines

How it starts

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

Landing an official GitHub PR stack

Land dependent PRs through GitHub's native stack object and gh stack merge. Do not reproduce stack semantics by merging and retargeting individual PRs with gh pr merge and gh pr edit. The root AGENTS.md owns the allowed merge-forward and rebase histories; the stack review guide owns review-fix propagation.

Require native stack support

Run gh stack --version before changing GitHub state. Hard-stop if the official extension or server-side stack feature is unavailable; do not fall back to manually merging and retargeting PRs one at a time. GitHub stacks require every head branch to live in the same repository, so hard-stop on a cross-fork chain.

Use a clean dedicated worktree. Fetch current PR metadata and exact head OIDs rather than trusting branch names or an earlier report:

gh pr view <pr> --json number,author,baseRefName,baseRefOid,headRefName,headRefOid,isCrossRepository,state,isDraft,reviewDecision,mergeStateStatus,statusCheckRollup

Query PullRequest.stack and stackEntry.position for at least one PR in each apparent chain; this official GitHub object, not base-branch inference alone, is the stack-membership authority. Paginate entries when size exceeds the returned page:

gh api graphql -F owner=<owner> -F name=<repo> -F number=<pr> -f query='
query($owner: String!, $name: String!, $number: Int!) {
  repository(owner: $owner, name: $name) {
    pullRequest(number: $number) {
      number
      author { login }
      baseRefName
      headRefName
      stackEntry { position }
      stack {
        number
        baseRefName
        size
        entries(first: 100) {
          nodes {
            position
            pullRequest { number author { login } baseRefName headRefName state isDraft }
          }
        }
      }
    }
  }
}'

Establish the expected bottom-to-top order from the live PR bases: the bottom targets the trunk, and each higher PR targets the head branch immediately below it.

Read the full file on GitHub · 128 lines

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. 11d ago First seen · 128 lines · 118 tokens per session scan A 1c3164317782

Subscribe to this mod's changes

dsh-merging-stacked-prs is a skill published in the GitHub repository jiuge2467/dsh-studio (12 stars, last pushed 25d ago), licensed MIT. It adds 118 tokens to every session and 1,737 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to dsh-merging-stacked-prs, differing in 2 lines, and is treated as a copy.

Related

Other skills, from other repositories

submit-dsh-plugin

A submission checklist and workflow for adding a DeepSeek Harness plugin to the community’s public catalogue. It prepares the catalogue entry and checks the plugin’s repository, metadata, tests, and required files.

imsai-sh/awesome-deepseek-harness-plugins · 103 tokens

yao-workspace-config

Workspace Git identity and credential management. ALWAYS invoke this skill when the user asks about configuring Git user info, adding HTTPS tokens, importing SSH keys, or managing workspace-level Git authentication.

YaoApp/yao · 42 tokens

github-sync-pr-flow

Use when preparing iPolloWork local changes for GitHub: stash or preserve local edits, sync the current personal branch with remote main, re-apply local work, diagnose conflicts, commit in English, push to the current remote branch, and open a PR to main without creating extra branches.

Devin-AXIS/iPolloWork · 0 tokens

github-publish-changes

Publish intentional local changes by confirming scope, creating a branch when needed, staging selected files, committing, pushing, and creating a Draft Pull Request through the connected GitHub service.

Devin-AXIS/iPolloWork · 41 tokens

github-review-follow-up

Inspect unresolved GitHub pull request review threads, group actionable feedback, implement selected fixes locally, and only reply or resolve threads after explicit user intent.

Devin-AXIS/iPolloWork · 34 tokens

github

Use the connected iPolloWork GitHub service to inspect repositories, pull requests, issues, reviews, and Actions, then route focused work to the review, CI, or publish skill.

Devin-AXIS/iPolloWork · 40 tokens