← ClaudeAtlas

contentrain-contentlisted

Create and manage content entries for existing Contentrain models. Use when adding entries to collections, populating singletons, writing documents, or managing dictionary keys.
Contentrain/ai · ★ 4 · AI & Automation · score 73
Install: claude install-skill Contentrain/ai
# Skill: Create Content for Existing Models > Generate and save content entries for models already defined in the project. --- ## When to Use The user wants to create new content, add entries to a collection, populate a singleton, or says something like "add a blog post", "create content", "fill in the hero section". --- ## MUST Rules - MUST call `contentrain_describe` before writing content (know the schema) - MUST provide ALL required fields in entries - MUST create entries for ALL supported locales when model has `i18n: true` - MUST NOT set system fields (id, slug, createdAt, updatedAt, status, source) - MUST run `npx contentrain generate` after adding new models or changing fields --- ## Steps ### 1. Check Project State Call `contentrain_status` to get the full project context: - Confirm the project is initialized. - List available models, their kinds, domains, and field counts. - Note supported locales and the source locale. - Check for any pending changes or validation errors. If `.contentrain/` does not exist, stop and suggest running `/contentrain-init` first. ### 2. Identify the Target Model If the user specified a model, use it. Otherwise: - Present the list of available models from status. - Ask the user which model to create content for. - If the user describes content without naming a model (e.g., "write a blog post about X"), infer the model from context. ### 3. Read the Model Definition Call `contentrain_describe(model: "<model-id>", include_s