Skip to content

cosmicjs/skills

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cosmic Agent Skills

AI coding assistant skills for building applications with Cosmic headless CMS.

Installation

Install skills for your AI coding assistant using skills:

npx skills add cosmicjs/skills

Works with: Cursor, Claude Code, GitHub Copilot, Windsurf, Gemini, and 16+ other agents.

What This Skill Covers

  • 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

Quick Example

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)

Resources

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors