用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/rogerznts/mosk --skill tea-prune-branches命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Handoff: compacta a sessão atual em um documento de transição salvo em docs/handoff/ do workspace, amarrado à spec/documentação ativa.
Suggestion: interpreta o ponto atual da sessão (spec ativa, current_phase, artefatos no disco e foco da conversa) e sugere o próximo agente MOSK a chamar, já com um prompt pronto para colar. Use quando o usuário perguntar 'e agora?', 'qual o próximo passo?', 'qual agente devo chamar?' ou quiser orientação para avançar no pipeline (specify → plan → tasks → implement → qa-gate → archive). Apenas sugere — nunca invoca outro agente automaticamente.
Update: reinstala o toolkit MOSK do zero (reset + degit), apagando órfãos de versões anteriores, lê o README e o TASKS.md direto do GitHub e resume as mudanças. Use ao atualizar/sincronizar a versão do MOSK no projeto.
基于 SOC 职业分类
正在显示 SKILL.md
| name | tea-prune-branches |
| description | Fetches with prune and removes local branches whose remote tracking branch has been deleted. |
Your goal is to synchronize the local repository with the remote by pruning stale remote-tracking refs and deleting any local branches that no longer have a corresponding remote branch.
Run:
git remote -v
Identify the primary remote name (commonly origin). Use it in all subsequent commands.
Before anything, update the main branches so git's merge-base calculations are accurate (this prevents false "unmerged" errors on -d).
Detect which main branches exist and update them:
git fetch --prune
git checkout main && git pull <remote> main
git checkout <integration-branch> && git pull <remote> <integration-branch>
Common integration branch names: hml, develop, staging. Confirm with the user if unsure.
Return to the original branch after pulling:
git checkout <original-branch>
Report any deleted remote refs shown in the fetch output.
Run:
git branch -vv | grep ': gone]'
List all local branches whose upstream is marked as gone.
For each branch found in Step 3, run:
git branch -d <branch-name>
Use -d (safe delete). If a branch cannot be deleted with -d due to unmerged commits, do not force-delete — report it to the user and ask how to proceed.
Summarize the result:
Then, always end with an explicit list of deleted local branches:
Deleted branches:
- <branch-name>
- <branch-name>
If no branches were deleted, say: No local branches to delete.