Skip to content
Back to skills

Checkin Assistant

ASecurity

[UDS] 在提交程式碼前驗證品質關卡,確保程式碼庫穩定性

  • 75 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 4, 2026
developmentbashdebuggingcode-reviewgitapidocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add AsiaOstrich/universal-dev-standards --skill checkin-assistant --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Checkin Assistant?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Checkin Assistant
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/asiaostrich-checkin-assistant-1b0f30ef/badge)](https://www.skillsdirectory.com/skills/asiaostrich-checkin-assistant-1b0f30ef)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
source: ../../../../skills/checkin-assistant/SKILL.md
source_version: 1.0.0
translation_version: 1.0.0
last_synced: 2026-02-10
status: current
description: "[UDS] 在提交程式碼前驗證品質關卡,確保程式碼庫穩定性"
name: checkin
allowed-tools: Read, Grep, Glob, Bash(git diff:*), Bash(git status:*), Bash(npm test:*), Bash(npm run lint:*)
scope: partial
disable-model-invocation: true
---

# 簽入助手

> **語言**: [English](../../../../skills/checkin-assistant/SKILL.md) | 繁體中文

在提交程式碼前驗證品質關卡,確保程式碼庫的穩定性。

## 工作流程

1. **檢查 git 狀態** - 執行 `git status` 和 `git diff` 了解待提交的變更
2. **執行測試** - 執行 `npm test`(或專案測試指令)驗證所有測試通過
3. **執行程式碼檢查** - 執行 `npm run lint` 檢查程式碼風格合規
4. **驗證品質關卡** - 根據以下清單逐項檢查
5. **報告結果** - 呈現通過/失敗摘要並建議後續步驟

## 品質關卡

| 關卡 | 檢查項目 | Check |
|------|---------|-------|
| **建置** | 編譯零錯誤 | Code compiles with zero errors |
| **測試** | 所有測試通過(100%) | All existing tests pass |
| **覆蓋率** | 覆蓋率未下降 | Test coverage not decreased |
| **程式碼品質** | 符合編碼規範、無程式碼異味 | Follows coding standards |
| **安全性** | 無硬編碼密鑰或漏洞 | No hardcoded secrets |
| **文件** | API 文件和 CHANGELOG 已更新 | Documentation updated |
| **工作流程** | 分支命名和提交訊息格式正確 | Branch naming and commit correct |

## 禁止提交的情況

- 建置有錯誤 | Build has errors
- 測試失敗 | Tests are failing
- 功能不完整會破壞現有功能 | Feature is incomplete and would break functionality
- 關鍵邏輯中有 WIP/TODO | Contains WIP/TODO in critical logic
- 包含除錯程式碼(console.log、print) | Contains debugging code
- 包含被註解的程式碼區塊 | Contains commented-out code blocks

## 使用方式

- `/checkin` - 對目前變更執行完整品質關卡驗證
- 驗證通過後,使用 `/commit` 建立 commit message

## 下一步引導

`/checkin` 完成後,AI 助手應建議:

> **品質關卡驗證完成。建議下一步:**
> - 全部通過 ✅ → 執行 `/commit` 提交變更
> - 有失敗項目 ❌ → 修復問題後重新執行 `/checkin`
> - 需要程式碼審查 → 執行 `/code-review` 進行自我審查
> - UDS 安裝有異常 → 執行 `/audit` 診斷問題

## 參考

- 詳細指南:[guide.md](./guide.md)
- 核心規範:[checkin-standards.md](../../../../core/checkin-standards.md)

Files in this skill

  • SKILL.md2.6 KB
  • guide.md12.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…