Strict workflow and safety constraints for committing all intended repo changes without confirmation, auto-recording ignore rules for local-only junk files, drafting Conventional Commit messages with required type and scope, HEREDOC bodies, hook handling, sync-only detection, and optional PR creation via gh when explicitly requested. This skill is opt-in only and must never be invoked proactively; use it only when the user explicitly asks to use Commit&Push or explicitly requests commit and push execution.
Commit all repo changes, write a proper Conventional Commit message, and push safely.
Commit&Push or explicitly instructs the agent to commit and push changes0.5) Detect single-repo vs multi-repo workspace
openspec: /Users/d0ublecl1ck/evaluation/openspecevaluation_admin: /Users/d0ublecl1ck/evaluation/evaluation_adminevaluation_server: /Users/d0ublecl1ck/evaluation/evaluation_servergit status, git diff, git log --oneline -5git status --short --branch shows both ahead and behind (e.g., master...origin/master [ahead 1, behind 1]), git diff is empty, git log --oneline -5 is non-empty (not first commit), and git status reports nothing to commit, working tree clean, treat this as a sync-only stategit pull --rebase first, then git push; do not create a new commitgit log --oneline -5 is empty or reports no commits (e.g., fatal: your current branch ... does not have any commits yet), treat this as the first commitgit add -A)__pycache__/, *.pyc, .DS_Store, editor swap files, temporary logs, coverage output, local virtual environments, or build caches.gitignore; use .git/info/exclude only when the ignore rule is intentionally machine-local and should not be committed.env, credentials, secrets, node_modules/, __pycache__/, .venv/, or large binary files without explicit approvaltype(scope): subjectFixes #N, Closes #N, or Co-authored-by: Name <email>type(scope)!: subject or add a BREAKING CHANGE: footerGenerated with ... or Co-Authored-By: Claude ...-u origin <current-branch>git pull --rebase before retrying push| Type | Purpose |
|---|---|
feat | New feature or functionality |
fix | Bug fix or issue resolution |
refactor | Code refactoring without behavior change |
perf | Performance improvements |
test | Test additions or modifications |
ci | CI/CD configuration changes |
docs | Documentation updates |
chore | Maintenance, dependencies, tooling |
style | Code formatting or lint-only changes |
security | Security fixes or hardening |
auth, api, config, tests, validation, or cookie-serviceadd, fix, refactor, remove, improve, prevent, or implementupdate code, fix bug, make changes, or add stuffGood:
feat(validation): add URLValidator with domain whitelist
fix(auth): use hmac.compare_digest for key comparison
refactor(template): consolidate filename sanitization
test(security): add path traversal prevention tests
Bad:
update validation code