ask-matt
免费Ask which skill or flow fits your situation. A router over the skills in this repo.
中文简介正在准备中。当前显示原文说明。
Reset the stage branch from main and re-merge all "on stage" PRs. Auto-resolves merge conflicts by accepting incoming changes (-X theirs). Posts a Slack notification only when an --apply run produced conflicts. Use when stage has conflicts, drift, or needs a clean rebuild.
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Automates the stage branch reset process documented in
apps/docs/docs/04-engineering-practices/02-deployment/index.md.
Ensure the working tree is clean. If dirty, ask the user to stash or commit.
Run the script. Default is dry-run (safe, no changes):
# Dry run — default, safe, no changes (never posts to Slack)
./tools/scripts/reset-stage.sh
# Actual reset (destructive, prompts for confirmation).
# Posts to Slack only if the run produced conflicts.
./tools/scripts/reset-stage.sh --apply
# Hard opt-out: never post to Slack, even if conflicts occur.
./tools/scripts/reset-stage.sh --apply --no-slack
Show the full output to the user.
If --apply was used, remind the user:
Resetting stage from main and re-merging all "on stage" PRs used to
replay the exact same conflicts that caused the reset in the first place.
The reset didn't actually get you unstuck.
-X theirs)The script uses a two-phase merge for each PR:
git merge origin/<branch> --no-ffgit merge -X theirs-X theirs tells Git to resolve conflicted hunks by taking the incoming
(PR branch) side. Non-conflicting changes from both sides are still merged
normally via 3-way merge — it only overrides the conflicted parts.
main. Stage is just a preview.PRs are merged newest-first (highest PR number). When two PRs modify the same lines, the one merged second "wins" for those hunks. This is deterministic — same PR set + same order = same result.
| Category | Meaning |
|---|---|
| Clean merge | No conflicts at all |
| Auto-resolved | Had conflicts, resolved automatically via -X theirs |
| Failed | Could not be resolved even with force (very rare) |
| Missing branch | Remote branch no longer exists |
Run the reset again. The script resets stage to main and force-pushes,
so every reset starts completely fresh.
main and pushes.Remove the "on stage" label from that PR before running the reset. The script only merges PRs that currently have the label.
gh CLI must be authenticated (gh auth login)doppler login)
STAGE_RESET_SLACK_BOT_TOKEN, SLACK_ENGINEERING_CHANNEL_IDcore, config dev--apply)还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Ask which skill or flow fits your situation. A router over the skills in this repo.
中文简介正在准备中。当前显示原文说明。
Build applications where agents are first-class citizens. Use this skill when designing autonomous agents, creating MCP tools, implementing self-modifying systems, or building apps where features are outcomes achieved by agents operating in a loop.
中文简介正在准备中。当前显示原文说明。
Run comprehensive agent-native architecture review with scored principles
中文简介正在准备中。当前显示原文说明。
Explore requirements and approaches through collaborative dialogue before writing a right-sized requirements document and planning implementation. Use for feature ideas, problem framing, when the user says 'let's brainstorm', or when they want to think through options before deciding what to build. Also use when a user describes a vague or ambitious feature request, asks 'what should we build', 'help me think through X', presents a problem with multiple valid solutions, or seems unsure about scope or direction — even if they don't explicitly ask to brainstorm.
中文简介正在准备中。当前显示原文说明。
Clean up local branches whose remote tracking branch is gone. Use when the user says "clean up branches", "delete gone branches", "prune local branches", "clean gone", or wants to remove stale local branches that no longer exist on the remote. Also handles removing associated worktrees for branches that have them.
中文简介正在准备中。当前显示原文说明。
Structured code review using tiered persona agents, confidence-gated findings, and a merge/dedup pipeline. Use when reviewing code changes before creating a PR.
中文简介正在准备中。当前显示原文说明。