| name | update-docs |
|---|---|
| description | Sync the architecture docs in /docs/ with recent code changes. Use when invoked manually as /update-docs, and automatically at the end of any turn that modified files under tlseal-fe/ or tlseal-be/. Inspects the diff vs main, decides which doc files are affected, and edits only those. |
Keep /docs/ in sync with code changes in tlseal-fe/ and tlseal-be/.
docs/architecture-overview.md— tech stack, high-level architecture, project structure, data flowdocs/domain-model.md— card data model, attributes, typed properties, dependenciesdocs/frontend.md— frontend file structure, components, state management, UI patternsdocs/backend-and-infrastructure.md— backend file structure, API routes, Lambda handlers, CDKdocs/view-system.md— ViewDescriptor, view rendering, positioningdocs/view-editor.md— view editor UIdocs/interaction-conventions.md— drag/select/click/touch conventionsdocs/working-with-yjs.md— Yjs usage patterns
- Get the diff. Run
git diff main...HEADandgit diff(unstaged) andgit statusto see all changed files intlseal-fe/andtlseal-be/. If invoked manually with no fe/be changes, also consider staged + unstaged changes anywhere. - Classify changes. For each changed file, decide which docs (from the list above) could be affected. Skip changes that are pure refactors with no observable behavior, type, route, or structural impact.
- For each potentially affected doc:
- Read the doc.
- Read the changed source files (only the parts relevant to the doc's scope).
- Decide if the doc is now inaccurate or incomplete. If yes, edit it. If no, skip it.
- Do not invent. Never document something not present in the code. If unsure, read more code rather than guessing.
- Stay in scope. Don't restructure docs, don't add sections that weren't requested, don't fix unrelated drift unless trivially adjacent. Minimum diff to restore accuracy.
- Report. At the end, list which docs you updated (with one-line reason each) and which you considered but left alone.
- Don't run formatters, linters, or tests — the harness handles those.
- Don't commit. Leave changes staged for the user to review.
- Don't update CHANGELOG.md or README.md.