[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F3WRKH95SBHHWQGQ321EC8":3,"skill-same:01M6F3WRKH95SBHHWQGQ321EC8":76},{"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":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":58,"ownerHtmlUrl":59,"ownerBlogUrl":6,"ownerDescription":60,"updatedAt":61,"install":62,"resources":75},"01M6F3WRKH95SBHHWQGQ321EC8","electric-postgres-security",null,"Pre-deploy security checklist for Postgres with Electric. Checks REPLICATION role, SELECT grants, CREATE on database, table ownership, REPLICA IDENTITY FULL on all synced tables, publication management (auto vs manual with ELECTRIC_MANUAL_TABLE_PUBLISHING), connection pooler exclusion for DATABASE_URL (use direct connection), and ELECTRIC_POOLED_DATABASE_URL for pooled queries. Load before deploying Electric to production or when diagnosing Postgres permission errors.","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-postgres-security\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"electric postgres security","postgres","security","select","URL","replication","guides","full","permission","auto","grants","direct","table","website","database","permissions","create","sql","identity","auth","2026-11-10 10:12:30",false,"---\nname: electric-postgres-security\ndescription: >\n  Pre-deploy security checklist for Postgres with Electric. Checks REPLICATION\n  role, SELECT grants, CREATE on database, table ownership, REPLICA IDENTITY\n  FULL on all synced tables, publication management (auto vs manual with\n  ELECTRIC_MANUAL_TABLE_PUBLISHING), connection pooler exclusion for\n  DATABASE_URL (use direct connection), and ELECTRIC_POOLED_DATABASE_URL\n  for pooled queries. Load before deploying Electric to production or when\n  diagnosing Postgres permission errors.\ntype: security\nlibrary: electric\nlibrary_version: '1.5.10'\nrequires:\n  - electric-proxy-auth\nsources:\n  - 'electric-sql\u002Felectric:website\u002Fdocs\u002Fguides\u002Fpostgres-permissions.md'\n  - 'electric-sql\u002Felectric:website\u002Fdocs\u002Fguides\u002Ftroubleshooting.md'\n  - 'electric-sql\u002Felectric:website\u002Fdocs\u002Fguides\u002Fdeployment.md'\n---\n\nThis skill builds on electric-proxy-auth. Read it first for proxy security patterns.\n\n# Electric — Postgres Security Checklist\n\nRun through each section before deploying Electric to production.\n\n## User Permission Checks\n\n### Check: Electric user has REPLICATION role\n\nExpected:\n\n```sql\nSELECT rolreplication FROM pg_roles WHERE rolname = 'electric_user';\n-- Should return: true\n```\n\nFail condition: `rolreplication = false` or user does not exist.\nFix: `ALTER ROLE electric_user WITH REPLICATION;`\n\n### Check: Electric user has SELECT on synced tables\n\nExpected:\n\n```sql\nSELECT has_table_privilege('electric_user', 'todos', 'SELECT');\n-- Should return: true\n```\n\nFail condition: Returns `false`.\nFix: `GRANT SELECT ON todos TO electric_user;` or `GRANT SELECT ON ALL TABLES IN SCHEMA public TO electric_user;`\n\n### Check: Electric user has CREATE on database\n\nExpected:\n\n```sql\nSELECT has_database_privilege('electric_user', current_database(), 'CREATE');\n-- Should return: true (unless using manual publishing mode)\n```\n\nFail condition: Returns `false` and not using `ELECTRIC_MANUAL_TABLE_PUBLISHING=true`.\nFix: `GRANT CREATE ON DATABASE mydb TO electric_user;`\n\n## Table Configuration Checks\n\n### Check: REPLICA IDENTITY FULL on all synced tables\n\nExpected:\n\n```sql\nSELECT relname, relreplident\nFROM pg_class\nWHERE relname IN ('todos', 'users')\n  AND relreplident = 'f';  -- 'f' = FULL\n```\n\nFail condition: `relreplident` is `'d'` (default) or `'n'` (nothing).\nFix: `ALTER TABLE todos REPLICA IDENTITY FULL;`\n\n### Check: Tables are in the Electric publication\n\nExpected:\n\n```sql\nSELECT tablename FROM pg_publication_tables\nWHERE pubname = 'electric_publication_default';\n```\n\nFail condition: Synced tables missing from the list.\nFix (manual mode): `ALTER PUBLICATION electric_publication_default ADD TABLE todos;`\n\n## Connection Checks\n\n### Check: DATABASE_URL uses direct connection (not pooler)\n\nExpected:\n\n```\nDATABASE_URL=postgres:\u002F\u002Fuser:pass@db-host:5432\u002Fmydb\n```\n\nFail condition: URL points to a connection pooler (e.g., PgBouncer on port 6432, Supabase pooler).\nFix: Use direct Postgres connection for `DATABASE_URL`. Set `ELECTRIC_POOLED_DATABASE_URL` separately for pooled queries.\n\n### Check: wal_level is set to logical\n\nExpected:\n\n```sql\nSHOW wal_level;\n-- Should return: logical\n```\n\nFail condition: Returns `replica` or `minimal`.\nFix: Set `wal_level = logical` in `postgresql.conf` and restart Postgres.\n\n## Common Security Mistakes\n\n### CRITICAL Using connection pooler for DATABASE_URL\n\nWrong:\n\n```sh\nDATABASE_URL=postgres:\u002F\u002Fuser:pass@pooler.example.com:6432\u002Fmydb\n```\n\nCorrect:\n\n```sh\nDATABASE_URL=postgres:\u002F\u002Fuser:pass@db.example.com:5432\u002Fmydb\nELECTRIC_POOLED_DATABASE_URL=postgres:\u002F\u002Fuser:pass@pooler.example.com:6432\u002Fmydb\n```\n\nConnection poolers (except PgBouncer 1.23+) do not support logical replication. Electric must connect directly to Postgres for its replication slot.\n\nSource: `website\u002Fdocs\u002Fguides\u002Fdeployment.md:91`\n\n### HIGH Missing REPLICA IDENTITY FULL on tables\n\nWrong:\n\n```sql\nCREATE TABLE todos (id UUID PRIMARY KEY, text TEXT);\n-- Replica identity defaults to 'default' (PK only)\n```\n\nCorrect:\n\n```sql\nCREATE TABLE todos (id UUID PRIMARY KEY, text TEXT);\nALTER TABLE todos REPLICA IDENTITY FULL;\n```\n\nWithout `REPLICA IDENTITY FULL`, Electric cannot stream the full row on updates and deletes. Updates may be missing non-PK columns.\n\nSource: `website\u002Fdocs\u002Fguides\u002Ftroubleshooting.md:373`\n\n### HIGH Electric user without REPLICATION role\n\nWrong:\n\n```sql\nCREATE USER electric_user WITH PASSWORD 'secret';\n```\n\nCorrect:\n\n```sql\nCREATE USER electric_user WITH PASSWORD 'secret' REPLICATION;\nGRANT SELECT ON ALL TABLES IN SCHEMA public TO electric_user;\n```\n\nElectric uses logical replication and requires the `REPLICATION` role on the database user.\n\nSource: `website\u002Fdocs\u002Fguides\u002Fpostgres-permissions.md`\n\n## Pre-Deploy Summary\n\n- [ ] Electric user has `REPLICATION` role\n- [ ] Electric user has `SELECT` on all synced tables\n- [ ] Electric user has `CREATE` on database (or manual publishing configured)\n- [ ] All synced tables have `REPLICA IDENTITY FULL`\n- [ ] All synced tables are in the Electric publication\n- [ ] `DATABASE_URL` uses direct Postgres connection (not pooler)\n- [ ] `wal_level = logical` in Postgres config\n- [ ] `ELECTRIC_SECRET` is set (not using `ELECTRIC_INSECURE=true`)\n- [ ] Secrets are injected server-side only (never in client bundle)\n\nSee also: electric-proxy-auth\u002FSKILL.md — Proxy injects secrets that Postgres security enforces.\nSee also: electric-deployment\u002FSKILL.md — Deployment requires correct Postgres configuration.\n\n## Version\n\nTargets Electric sync service v1.x.\n\n","This skill builds on electric-proxy-auth. Read it first for proxy security patterns.\n\n# Electric — Postgres Security Checklist\n\nRun through each section before deploying Electric to production.\n\n## User Permission Checks\n\n### Check: Electric user has REPLICATION role\n\nExpected:\n\n```sql\nSELECT rolreplication FROM pg_roles WHERE rolname = 'electric_user';\n-- Should return: true\n```\n\nFail condition: `rolreplication = false` or user does not exist.\nFix: `ALTER ROLE electric_user WITH REPLICATION;`\n\n### Check: Electric user has SELECT on synced tables\n\nExpected:\n\n```sql\nSELECT has_table_privilege('electric_user', 'todos', 'SELECT');\n-- Should return: true\n```\n\nFail condition: Returns `false`.\nFix: `GRANT SELECT ON todos TO electric_user;` or `GRANT SELECT ON ALL TABLES IN SCHEMA public TO electric_user;`\n\n### Check: Electric user has CREATE on database\n\nExpected:\n\n```sql\nSELECT has_database_privilege('electric_user', current_database(), 'CREATE');\n-- Should return: true (unless using manual publishing mode)\n```\n\nFail condition: Returns `false` and not using `ELECTRIC_MANUAL_TABLE_PUBLISHING=true`.\nFix: `GRANT CREATE ON DATABASE mydb TO electric_user;`\n\n## Table Configuration Checks\n\n### Check: REPLICA IDENTITY FULL on all synced tables\n\nExpected:\n\n```sql\nSELECT relname, relreplident\nFROM pg_class\nWHERE relname IN ('todos', 'users')\n  AND relreplident = 'f';  -- 'f' = FULL\n```\n\nFail condition: `relreplident` is `'d'` (default) or `'n'` (nothing).\nFix: `ALTER TABLE todos REPLICA IDENTITY FULL;`\n\n### Check: Tables are in the Electric publication\n\nExpected:\n\n```sql\nSELECT tablename FROM pg_publication_tables\nWHERE pubname = 'electric_publication_default';\n```\n\nFail condition: Synced tables missing from the list.\nFix (manual mode): `ALTER PUBLICATION electric_publication_default ADD TABLE todos;`\n\n## Connection Checks\n\n### Check: DATABASE_URL uses direct connection (not pooler)\n\nExpected:\n\n```\nDATABASE_URL=postgres:\u002F\u002Fuser:pass@db-host:5432\u002Fmydb\n```\n\nFail condition: URL points to a connection pooler (e.g., PgBouncer on port 6432, Supabase pooler).\nFix: Use direct Postgres connection for `DATABASE_URL`. Set `ELECTRIC_POOLED_DATABASE_URL` separately for pooled queries.\n\n### Check: wal_level is set to logical\n\nExpected:\n\n```sql\nSHOW wal_level;\n-- Should return: logical\n```\n\nFail condition: Returns `replica` or `minimal`.\nFix: Set `wal_level = logical` in `postgresql.conf` and restart Postgres.\n\n## Common Security Mistakes\n\n### CRITICAL Using connection pooler for DATABASE_URL\n\nWrong:\n\n```sh\nDATABASE_URL=postgres:\u002F\u002Fuser:pass@pooler.example.com:6432\u002Fmydb\n```\n\nCorrect:\n\n```sh\nDATABASE_URL=postgres:\u002F\u002Fuser:pass@db.example.com:5432\u002Fmydb\nELECTRIC_POOLED_DATABASE_URL=postgres:\u002F\u002Fuser:pass@pooler.example.com:6432\u002Fmydb\n```\n\nConnection poolers (except PgBouncer 1.23+) do not support logical replication. Electric must connect directly to Postgres for its replication slot.\n\nSource: `website\u002Fdocs\u002Fguides\u002Fdeployment.md:91`\n\n### HIGH Missing REPLICA IDENTITY FULL on tables\n\nWrong:\n\n```sql\nCREATE TABLE todos (id UUID PRIMARY KEY, text TEXT);\n-- Replica identity defaults to 'default' (PK only)\n```\n\nCorrect:\n\n```sql\nCREATE TABLE todos (id UUID PRIMARY KEY, text TEXT);\nALTER TABLE todos REPLICA IDENTITY FULL;\n```\n\nWithout `REPLICA IDENTITY FULL`, Electric cannot stream the full row on updates and deletes. Updates may be missing non-PK columns.\n\nSource: `website\u002Fdocs\u002Fguides\u002Ftroubleshooting.md:373`\n\n### HIGH Electric user without REPLICATION role\n\nWrong:\n\n```sql\nCREATE USER electric_user WITH PASSWORD 'secret';\n```\n\nCorrect:\n\n```sql\nCREATE USER electric_user WITH PASSWORD 'secret' REPLICATION;\nGRANT SELECT ON ALL TABLES IN SCHEMA public TO electric_user;\n```\n\nElectric uses logical replication and requires the `REPLICATION` role on the database user.\n\nSource: `website\u002Fdocs\u002Fguides\u002Fpostgres-permissions.md`\n\n## Pre-Deploy Summary\n\n- [ ] Electric user has `REPLICATION` role\n- [ ] Electric user has `SELECT` on all synced tables\n- [ ] Electric user has `CREATE` on database (or manual publishing configured)\n- [ ] All synced tables have `REPLICA IDENTITY FULL`\n- [ ] All synced tables are in the Electric publication\n- [ ] `DATABASE_URL` uses direct Postgres connection (not pooler)\n- [ ] `wal_level = logical` in Postgres config\n- [ ] `ELECTRIC_SECRET` is set (not using `ELECTRIC_INSECURE=true`)\n- [ ] Secrets are injected server-side only (never in client bundle)\n\nSee also: electric-proxy-auth\u002FSKILL.md — Proxy injects secrets that Postgres security enforces.\nSee also: electric-deployment\u002FSKILL.md — Deployment requires correct Postgres configuration.\n\n## Version\n\nTargets Electric sync service v1.x.\n\n",{"name":5,"type":21,"library":44,"sources":45,"requires":49,"description":51,"library_version":52},"electric",[46,47,48],"electric-sql\u002Felectric:website\u002Fdocs\u002Fguides\u002Fpostgres-permissions.md","electric-sql\u002Felectric:website\u002Fdocs\u002Fguides\u002Ftroubleshooting.md","electric-sql\u002Felectric:website\u002Fdocs\u002Fguides\u002Fdeployment.md",[50],"electric-proxy-auth","Pre-deploy security checklist for Postgres with Electric. Checks REPLICATION role, SELECT grants, CREATE on database, table ownership, REPLICA IDENTITY FULL on all synced tables, publication management (auto vs manual with ELECTRIC_MANUAL_TABLE_PUBLISHING), connection pooler exclusion for DATABASE_URL (use direct connection), and ELECTRIC_POOLED_DATABASE_URL for pooled queries. Load before deploying Electric to production or when diagnosing Postgres permission errors.\n","1.5.10","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Felectric-sql\u002Felectric\u002Felectric-postgres-security",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":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill electric-postgres-security",{"tool":68,"command":69},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill electric-postgres-security",{"tool":71,"command":72},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill electric-postgres-security","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Felectric-sql\u002Felectric\u002Felectric-postgres-security\u002FSKILL.md",true,[],[77,86,95,104,110,116],{"skillNo":78,"name":79,"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":80,"categories":81,"keywords":82,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[83,84,85],"model","model hierarchy","model hierarchy skill",{"skillNo":87,"name":88,"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":89,"categories":90,"keywords":91,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[92,93,94],"MCP","zoom","zoom mcp",{"skillNo":96,"name":97,"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":98,"categories":99,"keywords":100,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[101,102,103,93],"sdk","zoom apps sdk","apps",{"skillNo":105,"name":106,"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":107,"categories":108,"keywords":109,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[106],{"skillNo":111,"name":112,"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":113,"categories":114,"keywords":115,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[112],{"skillNo":117,"name":118,"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":119,"categories":120,"keywords":121,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[118]]