一键导入
dubstack
Use when managing stacked branch workflows with DubStack, including create/modify, navigation, sync/restack, submit, PR opening, and recovery.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when managing stacked branch workflows with DubStack, including create/modify, navigation, sync/restack, submit, PR opening, and recovery.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when managing stacked branch workflows with DubStack, including create/modify, navigation, sync/restack, submit, PR opening, and recovery.
Use when the user wants fully autonomous delivery in this repo from a clear task through implementation, verification, review, and PR follow-through.
Use when changing AI-generated branch, commit, or PR metadata for DubStack flow, or when adding new local Evalite coverage for those outputs.
Use when turning staged changes into a DubStack branch, commit, and submitted PR stack with clear naming and user confirmation.
Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat".
| name | dubstack |
| description | Use when managing stacked branch workflows with DubStack, including create/modify, navigation, sync/restack, submit, PR opening, and recovery. |
Use this skill whenever the user is working in a repo that uses dub for stacked diffs.
main -> feat/a -> feat/b)main)| Intent | Command |
|---|---|
| Create branch | dub create <name> |
| AI create | dub create --ai |
| Create + commit | dub create <name> -am "msg" |
| AI full flow | dub flow --ai -a / dub f --ai -a |
| Modify current branch | dub modify / dub m |
| Navigate stack | dub up, dub down, dub top, dub bottom |
| Interactive checkout | dub checkout / dub co |
| View stack | dub log / dub ls |
| View current stack only | dub log --stack |
| Sync with remote | dub sync |
| Rebase stack | dub restack |
| Continue interrupted op | dub continue |
| Abort interrupted op | dub abort |
| Track/re-parent branch | dub track [branch] --parent <branch> |
| Untrack metadata only | dub untrack [branch] [--downstack] |
| Stack-aware delete | `dub delete [branch] [--upstack |
| Show parent/children/trunk | dub parent, dub children, dub trunk |
| Submit PR stack | dub submit / dub ss |
| AI PR description | dub submit --ai |
| Open PR in browser | `dub pr [branch |
| Undo / redo | dub undo / dub redo (multi-level, 20-entry ring) |
| Ask AI assistant | dub ai ask "..." |
| AI conflict help | dub ai resolve / dub continue --ai |
dub create feat/x
dub create feat/x -m "feat: ..."
dub create feat/x -am "feat: ..."
dub create feat/x -um "feat: ..."
dub create feat/x -pm "feat: ..."
-a: stage all-u: stage tracked-file updates-p: interactive hunk staging-mAI create mode:
dub create --ai
dub create -ai
dub create --no-ai feat/x
--ai generates both branch name and commit message from staged changes.--no-ai overrides repo AI defaults for a single invocation.git config commit.template, AI create preserves that structure in the generated commit body.dub m
dub m -c -m "fix: ..."
dub m -p
dub m -u
dub m -v
dub m -vv
dub m --interactive-rebase
-m can be passed multiple times.-v prints staged diff, -vv also prints unstaged diff.dub co
# or
dub checkout --stack
dub checkout --show-untracked
dub checkout --trunk
dub up
dub up 2
dub down
dub down --steps 2
dub top
dub bottom
dub sync
dub sync --all
dub sync --no-interactive
dub sync --force
dub sync --no-restack
dub restack
dub restack --continue
dub continue
dub abort
dub ss
dub submit
dub submit --upstack
dub submit --stack
dub submit --branch feat/api
dub submit --dry-run
dub submit --ai
dub submit --no-ai
dub submit --merge-when-ready
dub submit --merge-when-ready --method squash
dub flow --ai -a
dub f --dry-run
dub pr
dub pr feat/a
dub pr 123
dub track
dub track feat/a --parent main
dub untrack feat/a
dub untrack feat/a --downstack
dub delete feat/a
dub delete feat/a --upstack
dub delete feat/a --downstack
dub delete feat/a --force --quiet
dub parent
dub children
dub trunk
git checkout main && git pulldub create ... -am ...dub logdub ssdub m ... and dub ssdub sync (or dub restack when needed)# choose a provider and enter your key via a masked prompt
# (keys passed as CLI flags would leak into shell history)
dub ai setup
dub config ai-assistant on
dub config ai-defaults create on
dub config ai-defaults submit on
dub config ai-defaults flow on
Precedence:
--ai or --no-aidub config ai-defaults ...Manual path:
dub create <name> -am "type: summary"dub submitAI-assisted path:
-a, -u, or -pdub flow --aiNotes:
-y because dub flow approval prompts require a TTY.dub ai ask streams response text live and renders tool/status lines separately in TTY output.If a repo wants DubStack AI to follow existing formatting, set up templates first.
Pull request templates:
.github/pull_request_template.md.github/PULL_REQUEST_TEMPLATE.md.github/PULL_REQUEST_TEMPLATE/*.mddocs/pull_request_template.mdpull_request_template.mdCommit message templates:
cat <<'EOF' > .gitmessage
feat(scope): summary
## Testing
- [ ] added coverage
EOF
git config commit.template .gitmessage
Notes:
# after conflict
git add <resolved-files>
dub restack --continue
dub undo
dub track <branch> --parent <parent>
dub parent <branch>
dub trunk <branch>
| Symptom | Action |
|---|---|
gh CLI not found | Install gh |
Not authenticated with GitHub | gh auth login |
| branch missing from stack | Use dub create from tracked context |
| sync skips branches | rerun with interactive mode or --force if appropriate |