Stage + commit + push delegation a Haiku worker (token-cheap pattern, origen 2026-05-09). Orchestrator (Opus) prepara plan; Haiku ejecuta git workflow con guardrails verbatim. Activa: '/commit-push', 'commitea y sube', 'commit haiku', 'commit y push', 'commit + push'.
75
94%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
SSoT guardrails:
.claude/rules/git-haiku-delegation.mdSSoT git fundamentals:.claude/rules/git-safety.md+.claude/rules/parallel-safety.md
git commit -am "<msg>" < 200 tokens (Bash directo OK)git revert / --force / destructivo (NUNCA, sin importar delegación)git status --short # categorizar files MINE vs OTHERS
git branch --show-current # MUST = development
git log --oneline -3 # contexto recienteCategoriza output git status --short:
M / M / ?? que TÚ tocaste this session → MINE listOTHERS list (leave alone)Reject pre-spawn si:
development → STOP, switch first.env* / credentials* / *.pem en MINE list → STOP, escalate Chris (security)Conventional Commits format:
<type>(<scope>): <desc> (≤ 70 chars). Types: feat/fix/refactor/docs/test/chore/perf/ci.Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>Agent({
description: "Commit + push <short-summary>",
subagent_type: "general-purpose",
model: "haiku",
prompt: "<prompt template below>"
})You are a git workflow worker. Perform commit + push for Nicolify project.
## Working directory
$(git rev-parse --show-toplevel) (current branch: development)
## Critical safety rules (HARD — origen .claude/rules/git-haiku-delegation.md)
- NEVER `git add .` / `git add -A` / `git add -u` — parallel sessions WIP en tree
- Stage ONLY by exact filename (lista provista abajo)
- NEVER `git commit --no-verify` — pre-commit hook mandatory
- NEVER `git pull` / `git fetch && merge` — banned per parallel-safety.md
- NEVER `git push --force` / `--force-with-lease` — banned
- NEVER `git revert` sin aprobación explícita
- Si `git push origin development` fails non-fast-forward → STOP, report. NO pull.
- Si pre-commit hook fails → fix and create NEW commit (never `--amend` pushed commits)
- Working branch = `development`. NUNCA push a `main`.
## Files to stage (exact names — these belong to MY session)
<exact list from MINE>
## Files to LEAVE ALONE (parallel sessions WIP — verify intactos post-stage)
<exact list from OTHERS — copy git status output verbatim>
## Commit message (HEREDOC required)<full conventional commit message including body + Co-Authored-By footer>
## Steps to execute
1. `git status --short` — verify state
2. `git add <space-separated MINE files>` — stage by exact name (NEVER `add .`)
3. `git status --short` — verify OTHERS files still unstaged + intact
4. Commit using HEREDOC syntax with message above
5. `git push origin development`
6. `git log --oneline -2` — confirm commit landed
7. Report final commit SHA + push result
Last line MUST be: `done -> <commit-sha>` or `failed -> <reason>`Haiku worker last-line:
done -> <sha> → orchestrator reporta success al user (1 line)failed -> <reason> → orchestrator lee reason:
non-fast-forward → STOP, escalate Chris (no pull, no force)pre-commit hook <details> → inspect hook output, fix issue, re-spawn Haiku con same plansecret detected → STOP escalate Chris (security)branch mismatch → switch branch, re-spawngit commit -m directo cuando MINE list ≥ 3 files (debió delegar)subagent_type: builder-* para git (wrong type — esos son code Opus)git pull / --force / --no-verify bajo cualquier excusaDespués delegación exitosa:
✅ Commit `<sha>` pushed a origin/development.
- <N> files staged: <comma list>
- Pre-commit hook: passed
- Tree: cleanDespués fail:
❌ Commit failed: <reason verbatim from Haiku>
Próximo paso: <orchestrator decision based on failure mode>.claude/rules/git-haiku-delegation.md — pattern + cost saving + guardrails completos.claude/rules/git-safety.md — git fundamentals.claude/rules/parallel-safety.md — M1-M8 multi-session protectioncaa08df
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.