Cómo usar
- Copia el comando y revisa el paquete antes de instalarlo en tu entorno de agente.
- Consulta las herramientas, credenciales y entornos necesarios en el documento original.
- Describe las entradas y el resultado deseado; contrasta la salida con las fuentes.
npx skills add https://github.com/d1zzy4/agent-skills --skill commit-expertAntes de empezar
- La instalación no incluye suscripción al modelo, cuota API ni permisos sobre tus archivos.
- Las estrellas e instalaciones reflejan actividad, no una prueba independiente de calidad o seguridad.
Contenido del repositorio de origen con títulos, ejemplos, código, tablas, enlaces e imágenes preservados.
Commit Expert
Purpose
This skill is a safety workflow, not permission to modify the repository. Guide safe, repository-aware Git commits and pushes by inspecting repository policy, working-tree state, diffs, and branch configuration before any mutation. Never commit, push, stage, restore, or discard changes without explicit authorization for that side effect.
Priority order
Read references/policy-configuration.md. Resolve rules in this order:
- Platform and system safety constraints.
- Repository policy and contribution instructions.
- Explicit user instructions.
- This skill's portable defaults.
Conflict resolution
When the user's request conflicts with a safety or policy rule, the higher-precedence rule wins. Do not downgrade a safety boundary because the user asked for speed or convenience. If a request would violate a hard boundary, stop and explain what conflicts and what the safer path is.
Never invent branch names, scopes, authorship, remotes, commit formats, or required checks.
Safety boundary
Inspection is safe by default. Mutation is not.
Without explicit authorization, do not:
- stage or unstage files,
- create or amend commits,
- push or force-push,
- restore or delete files,
- clean untracked files,
- rewrite history,
- change Git configuration.
Treat pre-existing changes as user-owned unless provenance is clear.
Step 0: Establish intent and mode
Determine whether the user wants inspection, preparation, commit creation, push, or the full sequence. If the request authorizes only one side effect, do not silently perform the next one.
Read references/host-adapters.md when the environment is not ordinary Git CLI usage.
Step 1: Inspect before deciding
At minimum, inspect status and the relevant diff. Check branch/upstream information and repository policy when committing or pushing. Identify generated files, secrets, unrelated changes, merge conflicts, and staged-versus-unstaged differences.
Read references/clean-tree-checklist.md and references/staging-and-gitignore.md.
Step 2: Scope the change
Resolve the commit strategy first via references/commit-strategy.md (default auto), then stage according to that strategy. Separate task-related changes from pre-existing or unrelated work. Never stage "everything" merely because it is convenient. Prefer explicit paths and verify the staged diff before commit.
Step 3: Determine the commit message
Read references/message-style.md and references/commit-strategy.md. Use repository conventions if present. Conventional Commits is a fallback, not a universal law. The subject should describe the resulting change, not the agent's process.
Step 4: Verify
Run the repository's documented checks when authorized and relevant. If checks are unavailable, say so. Never claim tests passed when only static inspection occurred. Never bypass hooks with --no-verify without explicit authorization.
Before a commit, verify the staged diff and intended paths. Before a push, verify the commit, signature when the repository requires signed commits, remote, branch, and upstream relationship.
Step 5: Mutate only within the granted scope
After explicit authorization, stage exactly the intended paths, create the commit, and verify the result. Pushing requires explicit push authorization unless the user clearly requested a push.
Anti-patterns
git add .without reviewing scope.- Cleaning a dirty tree to make a task easier.
- Amending or force-pushing without explicit instruction.
- Hiding unrelated changes in a commit.
- Adopting a commit strategy the repository or user did not ask for.
- Claiming hooks/tests passed without evidence.
- Change config (git config --global, signing keys, credentials) to satisfy a local policy
without explicit instruction.
- Treating a dirty working tree as an error that must be "fixed".
- Bypassing hooks with
--no-verifywithout explicit authorization. - Using em dashes in commit messages.
Caveman mode
If the user explicitly asks for a direct commit and the repository is straightforward, still perform the minimum safety checks. Direct intent is authorization to mutate, not authorization to skip review.
Bundled references
Load the specific policy, staging, message, verification, and push references required by the task:
references/policy-configuration.md: policy precedence order and what never to invent.references/commit-strategy.md: how to group changes and shape messages underautoand the
other documented strategy values.
references/host-adapters.md: when the environment is not ordinary Git CLI usage and how to
adapt.
references/clean-tree-checklist.md: what to inspect before deciding to commit.references/staging-and-gitignore.md: group by logical concern, never cite ignored files, never
add new ignored files, verify gitignore status before staging.
references/message-style.md: commit message format, subject rules, body rules, prohibited
content, AI co-author trailer, and type reference.
references/commit-execution.md: duplicate-commit check, subject/body structure, avoiding literal
\n in shell, two -m flags versus file plus -F, and post-commit verification.
references/commit-signing.md: signed-commit inspection, signing mechanics, and signature
verification before push.
references/proactive-trigger.md: when to check in without an explicit commit request and the
check-in flow.
references/strict-mode.md: extra constraints for strict mode, applied on top of default rules.references/push-and-upstream.md: push authorization, upstream verification, and when to update
the branch.
references/examples.md: worked good/bad commit message examples.references/verification-and-failure.md: shared verification and failure-handling principles.




