Verifies pre-commit quality gates (tests, linting, build) before committing code. Useful for enforcing codebase stability and avoiding broken commits.
How this skill is triggered — by the user, by Claude, or both
Slash command
/universal-dev-standards:checkin-assistantThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- DEPRECATION NOTICE (XSPEC-086 Phase 4, 2026-04-28):
⚠️ Status: Reference(參考用,非可執行流程) — 簽入流程協調(關卡執行序列、abort 邏輯)已於 2026-04-28 移至 adoption layer(XSPEC-095)。此處保留品質關卡定義、檢查清單項、never-commit 規則供參考。 Lifecycle orchestration has moved to the adoption layer (XSPEC-095); this document is reference-only. For enforced execution, use your adoption layer's toolchain.
Verify pre-commit quality gates before committing code to ensure codebase stability.
在提交程式碼前驗證品質關卡,確保程式碼庫的穩定性。
📖 以下為流程的參考結構,非可執行步驟;自動化/強制執行請用 adoption layer 工具鏈(XSPEC-095)。 The steps below are a reference structure, not an executable workflow.
git status and git diff to understand pending changesnpm test (or project test command) to verify all tests passnpm run lint to check code style compliance| Gate | Check | 檢查項目 |
|---|---|---|
| Build | Code compiles with zero errors | 編譯零錯誤 |
| Tests | All existing tests pass (100%) | 所有測試通過 |
| Coverage | Test coverage not decreased | 覆蓋率未下降 |
| Code Quality | Follows coding standards, no code smells | 符合編碼規範 |
| Security | No hardcoded secrets or vulnerabilities | 無硬編碼密鑰 |
| Documentation | API docs and CHANGELOG updated if needed | 文件已更新 |
| Workflow | Branch naming and commit message correct | 分支和提交格式正確 |
| Upstream | No .standards/ or .claude/skills/ modifications (advisory) | 無 UDS 上游檔案修改(建議性) |
/checkin - Run full quality gate verification on current changes/commit to create the commit messageAfter /checkin completes, the AI assistant should suggest:
品質關卡驗證完成。建議下一步 / Quality gate verification complete. Suggested next steps:
- 全部通過 ✅ → 執行
/commit提交變更 ⭐ Recommended / 推薦 — All passed → Run/committo commit- 有失敗項目 ❌ → 修復問題後重新執行
/checkin— Failures found → Fix then re-run/checkin- 需要程式碼審查 → 執行
/code-review進行自我審查 — Need review → Run/code-reviewfor self-review- UDS 安裝有異常 → 執行
/audit診斷問題 — UDS issues detected → Run/auditto diagnose
完整的 AI 行為定義請參閱對應的命令文件:
/checkinFor complete AI agent behavior definition, see the corresponding command file:
/checkin
npx claudepluginhub asiaostrich/universal-dev-standards --plugin universal-dev-standardsEnforces code quality gates via Git hooks: pre-commit checks linting, formatting, type-checking; pre-push verifies tests, 95%+ coverage, and builds before commits/pushes.
Pre-commit quality gate validating logic correctness, error handling, regressions, and completeness in code changes. Auto-fires before commit via cook or on large diffs.
Guides systematic git commits: checks staging status, reviews diffs, splits changes into atomic commits, formats conventional messages. Use before PRs or when committing code.