agentleFS
PPrauchnerPPrauchner/ARK-Agent-Rules-Kit/.claude/commands/commit/SKILL.md

commit

Skill1 starsChanged 44 days agoMITView on GitHub

Analisa mudanças não-commitadas e realiza commits atômicos seguindo as convenções do projeto. Use when the user wants to commit changes, stage files, or create a structured commit message. $ARGUMENTS

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use validate-plan, act-on-feedback and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • shawn-dumasSkill

    validate-plan

    Validate an orchestration plan after pre-flight certification. Runs adversarial review, deep review (verify prompt data against codebase), and PoC gate for risky approaches. Auto-invoked by orchestrate-* skills at Step 8.

    Also in 5 projects that use this

  • MicrosoftSkill

    act-on-feedback

    Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.

    Also in 3 projects that use this

  • decocmsSkill

    add-mcp-tools

    Guide for adding new MCP tools with consistent patterns for schemas, tool definitions, registry updates, and Better Auth integration

    Also in 3 projects that use this

  • MicrosoftSkill

    generate-run-commands

    Generate or modify run commands for the current session. Use when the user wants to set up or update run commands that appear in the session's Run button.

    Also in 3 projects that use this

  • mitsuhikoSkill

    oebb-scotty

    Austrian rail travel planner (ÖBB Scotty). Use when planning train journeys in Austria, checking departures/arrivals at stations, or looking for service disruptions. Covers ÖBB trains, S-Bahn, regional trains, and connections to neighboring countries.

    Also in 3 projects that use this

  • mitsuhikoSkill

    pi-share

    Load and parse session transcripts from shittycodingagent.ai/buildwithpi.ai/buildwithpi.com/pi.dev (pi-share) URLs. Fetches gists, decodes embedded session data, and extracts conversation history.

    Also in 3 projects that use this

The file

Files
SKILL.md

Commit

Workflow

1. Diagnosticar

git status
git diff --stat HEAD

Se a working tree estiver limpa, informe o usuário e pare.

2. Ler convenções

  • atomicity-rules.md — tipos, escopos, regras de atomicidade
  • .claude/rules/code-conventions.md — convenções de código do projeto
  • O histórico do próprio repositório — nenhum arquivo de convenção define o idioma da mensagem de commit, porque ele não é nem código nem documentação:
git log --format=%s -20

Imite o que encontrar — idioma, acentuação, formato do escopo. Repositório com histórico em inglês recebe commit em inglês; em português sem acento, idem. Num repositório sem histórico, siga o idioma da documentação do projeto.

3. Identificar issue ativa

issue=$(bash "${ARK_HOME:-.claude}/scripts/current-issue.sh" get); echo "${issue:-(nenhuma)}"

O script lê da raiz do projeto, onde o /start-issue gravou — não do cwd, que pode ter derivado para dentro de um subrepositório. Não troque por cat .claude/current-issue.

Para ler a issue, use o comando que docs/agents/issue-tracker.md define para este repositório. Se o arquivo não existir, assuma GitHub e avise em uma linha:

sem docs/agents/issue-tracker.md — assumindo GitHub; rode /setup-matt-pocock-skills se não for.

Não pare por causa disso. O /afk-queue exige esse arquivo e para sem ele; aqui o fallback basta. A diferença é proposital: lá a fila roda sem ninguém olhando, e uma suposição errada estraga N issues em silêncio; aqui o usuário lê o aviso e corrige.

Receita GitHub:

gh issue view "$(bash "${ARK_HOME:-.claude}/scripts/current-issue.sh" get)" --json number,title,body,labels 2>/dev/null

4. Inspecionar mudanças

git diff          # não-staged
git diff --cached # staged
git ls-files --others --exclude-standard  # untracked

Leia arquivos novos relevantes com Read para entender o que fazem.

5. Agrupar em commits atômicos

Aplique as regras de atomicidade. Regra de ouro: se precisar de mais de uma frase para descrever o que foi feito (não o porquê), divida o commit.

6. Propor plano — aguardar confirmação

Plano de commits (N commits):

1. tipo(escopo): descrição curta
   Arquivos: path/arquivo1.py, path/arquivo2.py
   Corpo: [porquê da mudança, se necessário]

Se houver issue ativa, o último commit relevante deve referenciar no rodapé (Closes #N ou Part of #N). Aguardar confirmação antes de executar.

7. Executar após confirmação

git add caminho/arquivo1 caminho/arquivo2
git commit -m "tipo(escopo): descrição

Corpo opcional (wrap a 72 chars).

Closes #N"

Confira a mensagem gravada, não só o assunto. Erro de sintaxe de shell numa mensagem multilinha não faz o commit falhar — ele grava a mensagem errada e segue calado, e --oneline não mostra isso:

git log -1 --format=%B   # sempre que a mensagem tiver corpo

Se o que foi gravado não for o que foi proposto, corrija no ato com git commit --amend. O amend aqui é seguro: o commit acabou de nascer e nunca foi publicado.

8. Marcar o checklist da issue

Se a issue ativa tiver um comentário ## Plano de execução (criado pelo /start-issue quando a issue foi julgada complexa), marque os itens que estes commits concluíram e reescreva o comentário.

Marca-se o que aconteceu, não o que se pretendia — por isso é aqui, e não no /start-issue. Vale igual no /afk-queue, onde o subagente roda /commit sem ninguém acompanhando.

Receita GitHub — localizar e atualizar:

gh issue view <N> --json comments \
  --jq '.comments[] | select(.body | startswith("## Plano de execução")) | .url' \
  | sed 's/.*issuecomment-//'
gh api -X PATCH repos/{owner}/{repo}/issues/comments/<id> -F body=@plano.md

Em outros trackers, use o equivalente descrito em docs/agents/issue-tracker.md. Sem issue ativa, ou sem esse comentário, pule o passo em silêncio.

9. Resumo final

git log --oneline -N

Perguntar se deseja abrir o PR agora via /open-pr (que faz o push, cria o PR e move as issues para In review). Se a resposta for não, parar aqui — sem push.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.