contentrainlisted
Install: claude install-skill Contentrain/ai
# Contentrain Skill
Contentrain is a Git-based, AI-first content management system. Content lives in `.contentrain/` as JSON and Markdown files, managed through MCP tools. This skill covers architecture, content formats, and tool usage.
## Ecosystem Overview
Contentrain consists of 6 packages that work together:
| Package | Role | How agent uses it |
|---|---|---|
| @contentrain/mcp | 22 MCP tools (scan, apply, validate, merge, reconcile, doctor...) | MCP tool calls |
| contentrain (CLI) | init, serve, generate, doctor, diff, status | Shell commands |
| @contentrain/types | Shared TypeScript contracts | Type safety |
| @contentrain/query | Generated SDK client (Prisma-pattern) | `import from '#contentrain'` |
| @contentrain/rules | Behavioral guardrails (~86 lines, always-loaded) | Auto-loaded by IDE |
| @contentrain/skills | Procedural workflows (this file) | On-demand by agent |
### CLI Serve — Review & Approval Bridge
For workflows requiring human review (normalize, content review):
```bash
contentrain serve # http://localhost:3333
```
| Page | When to use |
|---|---|
| /normalize | Extraction/reuse preview and approval |
| /branches | Merge or delete pending branches |
| /validate | Review validation errors visually |
| /content | Browse models and entries |
## Architecture: Agent vs MCP
The system separates **intelligence** (agent) from **infrastructure** (MCP tools).
**Agent responsibilities:**
- Analyze the project (tech stack, architecture, existing patter