Skip to main content

sdk-pr-stack

Create or update Graphite PR stacks for dd-sdk-android. Use when splitting a feature branch into stacked PRs, restacking branches after committed changes, or submitting updates to an existing stack. Accepts create or update.

소스 정보

저장소
DataDog/dd-sdk-android
최근 소스 활동
2026년 10월 21일 13:30
감지된 SKILL.md 언어
영어
스타
227
포크
87

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
3 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
sdk-pr-stack
description
Create or update Graphite PR stacks for dd-sdk-android. Use when splitting a feature branch into stacked PRs, restacking branches after committed changes, or submitting updates to an existing stack. Accepts create or update.
when_to_use
Creating stacked PRs, splitting commits into reviewable PRs, running autostack, propagating changes through a Graphite stack, or submitting a restacked stack.
argument-hint
create | update
# sdk-pr-stack — Graphite PR stacks ## Choose the action Read the action from the invocation arguments (`$ARGUMENTS` in Claude Code) or an unambiguous user request. The supported actions are: | Action | Invocation | Workflow | | --- | --- | --- | | `create` | `/sdk-pr-stack create` | [references/create.md](references/create.md): split the current feature branch into stacked PRs, using existing commits or an approved auto-rebase plan. | | `update` | `/sdk-pr-stack update` | [references/update.md](references/update.md): restack the existing Graphite stack and submit its updated PRs. | Load the selected workflow in full and follow only that workflow. - If the action is missing or the request is ambiguous, ask the user to choose `create` or `update` before starting either workflow. - If an explicit action is unsupported or both actions are supplied, show `/sdk-pr-stack create` and `/sdk-pr-stack update` as valid usage and stop. - Do not choose `create` merely because `update` cannot find an existing stack. ## Shared rules - Follow the repository's `AGENTS.md` for ticket IDs, branch names, commit headers, and PR templates. The default PR base in this repository is `develop`. - In `create` mode, load the sibling [sdk-commit](../sdk-commit/SKILL.md) before generating commit messages or PR titles. Pass those rules to any analysis subagent. - In `update` mode, preserve file contents and commit messages. Do not commit, amend, split commits, or run the create workflow. - Preserve unrelated working-tree changes and the source branch. Stage only the approved files, even where a copied workflow shows `git add -A`. - Keep approval choices from the selected workflow: create supports a local dry run, and update supports restack-only. Honor choices already made in this session. - When file exclusions are requested in `create` mode, use auto-rebase mode; whole-commit cherry-picks in direct mode would reintroduce excluded files. Build exclusion pathspecs as a shell array of `:(exclude)<pattern>` entries and pass it as `"${EXCLUDE_PATHSPECS[@]}"`. ## Agent compatibility The workflow references retain the source agent's tool names. Use the equivalent tools available in the current agent: - `AskUserQuestion`: the host's user-input tool; if unavailable, ask in chat and wait for the answer before any dependent action. - `Skill`: invoke the named skill, or read its linked `SKILL.md` in full. - `Read`, `Glob`, `Write`: use filesystem tools and the host's file-editing tool. Preserve multiline PR descriptions in files and pass them with `--body-file`. - `Agent`: use the host's subagent tool for the analysis step. If unavailable, perform the analysis in the main agent and preserve the same review checkpoints.
GitHub에서 보기