Implement comprehensive error handling for Python code paths to keep services resilient and user-friendly. Use when failures are currently silent or exceptions leak through.
日本語の概要は準備中です。原文の説明を表示しています。
Delete local git branches whose remotes are gone, after verifying via gh CLI that each was actually merged.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Clean up orphaned local branches (those whose remote tracking branch is [gone]) by:
git fetch --prune to sync remote state.[gone] remote tracking refs.gh pr list --state all to confirm it was merged (or closed).git branch -D.git branch -vv shows several [gone] entries.git fetch --prune
git branch -vv | grep ': gone]'
If nothing found, report "No orphaned branches found." and stop.
For each orphaned branch, run:
gh pr list --head "<branch>" --state all --json state,mergedAt,title \
--jq '.[0] | "\(.state) | merged: \(.mergedAt // "N/A") | \(.title)"'
Build a summary table:
| Branch | PR State | Merged At | PR Title |
|---|
Flag any branches that are not MERGED (e.g. OPEN or CLOSED without merge) — these need user attention before deletion.
Show the table and ask:
If any branch has no PR or is not merged, exclude it from the default delete list and call it out explicitly:
git branch -D <branch1> <branch2> ...
Report each deleted branch with its last commit hash.
git branch -D (force) since git's merge check is against the local default branch, not the remote — remote deletion already confirms the work is done.gh is not available or returns no results, warn the user and do not auto-delete.まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Implement comprehensive error handling for Python code paths to keep services resilient and user-friendly. Use when failures are currently silent or exceptions leak through.
日本語の概要は準備中です。原文の説明を表示しています。
Tabular and numerical data analysis with descriptive statistics and insights. Use when the user provides data, tables, CSVs, or numbers and wants analysis.
日本語の概要は準備中です。原文の説明を表示しています。
Financial factsheet analysis with key metrics extraction and investment rationale
日本語の概要は準備中です。原文の説明を表示しています。
Diagnose and fix CI failures without leaving your editor.
日本語の概要は準備中です。原文の説明を表示しています。
Reproduce ai-repo PR checks locally with Poe and CI scripts, including per-package typecheck and coverage behavior. Use when validating changes before push or when user asks which local commands match CI.
日本語の概要は準備中です。原文の説明を表示しています。
Ask clarifying questions before implementing to ensure Python requirements are understood. Use when a task lacks detail, dependencies are unclear, or multiple interpretations are possible.
日本語の概要は準備中です。原文の説明を表示しています。