feat: add note mode and workflow config

This commit is contained in:
shiyue
2026-06-12 16:39:44 +08:00
parent 5308a10b52
commit 8b2173be8f
93 changed files with 15292 additions and 50 deletions

View File

@@ -0,0 +1,32 @@
# Finish Work
Wrap up the current session.
## Step 1: Quality Gate
`trellis-check` should have already run in Phase 3. If not, trigger it now and do not proceed until lint, type-check, tests, and spec compliance pass.
## Step 2: Remind User to Commit
If there are uncommitted changes:
> "Please review the changes and commit when ready."
Do NOT run `git commit` — the human commits after testing.
## Step 3: Record Session (after commit)
Archive finished tasks (judge by work status, not the `status` field):
```bash
python3 ./.trellis/scripts/task.py archive <task-name>
```
Append a session entry (auto-handles journal rotation, line count, index update):
```bash
python3 ./.trellis/scripts/add_session.py \
--title "Session Title" \
--commit "hash1,hash2" \
--summary "Brief summary"
```