[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JE902Z8KVCQ1K9M97QNH1Q":3,"skill-same:01M6JE902Z8KVCQ1K9M97QNH1Q":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":26,"linkOnly":27,"markdownContent":28,"markdownBody":29,"frontMatter":30,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":13,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M6JE902Z8KVCQ1K9M97QNH1Q","psql",null,"Run PostgreSQL queries and meta-commands via CLI","superhealth\u002Fskills-hub","superhealth","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6292112?v=4","01M6JA6E7F21BYK5W3E4P270TT","01M6JA6EC0W8MPHKDJVBZDSEZ0",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsuperhealth\u002Fskills-hub\u002Fblob\u002Fmaster\u002Fskills\u002Fbind\u002Fpsql\u002FSKILL.md",[],[5,18,19,20,21,22,23,24,25],"cli","run","postgresql","Meta","opencode","queries","commands","via","2026-11-10 10:12:30",false,"---\nname: psql\ndescription: Run PostgreSQL queries and meta-commands via CLI\nversion: 1.0.0\nlicense: MIT\ncompatibility: opencode\n---\n\n## Overview\n\nCLI tool for running SQL queries and psql meta-commands against PostgreSQL databases. Each query is executed directly via the `psql` CLI - no persistent connection required.\n\n## Prerequisites\n\n- [bun](https:\u002F\u002Fbun.sh) runtime installed\n- [psql](https:\u002F\u002Fwww.postgresql.org\u002Fdocs\u002Fcurrent\u002Fapp-psql.html) client installed\n- PostgreSQL connection environment variables set in `\u003Cgit-root>\u002F.env` or exported\n\n## Environment Variables\n\nSet these in your `.env` file or export them:\n\n| Variable | Required | Default | Description |\n|----------|----------|---------|-------------|\n| `PGHOST` | Yes | - | Database host |\n| `PGPORT` | No | `5432` | Database port |\n| `PGDATABASE` | Yes | - | Database name |\n| `PGUSER` | Yes | - | Database user |\n| `PGPASSWORD` | Yes | - | Database password |\n| `PGSSLMODE` | No | - | SSL mode (disable, require, etc.) |\n\nExample `.env`:\n```bash\nPGHOST=localhost\nPGPORT=5432\nPGDATABASE=myapp\nPGUSER=myapp\nPGPASSWORD=secret\nPGSSLMODE=disable\n```\n\n## Command\n\n### Query\n\nRun a SQL query, meta-command, or SQL file.\n\n```bash\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \u003Cquery> [options]\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js --file \u003Cpath> [options]\n```\n\n**Arguments:**\n- `query` - SQL query or meta-command to execute\n\n**Options:**\n- `--file \u003Cpath>` - Execute SQL file instead of inline query\n- `--tuples` - Tuples only output (no headers or row count)\n- `--timeout \u003Cms>` - Query timeout in milliseconds (default: 30000)\n- `--json` - Wrap output in JSON\n- `--help` - Show help\n\n**Examples:**\n\n```bash\n# SQL queries\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"SELECT * FROM users LIMIT 5;\"\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"SELECT COUNT(*) FROM orders WHERE status = 'pending';\"\n\n# Meta-commands\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"\\dt\"\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"\\d users\"\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"\\di\"\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"\\l\"\n\n# Execute SQL file\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js --file migrations\u002F001_create_users.sql\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js --file scripts\u002Fseed_data.sql\n\n# Tuples only (for scripting\u002Fparsing)\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"SELECT id FROM users;\" --tuples\n\n# With longer timeout for slow queries\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"SELECT * FROM large_table;\" --timeout 60000\n```\n\n---\n\n## Common Workflows\n\n### Explore Database Schema\n\n```bash\n# List all tables\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"\\dt\"\n\n# Describe a specific table\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"\\d users\"\n\n# Show indexes\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"\\di\"\n\n# Show foreign keys for a table\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"\\d+ orders\"\n```\n\n### Run Analytical Queries\n\n```bash\n# Count records\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"SELECT COUNT(*) FROM orders;\"\n\n# Group by aggregation\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"SELECT status, COUNT(*) FROM orders GROUP BY status;\"\n\n# Recent activity\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"SELECT * FROM orders WHERE created_at > NOW() - INTERVAL '1 day' ORDER BY created_at DESC LIMIT 10;\"\n```\n\n### Database Administration\n\n```bash\n# Check table sizes\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"SELECT relname, pg_size_pretty(pg_total_relation_size(relid)) FROM pg_catalog.pg_statio_user_tables ORDER BY pg_total_relation_size(relid) DESC LIMIT 10;\"\n\n# Check active connections\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"SELECT count(*) FROM pg_stat_activity WHERE state = 'active';\"\n\n# List databases\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"\\l\"\n```\n\n### Run Migrations\n\n```bash\n# Execute a migration file\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js --file migrations\u002F001_create_users.sql\n\n# Execute seed data\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js --file scripts\u002Fseed.sql\n```\n\n---\n\n## Output Behavior\n\n- Query output is displayed directly to the user in the terminal\n- **Do not re-summarize or reformat query output** - the user can already see it\n- Use `--tuples` for clean output without headers (useful for piping to other tools)\n- Use `--json` for structured output when parsing programmatically\n\n## Notes\n\n- Each query is executed as a separate `psql` invocation (no persistent connection)\n- Meta-commands (starting with `\\`) work the same as SQL queries\n- Long-running queries may need `--timeout` increased from the default 30 seconds\n- The `--tuples` flag is useful when you need to parse output or pipe to other commands\n","## Overview\n\nCLI tool for running SQL queries and psql meta-commands against PostgreSQL databases. Each query is executed directly via the `psql` CLI - no persistent connection required.\n\n## Prerequisites\n\n- [bun](https:\u002F\u002Fbun.sh) runtime installed\n- [psql](https:\u002F\u002Fwww.postgresql.org\u002Fdocs\u002Fcurrent\u002Fapp-psql.html) client installed\n- PostgreSQL connection environment variables set in `\u003Cgit-root>\u002F.env` or exported\n\n## Environment Variables\n\nSet these in your `.env` file or export them:\n\n| Variable | Required | Default | Description |\n|----------|----------|---------|-------------|\n| `PGHOST` | Yes | - | Database host |\n| `PGPORT` | No | `5432` | Database port |\n| `PGDATABASE` | Yes | - | Database name |\n| `PGUSER` | Yes | - | Database user |\n| `PGPASSWORD` | Yes | - | Database password |\n| `PGSSLMODE` | No | - | SSL mode (disable, require, etc.) |\n\nExample `.env`:\n```bash\nPGHOST=localhost\nPGPORT=5432\nPGDATABASE=myapp\nPGUSER=myapp\nPGPASSWORD=secret\nPGSSLMODE=disable\n```\n\n## Command\n\n### Query\n\nRun a SQL query, meta-command, or SQL file.\n\n```bash\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \u003Cquery> [options]\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js --file \u003Cpath> [options]\n```\n\n**Arguments:**\n- `query` - SQL query or meta-command to execute\n\n**Options:**\n- `--file \u003Cpath>` - Execute SQL file instead of inline query\n- `--tuples` - Tuples only output (no headers or row count)\n- `--timeout \u003Cms>` - Query timeout in milliseconds (default: 30000)\n- `--json` - Wrap output in JSON\n- `--help` - Show help\n\n**Examples:**\n\n```bash\n# SQL queries\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"SELECT * FROM users LIMIT 5;\"\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"SELECT COUNT(*) FROM orders WHERE status = 'pending';\"\n\n# Meta-commands\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"\\dt\"\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"\\d users\"\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"\\di\"\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"\\l\"\n\n# Execute SQL file\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js --file migrations\u002F001_create_users.sql\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js --file scripts\u002Fseed_data.sql\n\n# Tuples only (for scripting\u002Fparsing)\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"SELECT id FROM users;\" --tuples\n\n# With longer timeout for slow queries\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"SELECT * FROM large_table;\" --timeout 60000\n```\n\n---\n\n## Common Workflows\n\n### Explore Database Schema\n\n```bash\n# List all tables\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"\\dt\"\n\n# Describe a specific table\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"\\d users\"\n\n# Show indexes\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"\\di\"\n\n# Show foreign keys for a table\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"\\d+ orders\"\n```\n\n### Run Analytical Queries\n\n```bash\n# Count records\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"SELECT COUNT(*) FROM orders;\"\n\n# Group by aggregation\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"SELECT status, COUNT(*) FROM orders GROUP BY status;\"\n\n# Recent activity\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"SELECT * FROM orders WHERE created_at > NOW() - INTERVAL '1 day' ORDER BY created_at DESC LIMIT 10;\"\n```\n\n### Database Administration\n\n```bash\n# Check table sizes\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"SELECT relname, pg_size_pretty(pg_total_relation_size(relid)) FROM pg_catalog.pg_statio_user_tables ORDER BY pg_total_relation_size(relid) DESC LIMIT 10;\"\n\n# Check active connections\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"SELECT count(*) FROM pg_stat_activity WHERE state = 'active';\"\n\n# List databases\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js \"\\l\"\n```\n\n### Run Migrations\n\n```bash\n# Execute a migration file\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js --file migrations\u002F001_create_users.sql\n\n# Execute seed data\nbun .opencode\u002Fskill\u002Fpsql\u002Fquery.js --file scripts\u002Fseed.sql\n```\n\n---\n\n## Output Behavior\n\n- Query output is displayed directly to the user in the terminal\n- **Do not re-summarize or reformat query output** - the user can already see it\n- Use `--tuples` for clean output without headers (useful for piping to other tools)\n- Use `--json` for structured output when parsing programmatically\n\n## Notes\n\n- Each query is executed as a separate `psql` invocation (no persistent connection)\n- Meta-commands (starting with `\\`) work the same as SQL queries\n- Long-running queries may need `--timeout` increased from the default 30 seconds\n- The `--tuples` flag is useful when you need to parse output or pipe to other commands\n",{"name":5,"license":14,"version":31,"description":7,"compatibility":22},"1.0.0","master","08cc2532077058aa50e6e18f54695bc256c88152","skills\u002Fbind\u002Fpsql","https:\u002F\u002Fgithub.com\u002Fsuperhealth\u002Fskills-hub","https:\u002F\u002Fgithub.com\u002Fsuperhealth","java engineer","2026-04-06 22:07:23",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add superhealth\u002Fskills-hub --skill psql",{"tool":45,"command":46},"bunx","bunx skills add superhealth\u002Fskills-hub --skill psql",{"tool":48,"command":49},"pnpm","pnpm dlx skills add superhealth\u002Fskills-hub --skill psql","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsuperhealth\u002Fskills-hub\u002Fblob\u002Fmaster\u002Fskills\u002Fbind\u002Fpsql\u002FSKILL.md",true,[53,59],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"skill-report.json","REFERENCE","参考文档",8288,"https:\u002F\u002Fgithub.com\u002Fsuperhealth\u002Fskills-hub\u002Fblob\u002Fmaster\u002Fskills\u002Fbind\u002Fpsql\u002Fskill-report.json",{"path":60,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":61,"sourceHtmlUrl":62},"skill.json",100,"https:\u002F\u002Fgithub.com\u002Fsuperhealth\u002Fskills-hub\u002Fblob\u002Fmaster\u002Fskills\u002Fbind\u002Fpsql\u002Fskill.json",[64,91,115,127,142,157],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":26},"01M6MC9F3WHV8S8FZ2W4TRB0FE","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React\u002FNext.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.","https:\u002F\u002Fgithub.com\u002Fsuperhealth\u002Fskills-hub\u002Fblob\u002Fmaster\u002Fskills\u002Fzhanlincui\u002Fvercel-react-best-practices\u002FSKILL.md",[],[71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90],"react","vercel react best practices","best practices","vercel","react best practices","data fetching","code","triggers","pages","next","patterns","refactoring","data","Optimization","tasks","guidelines","react components","components","performance","writing",{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":26},"01M6MB8KWE1Q5A5KERR7RFTQWP","vue-testing-best-practices","Use for Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for E2E testing.","https:\u002F\u002Fgithub.com\u002Fsuperhealth\u002Fskills-hub\u002Fblob\u002Fmaster\u002Fskills\u002Fvuejs-ai\u002Fvue-testing-best-practices\u002FSKILL.md",[],[98,99,100,73,101,102,103,104,105,106,107,81,108,109,110,111,112,113,114],"vue testing best practices","testing best practices","vue","testing","testing patterns","js","e2e","vitest","use","component","test","mocking","for","utils","e2e testing","github","playwright",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":26},"01M6MB8GK06M6GA4KVYNDV1BZP","vue-router-best-practices","Vue Router 4 patterns, navigation guards, route params, and route-component lifecycle interactions.","https:\u002F\u002Fgithub.com\u002Fsuperhealth\u002Fskills-hub\u002Fblob\u002Fmaster\u002Fskills\u002Fvuejs-ai\u002Fvue-router-best-practices\u002FSKILL.md",[],[73,100,122,123,124,81,125,126,107,113],"router","vue router best practices","route","navigation","lifecycle",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":26},"01M6MB8DQF21TZMQ9XC3745ERW","vue-pinia-best-practices","Pinia stores, state management patterns, store setup, and reactivity with stores.","https:\u002F\u002Fgithub.com\u002Fsuperhealth\u002Fskills-hub\u002Fblob\u002Fmaster\u002Fskills\u002Fvuejs-ai\u002Fvue-pinia-best-practices\u002FSKILL.md",[],[134,135,100,73,136,137,81,138,139,140,141,113],"vue pinia best practices","pinia","with","store","management","state","state management","setup",{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":26},"01M6MB8A7MC08747J9TV4GWQ9A","vue-options-api-best-practices","Vue 3 Options API style (data(), methods, this context). Each reference shows Options API solution only.","https:\u002F\u002Fgithub.com\u002Fsuperhealth\u002Fskills-hub\u002Fblob\u002Fmaster\u002Fskills\u002Fvuejs-ai\u002Fvue-options-api-best-practices\u002FSKILL.md",[],[100,149,150,151,73,152,153,154,155,83,113,156],"options","vue options api best practices","api","methods","reference","only","context","style",{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":26},"01M6MB85ZTQC24Q04X49MM4YXN","vue-development-guides","A collection of best practices and tips for developing applications using Vue.js. This skill MUST be apply when developing, refactoring or reviewing Vue.js or Nuxt projects.","https:\u002F\u002Fgithub.com\u002Fsuperhealth\u002Fskills-hub\u002Fblob\u002Fmaster\u002Fskills\u002Fvuejs-ai\u002Fvue-development-guides\u002FSKILL.md",[],[164,100,165,166,113,167,168,110,169,170,171,103,82,172,173,73],"development","guides","vue development guides","tips","apply","project","nuxt","projects","collection","applications"]