convez.ai
SkillDevOps & InfraestruturaIntermediário
kleer001

Commit And Push (cap)

kleer001/claude-slash-cap

Commit e push automático de mudanças da conversa sem varrer código antigo

Ver no GitHub
InicialPluginScore · de 0 a 100

Skill para Claude Code que realiza commit e push automático das alterações feitas apenas na conversa atual, com mensagens no padrão Conventional Commits. Evita contaminar o repositório com mudanças não relacionadas ao contexto da sessão.

Instalação

$npx convez-ai kleer001/claude-slash-cap

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
0
Forks
0
Acompanhando
0
Saúde
42%
Último commit
há 5 meses
Versão
—
Issues abertas
0
Contribuidores
1

Casos de uso

  • Fazer commit de alterações incrementais durante pair programming com Claude
  • Automatizar versionamento com convenção de commits semânticos
  • Evitar commits acidentais de mudanças não relacionadas à conversa atual

Veredito

Solução prática e bem pensada para Git workflow com Claude Code. Reduz fricção do versionamento manual, mas exige familiaridade com git e cuidado com auto-push (sem confirmação). Recomendado para equipes que já usam Conventional Commits.

README

A tradução para o português deste README ainda está na fila.

/cap — Commit And Push

A Claude Code skill for the lazy. /cap stages only the files Claude edited during the current conversation, commits them with an auto-generated Conventional Commits message, and pushes — without sweeping in unrelated outstanding changes.

Install

claude plugins marketplace add kleer001/claude-slash-cap && claude plugins install cap

Usage

CommandWhat it does
/capStage session-edited files → auto-generate commit message → commit → push
/cap <message>Same, but use <message> verbatim as the commit message
/cap --dry-runPreview the files and message — stage/commit/push nothing

No confirmation prompts — by default it just commits and pushes. --dry-run combines with a custom message: /cap fix the parser --dry-run.

How it works

/cap resolves the set of files this conversation created or modified, then intersects that set with what git actually reports as changed. Only files in both get staged (via explicit git add -- <paths>, never git add -A). It commits just those, then pushes the current branch.

Pre-existing changes you made outside this conversation are left untouched.

It fails loudly

  • Not a git repo → reports and stops (no git init).
  • No session files changed → reports "nothing to commit" and stops.
  • Push rejected → reports the rejection and suggests git pull --rebase. Never force-pushes.
  • Network hiccup on push → retries up to 3× before reporting.

See SKILL.md for the full behavioral spec.

Ver o original no GitHub

Bom para

Relacionados