Aller au contenu
Skillpedia
Tâches et projets15k · #11030

trellis-finish-work

Ce qu’il fait

La compétence clôt une session de codage avec les tâches de fin de session. Elle s'adresse aux développeurs qui veulent archiver les tâches terminées et consigner leur avancement.

Quand l’utiliser

  • ✓Quand vous avez fini de coder et êtes prêt à terminer la session.
  • ✓Quand votre tâche en cours est terminée et doit être archivée.
  • ✓Quand vous voulez consigner l'avancement de la session dans le journal du développeur.

Lien du skill

https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-finish-work/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-finish-work/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“J'ai fini pour aujourd'hui. Archive les tâches terminées et rédige un compte rendu de ce que nous avons fait dans mon journal.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent vérifie la tâche courante et l'état de git, sépare votre travail des modifications sans rapport, archive les tâches terminées après votre confirmation, puis consigne la session dans le journal. Les commits sont faits plus tôt dans le flux de travail, pas ici.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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 commit here. 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.

Questions fréquentes

Committe-t-elle mon code ?

Non. Les commits ont lieu plus tôt dans le flux de travail, et cette étape ne sert qu'à clore la session.

Archivera-t-elle des tâches que je n'ai pas terminées ?

Non. Les autres tâches terminées ne sont archivées que si vous confirmez, et la réponse par défaut est non.

Où la session est-elle consignée ?

Dans le journal du développeur conservé dans le dossier de l'espace de travail Trellis.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
15k
Position au classement
#11030
Licence
AGPL-3.0
Mis à jour
29/09/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires