Skip to content
Skillpedia
Tasks & projects15k Β· #11030

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.md

Copy 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

Use this skill to help me: https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-finish-work/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

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 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.

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills