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.
日本語の概要は準備中です。原文の説明を表示しています。
実行スコア 未検証
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
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.
日本語の概要は準備中です。原文の説明を表示しています。