atomic-commit
- Repo stars 0
- Author updated Live
- Author repo skills-registry
- Domain
- Engineering
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 88 / 100 · community maintained
- Author / version / license
- @tomevault-io · no license declared
- Token usage
- Lean
- Setup complexity
- Plug-and-play
- External API key
- Not required
- Operating systems
- Unspecified (assume cross-platform)
- Runtime requirements
- No special requirements
- Permissions
-
- Read-only
- Write / modify
- Env read
- Network behavior
- Local-only
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: atomic-commit
description: Atomic git workflow - validates, commits, pushes, creates PR, and verifies CI with zero-warnings…
category: engineering
runtime: no special runtime
---
# atomic-commit output preview
## PART A: Task fit
- Use case: Atomic git workflow - validates, commits, pushes, creates PR, and verifies CI with zero-warnings policy. Orchestrates complete code submission as state machine with rollback on failure. Use when this capability is needed..
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “Overview / Usage / Arguments” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “Atomic git workflow - validates, commits, pushes, creates PR, and verifies CI with zero-warnings policy. Orchestrates complete code submission as state machine with rollback on failure. Use when this capability is needed.”.
- **02** When the source has headings, the agent prioritizes “Overview / Usage / Arguments” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, write/modify files, read environment variables; mostly runs locally; usually needs no extra API key.
## Running Rules
- read files, write/modify files, read environment variables; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source mentions slash commands such as `/atomic-commit`; use them first when your agent supports command triggers.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, write/modify files, read environment variables.
Start with a small task and check whether the result follows “Overview / Usage / Arguments”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: atomic-commit
description: Atomic git workflow - validates, commits, pushes, creates PR, and verifies CI with zero-warnings…
category: engineering
source: tomevault-io/skills-registry
---
# atomic-commit
## When to use
- Atomic git workflow - validates, commits, pushes, creates PR, and verifies CI with zero-warnings policy. Orchestrates…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “Overview / Usage / Arguments” and keep inference separate from source facts.
- read files, write/modify files, read environment variables; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "atomic-commit" {
input -> user goal + target files + boundaries + acceptance criteria
context -> Overview / Usage / Arguments
rules -> SKILL.md triggers / order / output contract
runtime -> no special runtime | read files, write/modify files, read environment variables | mostly runs locally
guardrails -> usually needs no extra API key + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} Atomic Commit Skill
Atomic workflow: validate → commit → push → PR → verify. All changes committed as single unit with zero warnings policy.
Overview
Orchestrates complete code submission as state machine with 7 phases:
- PRE_COMMIT - Validation (quality gate, secrets scan)
- COMMIT - Atomic commit creation (conventional format)
- PRE_PUSH - Remote sync check
- PUSH - Upload to origin
- PR_CREATE - Open pull request
- VERIFY - Wait for CI checks
- REPORT - Success summary
Zero warnings policy: Any warning fails the workflow and triggers rollback.
Usage
# Full workflow
/atomic-commit
# With custom message
/atomic-commit --message "feat(auth): add OAuth2 flow"
# Dry run (validate only)
/atomic-commit --dry-run
# Skip CI verification (emergency)
/atomic-commit --skip-ci
Arguments
| Argument | Description | Default |
|---|---|---|
--message, -m |
Commit message (auto-detect if omitted) | auto |
--dry-run |
Validate only, no commits/pushes | false |
--skip-ci |
Skip CI verification | false |
--timeout |
CI wait timeout in seconds | 1800 |
--base-branch |
Target branch for PR | main |
State Machine
[Start] → PRE_COMMIT → COMMIT → PRE_PUSH → PUSH → PR_CREATE → VERIFY → REPORT → [Success]
↓ ↓ ↓ ↓ ↓ ↓
[Fail] Rollback Rollback Rollback Rollback Rollback
Quality Gates
| Phase | Check | Failure Action |
|---|---|---|
| PRE_COMMIT | Quality gate zero warnings | Abort |
| PRE_COMMIT | No secrets in diff | Abort |
| PRE_COMMIT | Not on protected branch | Abort |
| COMMIT | Valid conventional format | Rollback |
| PRE_PUSH | Remote accessible | Rollback |
| PUSH | SHA verification | Rollback |
| PR_CREATE | gh CLI authenticated | Rollback |
| VERIFY | All CI checks green | Rollback |
| VERIFY | Zero warnings in checks | Rollback |
Rollback Actions
On failure, automatically:
- Close PR (if created)
- Remove remote commit (best effort)
- Reset local commit
- Unstage changes
Error Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Quality gate failed |
| 3 | Commit failed |
| 4 | Push failed |
| 5 | PR creation failed |
| 6 | Checks failed/warnings found |
| 7 | Timeout |
| 8 | Rollback failed |
Prerequisites
ghCLI installed and authenticated- Working on feature branch (not main/master)
./scripts/quality_gate.shexists
Configuration
Environment variables:
ATOMIC_COMMIT_TIMEOUT=1800 # Check wait timeout
ATOMIC_COMMIT_BASE_BRANCH=main # Target branch for PR
ATOMIC_COMMIT_NO_ROLLBACK=0 # Set 1 to disable rollback
Commit Format
type(scope): Brief description (50 chars max)
- Why (not what) - user perspective
- Reference issues: Fixes #123
Types: feat, fix, docs, style, refactor, perf, test, ci, chore
Implementation
This skill uses sub-agents for each phase:
validate- Phase 1: PRE_COMMITcommit- Phase 2: COMMITpush- Phases 3-4: PRE_PUSH & PUSHcreate-pr- Phase 5: PR_CREATEverify- Phase 6: VERIFY
Success Criteria
Command succeeds only when:
- ✓ All local validation passes (zero warnings)
- ✓ Commit created with valid SHA
- ✓ Pushed to remote successfully
- ✓ PR created with valid URL
- ✓ All GitHub Actions pass
- ✓ Zero warnings in all checks
See Also
.opencode/commands/commit.md- Basic commit guidelines.github/PULL_REQUEST_TEMPLATE.md- PR templatereferences/IMPLEMENTATION.md- Technical details
Test change
Source: d-oit/do-knowledge-studio — distributed by TomeVault.
Decide Fit First
Design Intent
How To Use It
Boundaries And Review