Skip to content
Agentmart
Submit a tool

sa-finalization

当撰写完成,所有逻辑检查通过,你需要决定如何整合工作时使用——通过展示清晰的合并、提交审阅或清理选项来指导完成开发工作

Skill by kun4ai

IndexedMIT★ 7
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/kun4ai-sa-finalization

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

当撰写完成,所有逻辑检查通过,你需要决定如何整合工作时使用——通过展示清晰的合并、提交审阅或清理选项来指导完成开发工作

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/sa-finalization

What's inside

Skill name
sa-finalization
Description
当撰写完成,所有逻辑检查通过,你需要决定如何整合工作时使用——通过展示清晰的合并、提交审阅或清理选项来指导完成开发工作
License
MIT
Instructions
197 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# 完成草稿分支 (Finishing a Draft Branch)

## 概述

通过展示清晰的选项并处理所选工作流来指导完成撰写工作。

**核心原则:** 验证逻辑 → 展示选项 → 执行选择 → 清理。

**开始时声明:** “我正在使用 finalization 技能来完成这项工作。”

## 流程

### 步骤 1: 验证逻辑

**在展示选项之前,验证逻辑检查通过:**

```bash
# 运行项目的验证套件
make verify / ./scripts/check_logic.sh
```

**如果验证失败:**
```
验证失败(<N> 个问题)。必须在完成前修复:

[展示失败]

在验证通过之前无法进行合并/提交审阅。
```

停止。不要进行到步骤 2。

**如果验证通过:** 继续步骤 2。

### 步骤 2: 确定基础分支

```bash
# 尝试常见基础分支
git merge-base HEAD main 2>/dev/null || git merge-base HEAD master 2>/dev/null
```

或者问:“此草稿是从 main 分离出来的——这正确吗?”

### 步骤 3: 展示选项

展示确切的这 4 个选项:

```
撰写完成。你想做什么?

1. 本地合并回 <base-branch>
2. 推送并创建审阅请求 (Pull Request)
3. 保持分支原样 (我稍后处理)
4. 丢弃此草稿

哪个选项?
```

**不要添加解释** - 保持选项简洁。

### 步骤 4: 执行选择

#### 选项 1: 本地合并

```bash
# 切换到基础分支
git checkout <base-branch>

# 拉取最新
git pull

# 合并草稿分支
git merge <feature-branch>

# 在合并结果上验证逻辑
<verification command>

# 如果验证通过
git branch -d <feature-branch>
```

然后:清理工作树(步骤 5)

#### 选项 2: 推送并创建审阅请求 (PR)

```bash
# 推送分支
git push -u origin <feature-branch>

# 创建 PR
gh pr create --title "<title>" --body "$(cat <<'EOF'
## 摘要
<2-3 点变更内容>

## 验证计划
- [ ] <验证步骤>
EOF
)"
```

然后:清理工作树(步骤 5)

#### 选项 3: 保持原样

报告:“保留分支 <name>。工作树保留在 <path>。”

**不要清理工作树。**

#### 选项 4: 丢弃

**首先确认:**
```
这将永久删除:
- 分支 <name>
- 所有提交:<commit-list>
- 位于 <path> 的工作树

输入 'discard' 以确认。
```

From kun4ai/superpowers-academic, MIT.

More from kun4ai/superpowers-academic

Signals

Stars
7
Forks
1
Open issues
0
Last commit (this folder)
Jan 23, 2026 (9 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from kun4ai

Cite this page

sa-finalization skill. Agent Mart. https://agentmart.dev/skills/kun4ai-sa-finalization (last updated 2026-10-24)