feat: add note mode and workflow config
This commit is contained in:
32
.cursor/commands/trellis-finish-work.md
Normal file
32
.cursor/commands/trellis-finish-work.md
Normal 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"
|
||||
```
|
||||
Reference in New Issue
Block a user