From loom-engineering
Clean up a feature branch after verification: merge, create PR, keep, or discard. Follows conventional commits. Use when: a development branch has passed verification and needs merge, PR, keep, or discard handling.
How this skill is triggered — by the user, by Claude, or both
Slash command
/loom-engineering:loom-finishing-a-development-branchThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- `loom-verification-before-completion` 验证通过
loom-verification-before-completion 验证通过loom-index-update 索引已更新开始时宣布:"我正在使用 loom-finishing-a-development-branch skill 来完成这项工作。"
git status
git diff --stat
构建/检查/测试命令
读取 .loom/rules/constitution.md 中的 BUILD_CMD/VET_CMD/TEST_CMD 并执行验证。
向用户展示以下选项:
## 分支完成选项
**1. Merge(合并)** - 直接合并到主分支
**2. Pull Request** - 创建 PR 供审查
**3. Keep(保留)** - 保持分支,稍后继续
**4. Discard(丢弃)** - 丢弃所有变更
请选择?
如果分支上还有未提交的变更,先提交:
git add <specific-files>
git commit -m "$(cat <<'EOF'
feat: <功能描述>
- 变更 1
- 变更 2
Co-Authored-By: AI Assistant
EOF
)"
git checkout <branch> && git merge --no-ff feature/<date>-<name> && git push origin <branch>git push -u origin feature/<date>-<name> → gh pr create --title "feat: <描述>" --body "..."git checkout <branch> && git branch -D feature/<date>-<name>Conventional Commits 格式
提交信息必须遵循 Conventional Commits 格式:<type>(<scope>): <subject>
禁止在主分支实现
没有明确用户同意,永远不要在 main/master 分支上开始实现。
npx claudepluginhub xiqin/loom --plugin loomCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.