home/dot_agents/skills/wtp-cleanup/SKILL.md
wtpコマンドでマージ済みワークツリーを検出して一括削除する。`wtp list`で一覧取得し、mainにマージ済みのブランチを判定して`wtp rm`で削除する。
npx skillsauth add kryota-dev/dotfiles wtp-cleanupInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
wtp list で取得したワークツリーのうち、main ブランチにマージ済みのものを検出し、ユーザー確認の上で一括削除します。
wtp list
wtp list の出力はブランチ名が省略される場合があるため、git worktree list --porcelain でフルネームを取得します。
git worktree list --porcelain | grep 'branch'
git branch --merged main
ステップ2で取得した各ブランチ名が、このマージ済みリストに含まれるかを照合します。
main ブランチ自体はクリーンアップ対象から除外してください。
マージ済み・未マージのブランチをテーブル形式で一覧表示し、削除対象を明示します。
その後、AskUserQuestion ツールを使用して、マージ済みワークツリーを削除してよいかユーザーに確認してください。
ユーザーが承認した場合のみ、wtp rm で一括削除を実行してください。
wtp rm <BRANCH_1> && wtp rm <BRANCH_2> && ...
AskUserQuestion ツールを使用して、--force フラグでの強制削除を行うかユーザーに確認してくださいwtp rm <BRANCH> --force で強制削除を実行してくださいwtp list
削除後のワークツリー一覧を表示し、残っているワークツリーを報告してください。
development
`cc-code-review` エージェントを起動して独立したコンテキストでコードレビューを実行する。 現在のセッションのバイアスのないフレッシュな視点で、プロジェクトの CLAUDE.md を踏まえたレビューを行う。 トリガー: "cc-code-review", "ccでレビュー", "別の視点でレビュー", "セカンドオピニオン" 使用場面: (1) PRのコードレビュー (2) ブランチ差分のレビュー (3) 特定ファイルのレビュー (4) 現在の変更のレビュー
tools
Comprehensive guide for the `wtp` (Worktree Plus) CLI by satococoa — an enhanced Git worktree manager. Use this whenever the user wants to create, list, remove, or navigate Git worktrees with wtp, mentions `wtp add`/`wtp cd`/`wtp list`/`wtp remove`/`wtp exec`, asks about automatic worktree paths from branch names, post-create hooks (copy/symlink/command) in `.wtp.yml`, branch tracking for worktrees, or shell integration (`wtp shell-init`, `wtp hook`, tab completion, auto-cd). Trigger this even when the user just describes the workflow — e.g. 'spin up a worktree for this feature branch', 'jump to my auth worktree', 'clean up the worktree and its branch' — without naming wtp explicitly, as long as wtp is the available tool.
tools
Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout, sessions, JWT, cookies, getSession, getUser, getClaims, RLS); Supabase CLI or MCP server; schema changes, migrations, security audits, Postgres extensions (pg_graphql, pg_cron, pg_vector).
data-ai
Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.