Langsung ke konten
Skillpedia
Tugas & proyek15k ยท #11030

trellis-finish-work

Fungsinya

Skill ini menutup sesi coding dengan pekerjaan rapi. Untuk developer yang ingin tugas yang selesai diarsipkan dan kemajuannya dicatat.

Kapan dipakai

  • โœ“Saat Anda selesai coding dan siap mengakhiri sesi.
  • โœ“Saat tugas Anda saat ini sudah selesai dan perlu diarsipkan.
  • โœ“Saat Anda ingin kemajuan sesi dicatat di jurnal developer.

Link skill

https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-finish-work/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-finish-work/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œSaya sudah selesai untuk hari ini. Arsipkan tugas yang sudah selesai dan tuliskan apa yang kita kerjakan di jurnal saya.โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent memeriksa tugas saat ini dan status git, memisahkan pekerjaan Anda dari perubahan yang tidak terkait, mengarsipkan tugas yang selesai setelah Anda konfirmasi, lalu mencatat sesi di jurnal. Commit dilakukan lebih awal dalam alur kerja, bukan di sini.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.

Pertanyaan umum

Apakah ini melakukan commit kode saya?

Tidak. Commit dilakukan lebih awal dalam alur kerja, dan langkah ini hanya menutup sesi.

Apakah tugas yang belum selesai akan diarsipkan?

Tidak. Tugas lain yang sudah selesai hanya diarsipkan jika Anda konfirmasi, dan jawaban defaultnya adalah tidak.

Di mana sesi dicatat?

Di jurnal developer yang disimpan di folder workspace Trellis.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
15k
Peringkat
#11030
Lisensi
AGPL-3.0
Diperbarui
29/9/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa