From cf-saas-stack
Documentation hierarchy and maintenance rules for context docs and architecture files
How this skill is triggered — by the user, by Claude, or both
Slash command
/cf-saas-stack:context-docsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Source of Truth**: `.cursor/context/` folder contains detailed documentation:
Source of Truth: .cursor/context/ folder contains detailed documentation:
api.md - tRPC routes, auth endpoints, procedure types, error responsesarchitecture.md - System overview, data flow patterns, layer responsibilitieshigh-level-architecture.md - Living visual doc with route map, feature flows, data relationships, changelog (canonical version at docs/architecture/overview.md)data-models.md - Schema, entity relationships, tables overview, migrationsfeatures.md - Feature documentation with flow diagrams and key filesintegrations.md - External services (Cloudflare, Better Auth, Stripe, PostHog)security.md - Auth flow, session management, authorization, RBACuser-journeys.md - User flows, admin journeys, error statesQuick Reference: .cursor/context.md is a compressed index that:
.cursor/context/features.mdapi.mdarchitecture.mddata-models.mdintegrations.mdsecurity.mduser-journeys.md.cursor/context/ files (dual sync)app/app.css (color variables, typography)[Index Name]|root: path/to/files/
|IMPORTANT: Key instruction
|file1.ext: brief description
|subdir/:{file-a.ext,file-b.ext,...}
docs/)The docs/ directory contains human-readable documentation visible in the admin docs viewer at /admin/docs:
docs/
|-- architecture/ # System architecture docs (mirrors .cursor/context/)
| |-- overview.md # Master doc: route map, feature flows, changelog
| |-- system.md # System architecture (from architecture.md)
| |-- api.md # API reference (from api.md)
| |-- data-models.md # Data models (from data-models.md)
| |-- features.md # Feature catalog (from features.md)
| |-- integrations.md # Integrations (from integrations.md)
| |-- security.md # Security model (from security.md)
| |-- user-journeys.md # User journeys (from user-journeys.md)
|-- design/ # Design system docs
| |-- design-system-overview.md # Colors, typography, components
|-- features/ # Feature documentation
|-- ideas/ # Ideas and brainstorms
|-- meetings/ # Meeting notes
|-- plans/ # Roadmaps and plans
|-- releases/ # Release notes
.cursor/context/ files are optimized for AI agent consumption (compressed, indexed).
docs/architecture/ files are optimized for human reading (prose, Mermaid diagrams, frontmatter).
When updating .cursor/context/, also update the corresponding docs/architecture/ file.
When making design system changes, update docs/design/design-system-overview.md.
Always add a changelog entry to docs/architecture/overview.md.
npx claudepluginhub casper-studios/casper-marketplace --plugin cf-saas-stackCreates, reorganizes, or updates documentation for monorepos or single-project repos with root docs indexes, cross-repo maps, and detailed module/feature docs.
Generates and maintains docs/ folder (architecture, ADRs, feature specs) and README.md with markdown formatting rules, imperative style, and constraint labeling.