ask-matt
FreeAsk which skill or flow fits your situation. A router over the skills in this repo.
The English summary is being prepared. Showing the original description.
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.
The English summary is being prepared. Showing the original description.
Run score Not tested
See how to installReview the instructions the agent will receive before you install.
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)No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
Ask which skill or flow fits your situation. A router over the skills in this repo.
The English summary is being prepared. Showing the original description.
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.
The English summary is being prepared. Showing the original description.
Run comprehensive agent-native architecture review with scored principles
The English summary is being prepared. Showing the original description.
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.
The English summary is being prepared. Showing the original description.
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.
The English summary is being prepared. Showing the original description.
Structured code review using tiered persona agents, confidence-gated findings, and a merge/dedup pipeline. Use when reviewing code changes before creating a PR.
The English summary is being prepared. Showing the original description.