ui/.cursor/skills/maintain-documentation/SKILL.md
Keeps project documentation aligned with implementation. Use when adding a new feature, changing architecture, adding a module or store slice, adding an implementation (e.g. SSE/Kerberos-like), or when the user asks to update docs, align documentation with code, or keep docs in sync.
npx skillsauth add glassflow/clickhouse-etl maintain-documentationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Apply this skill when implementing a new feature or changing behavior so that both docs/ (canonical truth) and .cursor/ (rules and summaries) stay accurate and discoverable.
docs/ owns full architecture, design system, module behavior, implementations. .cursor/ owns operational rules and summaries + links only. Rule: .cursor/architecture/* must not contain unique facts that do not exist in docs/; add to docs first, then summarize or link from .cursor.| Layer | Canonical (add here first) | .cursor (summaries + links only) |
| --------------------------------------------- | ------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| Full architecture | docs/architecture/ARCHITECTURE_OVERVIEW.md | .cursor/architecture/ARCHITECTURE_OVERVIEW.md (modules/slices/critical flows lists + link to docs) |
| Design system / tokens | docs/architecture/DESIGN_SYSTEM.md | .cursor/styling.mdc, .cursor/architecture/THEMING_ARCHITECTURE.md (point to docs) |
| Module behavior | docs/modules/<module>/ (e.g. one or more .md per feature) | .cursor/architecture/MODULE_ARCHITECTURE.md (one-line entry), CONTEXT_MAP row |
| Implementations (SSE, auth, store mode, etc.) | docs/implementations/<name>.md | .cursor/architecture/IMPLEMENTATIONS_INDEX.md (row + constraint/risk + link) |
| State / store | Reflected in docs/architecture/ARCHITECTURE_OVERVIEW.md (store section) | .cursor/architecture/STATE_MANAGEMENT.md, .cursor/state-management.mdc (slice names), ARCHITECTURE_OVERVIEW store list |
docs/modules/<module-name>/ with at least one doc (e.g. MODULE_NAME.md): component hierarchy, key files, state/API, types. Follow existing module docs (e.g. docs/modules/kafka/, docs/modules/notifications/) for structure..cursor/architecture/MODULE_ARCHITECTURE.md under "Notable modules". Add the module to the "Modules" list in .cursor/architecture/ARCHITECTURE_OVERVIEW.md. Add a row to .cursor/CONTEXT_MAP.md ("When you work on…" → "Load first"). Add the module to the "Modules" table in docs/README.md if not already there.notify() toast/banner/modal system; see .cursor/architecture/NOTIFICATION_CENTER.md vs IN_APP_NOTIFICATIONS.md.docs/design/DESIGN_PRINCIPLES.md.docs/architecture/ARCHITECTURE_OVERVIEW.md (store structure / Service responsibilities or equivalent)..cursor/architecture/STATE_MANAGEMENT.md. Add the slice name to the list in .cursor/state-management.mdc. Add the slice to the "Store slices" list in .cursor/architecture/ARCHITECTURE_OVERVIEW.md. If the slice participates in pipeline hydration, add it to the Hydration section in STATE_MANAGEMENT.md and to hydrateSection options.When adding something that looks like normal UI but has specific constraints (e.g. a new streaming mechanism, auth path, or feature-flag–driven behavior):
docs/implementations/<NAME>.md (overview, architecture, key files, constraints/risks)..cursor/architecture/IMPLEMENTATIONS_INDEX.md with topic, short description, constraint/risk one-liner, and link to the doc. Optionally add the flow to the "Critical flows index" in .cursor/architecture/ARCHITECTURE_OVERVIEW.md.docs/architecture/DESIGN_SYSTEM.md. Do not add token or variant definitions only in .cursor..cursor/styling.mdc and .cursor/architecture/THEMING_ARCHITECTURE.md as directives and summaries that point to DESIGN_SYSTEM.md; no new unique token names or values only in .cursor.docs/architecture/ARCHITECTURE_OVERVIEW.md (tech stack, directory tree, data flows, store, API, invariants as needed)..cursor/architecture/ARCHITECTURE_OVERVIEW.md: ensure the modules list, store slices list, and "Critical flows index" match reality and link to docs. Do not add new architectural facts only in .cursor.docs/architecture/, docs/modules/, or docs/implementations/)..cursor/architecture/* only summarizes or links; no unique facts that exist only there.ui/).cursor/index.mdcdocs/README.md.cursor/CONTEXT_MAP.md.cursor/architecture/ARCHITECTURE_OVERVIEW.mddocs/architecture/ARCHITECTURE_OVERVIEW.mddocs/architecture/DESIGN_SYSTEM.md.cursor/architecture/IMPLEMENTATIONS_INDEX.md.cursor/architecture/MODULE_ARCHITECTURE.md.cursor/architecture/STATE_MANAGEMENT.md, .cursor/state-management.mdctesting
Loads and applies product/UX design principles and design system when designing or implementing features. Use when designing a new feature, implementing a new feature, or when the user asks for design or UX input.
development
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
development
Upgrade Next.js to the latest version following official migration guides and codemods