{
  "markdown": "# CoCart Skills\n\nA collection of skills for AI coding agents following the [Agent Skills](https://agentskills.io) format — compatible with [Claude Code](https://claude.ai/code), [GitHub Copilot](https://github.com/features/copilot), [Gemini CLI](https://github.com/google-gemini/gemini-cli), [Cursor](https://cursor.com/), [OpenAI Codex](https://openai.com/codex/), [Windsurf](https://windsurf.com/), [Cline](https://cline.bot/), and any agent that supports the Agent Skills standard.\n\nAdd `use CoCart` to any prompt in your AI coding agent to get accurate SDK installation, adapter configuration, and code patterns for your framework.\n\n## How to Use\n\nAfter installing, just append `use CoCart` to any prompt:\n\n```\nSet up CoCart in my Next.js App Router project. use CoCart\n```\n\n```\nAdd a cart page to my Astro site with CoCart. use CoCart\n```\n\n```\nInstall the CoCart SDK and show me how to list products and handle auth. use CoCart\n```\n\nYour AI coding agent of choice will automatically apply the correct SDK, adapter, and patterns for your framework.\n\nYou can also invoke skills directly:\n\n| Command | Description |\n|---|---|\n| `/cocart:setup` | Main CoCart API setup and integration guidance |\n| `/cocart:js` | TypeScript / JavaScript SDK patterns |\n| `/cocart:go` | Go SDK patterns |\n| `/cocart:php` | PHP SDK patterns |\n| `/cocart:python` | Python SDK patterns |\n| `/cocart:flutter` | Flutter / Dart SDK patterns |\n| `/cocart:swift` | Swift SDK patterns (iOS, macOS, etc.) |\n| `/cocart:csp` | Generate Content-Security-Policy headers for your storefront |\n\n## Install\n\n### Claude Code\n\n```bash\n# From the marketplace\n/plugin install cocart\n\n# Or from this repo directly\n/plugin marketplace add cocart-headless/cocart-skills\n/plugin install cocart@cocart-headless\n```\n\n### GitHub Copilot (VS Code)\n\nClone this repo into your project's `.github/skills/` directory, or add the `.agents/skills/` path to your VS Code `chat.skillsLocations` setting. Ensure `chat.useAgentSkills` is enabled.\n\n### Gemini CLI\n\nSkills are auto-discovered from `.agents/skills/` when this repo is cloned as a project dependency or placed in `~/.gemini/skills/`.\n\n### Cursor\n\n```bash\n# From the marketplace (when available)\n/plugin install cocart\n\n# Or from this repo directly\n/plugin marketplace add cocart-headless/cocart-skills\n/plugin install cocart@cocart-headless\n```\n\nAlso detected automatically via `.cursor-plugin/plugin.json` when this repo is cloned into your project.\n\n### OpenAI Codex\n\nDetected automatically via `.codex-plugin/plugin.json` when this repo is cloned into your project.\n\n### Windsurf / Cline / Other Agents\n\nAny agent that supports the [Agent Skills](https://agentskills.io) standard will discover skills from `.agents/skills/`. Clone this repo and the skills are ready to use.\n\n### Manual\n\n```bash\ngit clone https://github.com/cocart-headless/cocart-skills.git\n# Skills are in skills/ and .agents/skills/\n```\n\n## What It Covers\n\n- SDK installation for all package managers (npm, yarn, pnpm, bun, CDN)\n- Framework adapters for TypeScript/JavaScript: **Astro, Next.js, Nuxt, SvelteKit, Remix, Hono, Elysia.js, Fastify, Deno, Framer, Webflow**\n- Authentication: guest sessions, Basic Auth, consumer keys, JWT with auto-refresh\n- Cart operations: add, update, remove, coupons, clear\n- Products API: list, filter, search\n- Session and encrypted localStorage setup\n- Environment variable patterns\n- Error handling\n- Content-Security-Policy header generation tailored to your framework and payment gateways\n- Links to full docs and OpenAPI spec\n\n## Supported Platforms\n\n| Directory | Platforms |\n|---|---|\n| `skills/` | Canonical source — all skills live here |\n| `.agents/skills/` | GitHub Copilot, Gemini CLI, Cline, Windsurf, OpenCode, and other Agent Skills-compatible agents |\n| `.claude-plugin/` | Claude Code |\n| `.cursor-plugin/` | Cursor |\n| `.codex-plugin/` | OpenAI Codex |\n\n## Contributing\n\n**Always edit skills in the `skills/` directory.** The `.agents/skills/` directory is an auto-synced copy maintained by a [GitHub Actions workflow](.github/workflows/sync-skills.yml) — do not edit it directly. Changes pushed to `skills/` on the `main` branch will be synced automatically.\n\n## SDKs\n\n| Language | Package |\n|---|---|\n| TypeScript / JavaScript | [`@cocartheadless/sdk`](https://github.com/cocart-headless/cocart-js) |\n| PHP | [`cocart-headless/cocart-php`](https://github.com/cocart-headless/cocart-php) |\n| Python | [`cocart-headless/cocart-python`](https://github.com/cocart-headless/cocart-python) |\n| Go | [`cocart-headless/cocart-go`](https://github.com/cocart-headless/cocart-go) |\n| Flutter | [`cocart-headless/cocart-flutter-sdk`](https://github.com/cocart-headless/cocart-flutter-sdk) |\n| Swift | [`cocart-headless/cocart-swift-sdk`](https://github.com/cocart-headless/cocart-swift-sdk) |\n\n## Links\n\n- [CoCart Docs](https://docs.cocartapi.com/)\n- [OpenAPI Spec](https://github.com/cocart-headless/cocart-openapi)\n- [GitHub Organisation](https://github.com/cocart-headless)\n- [Community Discord](https://cocartapi.com/community/)\n\n## License\n\nMIT\n",
  "bytes": 5072,
  "sha": "e248a0f34012d2cd9f456fd5f0c4ce8f9da227c255861eab916cb9f3e751bc85",
  "repo_slug": "cocart-headless/claude-plugin",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_cocart_headless_claude_plugin_cocart_api_ebf732c7/readme"
}