trellis-finish-work
What it does
The skill closes out a coding session with housekeeping. It is for developers who want finished tasks archived and their progress logged.
When to use it
- βWhen you are done coding and ready to end the session.
- βWhen your current task is finished and should be archived.
- βWhen you want your session progress recorded in the developer journal.
Skill link
https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-finish-work/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βI am done for today. Archive the finished tasks and write up what we did in my journal.β
5 new skills a week. 1 minute to read.
How it works
The agent checks the current task and the git state, separates your work from unrelated changes, archives finished tasks after you confirm, and records the session in the journal. Commits are made earlier in the workflow, not here.
Technical content (original SKILL.md)
Original text by the author, straight from 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.
FAQ
Does it commit my code?
No. Commits happen earlier in the workflow, and this step only wraps up the session.
Will it archive tasks I did not finish?
No. Other completed tasks are archived only if you confirm, and the default answer is no.
Where is the session recorded?
In the developer journal kept in the Trellis workspace folder.
Details
Original description by the author
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
Popularity
- GitHub stars
- 15k
- Ranking position
- #11030
- License
- AGPL-3.0
- Updated
- 9/29/2026
Comments
- β¦
More skills from this repository
first-principles-thinking
15kHelps your agent test a plan or design by breaking it into basic truths and reasoning up from them, instead of relying on habit or convention.
python-design
15kHelps your agent write and review Python command-line scripts with clear modules, simple interfaces, and fewer hidden complications.
trellis-before-dev
15kHelps your agent read the project's coding guidelines and task notes before it starts writing code, so it follows the team's conventions.
trellis-brainstorm
15kHelps your agent clarify a new feature or unclear task by asking one useful question at a time, checking the code, and agreeing on a narrow scope.
Similar skills
knowledge-capture
394kTeaches your agent to save decisions, preferences, and key facts to your Knowledge vault as short notes with source attribution.
knowledge-claim-consolidation
394kHelps your agent tidy a Knowledge vault by merging duplicate claims, moving them to the right subject pages, and retiring outdated ones.
knowledge-correct
394kLets your agent fix or withdraw a specific saved Knowledge claim or page at your request, keeping a record of what changed.