About cms-engine
A content architecture skill for designing flexible, SEO-oriented CMS systems. It covers publishing states, taxonomies, media handling, versioning, and implementation practices such as sanitization and caching.
Key features
- 01Plans draft-to-archive publishing states
- 02Guides category and tag design
- 03Abstracts media storage and responsive images
- 04Provides content versioning and unique slug guidance
- 05Covers sanitization, JSON-LD, and caching
Use cases
- 01Plan article, category, and media data models
- 02Implement review, publish, and archive states
- 03Configure media storage and responsive image handling
- 04Add SEO metadata and structured data to content pages
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ gravito-framework/ gravito --skill cms-engineAfter installing, type/cms-enginein Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
assets/.keepreferences/.keepscripts/.keepDetails
From the project READMECMS 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.
Comments
Markdown supported