trellis-finish-work
하는 일
스킬은 정리 작업으로 코딩 세션을 마무리합니다. 끝난 작업을 보관하고 진행 상황을 기록하고 싶은 개발자를 위한 스킬입니다.
사용하는 경우
- ✓코딩을 마치고 세션을 끝낼 준비가 되었을 때.
- ✓현재 작업이 끝났고 보관되어야 할 때.
- ✓세션의 진행 상황을 개발 일지에 기록하고 싶은 경우.
스킬 링크
https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-finish-work/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“오늘은 여기까지 할게요. 끝난 작업을 보관하고, 우리가 한 일을 제 일지에 정리해 주세요.”
매주 새 스킬 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
- 업데이트
- 2026. 9. 29.
댓글
- …
이 저장소의 다른 스킬
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 주장이나 페이지를 고치거나 철회하고, 무엇이 바뀌었는지 기록을 남기도록 돕습니다.