trellis-finish-work
O que ela faz
A skill encerra uma sessão de código com tarefas de organização. É para desenvolvedores que querem arquivar as tarefas concluídas e registrar o progresso.
Quando usar
- ✓Quando você terminou de programar e quer encerrar a sessão.
- ✓Quando sua tarefa atual está concluída e deve ser arquivada.
- ✓Quando você quer registrar o progresso da sessão no diário do desenvolvedor.
Link da skill
https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-finish-work/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Terminei por hoje. Arquive as tarefas concluídas e registre o que fizemos no meu diário.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente verifica a tarefa atual e o estado do git, separa o seu trabalho das mudanças não relacionadas, arquiva as tarefas concluídas depois da sua confirmação e registra a sessão no diário. Os commits são feitos antes, no fluxo de trabalho, e não aqui.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Finish Work
Wrap up the current session: archive the active task (and any other completed-but-unarchived tasks the user wants to clean up) and record the session journal. Code commits are NOT done here — those happen in workflow Phase 3.4 before you invoke this command.
Step 1: Survey current state
python3 ./.trellis/scripts/get_context.py --mode record
This prints:
- My active tasks — review whether any besides the current one are actually done (code merged, AC met) and should be archived this round.
- Git status — quick visual on what's dirty.
- Recent commits — you'll need their hashes in Step 4 for
--commit.
If --mode record surfaces other completed tasks not tied to the current session, surface them to the user with a one-shot confirmation: "These N tasks look done — archive them too in this round? [y/N]". Default is no; the current active task is always archived in Step 3 regardless.
Step 2: Sanity check — classify dirty paths
Run:
git status --porcelain
Filter out paths under .trellis/workspace/ and .trellis/tasks/ — those are managed by add_session.py and task.py archive auto-commits and will appear dirty as part of this skill's own work.
For each remaining dirty path, decide whether it belongs to the current task or to other parallel work (e.g., another terminal window editing the same repo). Heuristics:
- Paths referenced in the current task's
prd.md/implement.jsonl/check.jsonl→ current task - Paths in code areas matching the task's stated scope, or that you remember editing this session → current task
- Paths in unrelated areas you have no recollection of touching this session → other parallel work
Then route:
Any remaining path looks like current-task work — bail out with:
"Working tree has uncommitted code changes from this task:
<list>. Return to workflow Phase 3.4 to commit them before running ``finish-work(Trellis command)."Do NOT run
git commithere. Do NOT prompt the user to commit. The user goes back to Phase 3.4 and the AI drives the batched commit there.All remaining paths look unrelated (other parallel-window work) — report them once and continue to Step 3:
"FYI, dirty files outside this task's scope — leaving them for the other window:
<list>."Genuinely unsure — ask the user once: "Are
<list>this task's work I forgot to commit, or another window's? (commit / ignore)" — then route per their answer.
Step 3: Archive task(s)
python3 ./.trellis/scripts/task.py archive <task-name>
At minimum: the current active task (if any). Plus any extra tasks the user confirmed in Step 1. Each archive produces a chore(task): archive ... commit via the script's auto-commit.
If there is no active task and the user did not confirm any cleanup archives, skip this step.
Step 4: Record session journal
python3 ./.trellis/scripts/add_session.py \
--title "Session Title" \
--commit "hash1,hash2" \
--summary "Brief summary"
Use the work-commit hashes produced in Phase 3.4 (visible in Step 1's Recent commits list, or via git log --oneline) for --commit. Do not include the archive commit hashes from Step 3. This produces a chore: record journal commit.
Final git log order: <work commits from 3.4> → chore(task): archive ... (one or more) → chore: record journal.
Perguntas frequentes
Ele faz commit do meu código?
Não. Os commits acontecem antes no fluxo de trabalho, e esta etapa só encerra a sessão.
Ele vai arquivar tarefas que não terminei?
Não. Outras tarefas concluídas só são arquivadas se você confirmar, e a resposta padrão é não.
Onde a sessão é registrada?
No diário do desenvolvedor, guardado na pasta do workspace do Trellis.
Detalhes
Descrição original do autor
Wrap up the current session: verify quality gate passed, remind user to commit, archive completed tasks, and record session progress to the developer journal. Use when done coding and ready to end the session.
repo: mindfold-ai/Trellis
Popularidade
- Estrelas no GitHub
- 15 mil
- Posição no ranking
- #11030
- Licença
- AGPL-3.0
- Atualizada em
- 29/09/2026
Comentários
- …
Mais skills deste repositório
first-principles-thinking
15 milAjuda seu agente a testar um plano ou design quebrando-o em verdades básicas e raciocinando a partir delas, em vez de depender do hábito ou da convenção.
python-design
15 milAjuda seu agente a escrever e revisar scripts Python de linha de comando, com módulos claros, interfaces simples e menos complicações ocultas.
trellis-before-dev
15 milAjuda seu agente a ler as diretrizes de código e as notas de tarefa do projeto antes de começar a escrever código, para que ele siga as convenções da equipe.
trellis-brainstorm
15 milAjuda seu agente a esclarecer uma nova funcionalidade ou uma tarefa pouco clara, fazendo uma pergunta útil por vez, verificando o código e combinando um escopo enxuto.
Skills parecidas
knowledge-capture
394 milEnsina seu agente a salvar decisões, preferências e fatos importantes no seu Knowledge vault como notas curtas, com a indicação da fonte.
knowledge-claim-consolidation
394 milAjuda seu agente a organizar um Knowledge vault unindo afirmações duplicadas, movendo-as para as páginas de assunto certas e aposentando as desatualizadas.
knowledge-correct
394 milPermite que seu agente corrija ou retire uma afirmação ou página específica do Knowledge vault quando você pedir, mantendo um registro do que mudou.