[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KS3SSNET2P5JBNA6M357YX":3,"skill-same:01M6KS3SSNET2P5JBNA6M357YX":71},{"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":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":6,"ownerHtmlUrl":56,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":57,"install":58,"resources":70},"01M6KS3SSNET2P5JBNA6M357YX","postgres-patterns",null,"Implements PostgreSQL best practices, query optimization, and connection pooling.","JackSmack1971\u002Ffullstack-council","JackSmack1971","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128181597?v=4","01M6KS1FH32N6WNWZ68JC9FFDJ","01M6KS1FNAEAKMQ2K1084NTEKF",1,"MIT","https:\u002F\u002Fgithub.com\u002FJackSmack1971\u002Ffullstack-council\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Feverything-claude-code\u002Fpostgres-patterns\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"patterns","postgres","postgres patterns","query optimization","pooling","connection","connection pooling","claude-code","query","npx","files","github","list","read","Optimization","file","https","postgresql","best practices","code","2026-11-10 10:12:30",false,"---\ndescription: Implements PostgreSQL best practices, query optimization, and connection pooling.\nsource:     https:\u002F\u002Fskills.sh\u002Faffaan-m\u002Feverything-claude-code\u002Fpostgres-patterns\ngithub:     https:\u002F\u002Fgithub.com\u002Faffaan-m\u002Feverything-claude-code\ninstall:    npx skills add affaan-m\u002Feverything-claude-code --skill postgres-patterns\ninstalls:   2.8K\nscraped_at: 2026-04-04T15:06:51Z\nallowed-tools: [read_file, list_files]\n---\ndescription: Implements PostgreSQL best practices, query optimization, and connection pooling.\n\n## Summary\n\n- Covers six index types with specific use cases: B-tree for equality\u002Frange queries, composite for multi-column filters, GIN for JSONB and full-text search, and BRIN for time-series data\n- Includes data type guidance (bigint for IDs, text over varchar, timestamptz for timestamps, numeric for money) and anti-pattern detection queries for unindexed foreign keys and slow queries\n- Provides ready-to-use SQL patterns for covering indexes, partial indexes, cursor pagination, UPSERT, queue processing, and Row Level Security policies\n- Configuration template covers connection limits, timeouts, monitoring setup, and security defaults\n\n---\ndescription: Implements PostgreSQL best practices, query optimization, and connection pooling.\n\n## SKILL.md\n\n# PostgreSQL Patterns\n\nQuick reference for PostgreSQL best practices. For detailed guidance, use the `database-reviewer` agent.\n\n## When to Activate\n\n- Writing SQL queries or migrations\n- Designing database schemas\n- Troubleshooting slow queries\n- Implementing Row Level Security\n- Setting up connection pooling\n\n## Quick Reference\n\n### Index Cheat Sheet\n\n| Query Pattern | Index Type | Example |\n| --- | --- | --- |\n| `WHERE col = value` | B-tree (default) | `CREATE INDEX idx ON t (col)` |\n| `WHERE col > value` | B-tree | `CREATE INDEX idx ON t (col)` |\n| `WHERE a = x AND b > y` | Composite | `CREATE INDEX idx ON t (a, b)` |\n| `WHERE jsonb @> '{}'` | GIN | `CREATE INDEX idx ON t USING gin (col)` |\n| `WHERE tsv @@ query` | GIN | `CREATE INDEX idx ON t USING gin (col)` |\n| Time-series ranges | BRIN | `CREATE INDEX idx ON t USING brin (col)` |\n\n### Data Type Quick Reference\n\n| Use Case | Correct Type | Avoid |\n| --- | --- | --- |\n| IDs | `bigint` | `int`, random UUID |\n| Strings | `text` | `varchar(255)` |\n| Timestamps | `timestamptz` | `timestamp` |\n| Money | `numeric(10,2)` | `float` |\n| Flags | `boolean` | `varchar`, `int` |\n\n### Common Patterns\n\n**Composite Index Order:**\n\n```\n-- Equality columns first, then range columns\nCREATE INDEX idx ON orders (status, created_at);\n-- Works for: WHERE status = 'pending' AND created_at > '2024-01-01'\n```\n\n**Covering Index:**\n\n```\nCREATE INDEX idx ON users (email) INCLUDE (name, created_at);\n-- Avoids table lookup for SELECT email, name, created_at\n```\n\n**Partial Index:**\n\n```\nCREATE INDEX idx ON users (email) WHERE deleted_at IS NULL;\n-- Smaller index, only includes active users\n```\n\n**RLS Policy (Optimized):**\n\n```\nCREATE POLICY policy ON orders\n  USING ((SELECT auth.uid()) = user_id);  -- Wrap in SELECT!\n```\n\n**UPSERT:**\n\n```\nINSERT INTO settings (user_id, key, value)\nVALUES (123, 'theme', 'dark')\nON CONFLICT (user_id, key)\nDO UPDATE SET value = EXCLUDED.value;\n```\n\n**Cursor Pagination:**\n\n```\nSELECT * FROM products WHERE id > $last_id ORDER BY id LIMIT 20;\n-- O(1) vs OFFSET which is O(n)\n```\n\n**Queue Processing:**\n\n```\nUPDATE jobs SET status = 'processing'\nWHERE id = (\n  SELECT id FROM jobs WHERE status = 'pending'\n  ORDER BY created_at LIMIT 1\n  FOR UPDATE SKIP LOCKED\n) RETURNING *;\n```\n\n### Anti-Pattern Detection\n\n```\n-- Find unindexed foreign keys\nSELECT conrelid::regclass, a.attname\nFROM pg_constraint c\nJOIN pg_attribute a ON a.attrelid = c.conrelid AND a.attnum = ANY(c.conkey)\nWHERE c.contype = 'f'\n  AND NOT EXISTS (\n    SELECT 1 FROM pg_index i\n    WHERE i.indrelid = c.conrelid AND a.attnum = ANY(i.indkey)\n  );\n\n-- Find slow queries\nSELECT query, mean_exec_time, calls\nFROM pg_stat_statements\nWHERE mean_exec_time > 100\nORDER BY mean_exec_time DESC;\n\n-- Check table bloat\nSELECT relname, n_dead_tup, last_vacuum\nFROM pg_stat_user_tables\nWHERE n_dead_tup > 1000\nORDER BY n_dead_tup DESC;\n```\n\n### Configuration Template\n\n```\n-- Connection limits (adjust for RAM)\nALTER SYSTEM SET max_connections = 100;\nALTER SYSTEM SET work_mem = '8MB';\n\n-- Timeouts\nALTER SYSTEM SET idle_in_transaction_session_timeout = '30s';\nALTER SYSTEM SET statement_timeout = '30s';\n\n-- Monitoring\nCREATE EXTENSION IF NOT EXISTS pg_stat_statements;\n\n-- Security defaults\nREVOKE ALL ON SCHEMA public FROM public;\n\nSELECT pg_reload_conf();\n```\n\n## Related\n\n- Agent: `database-reviewer` - Full database review workflow\n- Skill: `clickhouse-io` - ClickHouse analytics patterns\n- Skill: `backend-patterns` - API and backend patterns\n\n---\ndescription: Implements PostgreSQL best practices, query optimization, and connection pooling.\n\n*Based on Supabase Agent Skills (credit: Supabase team) (MIT License)*\n\n","description: Implements PostgreSQL best practices, query optimization, and connection pooling.\n\n## Summary\n\n- Covers six index types with specific use cases: B-tree for equality\u002Frange queries, composite for multi-column filters, GIN for JSONB and full-text search, and BRIN for time-series data\n- Includes data type guidance (bigint for IDs, text over varchar, timestamptz for timestamps, numeric for money) and anti-pattern detection queries for unindexed foreign keys and slow queries\n- Provides ready-to-use SQL patterns for covering indexes, partial indexes, cursor pagination, UPSERT, queue processing, and Row Level Security policies\n- Configuration template covers connection limits, timeouts, monitoring setup, and security defaults\n\n---\ndescription: Implements PostgreSQL best practices, query optimization, and connection pooling.\n\n## SKILL.md\n\n# PostgreSQL Patterns\n\nQuick reference for PostgreSQL best practices. For detailed guidance, use the `database-reviewer` agent.\n\n## When to Activate\n\n- Writing SQL queries or migrations\n- Designing database schemas\n- Troubleshooting slow queries\n- Implementing Row Level Security\n- Setting up connection pooling\n\n## Quick Reference\n\n### Index Cheat Sheet\n\n| Query Pattern | Index Type | Example |\n| --- | --- | --- |\n| `WHERE col = value` | B-tree (default) | `CREATE INDEX idx ON t (col)` |\n| `WHERE col > value` | B-tree | `CREATE INDEX idx ON t (col)` |\n| `WHERE a = x AND b > y` | Composite | `CREATE INDEX idx ON t (a, b)` |\n| `WHERE jsonb @> '{}'` | GIN | `CREATE INDEX idx ON t USING gin (col)` |\n| `WHERE tsv @@ query` | GIN | `CREATE INDEX idx ON t USING gin (col)` |\n| Time-series ranges | BRIN | `CREATE INDEX idx ON t USING brin (col)` |\n\n### Data Type Quick Reference\n\n| Use Case | Correct Type | Avoid |\n| --- | --- | --- |\n| IDs | `bigint` | `int`, random UUID |\n| Strings | `text` | `varchar(255)` |\n| Timestamps | `timestamptz` | `timestamp` |\n| Money | `numeric(10,2)` | `float` |\n| Flags | `boolean` | `varchar`, `int` |\n\n### Common Patterns\n\n**Composite Index Order:**\n\n```\n-- Equality columns first, then range columns\nCREATE INDEX idx ON orders (status, created_at);\n-- Works for: WHERE status = 'pending' AND created_at > '2024-01-01'\n```\n\n**Covering Index:**\n\n```\nCREATE INDEX idx ON users (email) INCLUDE (name, created_at);\n-- Avoids table lookup for SELECT email, name, created_at\n```\n\n**Partial Index:**\n\n```\nCREATE INDEX idx ON users (email) WHERE deleted_at IS NULL;\n-- Smaller index, only includes active users\n```\n\n**RLS Policy (Optimized):**\n\n```\nCREATE POLICY policy ON orders\n  USING ((SELECT auth.uid()) = user_id);  -- Wrap in SELECT!\n```\n\n**UPSERT:**\n\n```\nINSERT INTO settings (user_id, key, value)\nVALUES (123, 'theme', 'dark')\nON CONFLICT (user_id, key)\nDO UPDATE SET value = EXCLUDED.value;\n```\n\n**Cursor Pagination:**\n\n```\nSELECT * FROM products WHERE id > $last_id ORDER BY id LIMIT 20;\n-- O(1) vs OFFSET which is O(n)\n```\n\n**Queue Processing:**\n\n```\nUPDATE jobs SET status = 'processing'\nWHERE id = (\n  SELECT id FROM jobs WHERE status = 'pending'\n  ORDER BY created_at LIMIT 1\n  FOR UPDATE SKIP LOCKED\n) RETURNING *;\n```\n\n### Anti-Pattern Detection\n\n```\n-- Find unindexed foreign keys\nSELECT conrelid::regclass, a.attname\nFROM pg_constraint c\nJOIN pg_attribute a ON a.attrelid = c.conrelid AND a.attnum = ANY(c.conkey)\nWHERE c.contype = 'f'\n  AND NOT EXISTS (\n    SELECT 1 FROM pg_index i\n    WHERE i.indrelid = c.conrelid AND a.attnum = ANY(i.indkey)\n  );\n\n-- Find slow queries\nSELECT query, mean_exec_time, calls\nFROM pg_stat_statements\nWHERE mean_exec_time > 100\nORDER BY mean_exec_time DESC;\n\n-- Check table bloat\nSELECT relname, n_dead_tup, last_vacuum\nFROM pg_stat_user_tables\nWHERE n_dead_tup > 1000\nORDER BY n_dead_tup DESC;\n```\n\n### Configuration Template\n\n```\n-- Connection limits (adjust for RAM)\nALTER SYSTEM SET max_connections = 100;\nALTER SYSTEM SET work_mem = '8MB';\n\n-- Timeouts\nALTER SYSTEM SET idle_in_transaction_session_timeout = '30s';\nALTER SYSTEM SET statement_timeout = '30s';\n\n-- Monitoring\nCREATE EXTENSION IF NOT EXISTS pg_stat_statements;\n\n-- Security defaults\nREVOKE ALL ON SCHEMA public FROM public;\n\nSELECT pg_reload_conf();\n```\n\n## Related\n\n- Agent: `database-reviewer` - Full database review workflow\n- Skill: `clickhouse-io` - ClickHouse analytics patterns\n- Skill: `backend-patterns` - API and backend patterns\n\n---\ndescription: Implements PostgreSQL best practices, query optimization, and connection pooling.\n\n*Based on Supabase Agent Skills (credit: Supabase team) (MIT License)*\n\n",{"github":43,"source":44,"install":45,"installs":46,"scraped_at":47,"description":7,"allowed-tools":48},"https:\u002F\u002Fgithub.com\u002Faffaan-m\u002Feverything-claude-code","https:\u002F\u002Fskills.sh\u002Faffaan-m\u002Feverything-claude-code\u002Fpostgres-patterns","npx skills add affaan-m\u002Feverything-claude-code --skill postgres-patterns","2.8K",1775315211000,[49,50],"read_file","list_files","main","a6e00c7fdd57f28e26658814f41ae0da22979aac",".agents\u002Fskills\u002Feverything-claude-code\u002Fpostgres-patterns",0,"https:\u002F\u002Fgithub.com\u002FJackSmack1971\u002Ffullstack-council","https:\u002F\u002Fgithub.com\u002FJackSmack1971","2026-04-05 23:04:47",{"source":8,"skillName":5,"commands":59,"prompt":68,"zipAvailable":69},[60,62,65],{"tool":27,"command":61},"npx skills add JackSmack1971\u002Ffullstack-council --skill postgres-patterns",{"tool":63,"command":64},"bunx","bunx skills add JackSmack1971\u002Ffullstack-council --skill postgres-patterns",{"tool":66,"command":67},"pnpm","pnpm dlx skills add JackSmack1971\u002Ffullstack-council --skill postgres-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJackSmack1971\u002Ffullstack-council\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Feverything-claude-code\u002Fpostgres-patterns\u002FSKILL.md",true,[],[72,101,120,135,159,178],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":83,"publishedAt":38},"01M6KS7VQCYXBYGK8YGJWP4WV3","wes-bos-fullstack-educator","Activates a Wes Bos-style hands-on full-stack JavaScript educator persona that ships production-ready code with live-workshop energy. Use whenever the user asks for help with JavaScript, TypeScript, React, Node.js, GraphQL, Tailwind CSS, CSS Grid, Flexbox, Vite, modern web patterns, or any coding tutorial. Always triggers on phrases like \"build this\", \"teach me\", \"how do I\", \"JS help\", \"React patterns\", \"TypeScript tips\", \"Tailwind\", \"full-stack\", or any request for working code examples. Responds code-first with step-by-step explanations, hot tips, and Next Level upgrades. Use this skill whenever the user wants to learn or build anything JavaScript or modern web related, even if they don't explicitly ask for a tutorial or mention Wes Bos.","https:\u002F\u002Fgithub.com\u002FJackSmack1971\u002Ffullstack-council\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwes-bos-fullstack-educator\u002FSKILL.md",[78],{"categoryNo":79,"categoryName":80,"taxonomyType":81,"taxonomyTypeDesc":82},"01JBSEEDCAT000000000000009","前端开发","SCENARIO","使用场景",[84,85,86,87,88,37,89,90,91,92,93,94,31,95,28,96,97,98,99,100],"fullstack","wes bos fullstack educator","css","react","learn","Tailwind","how","persona","stack","node","ask","ready","me","next","production-ready","request","energy",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":38},"01M6KS7PM7W2S1739EZS18T0HA","ai-sdk","Builds AI-powered applications using the Vercel AI SDK with streaming and tool use.","https:\u002F\u002Fgithub.com\u002FJackSmack1971\u002Ffullstack-council\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel\u002Fai-sdk\u002FSKILL.md",[],[108,109,29,110,111,112,34,33,113,114,31,30,115,116,28,117,27,118,119],"sdk","ai sdk","add vercel","streaming","tool use","applications","tool","use","vercel","vercel ai sdk","add","with",{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":38},"01M6KS7FYMD04AWFNNS149944S","next-best-practices","Enforces Next.js App Router best practices, performance, and deployment patterns.","https:\u002F\u002Fgithub.com\u002FJackSmack1971\u002Ffullstack-council\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fvercel-labs\u002Fnext-best-practices\u002FSKILL.md",[],[36,127,97,29,128,110,129,33,130,31,30,116,131,28,132,27,18,133,134,118],"next best practices","performance","deployment","Next.js","router","best-practices","deployment patterns","app",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":38},"01M6KS6Y6XXD42YM2T1GVHP3B0","troy-hunt-security","Activates the Troy Hunt persona for information security, threat modeling, and application hardening. Use when auditing data handling, securing API perimeters, and ensuring cryptographic compliance. Focuses on the OWASP Top 10, data breach prevention, and the \"Have I Been Pwned?\" principles.","https:\u002F\u002Fgithub.com\u002FJackSmack1971\u002Ffullstack-council\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftroy-hunt-security\u002FSKILL.md",[],[142,143,144,29,145,146,147,148,91,115,149,150,151,152,153,154,155,156,157,158],"security","hunt","troy hunt security","owasp top 10","sentry","supabase","api","schema","only","get","principles","information","read-only","errors","top","for","breach",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":38},"01M6KS6S94M1R78A6NBMYP3PE1","theo-browne-fullstack-advisor","Activates the Theo Browne persona — T3 Stack creator, ex-Twitch engineer, CEO of T3 Chat \u002F Ping.gg (YC W22), TypeScript absolutist, and opinionated full-stack advisor. Use this skill whenever the user asks about Next.js App Router, tRPC, Prisma, Zod, Tailwind, create-t3-app, T3 Stack architecture, end-to-end type safety, TypeScript tooling, rapid prototyping, DX critique, over-engineering problems, cargo-culting, full-stack TypeScript decisions, or wants direct hot-take feedback on tech choices and patterns. Also triggers on \"what would Theo think\", \"T3 style\", \"roast my stack\", or \"is this over-engineered\".","https:\u002F\u002Fgithub.com\u002FJackSmack1971\u002Ffullstack-council\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftheo-browne-fullstack-advisor\u002FSKILL.md",[],[166,84,167,168,169,89,170,91,92,171,172,131,173,28,97,174,175,134,176,177],"advisor","theo browne fullstack advisor","architecture","create","critique","zod","command","engineer","prisma","end","prototyping","trpc",{"skillNo":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":182,"categories":183,"keywords":184,"publishedAt":38},"01M6KS6Q5B0G0RYC3XJG1F98KC","stripe-best-practices","TBD - Please provide a keyword-dense capability description.","https:\u002F\u002Fgithub.com\u002FJackSmack1971\u002Ffullstack-council\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fstripe\u002Fstripe-best-practices\u002FSKILL.md",[],[36,185,186,33,31,30,28,187],"stripe best practices","stripe","please"]