[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F3WC1DAW0P6KKSN1NFP582":3,"skill-same:01M6F3WC1DAW0P6KKSN1NFP582":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":57,"ownerHtmlUrl":58,"ownerBlogUrl":6,"ownerDescription":59,"updatedAt":60,"install":61,"resources":74},"01M6F3WC1DAW0P6KKSN1NFP582","electric-deployment",null,"Deploy Electric via Docker, Docker Compose, or Electric Cloud. Covers DATABASE_URL (direct connection, not pooler), ELECTRIC_SECRET (required since v1.x), ELECTRIC_INSECURE for dev, wal_level=logical, max_replication_slots, ELECTRIC_STORAGE_DIR persistence, ELECTRIC_POOLED_DATABASE_URL for pooled queries, IPv6 with ELECTRIC_DATABASE_USE_IPV6, Kubernetes readiness probes (200 vs 202), replication slot cleanup, and Postgres v14+ requirements. Load when deploying Electric or configuring Postgres for logical replication.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Felectric-sql\u002Felectric\u002Felectric-deployment\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"electric deployment","deployment","website","URL","replication","guides","postgres","max","compose","direct","wal","docker","database","changelog","cleanup","packages","docker compose","sql","sync","storage","2026-11-10 10:12:30",false,"---\nname: electric-deployment\ndescription: >\n  Deploy Electric via Docker, Docker Compose, or Electric Cloud. Covers\n  DATABASE_URL (direct connection, not pooler), ELECTRIC_SECRET (required\n  since v1.x), ELECTRIC_INSECURE for dev, wal_level=logical,\n  max_replication_slots, ELECTRIC_STORAGE_DIR persistence,\n  ELECTRIC_POOLED_DATABASE_URL for pooled queries, IPv6 with\n  ELECTRIC_DATABASE_USE_IPV6, Kubernetes readiness probes (200 vs 202),\n  replication slot cleanup, and Postgres v14+ requirements. Load when\n  deploying Electric or configuring Postgres for logical replication.\ntype: lifecycle\nlibrary: electric\nlibrary_version: '1.5.10'\nsources:\n  - 'electric-sql\u002Felectric:website\u002Fdocs\u002Fguides\u002Fdeployment.md'\n  - 'electric-sql\u002Felectric:packages\u002Fsync-service\u002Fdev\u002Fpostgres.conf'\n  - 'electric-sql\u002Felectric:packages\u002Fsync-service\u002FCHANGELOG.md'\n---\n\n# Electric — Deployment\n\n## Setup\n\n### Postgres configuration\n\n```conf\n# postgresql.conf\nwal_level = logical\nmax_replication_slots = 10\n```\n\n### Docker Compose\n\n```yaml\nname: 'electric-backend'\nservices:\n  postgres:\n    image: postgres:16-alpine\n    environment:\n      POSTGRES_DB: electric\n      POSTGRES_USER: postgres\n      POSTGRES_PASSWORD: password\n    ports: ['54321:5432']\n    volumes: ['.\u002Fpostgres.conf:\u002Fetc\u002Fpostgresql\u002Fpostgresql.conf:ro']\n    tmpfs: ['\u002Fvar\u002Flib\u002Fpostgresql\u002Fdata', '\u002Ftmp']\n    command: ['postgres', '-c', 'config_file=\u002Fetc\u002Fpostgresql\u002Fpostgresql.conf']\n\n  electric:\n    image: electricsql\u002Felectric:latest\n    environment:\n      DATABASE_URL: postgresql:\u002F\u002Fpostgres:password@postgres:5432\u002Felectric?sslmode=disable\n      ELECTRIC_SECRET: ${ELECTRIC_SECRET}\n    ports: ['3000:3000']\n    volumes: ['electric_data:\u002Fvar\u002Flib\u002Felectric']\n    depends_on: ['postgres']\n\nvolumes:\n  electric_data:\n```\n\n### Electric Cloud\n\n```sh\nnpx @electric-sql\u002Fstart my-app\npnpm claim && pnpm deploy\n```\n\n## Core Patterns\n\n### Environment variables\n\n| Variable                       | Required   | Description                                   |\n| ------------------------------ | ---------- | --------------------------------------------- |\n| `DATABASE_URL`                 | Yes        | Direct Postgres connection (not pooler)       |\n| `ELECTRIC_SECRET`              | Yes (prod) | API authentication secret                     |\n| `ELECTRIC_INSECURE`            | Dev only   | Set `true` to skip secret requirement         |\n| `ELECTRIC_STORAGE_DIR`         | No         | Persistent shape cache directory              |\n| `ELECTRIC_POOLED_DATABASE_URL` | No         | Pooled connection for non-replication queries |\n| `ELECTRIC_DATABASE_USE_IPV6`   | No         | Set `true` for IPv6 Postgres connections      |\n\n### Kubernetes health checks\n\n```yaml\nlivenessProbe:\n  httpGet:\n    path: \u002Fv1\u002Fhealth\n    port: 3000\nreadinessProbe:\n  exec:\n    command: ['curl', '-sf', 'http:\u002F\u002Flocalhost:3000\u002Fv1\u002Fhealth']\n  # Use exec, not httpGet — 202 means \"alive but not ready\"\n  # Only 200 means fully ready for traffic\n```\n\n### Replication slot cleanup\n\n```sql\n-- When stopping Electric for extended periods:\nSELECT pg_drop_replication_slot('electric_slot_default');\n\n-- Prevent unbounded WAL growth:\nALTER SYSTEM SET max_slot_wal_keep_size = '10GB';\nSELECT pg_reload_conf();\n```\n\n## Common Mistakes\n\n### CRITICAL Not setting wal_level to logical\n\nWrong:\n\n```conf\n# postgresql.conf (default)\nwal_level = replica\n```\n\nCorrect:\n\n```conf\nwal_level = logical\nmax_replication_slots = 10\n```\n\nElectric requires logical replication. The default `wal_level = replica` does not support it. Requires Postgres restart after change.\n\nSource: `packages\u002Fsync-service\u002Fdev\u002Fpostgres.conf`\n\n### CRITICAL Running without ELECTRIC_SECRET in production\n\nWrong:\n\n```sh\ndocker run electricsql\u002Felectric \\\n  -e DATABASE_URL=postgres:\u002F\u002Fuser:pass@host\u002Fdb\n```\n\nCorrect:\n\n```sh\ndocker run electricsql\u002Felectric \\\n  -e DATABASE_URL=postgres:\u002F\u002Fuser:pass@host\u002Fdb \\\n  -e ELECTRIC_SECRET=my-secret-key\n```\n\nSince v1.x, `ELECTRIC_SECRET` is required. Without it, Electric refuses to start unless `ELECTRIC_INSECURE=true` is set (dev only).\n\nSource: `packages\u002Fsync-service\u002FCHANGELOG.md:832-834`\n\n### MEDIUM Using ephemeral storage for ELECTRIC_STORAGE_DIR\n\nWrong:\n\n```yaml\nelectric:\n  image: electricsql\u002Felectric:latest\n  # No volume — shape cache lost on restart\n```\n\nCorrect:\n\n```yaml\nelectric:\n  image: electricsql\u002Felectric:latest\n  volumes: ['electric_data:\u002Fvar\u002Flib\u002Felectric']\n```\n\nElectric caches shape logs on disk. Ephemeral storage causes full re-sync on every container restart.\n\nSource: `website\u002Fdocs\u002Fguides\u002Fdeployment.md:133-157`\n\n### MEDIUM Using deprecated ELECTRIC_QUERY_DATABASE_URL\n\nWrong:\n\n```sh\nELECTRIC_QUERY_DATABASE_URL=postgres:\u002F\u002Fuser:pass@pooler:6432\u002Fdb\n```\n\nCorrect:\n\n```sh\nELECTRIC_POOLED_DATABASE_URL=postgres:\u002F\u002Fuser:pass@pooler:6432\u002Fdb\n```\n\nRenamed from `ELECTRIC_QUERY_DATABASE_URL` to `ELECTRIC_POOLED_DATABASE_URL` in v1.3.x. The old name may stop working in future versions.\n\nSource: `packages\u002Fsync-service\u002FCHANGELOG.md:415`\n\nSee also: electric-proxy-auth\u002FSKILL.md — Production requires proxy with ELECTRIC_SECRET.\nSee also: electric-postgres-security\u002FSKILL.md — Deployment requires correct Postgres configuration.\nSee also: electric-debugging\u002FSKILL.md — Many sync issues stem from deployment configuration.\n\n## Version\n\nTargets Electric sync service v1.x.\n\n","# Electric — Deployment\n\n## Setup\n\n### Postgres configuration\n\n```conf\n# postgresql.conf\nwal_level = logical\nmax_replication_slots = 10\n```\n\n### Docker Compose\n\n```yaml\nname: 'electric-backend'\nservices:\n  postgres:\n    image: postgres:16-alpine\n    environment:\n      POSTGRES_DB: electric\n      POSTGRES_USER: postgres\n      POSTGRES_PASSWORD: password\n    ports: ['54321:5432']\n    volumes: ['.\u002Fpostgres.conf:\u002Fetc\u002Fpostgresql\u002Fpostgresql.conf:ro']\n    tmpfs: ['\u002Fvar\u002Flib\u002Fpostgresql\u002Fdata', '\u002Ftmp']\n    command: ['postgres', '-c', 'config_file=\u002Fetc\u002Fpostgresql\u002Fpostgresql.conf']\n\n  electric:\n    image: electricsql\u002Felectric:latest\n    environment:\n      DATABASE_URL: postgresql:\u002F\u002Fpostgres:password@postgres:5432\u002Felectric?sslmode=disable\n      ELECTRIC_SECRET: ${ELECTRIC_SECRET}\n    ports: ['3000:3000']\n    volumes: ['electric_data:\u002Fvar\u002Flib\u002Felectric']\n    depends_on: ['postgres']\n\nvolumes:\n  electric_data:\n```\n\n### Electric Cloud\n\n```sh\nnpx @electric-sql\u002Fstart my-app\npnpm claim && pnpm deploy\n```\n\n## Core Patterns\n\n### Environment variables\n\n| Variable                       | Required   | Description                                   |\n| ------------------------------ | ---------- | --------------------------------------------- |\n| `DATABASE_URL`                 | Yes        | Direct Postgres connection (not pooler)       |\n| `ELECTRIC_SECRET`              | Yes (prod) | API authentication secret                     |\n| `ELECTRIC_INSECURE`            | Dev only   | Set `true` to skip secret requirement         |\n| `ELECTRIC_STORAGE_DIR`         | No         | Persistent shape cache directory              |\n| `ELECTRIC_POOLED_DATABASE_URL` | No         | Pooled connection for non-replication queries |\n| `ELECTRIC_DATABASE_USE_IPV6`   | No         | Set `true` for IPv6 Postgres connections      |\n\n### Kubernetes health checks\n\n```yaml\nlivenessProbe:\n  httpGet:\n    path: \u002Fv1\u002Fhealth\n    port: 3000\nreadinessProbe:\n  exec:\n    command: ['curl', '-sf', 'http:\u002F\u002Flocalhost:3000\u002Fv1\u002Fhealth']\n  # Use exec, not httpGet — 202 means \"alive but not ready\"\n  # Only 200 means fully ready for traffic\n```\n\n### Replication slot cleanup\n\n```sql\n-- When stopping Electric for extended periods:\nSELECT pg_drop_replication_slot('electric_slot_default');\n\n-- Prevent unbounded WAL growth:\nALTER SYSTEM SET max_slot_wal_keep_size = '10GB';\nSELECT pg_reload_conf();\n```\n\n## Common Mistakes\n\n### CRITICAL Not setting wal_level to logical\n\nWrong:\n\n```conf\n# postgresql.conf (default)\nwal_level = replica\n```\n\nCorrect:\n\n```conf\nwal_level = logical\nmax_replication_slots = 10\n```\n\nElectric requires logical replication. The default `wal_level = replica` does not support it. Requires Postgres restart after change.\n\nSource: `packages\u002Fsync-service\u002Fdev\u002Fpostgres.conf`\n\n### CRITICAL Running without ELECTRIC_SECRET in production\n\nWrong:\n\n```sh\ndocker run electricsql\u002Felectric \\\n  -e DATABASE_URL=postgres:\u002F\u002Fuser:pass@host\u002Fdb\n```\n\nCorrect:\n\n```sh\ndocker run electricsql\u002Felectric \\\n  -e DATABASE_URL=postgres:\u002F\u002Fuser:pass@host\u002Fdb \\\n  -e ELECTRIC_SECRET=my-secret-key\n```\n\nSince v1.x, `ELECTRIC_SECRET` is required. Without it, Electric refuses to start unless `ELECTRIC_INSECURE=true` is set (dev only).\n\nSource: `packages\u002Fsync-service\u002FCHANGELOG.md:832-834`\n\n### MEDIUM Using ephemeral storage for ELECTRIC_STORAGE_DIR\n\nWrong:\n\n```yaml\nelectric:\n  image: electricsql\u002Felectric:latest\n  # No volume — shape cache lost on restart\n```\n\nCorrect:\n\n```yaml\nelectric:\n  image: electricsql\u002Felectric:latest\n  volumes: ['electric_data:\u002Fvar\u002Flib\u002Felectric']\n```\n\nElectric caches shape logs on disk. Ephemeral storage causes full re-sync on every container restart.\n\nSource: `website\u002Fdocs\u002Fguides\u002Fdeployment.md:133-157`\n\n### MEDIUM Using deprecated ELECTRIC_QUERY_DATABASE_URL\n\nWrong:\n\n```sh\nELECTRIC_QUERY_DATABASE_URL=postgres:\u002F\u002Fuser:pass@pooler:6432\u002Fdb\n```\n\nCorrect:\n\n```sh\nELECTRIC_POOLED_DATABASE_URL=postgres:\u002F\u002Fuser:pass@pooler:6432\u002Fdb\n```\n\nRenamed from `ELECTRIC_QUERY_DATABASE_URL` to `ELECTRIC_POOLED_DATABASE_URL` in v1.3.x. The old name may stop working in future versions.\n\nSource: `packages\u002Fsync-service\u002FCHANGELOG.md:415`\n\nSee also: electric-proxy-auth\u002FSKILL.md — Production requires proxy with ELECTRIC_SECRET.\nSee also: electric-postgres-security\u002FSKILL.md — Deployment requires correct Postgres configuration.\nSee also: electric-debugging\u002FSKILL.md — Many sync issues stem from deployment configuration.\n\n## Version\n\nTargets Electric sync service v1.x.\n\n",{"name":5,"type":44,"library":45,"sources":46,"description":50,"library_version":51},"lifecycle","electric",[47,48,49],"electric-sql\u002Felectric:website\u002Fdocs\u002Fguides\u002Fdeployment.md","electric-sql\u002Felectric:packages\u002Fsync-service\u002Fdev\u002Fpostgres.conf","electric-sql\u002Felectric:packages\u002Fsync-service\u002FCHANGELOG.md","Deploy Electric via Docker, Docker Compose, or Electric Cloud. Covers DATABASE_URL (direct connection, not pooler), ELECTRIC_SECRET (required since v1.x), ELECTRIC_INSECURE for dev, wal_level=logical, max_replication_slots, ELECTRIC_STORAGE_DIR persistence, ELECTRIC_POOLED_DATABASE_URL for pooled queries, IPv6 with ELECTRIC_DATABASE_USE_IPV6, Kubernetes readiness probes (200 vs 202), replication slot cleanup, and Postgres v14+ requirements. Load when deploying Electric or configuring Postgres for logical replication.\n","1.5.10","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Felectric-sql\u002Felectric\u002Felectric-deployment",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill electric-deployment",{"tool":67,"command":68},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill electric-deployment",{"tool":70,"command":71},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill electric-deployment","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Felectric-sql\u002Felectric\u002Felectric-deployment\u002FSKILL.md",true,[],[76,85,94,103,109,115],{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[82,83,84],"model","model hierarchy","model hierarchy skill",{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[91,92,93],"MCP","zoom","zoom mcp",{"skillNo":95,"name":96,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[100,101,102,92],"sdk","zoom apps sdk","apps",{"skillNo":104,"name":105,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[105],{"skillNo":110,"name":111,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[111],{"skillNo":116,"name":117,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[117]]