finish-work

Archive completed Trellis tasks and record session journals with work commit hashes.

92|8|Updated May 15, 2026
One-click install
npx skills add https://github.com/LonelyHerbivore/Trellis-Herbivore --skill finish-work-lonelyherbivore
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finish-work
Source: https://github.com/LonelyHerbivore/Trellis-Herbivore/tree/main/packages/cli/src/templates/codex/skills/finish-work
Command: npx skills add https://github.com/LonelyHerbivore/Trellis-Herbivore --skill finish-work-lonelyherbivore

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps you safely wrap up an active Trellis coding session by archiving completed tasks and recording a session journal, while preventing you from mixing uncommitted code changes that must be committed earlier in the workflow.

Core Features & Use Cases

  • Task survey and cleanup: Detects the active task and can optionally archive other completed-but-unarchived tasks when you confirm.
  • Safety guardrail for dirty code: Refuses to run if there are uncommitted changes that likely belong to the current task, directing you back to the commit phase.
  • Session journaling: Records a clear session summary and the correct work-commit hashes so the repository becomes the source of truth.

Quick Start

Ask the AI to run finish-work to archive your current Trellis task and write a session journal after you have already committed the work in the workflow Phase 3.4.

Frequently Asked Questions about finish-work

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I archive completed Trellis tasks and record a session journal?

To archive completed Trellis tasks and record a session journal, run finish-work after committing your code changes. It classifies dirty paths, auto-commits task archives via task.py, and logs work commit hashes using add_session.py.

Why does task archiving fail when I have uncommitted working-tree changes?

Task archiving fails with uncommitted working-tree changes because this Skill acts as a safety guardrail, refusing to run if dirty paths belong to the current task. You must commit your work in the prior workflow phase first.

How do I wrap up a Trellis coding session at the end of the day?

To wrap up a Trellis coding session, invoke finish-work after your work is committed. It runs a context survey in record mode, detects completed tasks, archives them, and writes a session journal making the repository the source of truth.

When should I run the session journaling workflow in Trellis?

Run the session journaling workflow when you want to finish or wrap up an active Trellis task. It requires that all current-task code changes are already committed, ensuring only completed work is archived and journaled.

Can I archive multiple completed tasks during a single session wrap-up?

Yes, you can archive multiple tasks during session wrap-up. The Skill detects the active task and optionally archives other completed-but-unarchived tasks when you confirm, using task.py to auto-commit the archive commits.