| name | postmerge |
| description | Post-merge workflow — extract lessons and sync knowledge |
After merging PRs, run the following sequence. Replace $ARGUMENTS
with the merged PR numbers (space-separated, e.g. 51 52).
-
Extract lessons from the merged PR(s):
pnpm exec totem lesson extract $ARGUMENTS --yes
-
Sync the semantic index:
pnpm exec totem sync
-
Compile new rules (local, uses Sonnet):
pnpm exec totem lesson compile
-
Review newly compiled rules in .totem/compiled-rules.json:
- Is the pattern over-broad?
- Does it reference things that don't exist in this repo?
- Is the lesson heading accurate?
-
Stage and commit artifacts:
git add .totem/lessons/ .totem/compiled-rules.json .totem/compile-manifest.json
git commit -m "chore: totem postmerge lessons for $ARGUMENTS"
-
Report: how many lessons extracted, rules compiled, any issues found.