trellis-finish-work
Qué hace
La skill cierra una sesión de código con tareas de mantenimiento. Está pensada para desarrolladores que quieren archivar las tareas terminadas y registrar su progreso.
Cuándo usarla
- ✓Cuando has terminado de programar y quieres cerrar la sesión.
- ✓Cuando tu tarea actual está terminada y debe archivarse.
- ✓Cuando quieres registrar el progreso de la sesión en el diario del desarrollador.
Link de la skill
https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-finish-work/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“He terminado por hoy. Archiva las tareas terminadas y escribe en mi diario lo que hemos hecho.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente comprueba la tarea actual y el estado de git, separa tu trabajo de los cambios no relacionados, archiva las tareas terminadas tras tu confirmación y registra la sesión en el diario. Los commits se hacen antes en el flujo de trabajo, no aquí.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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.
Preguntas frecuentes
¿Hace commit de mi código?
No. Los commits se hacen antes en el flujo de trabajo, y este paso solo cierra la sesión.
¿Archivará tareas que no he terminado?
No. Otras tareas completadas solo se archivan si lo confirmas, y la respuesta por defecto es no.
¿Dónde se registra la sesión?
En el diario del desarrollador que se guarda en la carpeta del espacio de trabajo de Trellis.
Detalles
Descripción original del 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
Popularidad
- Estrellas en GitHub
- 15 mil
- Posición en el ranking
- #11030
- Licencia
- AGPL-3.0
- Actualizada
- 29/9/2026
Comentarios
- …
Más skills de este repositorio
first-principles-thinking
15 milAyuda a tu agente a probar un plan o diseño descomponiéndolo en verdades básicas y razonando desde ellas, en lugar de confiar en la costumbre o la convención.
python-design
15 milAyuda a tu agente a escribir y revisar scripts de línea de comandos en Python con módulos claros, interfaces sencillas y menos complicaciones ocultas.
trellis-before-dev
15 milAyuda a tu agente a leer las guías de código del proyecto y las notas de la tarea antes de empezar a escribir código, para que siga las convenciones del equipo.
trellis-brainstorm
15 milAyuda a tu agente a aclarar una función nueva o una tarea poco clara haciendo una pregunta útil cada vez, revisando el código y acordando un alcance reducido.
Skills parecidas
knowledge-capture
394 milEnseña a tu agente a guardar decisiones, preferencias y datos clave en tu bóveda de Knowledge como notas breves con atribución de la fuente.
knowledge-claim-consolidation
394 milAyuda a tu agente a ordenar una bóveda de Knowledge fusionando afirmaciones duplicadas, moviéndolas a las páginas temáticas adecuadas y retirando las obsoletas.
knowledge-correct
394 milPermite que tu agente corrija o retire una afirmación o página concreta guardada en Knowledge cuando tú lo pidas, dejando constancia de lo que cambió.