task-finish

Pre-commit quality gate: a code self-check triggered before commit that runs quick or deep CR inspections and is only responsible for code quality self-checks, not for post-mortem reviews. Trigger words: submit code, self-check, prepare to commit. Workflow position: task-start → task-execute → task-finish (self-check) → task-manager (post-mortem when requirement is marked done).

Last repository push
GitHub Stars
107
Forks
17
Issues / PRs
3

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "task-finish" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-af412f40436bb963623147a4bbff8fe76b88058574318006ca2bffe729954e4d. Verify the upstream source and version against https://github.com/312362115/claude before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Pre-commit quality gate: a code self-check triggered before commit that runs quick or deep CR inspections and is only responsible for code quality self-checks, not for post-mortem reviews. Trigger words: submit code, self-check, prepare to commit. Workflow position: task-start → task-execute → task-finish (self-check) → task-manager (post-mortem when requirement is marked done).

0 Downloads

Introduction source: third_party · 312362115 · 1.1.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: task-finish
version: 1.1.0
last_updated: 2026-04-08
repository: https://github.com/312362115/claude
changelog: skills/task-finish/CHANGELOG.md
description: >
  提交前质量门禁:CR 自检(快速/深度)。在 commit 之前触发。
  只负责代码质量自检,不负责复盘——复盘在需求标 done 时由 task-manager 触发。
  触发词:提交代码、自检、准备提交。
  工作流位置:task-start → task-execute → task-finish(自检)→ task-manager(需求关闭时复盘)

提交前自检(Task Finish)

提交前自检发现问题的成本是上线后的 1/10。 本 skill 只负责代码质量门禁。复盘沉淀在需求关闭时由 task-manager 触发。


第一步:判断自检深度

准备提交
  │
  ├─ 单文件小改动(修 typo、调样式、改注释)?
  │   └─ YES → 【跳过】直接提交
  │
  ├─ 改动 ≤3 文件,不涉及公共接口?
  │   └─ YES → 【快速自检】执行第二步的快速清单(5 项)
  │
  └─ 改动 >3 文件 / 涉及公共接口 / 核心业务逻辑?
      └─ YES → 【深度自检】执行第二步的完整清单(15 项)

第二步:CR 自检(Self Code Review)

用"审查别人代码"的视角审查自己的代码。

执行方式

  1. 先 git diff 审查自己的改动:逐文件看 diff,而不是凭记忆
  2. 对照清单逐项检查:不需要每条都适用,但每条都过一遍脑子
  3. 发现问题当场修:不要想着"先提交再说"
  4. 不确定的地方主动说:在提交时告知用户"这里我不确定 X,建议关注"

快速自检清单(≤3 文件改动)

# 检查项 要点
1 改动解决了目标问题? 跑一遍核心路径确认
2 没有遗留 debug 代码? console.log、print、TODO hack
3 命名清晰、无硬编码敏感信息? 密钥、token、密码
4 没有混入不相关变更? 改动范围最小化
5 代码能正常运行? 改后验证,不是"我觉得对"

深度自检清单(>3 文件 / 公共接口 / 核心逻辑)

正确性检查:

  • [ ] 改动是否真的解决了目标问题?跑一遍核心路径确认
  • [ ] 边界情况是否处理?空值、零值、超长输入、并发场景
  • [ ] 错误处理是否完整?异常不会被吞掉,错误信息有意义
  • [ ] 是否引入了回归?改动是否可能破坏现有功能

设计检查:

  • [ ] 改动范围是否最小化?有没有混入不相关的变更
  • [ ] 命名是否自解释?新增的函数/变量/类型名能否让人一眼理解
  • [ ] 是否重复造轮子?项目里有没有已有的工具或模式可以复用
  • [ ] 复杂度是否合理?有没有过度抽象或不必要的间接层

安全检查:

  • [ ] 外部输入是否校验?用户输入、API 参数、URL 参数
  • [ ] 有没有硬编码的敏感信息?密钥、token、密码、内部地址
  • [ ] SQL/命令拼接是否安全?是否使用了参数化查询
  • [ ] 前端是否防 XSS?动态内容是否正确转义

可维护性检查:

  • [ ] 没有遗留 debug 代码(console.log、print、TODO hack)
  • [ ] 复杂逻辑是否有注释说明"为什么"
  • [ ] 公共接口的改动是否向后兼容?不兼容是否已标注


与其他 skill 的衔接

task-start — 启动:对焦需求 + 设计方案
  │
  ↓
task-execute — 执行:持续编码 + 跨会话进度管理
  │
  ↓
task-finish(本 skill)— 提交前自检
  │
  ├─ 自检通过 → 提交代码
  ├─ 文档同步提醒(按改动内容判断,可能同时命中多条):
  │   ├─ 涉及新模块 / 模块间交互变更?→ 提醒更新 architecture/ 或 user-guide/(docs-management.Synthesize)
  │   ├─ 涉及依赖/工具链/环境配置变更?→ 提醒更新 guides/
  │   └─ 涉及部署流程/基础设施变更?→ 提醒更新 runbooks/
  ├─ 涉及上线服务?→ 提示跑 security-audit(安全审查)
  ├─ 准备发版?→ 引导到 release skill
  │
  ↓ 提交完成后
  ├─ 主动询问用户:"这个需求是否彻底完成?如果是,可以标记 done 触发复盘和经验沉淀。"
  │
  ↓ (用户确认完成)
task-manager 标 done — 触发复盘 + 经验沉淀 + docs-management.Ingest

复盘不在 task-finish 中触发。 因为"编码完成"不等于"需求完成"——后续可能还有手动测试、bug 修复、调整。 复盘在需求被用户明确标记为 done 时,由 task-manager 触发,确保覆盖完整的交付过程。 但 task-finish 有责任提醒:提交代码后主动询问用户是否需要关闭需求,避免复盘被遗忘。

Version history

  1. v2026.04.02 GitHub ↗
    Original release notes

    ## Highlights - **流程图多方向布局**:DAG 模式支持 DOWN/RIGHT/UP/LEFT,AI 自动选择合适流向 - **Diagram 能力补齐**:三批交付,图表类型从 25 → 29 种(Treemap/Combo/Kanban/Git Graph/状态图并发等) - **Deep-Research 清理 Graphviz**:删除 graphviz 依赖,图表生成统一对齐 Diagram skill,结构图列表从 4 → 23 种 - **截图规范统一**:禁止手动 Playwright,收口到 capture.py/bridge.py - **图表链路验证**:42/42 全量通过(10 统计图 + 29 结构图 + 3 PNG 抽样) - **Preview-MD**:Mermaid 全覆盖 + 共享 CSS 体系 + VS Code 插件 - **项目基建**:重命名为 Claude Code Skills + README + MIT 许可证 + 分支发布规范 ## All Changes - feat(diagram): 流程图 DAG 模式支持多方向布局 — AI 自动选择合适流向 - feat(diagram): 第一/二/三批能力补齐 — 29 种图表全覆盖 - feat(diagram): 流程图增加 DAG 模式 + DSL 输出模式 - feat(preview-md): Mermaid 全覆盖 + 样式统一 + 导出自包含 HTML - feat(extensions): preview-md-launcher VS Code 插件 - refactor(deep-research): 清理 Graphviz 依赖 — 统一对齐 Diagram skill - test(deep-research): 图表生成链路全量验证 — 42/42 通过 - test(diagram): 全量回归测试 — 29 种 × L1-L4 共 116 用例 - docs(diagram): SKILL.md review — 截图收口 + 描述补齐 - docs(deep-research): SKILL.md review — 禁止手动截图 + 术语规范 - docs: README + MIT 许可证 + 分支发布规范

Current listing version

1.1.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供代码提交前质量门禁,解决开发者自检痛点
  • 区分快速/深度自检,适配不同改动规模
  • 清单具体可执行,覆盖正确性、设计、安全、可维护性
Trigger Precision90/100

Highlights

  • 触发词精准覆盖提交前场景
  • 边界清晰,不易误触
Structure and Standards95/100

Highlights

  • Phase 划分清晰,有明确出口条件
  • 端到端示例完整,清单可操作性强
  • frontmatter 完整,文档结构规范
Execution Reliability90/100

Highlights

  • 基于 git diff 的可靠检查机制
  • 覆盖边界情况、错误处理、安全等关键维度
  • 发现问题当场修复,避免提交后返工
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 55, 75
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.