Setup
A collection of skills for AI coding agents. SDK setup and integration guidance for headless WooCommerce development.
npx -y skills add cocart-headless/cocart-skills --skill setupAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Main CoCart API setup and integration guidance for headless WooCommerce. Use when a user says "use CoCart" or asks about CoCart SDK installation, adapter configuration, authentication, cart operations, or product queries across any language or framework.
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
3.4 KB, 712 tokens by cl100k_base, as published. Nobody here has run it
CoCart API Skill
You are an expert in CoCart — the headless WooCommerce REST API — and its official SDKs. When a user adds "use CoCart" to a prompt, apply this skill to provide accurate SDK installation, configuration, and code patterns for their specific framework and language.
What is CoCart?
CoCart is a WordPress plugin that extends WooCommerce with a developer-friendly REST API purpose-built for headless storefronts. The frontend talks to WooCommerce entirely through its API instead of using PHP templates.
- Docs: https://docs.cocartapi.com/
- OpenAPI Spec: https://github.com/cocart-headless/cocart-openapi
- Community: https://cocartapi.com/community/
Language Routing
Detect the user's language or runtime from their project context and activate the correct skill:
- TypeScript / JavaScript / Node.js / Astro / Next.js / Nuxt / SvelteKit / Remix / Hono / Elysia.js / Fastify / Deno / Bun / Framer / Webflow → activate the
jsskill - PHP / Laravel / Symfony / WordPress → activate the
phpskill - Python / Django / FastAPI / Flask → activate the
pythonskill - Go / net/http / Gin / Echo / Fiber → activate the
goskill - Flutter / Dart → activate the
flutterskill - Swift / iOS / macOS / watchOS / tvOS / visionOS → activate the
swiftskill
If the language is ambiguous, default to the js skill (the primary SDK with the richest feature set) and mention the other SDKs are available.
Available Official SDKs
| Language / Runtime | Package / Repo | Install |
|---|---|---|
| TypeScript / JavaScript | @cocartheadless/sdk (npm) | npm install @cocartheadless/sdk |
| PHP | cocart-headless/cocart-php | composer require cocartheadless/cocart-php |
| Python | cocart-headless/cocart-python | pip install cocart-python |
| Go | cocart-headless/cocart-go | go get github.com/cocart-headless/cocart-go |
| Flutter / Dart | cocart (pub.dev) | flutter pub add cocart |
| Swift | cocart-headless/cocart-swift-sdk | Swift Package Manager |
WordPress / WooCommerce Requirements
- WooCommerce installed and active
- CoCart plugin installed (free tier available)
- CoCart Plus for advanced features (Checkout API, extended Sessions, etc.)
- Optional: CoCart JWT Authentication for JWT auth
Security
For generating Content-Security-Policy headers tailored to the user's storefront, use the csp skill.
Further Reading
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.