AI coding assistant skills for building applications with Cosmic headless CMS.
Install skills for your AI coding assistant using skills:
npx skills add cosmicjs/skillsWorks with: Cursor, Claude Code, GitHub Copilot, Windsurf, Gemini, and 16+ other agents.
- SDK-first development with
@cosmicjs/sdk - Objects API - Create, read, update, delete content
- Object Types - Content modeling with Metafields
- Media API - Upload and manage files/images
- Queries - MongoDB-style filtering and search
- AI Generation - Text, images, and video generation
- Framework patterns - Next.js, React, and more
import { createBucketClient } from '@cosmicjs/sdk'
const cosmic = createBucketClient({
bucketSlug: 'your-bucket',
readKey: 'your-read-key'
})
// Get blog posts
const { objects: posts } = await cosmic.objects
.find({ type: 'posts' })
.props(['title', 'slug', 'metadata'])
.limit(10)MIT