trellis-finish-work
Что он делает
Скилл завершает сессию кодинга хозяйственными действиями. Он нужен разработчикам, которые хотят, чтобы готовые задачи были заархивированы, а их прогресс записан.
Когда использовать
- ✓Когда вы закончили кодить и готовы завершить сессию.
- ✓Когда текущая задача готова и её нужно заархивировать.
- ✓Когда вы хотите записать прогресс сессии в журнал разработчика.
Ссылка на скилл
https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-finish-work/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“На сегодня всё. Заархивируй готовые задачи и запиши, что мы сделали, в мой журнал.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент проверяет текущую задачу и состояние git, отделяет вашу работу от посторонних изменений, архивирует готовые задачи после вашего подтверждения и записывает сессию в журнал. Коммиты делаются раньше в процессе, а не здесь.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с 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.
Частые вопросы
Коммитит ли он мой код?
Нет. Коммиты происходят раньше в рабочем процессе, а этот шаг только завершает сессию.
Заархивирует ли он задачи, которые я не закончил?
Нет. Другие завершённые задачи архивируются только с вашего подтверждения, и ответ по умолчанию — нет.
Где записывается сессия?
В журнале разработчика, который хранится в папке рабочего пространства Trellis.
Подробности
Оригинальное описание автора
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
Популярность
- Звёзды на GitHub
- 15k
- Место в рейтинге
- #11030
- Лицензия
- AGPL-3.0
- Обновлён
- 29.09.2026
Комментарии
- …
Другие скиллы из этого репозитория
first-principles-thinking
15kПомогает агенту проверить план или дизайн, разбивая его на базовые истины и рассуждая от них вверх, а не опираясь на привычку или условность.
python-design
15kПомогает агенту писать и проверять командные скрипты на Python с понятными модулями, простыми интерфейсами и меньшим количеством скрытых сложностей.
trellis-before-dev
15kПомогает агенту прочитать рекомендации по коду проекта и заметки к задаче перед тем, как он начнёт писать код, чтобы он следовал соглашениям команды.
trellis-brainstorm
15kПомогает агенту уточнить новую функцию или неясную задачу: задаёт по одному полезному вопросу, проверяет код и согласует узкий объём работ.
Похожие скиллы
knowledge-capture
394kУчит агента сохранять решения, предпочтения и ключевые факты в хранилище Knowledge короткими заметками с указанием источника.
knowledge-claim-consolidation
394kПомогает агенту навести порядок в хранилище Knowledge: объединить дубликаты, перенести утверждения на нужные страницы и убрать устаревшие.
knowledge-correct
394kПозволяет агенту исправить или отозвать конкретное сохраненное утверждение или страницу Knowledge по вашей просьбе и вести запись изменений.