Use when you have a written implementation plan to execute in a separate session with review checkpoints
npx skills add ValorVie/custom-skills --skill "checkin-assistant"
Install specific skill from multi-skill repository
# Description
|
# SKILL.md
name: checkin-assistant
scope: partial
description: |
Guide pre-commit quality gates and check-in workflow.
Use when: committing code, preparing commits, quality gate verification.
Keywords: commit, checkin, pre-commit, quality gate, git add, ζδΊ€, η°½ε
₯, εθ³ͺιε‘.
Checkin Assistant
Language: English | ηΉι«δΈζ
Version: 1.0.0
Last Updated: 2026-01-12
Applicability: Claude Code Skills
Purpose
This skill guides developers through pre-commit quality gates, ensuring every commit maintains codebase stability and follows best practices.
Note: This skill focuses on when and how to commit. For code review during PR, see Code Review Assistant.
Quick Reference (YAML Compressed)
# === CORE PHILOSOPHY ===
every_commit_should:
- "Be a complete logical unit of work"
- "Leave codebase in working state"
- "Be reversible without breaking functionality"
- "Contain its own tests (for new features)"
- "Be understandable to future developers"
# === MANDATORY CHECKLIST ===
checklist:
build:
- "Code compiles (zero errors)"
- "Dependencies satisfied"
verify: "Run build command, exit code 0"
tests:
- "All existing tests pass (100%)"
- "New code has tests"
- "Coverage not decreased"
verify: "Run test suite, check coverage"
quality:
- "Follows coding standards"
- "No code smells (methodsβ€50, nestingβ€3, complexityβ€10)"
- "No hardcoded secrets"
- "No security vulnerabilities"
verify: "Run linter, security scanner"
docs:
- "API docs updated"
- "README updated (if needed)"
- "CHANGELOG updated (user-facing changes β [Unreleased])"
workflow:
- "Branch naming correct (feature/, fix/, docs/, chore/)"
- "Commit message formatted (conventional commits)"
- "Synced with target branch"
# === NEVER COMMIT WHEN ===
blockers:
- "Build has errors"
- "Tests are failing"
- "Feature incomplete (would break functionality)"
- "Contains WIP/TODO in critical logic"
- "Contains debugging code (console.log, print)"
- "Contains commented-out code blocks"
# === COMMIT TIMING ===
good_times:
- completed_unit: "Feature fully implemented with tests"
- bug_fixed: "Bug fixed with regression test"
- independent_refactor: "Refactoring complete, all tests pass"
- runnable_state: "Code compiles, app can run"
bad_times:
- "Build failures"
- "Test failures"
- "Incomplete features"
- "Experimental code with scattered TODOs"
# === GRANULARITY ===
ideal_commit:
files: "1-10 (split if >10)"
lines: "50-300"
scope: "Single concern"
split_rules:
combine: ["feature + its tests", "tightly related multi-file changes"]
separate: ["Feature A + B", "refactor + new feature", "bugfix + incidental refactor"]
# === SPECIAL SCENARIOS ===
emergency_leave:
recommended: "git stash save 'WIP: description'"
alternative: "Create wip/ branch"
prohibited: "Commit WIP directly on feature branch"
experimental:
branch: "experiment/topic-name"
rules: "Free commits (no strict format)"
success: "Clean up, squash, merge to feature"
failure: "Document lessons, delete branch"
hotfix:
branch: "hotfix/issue-name from main"
rules: "Minimize changes, only fix the problem"
message: "fix(scope): [URGENT] description"
Checklist Visual Format
Use this checklist before every commit:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π PRE-COMMIT CHECKLIST β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β π¨ BUILD β
β β‘ Code compiles successfully (zero errors) β
β β‘ All dependencies satisfied β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β π§ͺ TESTS β
β β‘ All existing tests pass (100%) β
β β‘ New code has corresponding tests β
β β‘ Test coverage not decreased β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β¨ CODE QUALITY β
β β‘ Follows project coding standards β
β β‘ No hardcoded secrets or credentials β
β β‘ No security vulnerabilities β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β π DOCUMENTATION β
β β‘ API documentation updated (if applicable) β
β β‘ CHANGELOG updated (user-facing changes) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β π WORKFLOW β
β β‘ Branch naming follows convention β
β β‘ Commit message follows conventional commits β
β β‘ Synced with target branch (no conflicts) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Check-in Trigger Points
When to Prompt for Commit
| Trigger | Condition | Reminder Level |
|---|---|---|
| Phase Complete | Completed a development phase | Suggest |
| Checkpoint | Reached defined checkpoint | Suggest |
| Change Accumulation | Files β₯5 or lines β₯200 | Suggest |
| Consecutive Skips | Skipped commit 3 times | Warning |
| Work Complete | Uncommitted changes before finishing | Strongly Recommend |
Reminder Format
ββββββββββββββββββββββββββββββββββββββββββββββββββ
β π Check-in Checkpoint β
ββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Phase 1 completed β
β β
β Change Statistics: β
β - Files: 5 β
β - Added: 180 lines β
β - Deleted: 12 lines β
β β
β Test Status: β
Passed β
β β
β Suggested commit message: β
β feat(module): complete Phase 1 setup β
β β
β Options: β
β [1] Commit now (will show git commands) β
β [2] Commit later, continue to next phase β
β [3] View detailed changes β
ββββββββββββββββββββββββββββββββββββββββββββββββββ
Skip Warning
After 3 consecutive skips:
β οΈ Warning: You have skipped check-in 3 times consecutively
Current accumulated changes: 15 files, +520 lines
Recommend committing soon to avoid changes becoming too large to review
AI Assistant Workflow
When AI completes code changes, follow this workflow:
Step 1: Evaluate Timing
β
Complete: "Implemented user registration with validation, tests, and docs"
β οΈ Incomplete: "Added registration form but backend validation pending"
β Not Ready: "Started working on registration, several TODOs remain"
Step 2: Run Checklist
### Checklist Results
β
Build: npm run build succeeded
β
Code Quality: Follows project standards
β οΈ Tests: Unit tests pass, integration tests need verification
β
Documentation: JSDoc comments added
β
Commit Message: Prepared following conventional commits
Step 3: Prompt User
## Please Confirm Check-in
Completed: [Brief description]
### Checklist Results
β
Build passes
β
Tests pass
β
Code quality verified
β
Documentation updated
Suggested commit message:
feat(auth): add OAuth2 Google login support
- Implement OAuth2 flow with Google provider
- Add user session management
- Include unit tests for auth service
Refs #123
Proceed with commit?
Step 4: Wait for Confirmation
AI MUST:
- β
Wait for explicit user approval
- β
Provide clear checklist summary
- β
Allow user to decline or request changes
AI MUST NOT:
- β Automatically execute git add
- β Automatically execute git commit
- β Automatically execute git push
Common Violations
β WIP Commits
# Bad
git commit -m "WIP"
git commit -m "save work"
# Solution: Use git stash
git stash save "WIP: feature description"
β Commented Code
// Bad: Committing commented old code
// const oldValue = calculate(x);
const newValue = calculateV2(x);
// Solution: Delete commented code, rely on git history
const newValue = calculateV2(x);
β Mixed Concerns
# Bad: One commit with multiple unrelated changes
git commit -m "fix bug and refactor and add feature"
# Solution: Separate commits
git commit -m "fix(module-a): resolve null pointer"
git commit -m "refactor(module-b): extract validation"
git commit -m "feat(module-c): add CSV export"
Directory Hygiene
Before committing, verify no unwanted files:
# Check for IDE artifacts in staging
git diff --cached --name-only | grep -E '\.idea|\.vs/|\.DS_Store'
# Check for abnormal directories
git ls-files | grep -E '^\$'
# Unstage unwanted files
git reset HEAD <file>
Common Artifacts to Exclude
| Pattern | Source | Action |
|---|---|---|
.idea/ |
JetBrains | gitignore |
.vs/ |
Visual Studio | gitignore |
.DS_Store |
macOS | gitignore |
Thumbs.db |
Windows | gitignore |
Configuration Detection
Detection Order
- Check
CONTRIBUTING.mdfor "Disabled Skills" section - Check
CONTRIBUTING.mdfor "Check-in Standards" section - Check for pre-commit hooks configuration
- If not found, default to standard checklist
First-Time Setup
If no configuration found:
- Suggest documenting in
CONTRIBUTING.md:
## Check-in Standards
### Build Commands
```bash
npm run build
Test Commands
npm test
Quality Commands
npm run lint
Minimum Coverage
- Line: 80%
- Branch: 75%
```
Detailed Guidelines
For complete standards, see:
- Checkin Standards
Related Standards
- Checkin Standards - Core standard
- Commit Message Guide - Message format
- Code Review Checklist - PR review
- Code Review Assistant - Review skill
- Commit Standards Skill - Commit message skill
Version History
| Version | Date | Changes |
|---|---|---|
| 1.0.0 | 2026-01-12 | Initial release |
License
This skill is released under CC BY 4.0.
Source: universal-dev-standards
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.