[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7APZ5PF3YQVS1GSQKAWQCWK":3,"skill-same:01M7APZ5PF3YQVS1GSQKAWQCWK":86},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":51,"commitSha":52,"skillDirectory":5,"forksCount":13,"repositoryHtmlUrl":53,"repositoryHomepageUrl":6,"ownerHtmlUrl":54,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":55,"install":56,"resources":69},"01M7APZ5PF3YQVS1GSQKAWQCWK","sveltia-cms",null,"Complete Sveltia CMS skill for lightweight, Git-backed content management.\nSveltia is the modern successor to Decap\u002FNetlify CMS with 5x smaller bundle (300 KB),\nfaster GraphQL-based performance, and solves 260+ predecessor issues.\n\nUse this skill when setting up Git-based CMS for static sites (Hugo, Jekyll,\n11ty, Gatsby, Astro, SvelteKit, Next.js), blogs, documentation sites, marketing\nsites, or migrating from Decap\u002FNetlify CMS. Framework-agnostic with first-class\ni18n support and mobile-friendly editing interface.\n\nPrevents 8+ common errors including OAuth authentication failures, TOML formatting\nissues, YAML parse errors, CORS\u002FCOOP policy problems, content not listing, script\nloading errors, image upload failures, and deployment problems. Includes complete\n\nKeywords: Sveltia CMS, Git-backed CMS, Decap CMS alternative, Netlify CMS alternative, headless CMS, static site CMS, Hugo CMS, Jekyll CMS, 11ty CMS, Gatsby CMS, Astro CMS, SvelteKit CMS, Next.js CMS, content management, visual editing, markdown CMS, YAML frontmatter, i18n CMS, multilingual CMS, mobile-friendly CMS, OAuth authentication CMS, TOML config, admin\u002Fconfig.yml, GraphQL performance, cloudflare workers oauth proxy, OAuth authentication failure, YAML parse error, CORS COOP policy, content not listing, image upload failures\nCloudflare Workers OAuth proxy setup guide.","davidanthonyn\u002Fclaude-skills","davidanthonyn","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F55152980?v=4","01M7AJ4MY8S5C2RJCGX6626J0G","01M7AJ7JE1K98GRPH9Z57Z0R0W",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fsveltia-cms\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: sveltia-cms\ndescription: |\n  Complete Sveltia CMS skill for lightweight, Git-backed content management.\n  Sveltia is the modern successor to Decap\u002FNetlify CMS with 5x smaller bundle (300 KB),\n  faster GraphQL-based performance, and solves 260+ predecessor issues.\n\n  Use this skill when setting up Git-based CMS for static sites (Hugo, Jekyll,\n  11ty, Gatsby, Astro, SvelteKit, Next.js), blogs, documentation sites, marketing\n  sites, or migrating from Decap\u002FNetlify CMS. Framework-agnostic with first-class\n  i18n support and mobile-friendly editing interface.\n\n  Prevents 8+ common errors including OAuth authentication failures, TOML formatting\n  issues, YAML parse errors, CORS\u002FCOOP policy problems, content not listing, script\n  loading errors, image upload failures, and deployment problems. Includes complete\n\n  Keywords: Sveltia CMS, Git-backed CMS, Decap CMS alternative, Netlify CMS alternative, headless CMS, static site CMS, Hugo CMS, Jekyll CMS, 11ty CMS, Gatsby CMS, Astro CMS, SvelteKit CMS, Next.js CMS, content management, visual editing, markdown CMS, YAML frontmatter, i18n CMS, multilingual CMS, mobile-friendly CMS, OAuth authentication CMS, TOML config, admin\u002Fconfig.yml, GraphQL performance, cloudflare workers oauth proxy, OAuth authentication failure, YAML parse error, CORS COOP policy, content not listing, image upload failures\n  Cloudflare Workers OAuth proxy setup guide.\nlicense: MIT\nallowed-tools: ['Read', 'Write', 'Edit', 'Bash', 'Glob', 'Grep']\nmetadata:\n  token_savings: \"60-65%\"\n  errors_prevented: 8\n  package_version: \"0.113.5\"\n  last_verified: \"2025-10-29\"\n  frameworks: [\"Hugo\", \"Jekyll\", \"11ty\", \"Gatsby\", \"Astro\", \"Next.js\", \"SvelteKit\", \"Framework-agnostic\"]\n  deployment: [\"Cloudflare Workers\", \"Vercel\", \"Netlify\", \"GitHub Pages\", \"Cloudflare Pages\"]\n---\n\n# Sveltia CMS Skill\n\nComplete skill for integrating Sveltia CMS into static site projects.\n\n---\n\n## What is Sveltia CMS?\n\n**Sveltia CMS** is a Git-based lightweight headless content management system built from scratch as the modern successor to Decap CMS (formerly Netlify CMS). It provides a fast, intuitive editing interface for content stored in Git repositories.\n\n### Key Features\n\n1. **Lightweight & Fast**\n   - Bundle size: \u003C500 KB (minified\u002Fbrotlied) vs 1.5-2.6 MB for competitors\n   - Built with Svelte compiler (no virtual DOM overhead)\n   - Uses GraphQL APIs for instant content fetching\n   - Relevance-based search across all content\n\n2. **Modern User Experience**\n   - Intuitive admin interface with full viewport utilization\n   - Dark mode support (follows system preferences)\n   - Mobile and tablet optimized\n   - Drag-and-drop file uploads with multiple file support\n   - Real-time preview with instant updates\n\n3. **Git-Native Architecture**\n   - Content stored as Markdown, MDX, YAML, TOML, or JSON\n   - Full version control and change history\n   - No vendor lock-in - content lives with code\n   - Supports GitHub, GitLab, Gitea, Forgejo backends\n\n4. **Framework-Agnostic**\n   - Served as vanilla JavaScript bundle\n   - Works with Hugo, Jekyll, 11ty, Gatsby, Astro, Next.js, SvelteKit\n   - No React, Vue, or framework runtime dependencies\n   - Compatible with any static site generator\n\n5. **First-Class Internationalization**\n   - Multiple language support built-in\n   - One-click DeepL translation integration\n   - Locale switching while editing\n   - Flexible i18n structures (files, folders, single file)\n\n6. **Built-In Image Optimization**\n   - Automatic WebP conversion\n   - Client-side resizing and optimization\n   - SVG optimization support\n   - Configurable quality and dimensions\n\n### Current Versions\n\n- **@sveltia\u002Fcms**: 0.113.5 (October 2025)\n- **Status**: Public Beta (v1.0 expected early 2026)\n- **Maturity**: Production-ready (265+ issues solved from predecessor)\n\n---\n\n## When to Use This Skill\n\n### ✅ Use Sveltia CMS When:\n\n1. **Building Static Sites**\n   - Hugo blogs and documentation\n   - Jekyll sites and GitHub Pages\n   - 11ty (Eleventy) projects\n   - Gatsby marketing sites\n   - Astro content-heavy sites\n\n2. **Non-Technical Editors Need Access**\n   - Marketing teams managing pages\n   - Authors writing blog posts\n   - Content teams without Git knowledge\n   - Clients needing easy content updates\n\n3. **Git-Based Workflow Desired**\n   - Content versioning through Git\n   - Content review through pull requests\n   - Content lives with code in repository\n   - CI\u002FCD integration for deployments\n\n4. **Lightweight Solution Required**\n   - Performance-sensitive projects\n   - Mobile-first editing needed\n   - Quick load times critical\n   - Minimal bundle size important\n\n5. **Migrating from Decap\u002FNetlify CMS**\n   - Existing config.yml can be reused\n   - Drop-in replacement (change 1 line)\n   - Better performance and UX\n   - Active maintenance and bug fixes\n\n### ❌ Don't Use Sveltia CMS When:\n\n1. **Real-Time Collaboration Needed**\n   - Multiple users editing simultaneously (Google Docs-style)\n   - Use Sanity, Contentful, or TinaCMS instead\n\n2. **Visual Page Building Required**\n   - Drag-and-drop page builders needed\n   - Use Webflow, Builder.io, or TinaCMS (React) instead\n\n3. **Highly Dynamic Data**\n   - E-commerce with real-time inventory\n   - Real-time dashboards or analytics\n   - Use traditional databases (D1, PostgreSQL) instead\n\n4. **React-Specific Visual Editing Needed**\n   - In-context component editing\n   - Use TinaCMS instead (React-focused)\n\n### Sveltia CMS vs TinaCMS\n\n**Use Sveltia** for:\n- Hugo, Jekyll, 11ty, Gatsby (non-React SSGs)\n- Traditional CMS admin panel UX\n- Lightweight bundle requirements\n- Framework-agnostic projects\n\n**Use TinaCMS** for:\n- React, Next.js, Astro (React components)\n- Visual in-context editing\n- Schema-driven type-safe content\n- Modern developer experience with TypeScript\n\n**Both are valid** - Sveltia complements TinaCMS for different use cases.\n\n---\n\n## Setup Patterns by Framework\n\nUse the appropriate setup pattern based on your framework choice.\n\n### 1. Hugo Setup (Most Common)\n\nHugo is the most popular static site generator for Sveltia CMS.\n\n**Steps:**\n\n1. **Create admin directory:**\n   ```bash\n   mkdir -p static\u002Fadmin\n   ```\n\n2. **Create admin index page:**\n   ```html\n   \u003C!-- static\u002Fadmin\u002Findex.html -->\n   \u003C!doctype html>\n   \u003Chtml lang=\"en\">\n     \u003Chead>\n       \u003Cmeta charset=\"utf-8\" \u002F>\n       \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \u002F>\n       \u003Ctitle>Content Manager\u003C\u002Ftitle>\n     \u003C\u002Fhead>\n     \u003Cbody>\n       \u003Cscript src=\"https:\u002F\u002Funpkg.com\u002F@sveltia\u002Fcms\u002Fdist\u002Fsveltia-cms.js\" type=\"module\">\u003C\u002Fscript>\n     \u003C\u002Fbody>\n   \u003C\u002Fhtml>\n   ```\n\n3. **Create config file:**\n   ```yaml\n   # static\u002Fadmin\u002Fconfig.yml\n   backend:\n     name: github\n     repo: owner\u002Frepo\n     branch: main\n\n   media_folder: static\u002Fimages\u002Fuploads\n   public_folder: \u002Fimages\u002Fuploads\n\n   collections:\n     - name: posts\n       label: Blog Posts\n       folder: content\u002Fposts\n       create: true\n       slug: '{{year}}-{{month}}-{{day}}-{{slug}}'\n       fields:\n         - { label: 'Title', name: 'title', widget: 'string' }\n         - { label: 'Date', name: 'date', widget: 'datetime' }\n         - { label: 'Draft', name: 'draft', widget: 'boolean', default: true }\n         - { label: 'Tags', name: 'tags', widget: 'list', required: false }\n         - { label: 'Body', name: 'body', widget: 'markdown' }\n   ```\n\n4. **Start Hugo dev server:**\n   ```bash\n   hugo server\n   ```\n\n5. **Access admin:**\n   ```\n   http:\u002F\u002Flocalhost:1313\u002Fadmin\u002F\n   ```\n\n**Template**: See `templates\u002Fhugo\u002F`\n\n---\n\n### 2. Jekyll Setup\n\nJekyll is commonly used with GitHub Pages and Sveltia CMS.\n\n**Steps:**\n\n1. **Create admin directory:**\n   ```bash\n   mkdir -p admin\n   ```\n\n2. **Create admin index page:**\n   ```html\n   \u003C!-- admin\u002Findex.html -->\n   \u003C!doctype html>\n   \u003Chtml lang=\"en\">\n     \u003Chead>\n       \u003Cmeta charset=\"utf-8\" \u002F>\n       \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \u002F>\n       \u003Ctitle>Content Manager\u003C\u002Ftitle>\n     \u003C\u002Fhead>\n     \u003Cbody>\n       \u003Cscript src=\"https:\u002F\u002Funpkg.com\u002F@sveltia\u002Fcms\u002Fdist\u002Fsveltia-cms.js\" type=\"module\">\u003C\u002Fscript>\n     \u003C\u002Fbody>\n   \u003C\u002Fhtml>\n   ```\n\n3. **Create config file:**\n   ```yaml\n   # admin\u002Fconfig.yml\n   backend:\n     name: github\n     repo: owner\u002Frepo\n     branch: main\n\n   media_folder: assets\u002Fimages\u002Fuploads\n   public_folder: \u002Fassets\u002Fimages\u002Fuploads\n\n   collections:\n     - name: posts\n       label: Blog Posts\n       folder: _posts\n       create: true\n       slug: '{{year}}-{{month}}-{{day}}-{{slug}}'\n       fields:\n         - { label: 'Layout', name: 'layout', widget: 'hidden', default: 'post' }\n         - { label: 'Title', name: 'title', widget: 'string' }\n         - { label: 'Date', name: 'date', widget: 'datetime' }\n         - { label: 'Categories', name: 'categories', widget: 'list', required: false }\n         - { label: 'Body', name: 'body', widget: 'markdown' }\n   ```\n\n4. **Start Jekyll dev server:**\n   ```bash\n   bundle exec jekyll serve\n   ```\n\n5. **Access admin:**\n   ```\n   http:\u002F\u002Flocalhost:4000\u002Fadmin\u002F\n   ```\n\n**Template**: See `templates\u002Fjekyll\u002F`\n\n---\n\n### 3. 11ty (Eleventy) Setup\n\n11ty works well with Sveltia CMS for flexible static sites.\n\n**Steps:**\n\n1. **Create admin directory:**\n   ```bash\n   mkdir -p admin\n   ```\n\n2. **Create admin index page:**\n   ```html\n   \u003C!-- admin\u002Findex.html -->\n   \u003C!doctype html>\n   \u003Chtml lang=\"en\">\n     \u003Chead>\n       \u003Cmeta charset=\"utf-8\" \u002F>\n       \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \u002F>\n       \u003Ctitle>Content Manager\u003C\u002Ftitle>\n     \u003C\u002Fhead>\n     \u003Cbody>\n       \u003Cscript src=\"https:\u002F\u002Funpkg.com\u002F@sveltia\u002Fcms\u002Fdist\u002Fsveltia-cms.js\" type=\"module\">\u003C\u002Fscript>\n     \u003C\u002Fbody>\n   \u003C\u002Fhtml>\n   ```\n\n3. **Create config file:**\n   ```yaml\n   # admin\u002Fconfig.yml\n   backend:\n     name: github\n     repo: owner\u002Frepo\n     branch: main\n\n   media_folder: src\u002Fassets\u002Fimages\n   public_folder: \u002Fassets\u002Fimages\n\n   collections:\n     - name: blog\n       label: Blog Posts\n       folder: src\u002Fposts\n       create: true\n       slug: '{{slug}}'\n       fields:\n         - { label: 'Title', name: 'title', widget: 'string' }\n         - { label: 'Description', name: 'description', widget: 'text' }\n         - { label: 'Date', name: 'date', widget: 'datetime' }\n         - { label: 'Tags', name: 'tags', widget: 'list', required: false }\n         - { label: 'Body', name: 'body', widget: 'markdown' }\n   ```\n\n4. **Add passthrough copy to `.eleventy.js`:**\n   ```javascript\n   module.exports = function(eleventyConfig) {\n     eleventyConfig.addPassthroughCopy('admin');\n     \u002F\u002F ... rest of config\n   };\n   ```\n\n5. **Start 11ty dev server:**\n   ```bash\n   npx @11ty\u002Feleventy --serve\n   ```\n\n6. **Access admin:**\n   ```\n   http:\u002F\u002Flocalhost:8080\u002Fadmin\u002F\n   ```\n\n**Template**: See `templates\u002F11ty\u002F`\n\n---\n\n### 4. Astro Setup\n\nAstro is a modern framework that works well with Sveltia CMS.\n\n**Steps:**\n\n1. **Create admin directory:**\n   ```bash\n   mkdir -p public\u002Fadmin\n   ```\n\n2. **Create admin index page:**\n   ```html\n   \u003C!-- public\u002Fadmin\u002Findex.html -->\n   \u003C!doctype html>\n   \u003Chtml lang=\"en\">\n     \u003Chead>\n       \u003Cmeta charset=\"utf-8\" \u002F>\n       \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \u002F>\n       \u003Ctitle>Content Manager\u003C\u002Ftitle>\n     \u003C\u002Fhead>\n     \u003Cbody>\n       \u003Cscript src=\"https:\u002F\u002Funpkg.com\u002F@sveltia\u002Fcms\u002Fdist\u002Fsveltia-cms.js\" type=\"module\">\u003C\u002Fscript>\n     \u003C\u002Fbody>\n   \u003C\u002Fhtml>\n   ```\n\n3. **Create config file:**\n   ```yaml\n   # public\u002Fadmin\u002Fconfig.yml\n   backend:\n     name: github\n     repo: owner\u002Frepo\n     branch: main\n\n   media_folder: public\u002Fimages\n   public_folder: \u002Fimages\n\n   collections:\n     - name: blog\n       label: Blog Posts\n       folder: src\u002Fcontent\u002Fblog\n       create: true\n       slug: '{{slug}}'\n       format: mdx\n       fields:\n         - { label: 'Title', name: 'title', widget: 'string' }\n         - { label: 'Description', name: 'description', widget: 'text' }\n         - { label: 'Published Date', name: 'pubDate', widget: 'datetime' }\n         - { label: 'Hero Image', name: 'heroImage', widget: 'image', required: false }\n         - { label: 'Body', name: 'body', widget: 'markdown' }\n   ```\n\n4. **Start Astro dev server:**\n   ```bash\n   npm run dev\n   ```\n\n5. **Access admin:**\n   ```\n   http:\u002F\u002Flocalhost:4321\u002Fadmin\u002F\n   ```\n\n**Template**: See `templates\u002Fastro\u002F`\n\n---\n\n### 5. Framework-Agnostic Setup\n\n**Applies to**: Gatsby, Next.js (SSG mode), SvelteKit, Remix, or any framework\n\n**Steps:**\n\n1. **Determine public directory:**\n   - Gatsby: `static\u002F`\n   - Next.js: `public\u002F`\n   - SvelteKit: `static\u002F`\n   - Remix: `public\u002F`\n\n2. **Create admin directory in public folder:**\n   ```bash\n   mkdir -p \u003Cpublic-folder>\u002Fadmin\n   ```\n\n3. **Create admin index page:**\n   ```html\n   \u003C!doctype html>\n   \u003Chtml lang=\"en\">\n     \u003Chead>\n       \u003Cmeta charset=\"utf-8\" \u002F>\n       \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \u002F>\n       \u003Ctitle>Content Manager\u003C\u002Ftitle>\n     \u003C\u002Fhead>\n     \u003Cbody>\n       \u003Cscript src=\"https:\u002F\u002Funpkg.com\u002F@sveltia\u002Fcms\u002Fdist\u002Fsveltia-cms.js\" type=\"module\">\u003C\u002Fscript>\n     \u003C\u002Fbody>\n   \u003C\u002Fhtml>\n   ```\n\n4. **Create config file tailored to your content structure:**\n   ```yaml\n   backend:\n     name: github\n     repo: owner\u002Frepo\n     branch: main\n\n   media_folder: \u003Cyour-media-path>\n   public_folder: \u003Cyour-public-path>\n\n   collections:\n     # Define based on your content structure\n   ```\n\n5. **Access admin:**\n   ```\n   http:\u002F\u002Flocalhost:\u003Cport>\u002Fadmin\u002F\n   ```\n\n---\n\n## Authentication Setup\n\nChoose the authentication method that fits your deployment platform.\n\n### Option 1: Cloudflare Workers OAuth (Recommended) 🔥\n\n**Best For**: Cloudflare Pages, Cloudflare Workers, any deployment\n\nThis uses the official `sveltia-cms-auth` Cloudflare Worker for OAuth.\n\n**Steps:**\n\n1. **Deploy Worker:**\n   ```bash\n   # Clone the auth worker\n   git clone https:\u002F\u002Fgithub.com\u002Fsveltia\u002Fsveltia-cms-auth\n   cd sveltia-cms-auth\n\n   # Install dependencies\n   npm install\n\n   # Deploy to Cloudflare Workers\n   npx wrangler deploy\n   ```\n\n   **Or use one-click deploy**:\n   - Visit https:\u002F\u002Fgithub.com\u002Fsveltia\u002Fsveltia-cms-auth\n   - Click \"Deploy to Cloudflare Workers\" button\n\n2. **Register OAuth App on GitHub:**\n   - Go to https:\u002F\u002Fgithub.com\u002Fsettings\u002Fdevelopers\n   - Click \"New OAuth App\"\n   - **Application name**: Your Site Name CMS\n   - **Homepage URL**: https:\u002F\u002Fyourdomain.com\n   - **Authorization callback URL**: https:\u002F\u002Fyour-worker.workers.dev\u002Fcallback\n   - Save Client ID and Client Secret\n\n3. **Configure Worker Environment Variables:**\n   ```bash\n   # Set GitHub credentials\n   npx wrangler secret put GITHUB_CLIENT_ID\n   # Paste your Client ID\n\n   npx wrangler secret put GITHUB_CLIENT_SECRET\n   # Paste your Client Secret\n\n   # Optional: Restrict to specific domains\n   npx wrangler secret put ALLOWED_DOMAINS\n   # Example: yourdomain.com,*.yourdomain.com\n   ```\n\n4. **Update CMS config:**\n   ```yaml\n   # admin\u002Fconfig.yml\n   backend:\n     name: github\n     repo: owner\u002Frepo\n     branch: main\n     base_url: https:\u002F\u002Fyour-worker.workers.dev  # ← Add this line\n   ```\n\n5. **Test authentication:**\n   - Open your site's `\u002Fadmin\u002F`\n   - Click \"Login with GitHub\"\n   - Authorize the app\n   - You should be redirected back to the CMS\n\n**Complete guide**: See `references\u002Fcloudflare-auth-setup.md`\n\n**Template**: See `templates\u002Fcloudflare-workers\u002F`\n\n---\n\n### Option 2: Vercel Serverless Functions\n\n**Best For**: Vercel deployments\n\n**Steps:**\n\n1. **Create API route:**\n   ```typescript\n   \u002F\u002F api\u002Fauth.ts\n   export default async function handler(req, res) {\n     \u002F\u002F OAuth handling logic\n     \u002F\u002F See templates\u002Fvercel-serverless\u002Fapi-auth.ts\n   }\n   ```\n\n2. **Set environment variables in Vercel:**\n   ```\n   GITHUB_CLIENT_ID=your_client_id\n   GITHUB_CLIENT_SECRET=your_client_secret\n   ```\n\n3. **Update CMS config:**\n   ```yaml\n   backend:\n     name: github\n     repo: owner\u002Frepo\n     branch: main\n     base_url: https:\u002F\u002Fyourdomain.com\u002Fapi\u002Fauth\n   ```\n\n**Template**: See `templates\u002Fvercel-serverless\u002F`\n\n---\n\n### Option 3: Netlify Functions (Not Recommended)\n\n**Note**: Sveltia CMS deliberately omits Git Gateway support for performance reasons.\n\nIf deploying to Netlify, use either:\n- **Cloudflare Workers OAuth** (recommended, faster)\n- **Netlify Functions with custom OAuth** (similar to Vercel pattern)\n\n---\n\n### Option 4: Local Development (GitHub\u002FGitLab Direct)\n\n**For local development only** - no authentication proxy needed.\n\n**Requirements:**\n- GitHub\u002FGitLab personal access token\n- Browser with File System Access API (Chrome, Edge)\n\n**Setup:**\n\n1. **Generate personal access token:**\n   - GitHub: https:\u002F\u002Fgithub.com\u002Fsettings\u002Ftokens\n   - Scopes: `repo` (full control of private repositories)\n\n2. **Configure local backend:**\n   ```yaml\n   # admin\u002Fconfig.yml\n   backend:\n     name: github\n     repo: owner\u002Frepo\n     branch: main\n\n   local_backend: true  # Enable local mode\n   ```\n\n3. **Use Sveltia's local repository feature:**\n   - Click \"Work with Local Repository\" in login screen\n   - Select your local Git repository folder\n   - Changes save directly to local files\n   - Commit and push manually via Git\n\n**Note**: This is for development only - production requires OAuth proxy.\n\n---\n\n## Configuration Best Practices\n\n### Basic Config Structure\n\n```yaml\n# admin\u002Fconfig.yml\n\n# Backend (Git provider)\nbackend:\n  name: github  # or gitlab, gitea, forgejo\n  repo: owner\u002Frepo\n  branch: main\n  base_url: https:\u002F\u002Fyour-auth-worker.workers.dev  # OAuth proxy\n\n# Media storage\nmedia_folder: static\u002Fimages\u002Fuploads  # Where files are saved\npublic_folder: \u002Fimages\u002Fuploads        # URL path in content\n\n# Optional: Multiple media libraries\nmedia_libraries:\n  default:\n    config:\n      max_file_size: 5242880  # 5 MB in bytes\n      slugify_filename: true\n      transformations:\n        raster_image:\n          format: webp\n          quality: 85\n          width: 2048\n          height: 2048\n        svg:\n          optimize: true\n\n# Optional: Custom branding\nlogo_url: https:\u002F\u002Fyourdomain.com\u002Flogo.svg\n\n# Collections (content types)\ncollections:\n  - name: posts\n    label: Blog Posts\n    folder: content\u002Fposts\n    create: true\n    fields:\n      # Field definitions\n```\n\n---\n\n### Collection Patterns\n\n**Collections** define content types and where they're stored.\n\n#### Blog Post Collection\n\n```yaml\ncollections:\n  - name: posts\n    label: Blog Posts\n    folder: content\u002Fposts\n    create: true\n    slug: '{{year}}-{{month}}-{{day}}-{{slug}}'\n    format: yaml  # or md, toml, json\n    fields:\n      - label: Title\n        name: title\n        widget: string\n\n      - label: Date\n        name: date\n        widget: datetime\n        date_format: 'YYYY-MM-DD'\n        time_format: false  # Date only\n\n      - label: Draft\n        name: draft\n        widget: boolean\n        default: true\n\n      - label: Featured Image\n        name: image\n        widget: image\n        required: false\n\n      - label: Excerpt\n        name: excerpt\n        widget: text\n        required: false\n\n      - label: Tags\n        name: tags\n        widget: list\n        required: false\n\n      - label: Body\n        name: body\n        widget: markdown\n```\n\n**Template**: See `templates\u002Fcollections\u002Fblog-posts.yml`\n\n---\n\n#### Documentation Page Collection\n\n```yaml\ncollections:\n  - name: docs\n    label: Documentation\n    folder: content\u002Fdocs\n    create: true\n    slug: '{{slug}}'\n    format: mdx\n    fields:\n      - label: Title\n        name: title\n        widget: string\n\n      - label: Description\n        name: description\n        widget: text\n\n      - label: Order\n        name: order\n        widget: number\n        value_type: int\n        hint: Sort order in sidebar\n\n      - label: Category\n        name: category\n        widget: select\n        options:\n          - Getting Started\n          - API Reference\n          - Tutorials\n          - Advanced\n\n      - label: Body\n        name: body\n        widget: markdown\n```\n\n**Template**: See `templates\u002Fcollections\u002Fdocs-pages.yml`\n\n---\n\n#### Landing Page Collection (Structured Content)\n\n```yaml\ncollections:\n  - name: pages\n    label: Landing Pages\n    folder: content\u002Fpages\n    create: true\n    slug: '{{slug}}'\n    format: json\n    fields:\n      - label: Title\n        name: title\n        widget: string\n\n      - label: SEO\n        name: seo\n        widget: object\n        fields:\n          - { label: Meta Title, name: metaTitle, widget: string }\n          - { label: Meta Description, name: metaDescription, widget: text }\n          - { label: OG Image, name: ogImage, widget: image }\n\n      - label: Hero Section\n        name: hero\n        widget: object\n        fields:\n          - { label: Headline, name: headline, widget: string }\n          - { label: Subheadline, name: subheadline, widget: text }\n          - { label: Hero Image, name: image, widget: image }\n          - label: CTA Button\n            name: cta\n            widget: object\n            fields:\n              - { label: Text, name: text, widget: string }\n              - { label: URL, name: url, widget: string }\n\n      - label: Features\n        name: features\n        widget: list\n        fields:\n          - { label: Title, name: title, widget: string }\n          - { label: Description, name: description, widget: text }\n          - { label: Icon, name: icon, widget: image }\n```\n\n**Template**: See `templates\u002Fcollections\u002Flanding-pages.yml`\n\n---\n\n### Internationalization (i18n) Setup\n\nSveltia CMS has first-class i18n support with multiple structure options.\n\n#### Multiple Files Structure (Recommended)\n\n**Best for**: Hugo, Jekyll with separate locale files\n\n```yaml\ni18n:\n  structure: multiple_files\n  locales: [en, fr, de, ja]\n  default_locale: en\n\ncollections:\n  - name: posts\n    label: Blog Posts\n    folder: content\u002Fposts\n    create: true\n    i18n: true  # Enable i18n for this collection\n    fields:\n      - label: Title\n        name: title\n        widget: string\n        i18n: true  # Translatable field\n\n      - label: Date\n        name: date\n        widget: datetime\n        i18n: duplicate  # Same value across locales\n\n      - label: Body\n        name: body\n        widget: markdown\n        i18n: true\n```\n\n**Result**: Creates files like:\n- `content\u002Fposts\u002Fhello-world.en.md`\n- `content\u002Fposts\u002Fhello-world.fr.md`\n- `content\u002Fposts\u002Fhello-world.de.md`\n\n---\n\n#### Multiple Folders Structure\n\n**Best for**: Next.js, Astro with locale directories\n\n```yaml\ni18n:\n  structure: multiple_folders\n  locales: [en, fr, de]\n  default_locale: en\n\ncollections:\n  - name: blog\n    label: Blog Posts\n    folder: content\u002F{{locale}}\u002Fblog  # {{locale}} placeholder\n    create: true\n    i18n: true\n    fields:\n      # Same as above\n```\n\n**Result**: Creates files like:\n- `content\u002Fen\u002Fblog\u002Fhello-world.md`\n- `content\u002Ffr\u002Fblog\u002Fhello-world.md`\n- `content\u002Fde\u002Fblog\u002Fhello-world.md`\n\n---\n\n#### Single File Structure\n\n**Best for**: i18n libraries that manage translations in one file\n\n```yaml\ni18n:\n  structure: single_file\n  locales: [en, fr, de]\n  default_locale: en\n\ncollections:\n  - name: translations\n    label: Translations\n    files:\n      - name: ui\n        label: UI Strings\n        file: data\u002Ftranslations.json\n        i18n: true\n        fields:\n          - label: Navigation\n            name: nav\n            widget: object\n            i18n: true\n            fields:\n              - { label: Home, name: home, widget: string, i18n: true }\n              - { label: About, name: about, widget: string, i18n: true }\n```\n\n**Reference**: See `references\u002Fi18n-patterns.md` for complete guide.\n\n---\n\n### DeepL Translation Integration\n\nSveltia CMS includes one-click translation using DeepL.\n\n**Setup:**\n\n1. **Get DeepL API key:**\n   - Sign up at https:\u002F\u002Fwww.deepl.com\u002Fpro-api\n   - Free tier: 500,000 characters\u002Fmonth\n\n2. **Add to config:**\n   ```yaml\n   # admin\u002Fconfig.yml\n   backend:\n     name: github\n     repo: owner\u002Frepo\n\n   i18n:\n     structure: multiple_files\n     locales: [en, fr, de, es, ja]\n     default_locale: en\n\n   # DeepL integration\n   deepl:\n     api_key: your-deepl-api-key\n     # Or use environment variable: DEEPL_API_KEY\n   ```\n\n3. **Use in editor:**\n   - Switch to non-default locale\n   - Click \"Translate from [Default Locale]\" button\n   - DeepL translates all translatable fields instantly\n\n**Note**: Translation quality depends on DeepL's AI - always review translations.\n\n---\n\n## Common Errors & Solutions\n\nThis skill prevents **8 common errors** encountered when setting up Sveltia CMS.\n\n### 1. ❌ OAuth Authentication Failures\n\n**Error Message:**\n- \"Error: Failed to authenticate\"\n- Redirect to `https:\u002F\u002Fapi.netlify.com\u002Fauth` instead of GitHub login\n\n**Symptoms:**\n- Login button does nothing\n- Redirects to wrong domain\n- Authentication popup closes immediately\n\n**Causes:**\n- Missing `base_url` in backend config\n- Incorrect OAuth proxy URL\n- CORS policy blocking authentication\n- Wrong GitHub OAuth callback URL\n\n**Solution:**\n\n**Step 1: Verify config.yml has `base_url`:**\n```yaml\nbackend:\n  name: github\n  repo: owner\u002Frepo\n  branch: main\n  base_url: https:\u002F\u002Fyour-worker.workers.dev  # ← Must be present\n```\n\n**Step 2: Check GitHub OAuth App callback:**\n- Should be: `https:\u002F\u002Fyour-worker.workers.dev\u002Fcallback`\n- NOT: `https:\u002F\u002Fyourdomain.com\u002Fcallback`\n\n**Step 3: Verify Worker environment variables:**\n```bash\nnpx wrangler secret list\n# Should show: GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET\n```\n\n**Step 4: Test Worker directly:**\n```bash\ncurl https:\u002F\u002Fyour-worker.workers.dev\u002Fhealth\n# Should return: {\"status\": \"ok\"}\n```\n\n**Prevention:**\n- Always include `base_url` when not using GitHub direct auth\n- Test OAuth flow in incognito window\n- Check browser console for CORS errors\n\n---\n\n### 2. ❌ TOML Front Matter Errors\n\n**Error Message:**\n- \"Parse error: Invalid TOML\"\n- Files missing `+++` delimiters\n- Body content appearing in frontmatter\n\n**Symptoms:**\n- New files created by CMS don't parse in Hugo\n- Existing TOML files break after editing\n- Content appears above body separator\n\n**Causes:**\n- Sveltia's TOML generation is buggy in beta\n- Incomplete TOML delimiter handling\n- Mixed TOML\u002FYAML in same collection\n\n**Solution:**\n\n**Use YAML instead of TOML** (recommended):\n```yaml\ncollections:\n  - name: posts\n    folder: content\u002Fposts\n    format: yaml  # or md (Markdown with YAML frontmatter)\n    # NOT: format: toml\n```\n\n**If you must use TOML:**\n1. Manually fix delimiters after CMS saves\n2. Use pre-commit hook to validate TOML\n3. Wait for beta fixes (track GitHub issues)\n\n**Migration from TOML to YAML:**\n```bash\n# Convert all posts from TOML to YAML\nfor file in content\u002Fposts\u002F*.md; do\n  # Use Hugo's built-in converter\n  hugo convert toYAML \"$file\"\ndone\n```\n\n**Prevention:**\n- Prefer YAML format for new projects\n- If Hugo requires TOML, test CMS thoroughly before production\n- Keep watch on Sveltia GitHub releases for TOML fixes\n\n---\n\n### 3. ❌ YAML Parse Errors\n\n**Error Message:**\n- \"YAML parse error: Invalid YAML\"\n- \"Error: Duplicate key 'field_name'\"\n- \"Unexpected character at position X\"\n\n**Symptoms:**\n- Existing posts won't load in CMS\n- Can't save changes to content\n- CMS shows empty fields\n\n**Causes:**\n- Sveltia is stricter than Hugo\u002FJekyll about YAML formatting\n- Multiple YAML documents in one file (---\\n---\\n---)\n- Incorrect indentation or special characters\n- Smart quotes from copy-paste\n\n**Solution:**\n\n**Step 1: Validate YAML:**\n```bash\n# Install yamllint\npip install yamllint\n\n# Check all content files\nfind content -name \"*.md\" -exec yamllint {} \\;\n```\n\n**Step 2: Common fixes:**\n\n**Problem**: Multiple documents in one file\n```yaml\n---\ntitle: Post 1\n---\n---  # ← Remove this extra separator\ntitle: Post 2\n---\n```\n\n**Problem**: Incorrect indentation\n```yaml\n# ❌ Bad - inconsistent indentation\nfields:\n  - name: title\n     label: Title  # Extra space\n  - name: date\n    label: Date\n\n# ✅ Good - consistent 2-space indentation\nfields:\n  - name: title\n    label: Title\n  - name: date\n    label: Date\n```\n\n**Problem**: Smart quotes\n```yaml\n# ❌ Bad - smart quotes from copy-paste\ntitle: \"Hello World\"  # Curly quotes\n\n# ✅ Good - straight quotes\ntitle: \"Hello World\"  # Straight quotes\n```\n\n**Step 3: Auto-fix with yamlfmt:**\n```bash\n# Install\ngo install github.com\u002Fgoogle\u002Fyamlfmt\u002Fcmd\u002Fyamlfmt@latest\n\n# Fix all files\nfind content -name \"*.md\" -exec yamlfmt {} \\;\n```\n\n**Prevention:**\n- Use YAML-aware editors (VS Code with YAML extension)\n- Enable YAML schema validation\n- Run yamllint in pre-commit hooks\n\n---\n\n### 4. ❌ Content Not Listing in CMS\n\n**Error Message:**\n- \"No entries found\"\n- Empty content list\n- \"Failed to load entries\"\n\n**Symptoms:**\n- Admin loads but shows no content\n- Collections appear empty\n- Files exist in repository but CMS doesn't see them\n\n**Causes:**\n- Format mismatch (config expects TOML, files are YAML)\n- Incorrect folder path\n- File extension doesn't match format\n- Git backend not connected\n\n**Solution:**\n\n**Step 1: Verify folder path matches actual files:**\n```yaml\n# Config says:\ncollections:\n  - name: posts\n    folder: content\u002Fposts  # Expects files here\n\n# Check actual location:\nls -la content\u002Fposts  # Files must exist here\n```\n\n**Step 2: Match format to actual files:**\n```yaml\n# If files are: content\u002Fposts\u002Fhello.md with YAML frontmatter\ncollections:\n  - name: posts\n    folder: content\u002Fposts\n    format: yaml  # or md (same as yaml for .md files)\n\n# If files are: content\u002Fposts\u002Fhello.toml\ncollections:\n  - name: posts\n    folder: content\u002Fposts\n    format: toml\n    extension: toml\n```\n\n**Step 3: Check file extensions:**\n```bash\n# Config expects .md files\nls content\u002Fposts\u002F*.md  # Should show files\n\n# If files have different extension:\n# Either rename files OR set extension in config\n```\n\n**Step 4: Verify Git backend connection:**\n```yaml\nbackend:\n  name: github\n  repo: owner\u002Frepo  # Must be correct owner\u002Frepo\n  branch: main      # Must be correct branch\n```\n\n**Prevention:**\n- Keep `folder` paths relative to repository root\n- Match `format` to actual file format\n- Test with one file first before creating collection\n\n---\n\n### 5. ❌ \"SVELTIA is not defined\" Error\n\n**Error Message:**\n- Console error: `Uncaught ReferenceError: SVELTIA is not defined`\n- Blank admin page\n- Admin page stuck loading\n\n**Symptoms:**\n- Admin page loads but shows white screen\n- Browser console shows JavaScript error\n- CMS never initializes\n\n**Causes:**\n- Incorrect script tag\n- CDN failure or blocked\n- Wrong script URL\n- Missing `type=\"module\"` attribute\n\n**Solution:**\n\n**Step 1: Use correct script tag:**\n```html\n\u003C!-- ✅ Correct -->\n\u003Cscript src=\"https:\u002F\u002Funpkg.com\u002F@sveltia\u002Fcms\u002Fdist\u002Fsveltia-cms.js\" type=\"module\">\u003C\u002Fscript>\n\n\u003C!-- ❌ Wrong - missing type=\"module\" -->\n\u003Cscript src=\"https:\u002F\u002Funpkg.com\u002F@sveltia\u002Fcms\u002Fdist\u002Fsveltia-cms.js\">\u003C\u002Fscript>\n\n\u003C!-- ❌ Wrong - incorrect path -->\n\u003Cscript src=\"https:\u002F\u002Funpkg.com\u002Fsveltia-cms\u002Fdist\u002Fsveltia-cms.js\" type=\"module\">\u003C\u002Fscript>\n```\n\n**Step 2: Verify CDN is accessible:**\n```bash\n# Test CDN URL\ncurl -I https:\u002F\u002Funpkg.com\u002F@sveltia\u002Fcms\u002Fdist\u002Fsveltia-cms.js\n# Should return: 200 OK\n```\n\n**Step 3: Use version pinning (optional but recommended):**\n```html\n\u003C!-- Pin to specific version for stability -->\n\u003Cscript src=\"https:\u002F\u002Funpkg.com\u002F@sveltia\u002Fcms@0.113.3\u002Fdist\u002Fsveltia-cms.js\" type=\"module\">\u003C\u002Fscript>\n```\n\n**Step 4: Check for CSP blocking:**\n```html\n\u003C!-- If you have Content Security Policy, add: -->\n\u003Cmeta http-equiv=\"Content-Security-Policy\" content=\"\n  default-src 'self';\n  script-src 'self' https:\u002F\u002Funpkg.com;\n  style-src 'self' 'unsafe-inline' https:\u002F\u002Funpkg.com;\n  connect-src 'self' https:\u002F\u002Fapi.github.com https:\u002F\u002Fyour-worker.workers.dev;\n\">\n```\n\n**Prevention:**\n- Copy-paste official script tag from Sveltia docs\n- Pin to specific version in production\n- Test admin page in different browsers\n\n---\n\n### 6. ❌ 404 on \u002Fadmin\n\n**Error Message:**\n- \"404 Not Found\" when visiting `\u002Fadmin\u002F`\n- Admin page doesn't exist\n\n**Symptoms:**\n- Site loads but `\u002Fadmin\u002F` returns 404\n- Works locally but not in production\n- Files exist but aren't served\n\n**Causes:**\n- Admin directory not in public\u002Fstatic folder\n- Admin files not deployed\n- Incorrect build configuration\n- Framework not copying admin files\n\n**Solution:**\n\n**Step 1: Verify admin directory location:**\n\nHugo: `static\u002Fadmin\u002F`\nJekyll: `admin\u002F`\n11ty: `admin\u002F` (with passthrough copy)\nAstro: `public\u002Fadmin\u002F`\nNext.js: `public\u002Fadmin\u002F`\nGatsby: `static\u002Fadmin\u002F`\n\n**Step 2: Check files exist:**\n```bash\nls -la static\u002Fadmin\u002F  # Hugo example\n# Should show: index.html, config.yml\n```\n\n**Step 3: Framework-specific fixes:**\n\n**Hugo**: Files in `static\u002F` are automatically copied\n\n**Jekyll**: Add to `_config.yml`:\n```yaml\ninclude:\n  - admin\n```\n\n**11ty**: Add to `.eleventy.js`:\n```javascript\nmodule.exports = function(eleventyConfig) {\n  eleventyConfig.addPassthroughCopy('admin');\n};\n```\n\n**Astro**: Files in `public\u002F` are automatically copied\n\n**Step 4: Verify deployment:**\n```bash\n# After build, check output directory\nls -la public\u002Fadmin\u002F  # or _site\u002Fadmin\u002F or dist\u002Fadmin\u002F\n```\n\n**Prevention:**\n- Test admin page access before deploying\n- Add admin directory to version control\n- Document admin path in project README\n\n---\n\n### 7. ❌ Images Not Uploading (HEIC Format)\n\n**Error Message:**\n- \"Unsupported file format\"\n- \"Failed to upload image\"\n- Image appears but doesn't save\n\n**Symptoms:**\n- iPhone photos won't upload\n- HEIC files rejected\n- Only JPEG\u002FPNG work\n\n**Causes:**\n- HEIC format not supported by browsers\n- Image too large (exceeds `max_file_size`)\n- Media folder path incorrect\n\n**Solution:**\n\n**Step 1: Convert HEIC to JPEG:**\n\n**On Mac:**\n```bash\n# Convert single file\nsips -s format jpeg image.heic --out image.jpg\n\n# Batch convert\nfor f in *.heic; do sips -s format jpeg \"$f\" --out \"${f%.heic}.jpg\"; done\n```\n\n**On iPhone:**\n- Settings > Camera > Formats > Most Compatible\n- This saves photos as JPEG instead of HEIC\n\n**Or use online converter**: https:\u002F\u002Fheic.to\u002F\n\n**Step 2: Enable image optimization to auto-convert:**\n```yaml\n# admin\u002Fconfig.yml\nmedia_libraries:\n  default:\n    config:\n      max_file_size: 10485760  # 10 MB\n      transformations:\n        raster_image:\n          format: webp  # Auto-converts to WebP\n          quality: 85\n          width: 2048\n          height: 2048\n```\n\n**Step 3: Increase max file size if needed:**\n```yaml\nmedia_libraries:\n  default:\n    config:\n      max_file_size: 10485760  # 10 MB in bytes\n      # Default is often 5 MB\n```\n\n**Prevention:**\n- Document image requirements for content editors\n- Enable auto-optimization in config\n- Set reasonable max_file_size (5-10 MB)\n\n---\n\n### 8. ❌ CORS \u002F COOP Policy Errors\n\n**Error Message:**\n- \"Authentication Aborted\"\n- \"Cross-Origin-Opener-Policy blocked\"\n- Authentication popup closes immediately\n\n**Symptoms:**\n- OAuth popup opens then closes\n- Can't complete GitHub login\n- Console shows COOP error\n\n**Causes:**\n- Strict `Cross-Origin-Opener-Policy` header\n- CORS headers blocking authentication\n- CSP blocking script execution\n\n**Solution:**\n\n**Step 1: Adjust COOP header:**\n\n**Cloudflare Pages** (_headers file):\n```\n\u002F*\n  Cross-Origin-Opener-Policy: same-origin-allow-popups\n  # NOT: same-origin (this breaks OAuth)\n```\n\n**Netlify** (_headers file):\n```\n\u002F*\n  Cross-Origin-Opener-Policy: same-origin-allow-popups\n```\n\n**Vercel** (vercel.json):\n```json\n{\n  \"headers\": [\n    {\n      \"source\": \"\u002F(.*)\",\n      \"headers\": [\n        {\n          \"key\": \"Cross-Origin-Opener-Policy\",\n          \"value\": \"same-origin-allow-popups\"\n        }\n      ]\n    }\n  ]\n}\n```\n\n**Step 2: Add OAuth proxy to CSP:**\n```html\n\u003Cmeta http-equiv=\"Content-Security-Policy\" content=\"\n  connect-src 'self' https:\u002F\u002Fapi.github.com https:\u002F\u002Fyour-worker.workers.dev;\n\">\n```\n\n**Step 3: For Cloudflare Pages, allow API access:**\n```yaml\n# admin\u002Fconfig.yml (if using Cloudflare Pages webhooks)\n# Add to CSP: https:\u002F\u002Fapi.cloudflare.com\n```\n\n**Prevention:**\n- Set COOP header to `same-origin-allow-popups` by default\n- Test authentication in different browsers\n- Document required headers in project README\n\n---\n\n## Migration from Decap CMS\n\nSveltia CMS is a **drop-in replacement** for Decap CMS (formerly Netlify CMS).\n\n### Migration Steps\n\n**Step 1: Update script tag:**\n\n```html\n\u003C!-- OLD: Decap CMS -->\n\u003Cscript src=\"https:\u002F\u002Funpkg.com\u002Fdecap-cms@^3.0.0\u002Fdist\u002Fdecap-cms.js\">\u003C\u002Fscript>\n\n\u003C!-- NEW: Sveltia CMS -->\n\u003Cscript src=\"https:\u002F\u002Funpkg.com\u002F@sveltia\u002Fcms\u002Fdist\u002Fsveltia-cms.js\" type=\"module\">\u003C\u002Fscript>\n```\n\n**Step 2: Keep existing config.yml:**\n\n```yaml\n# Your existing Decap config.yml works as-is!\nbackend:\n  name: github\n  repo: owner\u002Frepo\n\ncollections:\n  # ... no changes needed\n```\n\n**Step 3: Test locally:**\n\n```bash\n# Start your site's dev server\nhugo server  # or jekyll serve, or npm run dev\n\n# Visit \u002Fadmin\u002F and test:\n# - Login\n# - Content listing\n# - Editing\n# - Saving\n# - Media uploads\n```\n\n**Step 4: Deploy:**\n\n```bash\ngit add static\u002Fadmin\u002Findex.html  # or your admin path\ngit commit -m \"Migrate to Sveltia CMS\"\ngit push\n```\n\n**That's it!** Your content, collections, and workflows remain unchanged.\n\n---\n\n### What's Different?\n\n**Config Compatibility**: 100% compatible\n\n**UI Changes**:\n- Faster interface (no virtual DOM)\n- Better mobile experience\n- Dark mode support\n- Improved search\n\n**Performance Improvements**:\n- 5x smaller bundle (300 KB vs 1.5 MB)\n- Instant content loading (GraphQL)\n- No API rate limit issues\n\n**New Features**:\n- DeepL translation integration\n- Image optimization built-in\n- UUID slug generation\n- Better i18n support\n\n**Not Supported**:\n- Git Gateway backend (for performance reasons)\n- Azure backend (may be added later)\n- Bitbucket backend (may be added later)\n\n**Workaround**: Use Cloudflare Workers or Vercel OAuth proxy instead.\n\n---\n\n### Testing Checklist\n\nBefore fully migrating, test these workflows:\n\n- [ ] Login with OAuth\n- [ ] View content list\n- [ ] Create new entry\n- [ ] Edit existing entry\n- [ ] Upload images\n- [ ] Publish\u002Funpublish\n- [ ] Search content\n- [ ] Switch between collections\n- [ ] Mobile editing (if applicable)\n- [ ] i18n switching (if applicable)\n\n---\n\n**Complete guide**: See `references\u002Fmigration-from-decap.md`\n\n---\n\n## Deployment Patterns\n\n### Cloudflare Pages\n\n**Best For**: Static sites with Cloudflare ecosystem\n\n**Steps:**\n\n1. **Connect Git repository to Cloudflare Pages:**\n   - Dashboard > Pages > Create Project\n   - Connect GitHub\u002FGitLab\n   - Select repository\n\n2. **Configure build settings:**\n   ```yaml\n   Build command: hugo  # or jekyll build, or npm run build\n   Build output directory: public  # or _site, or dist\n   Root directory: \u002F\n   ```\n\n3. **Deploy OAuth Worker** (see Cloudflare Workers OAuth section)\n\n4. **Update config.yml with Worker URL:**\n   ```yaml\n   backend:\n     base_url: https:\u002F\u002Fyour-worker.workers.dev\n   ```\n\n5. **Deploy:**\n   - Push to main branch\n   - Cloudflare Pages builds automatically\n   - Access admin at: `https:\u002F\u002Fyourdomain.pages.dev\u002Fadmin\u002F`\n\n---\n\n### Vercel\n\n**Best For**: Next.js, Astro, or any framework with Vercel deployment\n\n**Steps:**\n\n1. **Connect Git repository:**\n   - Dashboard > Add New Project\n   - Import repository\n\n2. **Configure build:**\n   ```\n   Framework Preset: \u003CAuto-detected>\n   Build Command: \u003CDefault>\n   Output Directory: \u003CDefault>\n   ```\n\n3. **Deploy OAuth serverless function** (see Vercel setup section)\n\n4. **Set environment variables:**\n   ```\n   GITHUB_CLIENT_ID=your_client_id\n   GITHUB_CLIENT_SECRET=your_client_secret\n   ```\n\n5. **Deploy:**\n   - Push to main branch\n   - Vercel builds automatically\n\n---\n\n### Netlify\n\n**Best For**: JAMstack sites, legacy Netlify CMS migrations\n\n**Steps:**\n\n1. **Connect Git repository:**\n   - Dashboard > Add New Site\n   - Import repository\n\n2. **Configure build:**\n   ```\n   Build command: \u003Cyour-build-command>\n   Publish directory: public  # or _site, or dist\n   ```\n\n3. **Use Cloudflare Workers for OAuth** (recommended over Netlify Functions)\n\n4. **Deploy:**\n   - Push to main branch\n   - Netlify builds automatically\n\n---\n\n### GitHub Pages\n\n**Best For**: Jekyll sites, simple static sites\n\n**Steps:**\n\n1. **Configure Jekyll (if using):**\n   ```yaml\n   # _config.yml\n   include:\n     - admin\n   ```\n\n2. **Create GitHub Actions workflow:**\n   ```yaml\n   # .github\u002Fworkflows\u002Fdeploy.yml\n   name: Deploy\n   on:\n     push:\n       branches: [main]\n   jobs:\n     deploy:\n       runs-on: ubuntu-latest\n       steps:\n         - uses: actions\u002Fcheckout@v3\n         - name: Build\n           run: jekyll build  # or your build command\n         - name: Deploy\n           uses: peaceiris\u002Factions-gh-pages@v3\n           with:\n             github_token: ${{ secrets.GITHUB_TOKEN }}\n             publish_dir: .\u002F_site\n   ```\n\n3. **Deploy OAuth Worker** for authentication\n\n4. **Access admin:**\n   ```\n   https:\u002F\u002Fusername.github.io\u002Frepo\u002Fadmin\u002F\n   ```\n\n---\n\n## Additional Resources\n\n### Templates\n\nAll templates available in `templates\u002F`:\n\n- **hugo\u002F** - Complete Hugo blog setup\n- **jekyll\u002F** - Jekyll site configuration\n- **11ty\u002F** - Eleventy blog setup\n- **astro\u002F** - Astro content collections\n- **cloudflare-workers\u002F** - OAuth proxy implementation\n- **vercel-serverless\u002F** - Vercel auth functions\n- **collections\u002F** - Pre-built collection patterns\n  - blog-posts.yml\n  - docs-pages.yml\n  - landing-pages.yml\n- **admin\u002F** - Base admin page templates\n\n### References\n\nComprehensive guides in `references\u002F`:\n\n- **common-errors.md** - Extended error troubleshooting\n- **migration-from-decap.md** - Complete migration guide\n- **cloudflare-auth-setup.md** - Step-by-step OAuth setup\n- **config-reference.md** - Full config.yml documentation\n- **i18n-patterns.md** - Internationalization strategies\n- **framework-guides.md** - Per-framework specifics\n\n### Scripts\n\nAutomation tools in `scripts\u002F`:\n\n- **init-sveltia.sh** - Automated setup for new projects\n- **deploy-cf-auth.sh** - Deploy Cloudflare Workers OAuth\n- **check-versions.sh** - Verify compatibility\n\n### Official Documentation\n\n- **Website**: https:\u002F\u002Fsveltia.com (coming soon)\n- **GitHub**: https:\u002F\u002Fgithub.com\u002Fsveltia\u002Fsveltia-cms\n- **OAuth Worker**: https:\u002F\u002Fgithub.com\u002Fsveltia\u002Fsveltia-cms-auth\n- **npm Package**: https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@sveltia\u002Fcms\n- **Discussions**: https:\u002F\u002Fgithub.com\u002Fsveltia\u002Fsveltia-cms\u002Fdiscussions\n\n---\n\n## Token Efficiency\n\n**Estimated Savings**: 60-65% (~9,000 tokens saved)\n\n**Without Skill** (~14,000 tokens):\n- Initial research and exploration: 2,500 tokens\n- Framework setup trial & error: 2,000 tokens\n- OAuth configuration attempts: 2,500 tokens\n- Error troubleshooting: 3,500 tokens\n- i18n setup: 1,500 tokens\n- Deployment configuration: 2,000 tokens\n\n**With Skill** (~5,000 tokens):\n- Skill discovery: 100 tokens\n- Skill loading (SKILL.md): 3,500 tokens\n- Template selection: 400 tokens\n- Minor project-specific adjustments: 1,000 tokens\n\n---\n\n## Errors Prevented\n\nThis skill prevents **8 common errors** (100% prevention rate):\n\n1. ✅ OAuth authentication failures\n2. ✅ TOML front matter generation bugs\n3. ✅ YAML parse errors (strict validation)\n4. ✅ Content not listing in CMS\n5. ✅ \"SVELTIA is not defined\" errors\n6. ✅ 404 on \u002Fadmin page\n7. ✅ Image upload failures (HEIC format)\n8. ✅ CORS \u002F COOP policy errors\n\n---\n\n## Quick Start Examples\n\n### Example 1: Hugo Blog with Cloudflare OAuth\n\n```bash\n# 1. Create Hugo site\nhugo new site my-blog\ncd my-blog\n\n# 2. Create admin directory\nmkdir -p static\u002Fadmin\n\n# 3. Copy templates\ncp [path-to-skill]\u002Ftemplates\u002Fhugo\u002Findex.html static\u002Fadmin\u002F\ncp [path-to-skill]\u002Ftemplates\u002Fhugo\u002Fconfig.yml static\u002Fadmin\u002F\n\n# 4. Deploy OAuth Worker\ngit clone https:\u002F\u002Fgithub.com\u002Fsveltia\u002Fsveltia-cms-auth\ncd sveltia-cms-auth\nnpx wrangler deploy\n\n# 5. Configure and test\nhugo server\nopen http:\u002F\u002Flocalhost:1313\u002Fadmin\u002F\n```\n\n---\n\n### Example 2: Jekyll on GitHub Pages\n\n```bash\n# 1. Create Jekyll site\njekyll new my-site\ncd my-site\n\n# 2. Create admin\nmkdir admin\ncp [path-to-skill]\u002Ftemplates\u002Fjekyll\u002Findex.html admin\u002F\ncp [path-to-skill]\u002Ftemplates\u002Fjekyll\u002Fconfig.yml admin\u002F\n\n# 3. Add to _config.yml\necho \"include:\\n  - admin\" >> _config.yml\n\n# 4. Deploy\ngit add .\ngit commit -m \"Add Sveltia CMS\"\ngit push\n```\n\n---\n\n### Example 3: Migrate from Decap CMS\n\n```bash\n# 1. Update script tag in admin\u002Findex.html\nsed -i 's|decap-cms|@sveltia\u002Fcms|g' static\u002Fadmin\u002Findex.html\nsed -i 's|decap-cms.js|sveltia-cms.js\" type=\"module|g' static\u002Fadmin\u002Findex.html\n\n# 2. Test locally\nhugo server\nopen http:\u002F\u002Flocalhost:1313\u002Fadmin\u002F\n\n# 3. Deploy\ngit add static\u002Fadmin\u002Findex.html\ngit commit -m \"Migrate to Sveltia CMS\"\ngit push\n```\n\n---\n\n## Production Examples\n\n- **Hugo Documentation**: 0deepresearch.com (Hugo + GitHub Pages + Sveltia)\n- **Jekyll Blog**: keefeere.me (Jekyll + Sveltia + DeepL i18n)\n- **11ty Portfolio**: Various community projects\n\n---\n\n## Support\n\n**Issues?** Check `references\u002Fcommon-errors.md` first\n\n**Still Stuck?**\n- GitHub Issues: https:\u002F\u002Fgithub.com\u002Fsveltia\u002Fsveltia-cms\u002Fissues\n- Discussions: https:\u002F\u002Fgithub.com\u002Fsveltia\u002Fsveltia-cms\u002Fdiscussions\n- Stack Overflow: Tag `sveltia-cms`\n\n---\n\n**Last Updated**: 2025-10-24\n**Skill Version**: 1.0.0\n**Sveltia CMS Version**: 0.113.3 (Beta)\n**Status**: Production-ready, v1.0 GA expected early 2026\n","# Sveltia CMS Skill\n\nComplete skill for integrating Sveltia CMS into static site projects.\n\n---\n\n## What is Sveltia CMS?\n\n**Sveltia CMS** is a Git-based lightweight headless content management system built from scratch as the modern successor to Decap CMS (formerly Netlify CMS). It provides a fast, intuitive editing interface for content stored in Git repositories.\n\n### Key Features\n\n1. **Lightweight & Fast**\n   - Bundle size: \u003C500 KB (minified\u002Fbrotlied) vs 1.5-2.6 MB for competitors\n   - Built with Svelte compiler (no virtual DOM overhead)\n   - Uses GraphQL APIs for instant content fetching\n   - Relevance-based search across all content\n\n2. **Modern User Experience**\n   - Intuitive admin interface with full viewport utilization\n   - Dark mode support (follows system preferences)\n   - Mobile and tablet optimized\n   - Drag-and-drop file uploads with multiple file support\n   - Real-time preview with instant updates\n\n3. **Git-Native Architecture**\n   - Content stored as Markdown, MDX, YAML, TOML, or JSON\n   - Full version control and change history\n   - No vendor lock-in - content lives with code\n   - Supports GitHub, GitLab, Gitea, Forgejo backends\n\n4. **Framework-Agnostic**\n   - Served as vanilla JavaScript bundle\n   - Works with Hugo, Jekyll, 11ty, Gatsby, Astro, Next.js, SvelteKit\n   - No React, Vue, or framework runtime dependencies\n   - Compatible with any static site generator\n\n5. **First-Class Internationalization**\n   - Multiple language support built-in\n   - One-click DeepL translation integration\n   - Locale switching while editing\n   - Flexible i18n structures (files, folders, single file)\n\n6. **Built-In Image Optimization**\n   - Automatic WebP conversion\n   - Client-side resizing and optimization\n   - SVG optimization support\n   - Configurable quality and dimensions\n\n### Current Versions\n\n- **@sveltia\u002Fcms**: 0.113.5 (October 2025)\n- **Status**: Public Beta (v1.0 expected early 2026)\n- **Maturity**: Production-ready (265+ issues solved from predecessor)\n\n---\n\n## When to Use This Skill\n\n### ✅ Use Sveltia CMS When:\n\n1. **Building Static Sites**\n   - Hugo blogs and documentation\n   - Jekyll sites and GitHub Pages\n   - 11ty (Eleventy) projects\n   - Gatsby marketing sites\n   - Astro content-heavy sites\n\n2. **Non-Technical Editors Need Access**\n   - Marketing teams managing pages\n   - Authors writing blog posts\n   - Content teams without Git knowledge\n   - Clients needing easy content updates\n\n3. **Git-Based Workflow Desired**\n   - Content versioning through Git\n   - Content review through pull requests\n   - Content lives with code in repository\n   - CI\u002FCD integration for deployments\n\n4. **Lightweight Solution Required**\n   - Performance-sensitive projects\n   - Mobile-first editing needed\n   - Quick load times critical\n   - Minimal bundle size important\n\n5. **Migrating from Decap\u002FNetlify CMS**\n   - Existing config.yml can be reused\n   - Drop-in replacement (change 1 line)\n   - Better performance and UX\n   - Active maintenance and bug fixes\n\n### ❌ Don't Use Sveltia CMS When:\n\n1. **Real-Time Collaboration Needed**\n   - Multiple users editing simultaneously (Google Docs-style)\n   - Use Sanity, Contentful, or TinaCMS instead\n\n2. **Visual Page Building Required**\n   - Drag-and-drop page builders needed\n   - Use Webflow, Builder.io, or TinaCMS (React) instead\n\n3. **Highly Dynamic Data**\n   - E-commerce with real-time inventory\n   - Real-time dashboards or analytics\n   - Use traditional databases (D1, PostgreSQL) instead\n\n4. **React-Specific Visual Editing Needed**\n   - In-context component editing\n   - Use TinaCMS instead (React-focused)\n\n### Sveltia CMS vs TinaCMS\n\n**Use Sveltia** for:\n- Hugo, Jekyll, 11ty, Gatsby (non-React SSGs)\n- Traditional CMS admin panel UX\n- Lightweight bundle requirements\n- Framework-agnostic projects\n\n**Use TinaCMS** for:\n- React, Next.js, Astro (React components)\n- Visual in-context editing\n- Schema-driven type-safe content\n- Modern developer experience with TypeScript\n\n**Both are valid** - Sveltia complements TinaCMS for different use cases.\n\n---\n\n## Setup Patterns by Framework\n\nUse the appropriate setup pattern based on your framework choice.\n\n### 1. Hugo Setup (Most Common)\n\nHugo is the most popular static site generator for Sveltia CMS.\n\n**Steps:**\n\n1. **Create admin directory:**\n   ```bash\n   mkdir -p static\u002Fadmin\n   ```\n\n2. **Create admin index page:**\n   ```html\n   \u003C!-- static\u002Fadmin\u002Findex.html -->\n   \u003C!doctype html>\n   \u003Chtml lang=\"en\">\n     \u003Chead>\n       \u003Cmeta charset=\"utf-8\" \u002F>\n       \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \u002F>\n       \u003Ctitle>Content Manager\u003C\u002Ftitle>\n     \u003C\u002Fhead>\n     \u003Cbody>\n       \u003Cscript src=\"https:\u002F\u002Funpkg.com\u002F@sveltia\u002Fcms\u002Fdist\u002Fsveltia-cms.js\" type=\"module\">\u003C\u002Fscript>\n     \u003C\u002Fbody>\n   \u003C\u002Fhtml>\n   ```\n\n3. **Create config file:**\n   ```yaml\n   # static\u002Fadmin\u002Fconfig.yml\n   backend:\n     name: github\n     repo: owner\u002Frepo\n     branch: main\n\n   media_folder: static\u002Fimages\u002Fuploads\n   public_folder: \u002Fimages\u002Fuploads\n\n   collections:\n     - name: posts\n       label: Blog Posts\n       folder: content\u002Fposts\n       create: true\n       slug: '{{year}}-{{month}}-{{day}}-{{slug}}'\n       fields:\n         - { label: 'Title', name: 'title', widget: 'string' }\n         - { label: 'Date', name: 'date', widget: 'datetime' }\n         - { label: 'Draft', name: 'draft', widget: 'boolean', default: true }\n         - { label: 'Tags', name: 'tags', widget: 'list', required: false }\n         - { label: 'Body', name: 'body', widget: 'markdown' }\n   ```\n\n4. **Start Hugo dev server:**\n   ```bash\n   hugo server\n   ```\n\n5. **Access admin:**\n   ```\n   http:\u002F\u002Flocalhost:1313\u002Fadmin\u002F\n   ```\n\n**Template**: See `templates\u002Fhugo\u002F`\n\n---\n\n### 2. Jekyll Setup\n\nJekyll is commonly used with GitHub Pages and Sveltia CMS.\n\n**Steps:**\n\n1. **Create admin directory:**\n   ```bash\n   mkdir -p admin\n   ```\n\n2. **Create admin index page:**\n   ```html\n   \u003C!-- admin\u002Findex.html -->\n   \u003C!doctype html>\n   \u003Chtml lang=\"en\">\n     \u003Chead>\n       \u003Cmeta charset=\"utf-8\" \u002F>\n       \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \u002F>\n       \u003Ctitle>Content Manager\u003C\u002Ftitle>\n     \u003C\u002Fhead>\n     \u003Cbody>\n       \u003Cscript src=\"https:\u002F\u002Funpkg.com\u002F@sveltia\u002Fcms\u002Fdist\u002Fsveltia-cms.js\" type=\"module\">\u003C\u002Fscript>\n     \u003C\u002Fbody>\n   \u003C\u002Fhtml>\n   ```\n\n3. **Create config file:**\n   ```yaml\n   # admin\u002Fconfig.yml\n   backend:\n     name: github\n     repo: owner\u002Frepo\n     branch: main\n\n   media_folder: assets\u002Fimages\u002Fuploads\n   public_folder: \u002Fassets\u002Fimages\u002Fuploads\n\n   collections:\n     - name: posts\n       label: Blog Posts\n       folder: _posts\n       create: true\n       slug: '{{year}}-{{month}}-{{day}}-{{slug}}'\n       fields:\n         - { label: 'Layout', name: 'layout', widget: 'hidden', default: 'post' }\n         - { label: 'Title', name: 'title', widget: 'string' }\n         - { label: 'Date', name: 'date', widget: 'datetime' }\n         - { label: 'Categories', name: 'categories', widget: 'list', required: false }\n         - { label: 'Body', name: 'body', widget: 'markdown' }\n   ```\n\n4. **Start Jekyll dev server:**\n   ```bash\n   bundle exec jekyll serve\n   ```\n\n5. **Access admin:**\n   ```\n   http:\u002F\u002Flocalhost:4000\u002Fadmin\u002F\n   ```\n\n**Template**: See `templates\u002Fjekyll\u002F`\n\n---\n\n### 3. 11ty (Eleventy) Setup\n\n11ty works well with Sveltia CMS for flexible static sites.\n\n**Steps:**\n\n1. **Create admin directory:**\n   ```bash\n   mkdir -p admin\n   ```\n\n2. **Create admin index page:**\n   ```html\n   \u003C!-- admin\u002Findex.html -->\n   \u003C!doctype html>\n   \u003Chtml lang=\"en\">\n     \u003Chead>\n       \u003Cmeta charset=\"utf-8\" \u002F>\n       \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \u002F>\n       \u003Ctitle>Content Manager\u003C\u002Ftitle>\n     \u003C\u002Fhead>\n     \u003Cbody>\n       \u003Cscript src=\"https:\u002F\u002Funpkg.com\u002F@sveltia\u002Fcms\u002Fdist\u002Fsveltia-cms.js\" type=\"module\">\u003C\u002Fscript>\n     \u003C\u002Fbody>\n   \u003C\u002Fhtml>\n   ```\n\n3. **Create config file:**\n   ```yaml\n   # admin\u002Fconfig.yml\n   backend:\n     name: github\n     repo: owner\u002Frepo\n     branch: main\n\n   media_folder: src\u002Fassets\u002Fimages\n   public_folder: \u002Fassets\u002Fimages\n\n   collections:\n     - name: blog\n       label: Blog Posts\n       folder: src\u002Fposts\n       create: true\n       slug: '{{slug}}'\n       fields:\n         - { label: 'Title', name: 'title', widget: 'string' }\n         - { label: 'Description', name: 'description', widget: 'text' }\n         - { label: 'Date', name: 'date', widget: 'datetime' }\n         - { label: 'Tags', name: 'tags', widget: 'list', required: false }\n         - { label: 'Body', name: 'body', widget: 'markdown' }\n   ```\n\n4. **Add passthrough copy to `.eleventy.js`:**\n   ```javascript\n   module.exports = function(eleventyConfig) {\n     eleventyConfig.addPassthroughCopy('admin');\n     \u002F\u002F ... rest of config\n   };\n   ```\n\n5. **Start 11ty dev server:**\n   ```bash\n   npx @11ty\u002Feleventy --serve\n   ```\n\n6. **Access admin:**\n   ```\n   http:\u002F\u002Flocalhost:8080\u002Fadmin\u002F\n   ```\n\n**Template**: See `templates\u002F11ty\u002F`\n\n---\n\n### 4. Astro Setup\n\nAstro is a modern framework that works well with Sveltia CMS.\n\n**Steps:**\n\n1. **Create admin directory:**\n   ```bash\n   mkdir -p public\u002Fadmin\n   ```\n\n2. **Create admin index page:**\n   ```html\n   \u003C!-- public\u002Fadmin\u002Findex.html -->\n   \u003C!doctype html>\n   \u003Chtml lang=\"en\">\n     \u003Chead>\n       \u003Cmeta charset=\"utf-8\" \u002F>\n       \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \u002F>\n       \u003Ctitle>Content Manager\u003C\u002Ftitle>\n     \u003C\u002Fhead>\n     \u003Cbody>\n       \u003Cscript src=\"https:\u002F\u002Funpkg.com\u002F@sveltia\u002Fcms\u002Fdist\u002Fsveltia-cms.js\" type=\"module\">\u003C\u002Fscript>\n     \u003C\u002Fbody>\n   \u003C\u002Fhtml>\n   ```\n\n3. **Create config file:**\n   ```yaml\n   # public\u002Fadmin\u002Fconfig.yml\n   backend:\n     name: github\n     repo: owner\u002Frepo\n     branch: main\n\n   media_folder: public\u002Fimages\n   public_folder: \u002Fimages\n\n   collections:\n     - name: blog\n       label: Blog Posts\n       folder: src\u002Fcontent\u002Fblog\n       create: true\n       slug: '{{slug}}'\n       format: mdx\n       fields:\n         - { label: 'Title', name: 'title', widget: 'string' }\n         - { label: 'Description', name: 'description', widget: 'text' }\n         - { label: 'Published Date', name: 'pubDate', widget: 'datetime' }\n         - { label: 'Hero Image', name: 'heroImage', widget: 'image', required: false }\n         - { label: 'Body', name: 'body', widget: 'markdown' }\n   ```\n\n4. **Start Astro dev server:**\n   ```bash\n   npm run dev\n   ```\n\n5. **Access admin:**\n   ```\n   http:\u002F\u002Flocalhost:4321\u002Fadmin\u002F\n   ```\n\n**Template**: See `templates\u002Fastro\u002F`\n\n---\n\n### 5. Framework-Agnostic Setup\n\n**Applies to**: Gatsby, Next.js (SSG mode), SvelteKit, Remix, or any framework\n\n**Steps:**\n\n1. **Determine public directory:**\n   - Gatsby: `static\u002F`\n   - Next.js: `public\u002F`\n   - SvelteKit: `static\u002F`\n   - Remix: `public\u002F`\n\n2. **Create admin directory in public folder:**\n   ```bash\n   mkdir -p \u003Cpublic-folder>\u002Fadmin\n   ```\n\n3. **Create admin index page:**\n   ```html\n   \u003C!doctype html>\n   \u003Chtml lang=\"en\">\n     \u003Chead>\n       \u003Cmeta charset=\"utf-8\" \u002F>\n       \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \u002F>\n       \u003Ctitle>Content Manager\u003C\u002Ftitle>\n     \u003C\u002Fhead>\n     \u003Cbody>\n       \u003Cscript src=\"https:\u002F\u002Funpkg.com\u002F@sveltia\u002Fcms\u002Fdist\u002Fsveltia-cms.js\" type=\"module\">\u003C\u002Fscript>\n     \u003C\u002Fbody>\n   \u003C\u002Fhtml>\n   ```\n\n4. **Create config file tailored to your content structure:**\n   ```yaml\n   backend:\n     name: github\n     repo: owner\u002Frepo\n     branch: main\n\n   media_folder: \u003Cyour-media-path>\n   public_folder: \u003Cyour-public-path>\n\n   collections:\n     # Define based on your content structure\n   ```\n\n5. **Access admin:**\n   ```\n   http:\u002F\u002Flocalhost:\u003Cport>\u002Fadmin\u002F\n   ```\n\n---\n\n## Authentication Setup\n\nChoose the authentication method that fits your deployment platform.\n\n### Option 1: Cloudflare Workers OAuth (Recommended) 🔥\n\n**Best For**: Cloudflare Pages, Cloudflare Workers, any deployment\n\nThis uses the official `sveltia-cms-auth` Cloudflare Worker for OAuth.\n\n**Steps:**\n\n1. **Deploy Worker:**\n   ```bash\n   # Clone the auth worker\n   git clone https:\u002F\u002Fgithub.com\u002Fsveltia\u002Fsveltia-cms-auth\n   cd sveltia-cms-auth\n\n   # Install dependencies\n   npm install\n\n   # Deploy to Cloudflare Workers\n   npx wrangler deploy\n   ```\n\n   **Or use one-click deploy**:\n   - Visit https:\u002F\u002Fgithub.com\u002Fsveltia\u002Fsveltia-cms-auth\n   - Click \"Deploy to Cloudflare Workers\" button\n\n2. **Register OAuth App on GitHub:**\n   - Go to https:\u002F\u002Fgithub.com\u002Fsettings\u002Fdevelopers\n   - Click \"New OAuth App\"\n   - **Application name**: Your Site Name CMS\n   - **Homepage URL**: https:\u002F\u002Fyourdomain.com\n   - **Authorization callback URL**: https:\u002F\u002Fyour-worker.workers.dev\u002Fcallback\n   - Save Client ID and Client Secret\n\n3. **Configure Worker Environment Variables:**\n   ```bash\n   # Set GitHub credentials\n   npx wrangler secret put GITHUB_CLIENT_ID\n   # Paste your Client ID\n\n   npx wrangler secret put GITHUB_CLIENT_SECRET\n   # Paste your Client Secret\n\n   # Optional: Restrict to specific domains\n   npx wrangler secret put ALLOWED_DOMAINS\n   # Example: yourdomain.com,*.yourdomain.com\n   ```\n\n4. **Update CMS config:**\n   ```yaml\n   # admin\u002Fconfig.yml\n   backend:\n     name: github\n     repo: owner\u002Frepo\n     branch: main\n     base_url: https:\u002F\u002Fyour-worker.workers.dev  # ← Add this line\n   ```\n\n5. **Test authentication:**\n   - Open your site's `\u002Fadmin\u002F`\n   - Click \"Login with GitHub\"\n   - Authorize the app\n   - You should be redirected back to the CMS\n\n**Complete guide**: See `references\u002Fcloudflare-auth-setup.md`\n\n**Template**: See `templates\u002Fcloudflare-workers\u002F`\n\n---\n\n### Option 2: Vercel Serverless Functions\n\n**Best For**: Vercel deployments\n\n**Steps:**\n\n1. **Create API route:**\n   ```typescript\n   \u002F\u002F api\u002Fauth.ts\n   export default async function handler(req, res) {\n     \u002F\u002F OAuth handling logic\n     \u002F\u002F See templates\u002Fvercel-serverless\u002Fapi-auth.ts\n   }\n   ```\n\n2. **Set environment variables in Vercel:**\n   ```\n   GITHUB_CLIENT_ID=your_client_id\n   GITHUB_CLIENT_SECRET=your_client_secret\n   ```\n\n3. **Update CMS config:**\n   ```yaml\n   backend:\n     name: github\n     repo: owner\u002Frepo\n     branch: main\n     base_url: https:\u002F\u002Fyourdomain.com\u002Fapi\u002Fauth\n   ```\n\n**Template**: See `templates\u002Fvercel-serverless\u002F`\n\n---\n\n### Option 3: Netlify Functions (Not Recommended)\n\n**Note**: Sveltia CMS deliberately omits Git Gateway support for performance reasons.\n\nIf deploying to Netlify, use either:\n- **Cloudflare Workers OAuth** (recommended, faster)\n- **Netlify Functions with custom OAuth** (similar to Vercel pattern)\n\n---\n\n### Option 4: Local Development (GitHub\u002FGitLab Direct)\n\n**For local development only** - no authentication proxy needed.\n\n**Requirements:**\n- GitHub\u002FGitLab personal access token\n- Browser with File System Access API (Chrome, Edge)\n\n**Setup:**\n\n1. **Generate personal access token:**\n   - GitHub: https:\u002F\u002Fgithub.com\u002Fsettings\u002Ftokens\n   - Scopes: `repo` (full control of private repositories)\n\n2. **Configure local backend:**\n   ```yaml\n   # admin\u002Fconfig.yml\n   backend:\n     name: github\n     repo: owner\u002Frepo\n     branch: main\n\n   local_backend: true  # Enable local mode\n   ```\n\n3. **Use Sveltia's local repository feature:**\n   - Click \"Work with Local Repository\" in login screen\n   - Select your local Git repository folder\n   - Changes save directly to local files\n   - Commit and push manually via Git\n\n**Note**: This is for development only - production requires OAuth proxy.\n\n---\n\n## Configuration Best Practices\n\n### Basic Config Structure\n\n```yaml\n# admin\u002Fconfig.yml\n\n# Backend (Git provider)\nbackend:\n  name: github  # or gitlab, gitea, forgejo\n  repo: owner\u002Frepo\n  branch: main\n  base_url: https:\u002F\u002Fyour-auth-worker.workers.dev  # OAuth proxy\n\n# Media storage\nmedia_folder: static\u002Fimages\u002Fuploads  # Where files are saved\npublic_folder: \u002Fimages\u002Fuploads        # URL path in content\n\n# Optional: Multiple media libraries\nmedia_libraries:\n  default:\n    config:\n      max_file_size: 5242880  # 5 MB in bytes\n      slugify_filename: true\n      transformations:\n        raster_image:\n          format: webp\n          quality: 85\n          width: 2048\n          height: 2048\n        svg:\n          optimize: true\n\n# Optional: Custom branding\nlogo_url: https:\u002F\u002Fyourdomain.com\u002Flogo.svg\n\n# Collections (content types)\ncollections:\n  - name: posts\n    label: Blog Posts\n    folder: content\u002Fposts\n    create: true\n    fields:\n      # Field definitions\n```\n\n---\n\n### Collection Patterns\n\n**Collections** define content types and where they're stored.\n\n#### Blog Post Collection\n\n```yaml\ncollections:\n  - name: posts\n    label: Blog Posts\n    folder: content\u002Fposts\n    create: true\n    slug: '{{year}}-{{month}}-{{day}}-{{slug}}'\n    format: yaml  # or md, toml, json\n    fields:\n      - label: Title\n        name: title\n        widget: string\n\n      - label: Date\n        name: date\n        widget: datetime\n        date_format: 'YYYY-MM-DD'\n        time_format: false  # Date only\n\n      - label: Draft\n        name: draft\n        widget: boolean\n        default: true\n\n      - label: Featured Image\n        name: image\n        widget: image\n        required: false\n\n      - label: Excerpt\n        name: excerpt\n        widget: text\n        required: false\n\n      - label: Tags\n        name: tags\n        widget: list\n        required: false\n\n      - label: Body\n        name: body\n        widget: markdown\n```\n\n**Template**: See `templates\u002Fcollections\u002Fblog-posts.yml`\n\n---\n\n#### Documentation Page Collection\n\n```yaml\ncollections:\n  - name: docs\n    label: Documentation\n    folder: content\u002Fdocs\n    create: true\n    slug: '{{slug}}'\n    format: mdx\n    fields:\n      - label: Title\n        name: title\n        widget: string\n\n      - label: Description\n        name: description\n        widget: text\n\n      - label: Order\n        name: order\n        widget: number\n        value_type: int\n        hint: Sort order in sidebar\n\n      - label: Category\n        name: category\n        widget: select\n        options:\n          - Getting Started\n          - API Reference\n          - Tutorials\n          - Advanced\n\n      - label: Body\n        name: body\n        widget: markdown\n```\n\n**Template**: See `templates\u002Fcollections\u002Fdocs-pages.yml`\n\n---\n\n#### Landing Page Collection (Structured Content)\n\n```yaml\ncollections:\n  - name: pages\n    label: Landing Pages\n    folder: content\u002Fpages\n    create: true\n    slug: '{{slug}}'\n    format: json\n    fields:\n      - label: Title\n        name: title\n        widget: string\n\n      - label: SEO\n        name: seo\n        widget: object\n        fields:\n          - { label: Meta Title, name: metaTitle, widget: string }\n          - { label: Meta Description, name: metaDescription, widget: text }\n          - { label: OG Image, name: ogImage, widget: image }\n\n      - label: Hero Section\n        name: hero\n        widget: object\n        fields:\n          - { label: Headline, name: headline, widget: string }\n          - { label: Subheadline, name: subheadline, widget: text }\n          - { label: Hero Image, name: image, widget: image }\n          - label: CTA Button\n            name: cta\n            widget: object\n            fields:\n              - { label: Text, name: text, widget: string }\n              - { label: URL, name: url, widget: string }\n\n      - label: Features\n        name: features\n        widget: list\n        fields:\n          - { label: Title, name: title, widget: string }\n          - { label: Description, name: description, widget: text }\n          - { label: Icon, name: icon, widget: image }\n```\n\n**Template**: See `templates\u002Fcollections\u002Flanding-pages.yml`\n\n---\n\n### Internationalization (i18n) Setup\n\nSveltia CMS has first-class i18n support with multiple structure options.\n\n#### Multiple Files Structure (Recommended)\n\n**Best for**: Hugo, Jekyll with separate locale files\n\n```yaml\ni18n:\n  structure: multiple_files\n  locales: [en, fr, de, ja]\n  default_locale: en\n\ncollections:\n  - name: posts\n    label: Blog Posts\n    folder: content\u002Fposts\n    create: true\n    i18n: true  # Enable i18n for this collection\n    fields:\n      - label: Title\n        name: title\n        widget: string\n        i18n: true  # Translatable field\n\n      - label: Date\n        name: date\n        widget: datetime\n        i18n: duplicate  # Same value across locales\n\n      - label: Body\n        name: body\n        widget: markdown\n        i18n: true\n```\n\n**Result**: Creates files like:\n- `content\u002Fposts\u002Fhello-world.en.md`\n- `content\u002Fposts\u002Fhello-world.fr.md`\n- `content\u002Fposts\u002Fhello-world.de.md`\n\n---\n\n#### Multiple Folders Structure\n\n**Best for**: Next.js, Astro with locale directories\n\n```yaml\ni18n:\n  structure: multiple_folders\n  locales: [en, fr, de]\n  default_locale: en\n\ncollections:\n  - name: blog\n    label: Blog Posts\n    folder: content\u002F{{locale}}\u002Fblog  # {{locale}} placeholder\n    create: true\n    i18n: true\n    fields:\n      # Same as above\n```\n\n**Result**: Creates files like:\n- `content\u002Fen\u002Fblog\u002Fhello-world.md`\n- `content\u002Ffr\u002Fblog\u002Fhello-world.md`\n- `content\u002Fde\u002Fblog\u002Fhello-world.md`\n\n---\n\n#### Single File Structure\n\n**Best for**: i18n libraries that manage translations in one file\n\n```yaml\ni18n:\n  structure: single_file\n  locales: [en, fr, de]\n  default_locale: en\n\ncollections:\n  - name: translations\n    label: Translations\n    files:\n      - name: ui\n        label: UI Strings\n        file: data\u002Ftranslations.json\n        i18n: true\n        fields:\n          - label: Navigation\n            name: nav\n            widget: object\n            i18n: true\n            fields:\n              - { label: Home, name: home, widget: string, i18n: true }\n              - { label: About, name: about, widget: string, i18n: true }\n```\n\n**Reference**: See `references\u002Fi18n-patterns.md` for complete guide.\n\n---\n\n### DeepL Translation Integration\n\nSveltia CMS includes one-click translation using DeepL.\n\n**Setup:**\n\n1. **Get DeepL API key:**\n   - Sign up at https:\u002F\u002Fwww.deepl.com\u002Fpro-api\n   - Free tier: 500,000 characters\u002Fmonth\n\n2. **Add to config:**\n   ```yaml\n   # admin\u002Fconfig.yml\n   backend:\n     name: github\n     repo: owner\u002Frepo\n\n   i18n:\n     structure: multiple_files\n     locales: [en, fr, de, es, ja]\n     default_locale: en\n\n   # DeepL integration\n   deepl:\n     api_key: your-deepl-api-key\n     # Or use environment variable: DEEPL_API_KEY\n   ```\n\n3. **Use in editor:**\n   - Switch to non-default locale\n   - Click \"Translate from [Default Locale]\" button\n   - DeepL translates all translatable fields instantly\n\n**Note**: Translation quality depends on DeepL's AI - always review translations.\n\n---\n\n## Common Errors & Solutions\n\nThis skill prevents **8 common errors** encountered when setting up Sveltia CMS.\n\n### 1. ❌ OAuth Authentication Failures\n\n**Error Message:**\n- \"Error: Failed to authenticate\"\n- Redirect to `https:\u002F\u002Fapi.netlify.com\u002Fauth` instead of GitHub login\n\n**Symptoms:**\n- Login button does nothing\n- Redirects to wrong domain\n- Authentication popup closes immediately\n\n**Causes:**\n- Missing `base_url` in backend config\n- Incorrect OAuth proxy URL\n- CORS policy blocking authentication\n- Wrong GitHub OAuth callback URL\n\n**Solution:**\n\n**Step 1: Verify config.yml has `base_url`:**\n```yaml\nbackend:\n  name: github\n  repo: owner\u002Frepo\n  branch: main\n  base_url: https:\u002F\u002Fyour-worker.workers.dev  # ← Must be present\n```\n\n**Step 2: Check GitHub OAuth App callback:**\n- Should be: `https:\u002F\u002Fyour-worker.workers.dev\u002Fcallback`\n- NOT: `https:\u002F\u002Fyourdomain.com\u002Fcallback`\n\n**Step 3: Verify Worker environment variables:**\n```bash\nnpx wrangler secret list\n# Should show: GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET\n```\n\n**Step 4: Test Worker directly:**\n```bash\ncurl https:\u002F\u002Fyour-worker.workers.dev\u002Fhealth\n# Should return: {\"status\": \"ok\"}\n```\n\n**Prevention:**\n- Always include `base_url` when not using GitHub direct auth\n- Test OAuth flow in incognito window\n- Check browser console for CORS errors\n\n---\n\n### 2. ❌ TOML Front Matter Errors\n\n**Error Message:**\n- \"Parse error: Invalid TOML\"\n- Files missing `+++` delimiters\n- Body content appearing in frontmatter\n\n**Symptoms:**\n- New files created by CMS don't parse in Hugo\n- Existing TOML files break after editing\n- Content appears above body separator\n\n**Causes:**\n- Sveltia's TOML generation is buggy in beta\n- Incomplete TOML delimiter handling\n- Mixed TOML\u002FYAML in same collection\n\n**Solution:**\n\n**Use YAML instead of TOML** (recommended):\n```yaml\ncollections:\n  - name: posts\n    folder: content\u002Fposts\n    format: yaml  # or md (Markdown with YAML frontmatter)\n    # NOT: format: toml\n```\n\n**If you must use TOML:**\n1. Manually fix delimiters after CMS saves\n2. Use pre-commit hook to validate TOML\n3. Wait for beta fixes (track GitHub issues)\n\n**Migration from TOML to YAML:**\n```bash\n# Convert all posts from TOML to YAML\nfor file in content\u002Fposts\u002F*.md; do\n  # Use Hugo's built-in converter\n  hugo convert toYAML \"$file\"\ndone\n```\n\n**Prevention:**\n- Prefer YAML format for new projects\n- If Hugo requires TOML, test CMS thoroughly before production\n- Keep watch on Sveltia GitHub releases for TOML fixes\n\n---\n\n### 3. ❌ YAML Parse Errors\n\n**Error Message:**\n- \"YAML parse error: Invalid YAML\"\n- \"Error: Duplicate key 'field_name'\"\n- \"Unexpected character at position X\"\n\n**Symptoms:**\n- Existing posts won't load in CMS\n- Can't save changes to content\n- CMS shows empty fields\n\n**Causes:**\n- Sveltia is stricter than Hugo\u002FJekyll about YAML formatting\n- Multiple YAML documents in one file (---\\n---\\n---)\n- Incorrect indentation or special characters\n- Smart quotes from copy-paste\n\n**Solution:**\n\n**Step 1: Validate YAML:**\n```bash\n# Install yamllint\npip install yamllint\n\n# Check all content files\nfind content -name \"*.md\" -exec yamllint {} \\;\n```\n\n**Step 2: Common fixes:**\n\n**Problem**: Multiple documents in one file\n```yaml\n---\ntitle: Post 1\n---\n---  # ← Remove this extra separator\ntitle: Post 2\n---\n```\n\n**Problem**: Incorrect indentation\n```yaml\n# ❌ Bad - inconsistent indentation\nfields:\n  - name: title\n     label: Title  # Extra space\n  - name: date\n    label: Date\n\n# ✅ Good - consistent 2-space indentation\nfields:\n  - name: title\n    label: Title\n  - name: date\n    label: Date\n```\n\n**Problem**: Smart quotes\n```yaml\n# ❌ Bad - smart quotes from copy-paste\ntitle: \"Hello World\"  # Curly quotes\n\n# ✅ Good - straight quotes\ntitle: \"Hello World\"  # Straight quotes\n```\n\n**Step 3: Auto-fix with yamlfmt:**\n```bash\n# Install\ngo install github.com\u002Fgoogle\u002Fyamlfmt\u002Fcmd\u002Fyamlfmt@latest\n\n# Fix all files\nfind content -name \"*.md\" -exec yamlfmt {} \\;\n```\n\n**Prevention:**\n- Use YAML-aware editors (VS Code with YAML extension)\n- Enable YAML schema validation\n- Run yamllint in pre-commit hooks\n\n---\n\n### 4. ❌ Content Not Listing in CMS\n\n**Error Message:**\n- \"No entries found\"\n- Empty content list\n- \"Failed to load entries\"\n\n**Symptoms:**\n- Admin loads but shows no content\n- Collections appear empty\n- Files exist in repository but CMS doesn't see them\n\n**Causes:**\n- Format mismatch (config expects TOML, files are YAML)\n- Incorrect folder path\n- File extension doesn't match format\n- Git backend not connected\n\n**Solution:**\n\n**Step 1: Verify folder path matches actual files:**\n```yaml\n# Config says:\ncollections:\n  - name: posts\n    folder: content\u002Fposts  # Expects files here\n\n# Check actual location:\nls -la content\u002Fposts  # Files must exist here\n```\n\n**Step 2: Match format to actual files:**\n```yaml\n# If files are: content\u002Fposts\u002Fhello.md with YAML frontmatter\ncollections:\n  - name: posts\n    folder: content\u002Fposts\n    format: yaml  # or md (same as yaml for .md files)\n\n# If files are: content\u002Fposts\u002Fhello.toml\ncollections:\n  - name: posts\n    folder: content\u002Fposts\n    format: toml\n    extension: toml\n```\n\n**Step 3: Check file extensions:**\n```bash\n# Config expects .md files\nls content\u002Fposts\u002F*.md  # Should show files\n\n# If files have different extension:\n# Either rename files OR set extension in config\n```\n\n**Step 4: Verify Git backend connection:**\n```yaml\nbackend:\n  name: github\n  repo: owner\u002Frepo  # Must be correct owner\u002Frepo\n  branch: main      # Must be correct branch\n```\n\n**Prevention:**\n- Keep `folder` paths relative to repository root\n- Match `format` to actual file format\n- Test with one file first before creating collection\n\n---\n\n### 5. ❌ \"SVELTIA is not defined\" Error\n\n**Error Message:**\n- Console error: `Uncaught ReferenceError: SVELTIA is not defined`\n- Blank admin page\n- Admin page stuck loading\n\n**Symptoms:**\n- Admin page loads but shows white screen\n- Browser console shows JavaScript error\n- CMS never initializes\n\n**Causes:**\n- Incorrect script tag\n- CDN failure or blocked\n- Wrong script URL\n- Missing `type=\"module\"` attribute\n\n**Solution:**\n\n**Step 1: Use correct script tag:**\n```html\n\u003C!-- ✅ Correct -->\n\u003Cscript src=\"https:\u002F\u002Funpkg.com\u002F@sveltia\u002Fcms\u002Fdist\u002Fsveltia-cms.js\" type=\"module\">\u003C\u002Fscript>\n\n\u003C!-- ❌ Wrong - missing type=\"module\" -->\n\u003Cscript src=\"https:\u002F\u002Funpkg.com\u002F@sveltia\u002Fcms\u002Fdist\u002Fsveltia-cms.js\">\u003C\u002Fscript>\n\n\u003C!-- ❌ Wrong - incorrect path -->\n\u003Cscript src=\"https:\u002F\u002Funpkg.com\u002Fsveltia-cms\u002Fdist\u002Fsveltia-cms.js\" type=\"module\">\u003C\u002Fscript>\n```\n\n**Step 2: Verify CDN is accessible:**\n```bash\n# Test CDN URL\ncurl -I https:\u002F\u002Funpkg.com\u002F@sveltia\u002Fcms\u002Fdist\u002Fsveltia-cms.js\n# Should return: 200 OK\n```\n\n**Step 3: Use version pinning (optional but recommended):**\n```html\n\u003C!-- Pin to specific version for stability -->\n\u003Cscript src=\"https:\u002F\u002Funpkg.com\u002F@sveltia\u002Fcms@0.113.3\u002Fdist\u002Fsveltia-cms.js\" type=\"module\">\u003C\u002Fscript>\n```\n\n**Step 4: Check for CSP blocking:**\n```html\n\u003C!-- If you have Content Security Policy, add: -->\n\u003Cmeta http-equiv=\"Content-Security-Policy\" content=\"\n  default-src 'self';\n  script-src 'self' https:\u002F\u002Funpkg.com;\n  style-src 'self' 'unsafe-inline' https:\u002F\u002Funpkg.com;\n  connect-src 'self' https:\u002F\u002Fapi.github.com https:\u002F\u002Fyour-worker.workers.dev;\n\">\n```\n\n**Prevention:**\n- Copy-paste official script tag from Sveltia docs\n- Pin to specific version in production\n- Test admin page in different browsers\n\n---\n\n### 6. ❌ 404 on \u002Fadmin\n\n**Error Message:**\n- \"404 Not Found\" when visiting `\u002Fadmin\u002F`\n- Admin page doesn't exist\n\n**Symptoms:**\n- Site loads but `\u002Fadmin\u002F` returns 404\n- Works locally but not in production\n- Files exist but aren't served\n\n**Causes:**\n- Admin directory not in public\u002Fstatic folder\n- Admin files not deployed\n- Incorrect build configuration\n- Framework not copying admin files\n\n**Solution:**\n\n**Step 1: Verify admin directory location:**\n\nHugo: `static\u002Fadmin\u002F`\nJekyll: `admin\u002F`\n11ty: `admin\u002F` (with passthrough copy)\nAstro: `public\u002Fadmin\u002F`\nNext.js: `public\u002Fadmin\u002F`\nGatsby: `static\u002Fadmin\u002F`\n\n**Step 2: Check files exist:**\n```bash\nls -la static\u002Fadmin\u002F  # Hugo example\n# Should show: index.html, config.yml\n```\n\n**Step 3: Framework-specific fixes:**\n\n**Hugo**: Files in `static\u002F` are automatically copied\n\n**Jekyll**: Add to `_config.yml`:\n```yaml\ninclude:\n  - admin\n```\n\n**11ty**: Add to `.eleventy.js`:\n```javascript\nmodule.exports = function(eleventyConfig) {\n  eleventyConfig.addPassthroughCopy('admin');\n};\n```\n\n**Astro**: Files in `public\u002F` are automatically copied\n\n**Step 4: Verify deployment:**\n```bash\n# After build, check output directory\nls -la public\u002Fadmin\u002F  # or _site\u002Fadmin\u002F or dist\u002Fadmin\u002F\n```\n\n**Prevention:**\n- Test admin page access before deploying\n- Add admin directory to version control\n- Document admin path in project README\n\n---\n\n### 7. ❌ Images Not Uploading (HEIC Format)\n\n**Error Message:**\n- \"Unsupported file format\"\n- \"Failed to upload image\"\n- Image appears but doesn't save\n\n**Symptoms:**\n- iPhone photos won't upload\n- HEIC files rejected\n- Only JPEG\u002FPNG work\n\n**Causes:**\n- HEIC format not supported by browsers\n- Image too large (exceeds `max_file_size`)\n- Media folder path incorrect\n\n**Solution:**\n\n**Step 1: Convert HEIC to JPEG:**\n\n**On Mac:**\n```bash\n# Convert single file\nsips -s format jpeg image.heic --out image.jpg\n\n# Batch convert\nfor f in *.heic; do sips -s format jpeg \"$f\" --out \"${f%.heic}.jpg\"; done\n```\n\n**On iPhone:**\n- Settings > Camera > Formats > Most Compatible\n- This saves photos as JPEG instead of HEIC\n\n**Or use online converter**: https:\u002F\u002Fheic.to\u002F\n\n**Step 2: Enable image optimization to auto-convert:**\n```yaml\n# admin\u002Fconfig.yml\nmedia_libraries:\n  default:\n    config:\n      max_file_size: 10485760  # 10 MB\n      transformations:\n        raster_image:\n          format: webp  # Auto-converts to WebP\n          quality: 85\n          width: 2048\n          height: 2048\n```\n\n**Step 3: Increase max file size if needed:**\n```yaml\nmedia_libraries:\n  default:\n    config:\n      max_file_size: 10485760  # 10 MB in bytes\n      # Default is often 5 MB\n```\n\n**Prevention:**\n- Document image requirements for content editors\n- Enable auto-optimization in config\n- Set reasonable max_file_size (5-10 MB)\n\n---\n\n### 8. ❌ CORS \u002F COOP Policy Errors\n\n**Error Message:**\n- \"Authentication Aborted\"\n- \"Cross-Origin-Opener-Policy blocked\"\n- Authentication popup closes immediately\n\n**Symptoms:**\n- OAuth popup opens then closes\n- Can't complete GitHub login\n- Console shows COOP error\n\n**Causes:**\n- Strict `Cross-Origin-Opener-Policy` header\n- CORS headers blocking authentication\n- CSP blocking script execution\n\n**Solution:**\n\n**Step 1: Adjust COOP header:**\n\n**Cloudflare Pages** (_headers file):\n```\n\u002F*\n  Cross-Origin-Opener-Policy: same-origin-allow-popups\n  # NOT: same-origin (this breaks OAuth)\n```\n\n**Netlify** (_headers file):\n```\n\u002F*\n  Cross-Origin-Opener-Policy: same-origin-allow-popups\n```\n\n**Vercel** (vercel.json):\n```json\n{\n  \"headers\": [\n    {\n      \"source\": \"\u002F(.*)\",\n      \"headers\": [\n        {\n          \"key\": \"Cross-Origin-Opener-Policy\",\n          \"value\": \"same-origin-allow-popups\"\n        }\n      ]\n    }\n  ]\n}\n```\n\n**Step 2: Add OAuth proxy to CSP:**\n```html\n\u003Cmeta http-equiv=\"Content-Security-Policy\" content=\"\n  connect-src 'self' https:\u002F\u002Fapi.github.com https:\u002F\u002Fyour-worker.workers.dev;\n\">\n```\n\n**Step 3: For Cloudflare Pages, allow API access:**\n```yaml\n# admin\u002Fconfig.yml (if using Cloudflare Pages webhooks)\n# Add to CSP: https:\u002F\u002Fapi.cloudflare.com\n```\n\n**Prevention:**\n- Set COOP header to `same-origin-allow-popups` by default\n- Test authentication in different browsers\n- Document required headers in project README\n\n---\n\n## Migration from Decap CMS\n\nSveltia CMS is a **drop-in replacement** for Decap CMS (formerly Netlify CMS).\n\n### Migration Steps\n\n**Step 1: Update script tag:**\n\n```html\n\u003C!-- OLD: Decap CMS -->\n\u003Cscript src=\"https:\u002F\u002Funpkg.com\u002Fdecap-cms@^3.0.0\u002Fdist\u002Fdecap-cms.js\">\u003C\u002Fscript>\n\n\u003C!-- NEW: Sveltia CMS -->\n\u003Cscript src=\"https:\u002F\u002Funpkg.com\u002F@sveltia\u002Fcms\u002Fdist\u002Fsveltia-cms.js\" type=\"module\">\u003C\u002Fscript>\n```\n\n**Step 2: Keep existing config.yml:**\n\n```yaml\n# Your existing Decap config.yml works as-is!\nbackend:\n  name: github\n  repo: owner\u002Frepo\n\ncollections:\n  # ... no changes needed\n```\n\n**Step 3: Test locally:**\n\n```bash\n# Start your site's dev server\nhugo server  # or jekyll serve, or npm run dev\n\n# Visit \u002Fadmin\u002F and test:\n# - Login\n# - Content listing\n# - Editing\n# - Saving\n# - Media uploads\n```\n\n**Step 4: Deploy:**\n\n```bash\ngit add static\u002Fadmin\u002Findex.html  # or your admin path\ngit commit -m \"Migrate to Sveltia CMS\"\ngit push\n```\n\n**That's it!** Your content, collections, and workflows remain unchanged.\n\n---\n\n### What's Different?\n\n**Config Compatibility**: 100% compatible\n\n**UI Changes**:\n- Faster interface (no virtual DOM)\n- Better mobile experience\n- Dark mode support\n- Improved search\n\n**Performance Improvements**:\n- 5x smaller bundle (300 KB vs 1.5 MB)\n- Instant content loading (GraphQL)\n- No API rate limit issues\n\n**New Features**:\n- DeepL translation integration\n- Image optimization built-in\n- UUID slug generation\n- Better i18n support\n\n**Not Supported**:\n- Git Gateway backend (for performance reasons)\n- Azure backend (may be added later)\n- Bitbucket backend (may be added later)\n\n**Workaround**: Use Cloudflare Workers or Vercel OAuth proxy instead.\n\n---\n\n### Testing Checklist\n\nBefore fully migrating, test these workflows:\n\n- [ ] Login with OAuth\n- [ ] View content list\n- [ ] Create new entry\n- [ ] Edit existing entry\n- [ ] Upload images\n- [ ] Publish\u002Funpublish\n- [ ] Search content\n- [ ] Switch between collections\n- [ ] Mobile editing (if applicable)\n- [ ] i18n switching (if applicable)\n\n---\n\n**Complete guide**: See `references\u002Fmigration-from-decap.md`\n\n---\n\n## Deployment Patterns\n\n### Cloudflare Pages\n\n**Best For**: Static sites with Cloudflare ecosystem\n\n**Steps:**\n\n1. **Connect Git repository to Cloudflare Pages:**\n   - Dashboard > Pages > Create Project\n   - Connect GitHub\u002FGitLab\n   - Select repository\n\n2. **Configure build settings:**\n   ```yaml\n   Build command: hugo  # or jekyll build, or npm run build\n   Build output directory: public  # or _site, or dist\n   Root directory: \u002F\n   ```\n\n3. **Deploy OAuth Worker** (see Cloudflare Workers OAuth section)\n\n4. **Update config.yml with Worker URL:**\n   ```yaml\n   backend:\n     base_url: https:\u002F\u002Fyour-worker.workers.dev\n   ```\n\n5. **Deploy:**\n   - Push to main branch\n   - Cloudflare Pages builds automatically\n   - Access admin at: `https:\u002F\u002Fyourdomain.pages.dev\u002Fadmin\u002F`\n\n---\n\n### Vercel\n\n**Best For**: Next.js, Astro, or any framework with Vercel deployment\n\n**Steps:**\n\n1. **Connect Git repository:**\n   - Dashboard > Add New Project\n   - Import repository\n\n2. **Configure build:**\n   ```\n   Framework Preset: \u003CAuto-detected>\n   Build Command: \u003CDefault>\n   Output Directory: \u003CDefault>\n   ```\n\n3. **Deploy OAuth serverless function** (see Vercel setup section)\n\n4. **Set environment variables:**\n   ```\n   GITHUB_CLIENT_ID=your_client_id\n   GITHUB_CLIENT_SECRET=your_client_secret\n   ```\n\n5. **Deploy:**\n   - Push to main branch\n   - Vercel builds automatically\n\n---\n\n### Netlify\n\n**Best For**: JAMstack sites, legacy Netlify CMS migrations\n\n**Steps:**\n\n1. **Connect Git repository:**\n   - Dashboard > Add New Site\n   - Import repository\n\n2. **Configure build:**\n   ```\n   Build command: \u003Cyour-build-command>\n   Publish directory: public  # or _site, or dist\n   ```\n\n3. **Use Cloudflare Workers for OAuth** (recommended over Netlify Functions)\n\n4. **Deploy:**\n   - Push to main branch\n   - Netlify builds automatically\n\n---\n\n### GitHub Pages\n\n**Best For**: Jekyll sites, simple static sites\n\n**Steps:**\n\n1. **Configure Jekyll (if using):**\n   ```yaml\n   # _config.yml\n   include:\n     - admin\n   ```\n\n2. **Create GitHub Actions workflow:**\n   ```yaml\n   # .github\u002Fworkflows\u002Fdeploy.yml\n   name: Deploy\n   on:\n     push:\n       branches: [main]\n   jobs:\n     deploy:\n       runs-on: ubuntu-latest\n       steps:\n         - uses: actions\u002Fcheckout@v3\n         - name: Build\n           run: jekyll build  # or your build command\n         - name: Deploy\n           uses: peaceiris\u002Factions-gh-pages@v3\n           with:\n             github_token: ${{ secrets.GITHUB_TOKEN }}\n             publish_dir: .\u002F_site\n   ```\n\n3. **Deploy OAuth Worker** for authentication\n\n4. **Access admin:**\n   ```\n   https:\u002F\u002Fusername.github.io\u002Frepo\u002Fadmin\u002F\n   ```\n\n---\n\n## Additional Resources\n\n### Templates\n\nAll templates available in `templates\u002F`:\n\n- **hugo\u002F** - Complete Hugo blog setup\n- **jekyll\u002F** - Jekyll site configuration\n- **11ty\u002F** - Eleventy blog setup\n- **astro\u002F** - Astro content collections\n- **cloudflare-workers\u002F** - OAuth proxy implementation\n- **vercel-serverless\u002F** - Vercel auth functions\n- **collections\u002F** - Pre-built collection patterns\n  - blog-posts.yml\n  - docs-pages.yml\n  - landing-pages.yml\n- **admin\u002F** - Base admin page templates\n\n### References\n\nComprehensive guides in `references\u002F`:\n\n- **common-errors.md** - Extended error troubleshooting\n- **migration-from-decap.md** - Complete migration guide\n- **cloudflare-auth-setup.md** - Step-by-step OAuth setup\n- **config-reference.md** - Full config.yml documentation\n- **i18n-patterns.md** - Internationalization strategies\n- **framework-guides.md** - Per-framework specifics\n\n### Scripts\n\nAutomation tools in `scripts\u002F`:\n\n- **init-sveltia.sh** - Automated setup for new projects\n- **deploy-cf-auth.sh** - Deploy Cloudflare Workers OAuth\n- **check-versions.sh** - Verify compatibility\n\n### Official Documentation\n\n- **Website**: https:\u002F\u002Fsveltia.com (coming soon)\n- **GitHub**: https:\u002F\u002Fgithub.com\u002Fsveltia\u002Fsveltia-cms\n- **OAuth Worker**: https:\u002F\u002Fgithub.com\u002Fsveltia\u002Fsveltia-cms-auth\n- **npm Package**: https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@sveltia\u002Fcms\n- **Discussions**: https:\u002F\u002Fgithub.com\u002Fsveltia\u002Fsveltia-cms\u002Fdiscussions\n\n---\n\n## Token Efficiency\n\n**Estimated Savings**: 60-65% (~9,000 tokens saved)\n\n**Without Skill** (~14,000 tokens):\n- Initial research and exploration: 2,500 tokens\n- Framework setup trial & error: 2,000 tokens\n- OAuth configuration attempts: 2,500 tokens\n- Error troubleshooting: 3,500 tokens\n- i18n setup: 1,500 tokens\n- Deployment configuration: 2,000 tokens\n\n**With Skill** (~5,000 tokens):\n- Skill discovery: 100 tokens\n- Skill loading (SKILL.md): 3,500 tokens\n- Template selection: 400 tokens\n- Minor project-specific adjustments: 1,000 tokens\n\n---\n\n## Errors Prevented\n\nThis skill prevents **8 common errors** (100% prevention rate):\n\n1. ✅ OAuth authentication failures\n2. ✅ TOML front matter generation bugs\n3. ✅ YAML parse errors (strict validation)\n4. ✅ Content not listing in CMS\n5. ✅ \"SVELTIA is not defined\" errors\n6. ✅ 404 on \u002Fadmin page\n7. ✅ Image upload failures (HEIC format)\n8. ✅ CORS \u002F COOP policy errors\n\n---\n\n## Quick Start Examples\n\n### Example 1: Hugo Blog with Cloudflare OAuth\n\n```bash\n# 1. Create Hugo site\nhugo new site my-blog\ncd my-blog\n\n# 2. Create admin directory\nmkdir -p static\u002Fadmin\n\n# 3. Copy templates\ncp [path-to-skill]\u002Ftemplates\u002Fhugo\u002Findex.html static\u002Fadmin\u002F\ncp [path-to-skill]\u002Ftemplates\u002Fhugo\u002Fconfig.yml static\u002Fadmin\u002F\n\n# 4. Deploy OAuth Worker\ngit clone https:\u002F\u002Fgithub.com\u002Fsveltia\u002Fsveltia-cms-auth\ncd sveltia-cms-auth\nnpx wrangler deploy\n\n# 5. Configure and test\nhugo server\nopen http:\u002F\u002Flocalhost:1313\u002Fadmin\u002F\n```\n\n---\n\n### Example 2: Jekyll on GitHub Pages\n\n```bash\n# 1. Create Jekyll site\njekyll new my-site\ncd my-site\n\n# 2. Create admin\nmkdir admin\ncp [path-to-skill]\u002Ftemplates\u002Fjekyll\u002Findex.html admin\u002F\ncp [path-to-skill]\u002Ftemplates\u002Fjekyll\u002Fconfig.yml admin\u002F\n\n# 3. Add to _config.yml\necho \"include:\\n  - admin\" >> _config.yml\n\n# 4. Deploy\ngit add .\ngit commit -m \"Add Sveltia CMS\"\ngit push\n```\n\n---\n\n### Example 3: Migrate from Decap CMS\n\n```bash\n# 1. Update script tag in admin\u002Findex.html\nsed -i 's|decap-cms|@sveltia\u002Fcms|g' static\u002Fadmin\u002Findex.html\nsed -i 's|decap-cms.js|sveltia-cms.js\" type=\"module|g' static\u002Fadmin\u002Findex.html\n\n# 2. Test locally\nhugo server\nopen http:\u002F\u002Flocalhost:1313\u002Fadmin\u002F\n\n# 3. Deploy\ngit add static\u002Fadmin\u002Findex.html\ngit commit -m \"Migrate to Sveltia CMS\"\ngit push\n```\n\n---\n\n## Production Examples\n\n- **Hugo Documentation**: 0deepresearch.com (Hugo + GitHub Pages + Sveltia)\n- **Jekyll Blog**: keefeere.me (Jekyll + Sveltia + DeepL i18n)\n- **11ty Portfolio**: Various community projects\n\n---\n\n## Support\n\n**Issues?** Check `references\u002Fcommon-errors.md` first\n\n**Still Stuck?**\n- GitHub Issues: https:\u002F\u002Fgithub.com\u002Fsveltia\u002Fsveltia-cms\u002Fissues\n- Discussions: https:\u002F\u002Fgithub.com\u002Fsveltia\u002Fsveltia-cms\u002Fdiscussions\n- Stack Overflow: Tag `sveltia-cms`\n\n---\n\n**Last Updated**: 2025-10-24\n**Skill Version**: 1.0.0\n**Sveltia CMS Version**: 0.113.3 (Beta)\n**Status**: Production-ready, v1.0 GA expected early 2026\n",{"name":5,"license":14,"metadata":23,"description":43,"allowed-tools":44},{"deployment":24,"frameworks":30,"last_verified":39,"token_savings":40,"package_version":41,"errors_prevented":42},[25,26,27,28,29],"Cloudflare Workers","Vercel","Netlify","GitHub Pages","Cloudflare Pages",[31,32,33,34,35,36,37,38],"Hugo","Jekyll","11ty","Gatsby","Astro","Next.js","SvelteKit","Framework-agnostic","2025-10-29","60-65%","0.113.5",8,"Complete Sveltia CMS skill for lightweight, Git-backed content management.\nSveltia is the modern successor to Decap\u002FNetlify CMS with 5x smaller bundle (300 KB),\nfaster GraphQL-based performance, and solves 260+ predecessor issues.\n\nUse this skill when setting up Git-based CMS for static sites (Hugo, Jekyll,\n11ty, Gatsby, Astro, SvelteKit, Next.js), blogs, documentation sites, marketing\nsites, or migrating from Decap\u002FNetlify CMS. Framework-agnostic with first-class\ni18n support and mobile-friendly editing interface.\n\nPrevents 8+ common errors including OAuth authentication failures, TOML formatting\nissues, YAML parse errors, CORS\u002FCOOP policy problems, content not listing, script\nloading errors, image upload failures, and deployment problems. Includes complete\n\nKeywords: Sveltia CMS, Git-backed CMS, Decap CMS alternative, Netlify CMS alternative, headless CMS, static site CMS, Hugo CMS, Jekyll CMS, 11ty CMS, Gatsby CMS, Astro CMS, SvelteKit CMS, Next.js CMS, content management, visual editing, markdown CMS, YAML frontmatter, i18n CMS, multilingual CMS, mobile-friendly CMS, OAuth authentication CMS, TOML config, admin\u002Fconfig.yml, GraphQL performance, cloudflare workers oauth proxy, OAuth authentication failure, YAML parse error, CORS COOP policy, content not listing, image upload failures\nCloudflare Workers OAuth proxy setup guide.\n",[45,46,47,48,49,50],"Read","Write","Edit","Bash","Glob","Grep","main","45d5ac830c3e238eeba6d0b4e6fd7cf6b56bf380","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn","2026-09-09 16:05:56",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add davidanthonyn\u002Fclaude-skills --skill sveltia-cms",{"tool":62,"command":63},"bunx","bunx skills add davidanthonyn\u002Fclaude-skills --skill sveltia-cms",{"tool":65,"command":66},"pnpm","pnpm dlx skills add davidanthonyn\u002Fclaude-skills --skill sveltia-cms","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fsveltia-cms\u002FSKILL.md",true,[70,76,80],{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"README.md","REFERENCE","参考文档",9534,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fsveltia-cms\u002FREADME.md",{"path":77,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":78,"sourceHtmlUrl":79},"SKILL.json",47302,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fsveltia-cms\u002FSKILL.json",{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"SKILL.md.backup","OTHER","其他",44719,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fsveltia-cms\u002FSKILL.md.backup",[87,94,102,109,116,125],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M7AQPHJF528A4MD52YZEZV3R","zustand-state-management","Production-tested setup for Zustand state management in React applications with TypeScript.\nThis skill provides comprehensive patterns for building scalable, type-safe global state.\n\nUse when: setting up global state in React, migrating from Redux or Context API, implementing\nstate persistence with localStorage, configuring TypeScript with Zustand, using slices pattern\nfor modular stores, adding devtools middleware for debugging, handling Next.js SSR hydration,\nor encountering hydration errors, TypeScript inference issues, or persist middleware problems.\n\nPrevents 5 documented issues: Next.js hydration mismatches, TypeScript double parentheses\nsyntax errors, persist middleware export errors, infinite render loops, and slices pattern\ntype inference failures.\n\nKeywords: zustand, state management, React state, TypeScript state, persist middleware,\ndevtools, slices pattern, global state, React hooks, create store, useBoundStore,\nStateCreator, hydration error, text content mismatch, infinite render, localStorage,\nsessionStorage, immer middleware, shallow equality, selector pattern, zustand v5","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fzustand-state-management\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":98,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":18},"01M7AQP2XJRPNYEH323GJ81NN5","zetic-mlange","Help users integrate the ZETIC Melange (MLange) on-device AI SDK into Android (Kotlin\u002FJava) and iOS (Swift) mobile apps. Use this skill whenever the user mentions Zetic, MLange, Melange, ZeticMLangeModel, ZeticMLangeLLMModel, ZeticMLangeHFModel, on-device NPU inference for mobile, or deploying ML models to Android\u002FiOS with NPU acceleration. Also trigger when users ask about running LLMs on-device with GGUF quantization, mobile NPU model deployment, or converting PyTorch\u002FONNX models for mobile inference. Covers general model inference, LLM inference (streaming token generation), and HuggingFace model loading.","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fzetic-mlange\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fzetic-mlange\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":18},"01M7AQNEJHD27NNF5PYQDSW8B9","youtube-downloader","Download videos, audio, playlists, and channels from YouTube and 1000+ websites using yt-dlp. Supports quality selection, format conversion, subtitle download, playlist filtering, metadata extraction, thumbnail download, and batch operations. Use when downloading YouTube videos in any quality (4K, 8K, HDR), extracting audio as MP3\u002FM4A\u002FFLAC, downloading entire playlists\u002Fchannels, getting subtitles in multiple languages, converting to specific formats, downloading live streams, archiving content, or batch processing multiple URLs. Optimized for reliability with automatic retries, rate limiting, and error handling.","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fyoutube-downloader\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":18},"01M7AQJQSD2H04EE2EPNAQ8A3M","wordpress-plugin-core","This skill provides comprehensive knowledge for WordPress plugin development, covering core patterns, security best practices, database interactions, hooks\u002Ffilters, Settings API, custom post types, REST API, and AJAX. This skill should be used when creating WordPress plugins, troubleshooting security issues, implementing custom post types\u002Ftaxonomies, building admin interfaces, or working with the WordPress database.\n\nUse when: Creating new WordPress plugins, implementing nonces\u002Fsanitization\u002Fescaping, working with $wpdb and prepared statements, building Settings API pages, registering custom post types or taxonomies, implementing REST API endpoints, handling AJAX requests, debugging plugin activation\u002Fdeactivation issues, preventing SQL injection\u002FXSS\u002FCSRF vulnerabilities.\n\nKeywords: wordpress plugin development, wordpress security, wordpress hooks, wordpress filters, wordpress database, wpdb prepare, sanitize_text_field, esc_html, wp_nonce, custom post type, register_post_type, settings api, rest api, admin-ajax, wordpress sql injection, wordpress xss, wordpress csrf, plugin header, activation hook, deactivation hook, wordpress coding standards, wordpress plugin architecture","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fwordpress-plugin-core\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":120,"licenseFileUrl":121,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":18},"01M7AQJ91T970QCFMN9R1EHZXV","webapp-testing","Test local web applications with Playwright. Use when asked to verify frontend functionality, debug UI behavior, capture browser screenshots, or inspect browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":18},"01M7AQJ5E89MS8C5K3GZTY4B48","web-performance-audit","Audit web performance using Chrome DevTools MCP. Use when asked to audit, profile, debug, or optimize page load performance, Lighthouse scores, or site speed.","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fweb-performance-audit\u002FSKILL.md",[],[]]