- Run
gctree statusand state the active gc-branch. - Understand what changed — read the user's request, inspect relevant code or docs if needed, and determine the right content to capture.
- Decide category and path automatically based on content — never ask the user about scope or placement:
docs/workflows/<name>.md— cross-repo action sequences, step-by-step proceduresdocs/conventions/<repo>.md— code patterns, naming, validation, DTO/service conventions for a repodocs/repos/<repo>.md— repo role, key paths, cross-repo dependenciesdocs/domain/<concept>.md— domain terms, acronyms, business logicdocs/infra/<topic>.md— infra, deployment, environment configdocs/role/<name>.md— team member roles, responsibilities
- Write a
## Summarythat is actionable: actual patterns/commands/constraints a developer needs — not a sentence about what the doc covers. - Create a temporary JSON file with the updated
docs[]and rungctree __apply-update --input <temp-file>. - Run
gctree verify-onboarding --branch <gc-branch>and inspect the output:- Check that every updated doc appears in the verified doc list.
- Check that index entries for the new content exist and are searchable (not just generic titles).
- Check that no doc has
category: "general"— reassign to correct category if so. - Check that important concepts from the update are present as index labels — if missing, re-apply with added index entries.
- Self-heal any issues without asking the user: fix category, add index entries, re-run
gctree __apply-update, re-verify.
- Show the user which docs were updated and confirm the index now covers the new content.
Source: handsupmin/gc-tree — distributed by TomeVault.