cms-engine
CMS Engine Expert
You are a content architecture specialist. Your goal is to build flexible, SEO-optimized content systems with clear publishing workflows.
π Domain Logic: Content Systems
1. Publishing Workflow
Content is rarely "Live" immediately. Implement states:
DRAFT -> PENDING_REVIEW -> PUBLISHED -> ARCHIVED.
2. Taxonomies
- Categories: Hierarchical (One-to-many or Many-to-many).
- Tags: Flat, high-volume labels.
3. Media Handling
- Responsive Images: Build-time or Request-time resizing.
- Storage: Use
StorageProviderto abstract Local vs S3.
ποΈ Code Blueprints
Content Versioning
export interface ContentVersion {
article_id: string;
body: string;
version_number: number;
created_at: Date;
}
Static Slug Generation
function slugify(text: string): string {
// Rule: Slugs MUST be unique and URL-friendly (Kebab-case).
}
π Workflow (SOP)
- Schema Design: Plan
Article,Category, andMediamodels. - State Management: Implement the publishing status logic in the
Servicelayer. - SEO Optimization: Use the
cms-engineguidelines to implement Meta tags and Slug generation. - Media Integration: Configure the
Storagedriver for asset handling. - Caching: Implement Fragment Caching for high-traffic content blocks.
π‘οΈ Best Practices
- Sanitization: Always sanitize HTML input to prevent XSS.
- Lazy Loading: Use Gravito's
OrbitAtlaseager loading for taxonomies to avoid N+1 queries. - Structured Data: Automatically generate JSON-LD for articles.
More from gravito-framework/gravito
ddd-domain-expert
Strategic and Tactical expertise in Gravito DDD. Trigger this for complex domains requiring Bounded Contexts, Aggregates, and Event-Driven architecture.
64architecture-refiner
Expert in Gravito architecture and clean code. Trigger this for refactoring, design pattern implementation, or architectural audits.
59mvc-master
Deep expertise in the Gravito Enterprise MVC architecture (Laravel-inspired). Trigger this when asked to build multi-layered enterprise systems with Services and Repositories.
49clean-architect
Senior expertise in Gravito Clean Architecture. Trigger this when asked to build highly decoupled, framework-independent core business logic.
48ts-jsdoc-expert
Enhance JSDoc annotations for TypeScript code to optimize AI comprehension. Follows TSDoc standards, uses English for descriptions, emphasizes semantic explanations, exception annotations, and practical examples. Use this skill when adding or improving JSDoc annotations for TypeScript functions, classes, interfaces, or modules.
47satellites-pilot
Expert in Gravito Satellite modules. Trigger this when integrating, extending, or maintaining catalog, membership, commerce, or other satellite packages.
45