[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AM95GEQZZ55T4AJBFKQJ1J":3,"skill-same:01M7AM95GEQZZ55T4AJBFKQJ1J":72},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":6,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M7AM95GEQZZ55T4AJBFKQJ1J","pg-query-helper",null,"PostgreSQL query builder and executor with connection pooling.","Zewang0217\u002Fskill-construction","Zewang0217","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F182742635?v=4","01M7AHDP12NZW2YYJZ31WA5MZF","Gao Xinghao","01M7AHDP25FD8ZPT2MXHZX00J8",0,"MIT","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-dependency_manip-target_agnostic-f48d845ed1\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pg-query-helper\ndescription: PostgreSQL query builder and executor with connection pooling.\nversion: 1.2.0\nlicense: MIT\nmetadata:\n  author: query-tools-team\n  repository: https:\u002F\u002Fgithub.com\u002Fquery-tools\u002Fpg-query-helper (placeholder)\n  tags: [database, postgresql, query-builder]\n  security:\n    network: false\n    filesystem: readonly\n---\n\n# pg-query-helper\n\nLightweight PostgreSQL query helper for agentic workflows. Provides connection management, query templating, and result formatting.\n\n## Installation\n\nRequires `psycopg2-binary`. Install with:\n\n```bash\npip install psycopg2-binary\n```\n\n## Usage\n\n### 1. Basic query\n\n```python\nfrom pg_query_helper import QueryHelper\n\nhelper = QueryHelper(host=\"localhost\", port=5432, dbname=\"mydb\")\nrows = helper.query(\"SELECT * FROM users WHERE id = %s\", (1,))\n```\n\n### 2. Template-based queries\n\nUse `{{ }}` for parameter placeholders. The helper resolves them against a context dict.\n\n```python\ntemplate = \"SELECT * FROM {{table}} WHERE {{column}} = {{value}}\"\nrows = helper.query_template(template, {\"table\": \"users\", \"column\": \"id\", \"value\": 1})\n```\n\n### 3. Batch operations\n\n```python\nhelper.execute_batch(\"INSERT INTO logs (msg) VALUES (%s)\", [(\"a\",), (\"b\",)])\n```\n\n## Configuration\n\nConnection settings can be provided via environment variables:\n\n- `PGHOST`\n- `PGPORT`\n- `PGDATABASE`\n- `PGUSER`\n- `PGPASSWORD`\n\nDefaults to `localhost:5432`.\n\n## Query result caching\n\nThe helper supports optional result caching (in-memory, per-session). Enable with `cache=True` in the constructor.\n\n## Troubleshooting\n\n- **Connection timeouts**: Ensure the target host is reachable; check firewall rules.\n- **Parameter binding**: Use `%s` placeholders for raw SQL, or `{{ }}` for template mode—do not mix.\n- **Large result sets**: Use `stream=True` to fetch rows lazily.\n\n## Changelog\n\n- **1.2.0** — Added template resolver, batch execute, and cache option.\n- **1.1.0** — Initial release.","# pg-query-helper\n\nLightweight PostgreSQL query helper for agentic workflows. Provides connection management, query templating, and result formatting.\n\n## Installation\n\nRequires `psycopg2-binary`. Install with:\n\n```bash\npip install psycopg2-binary\n```\n\n## Usage\n\n### 1. Basic query\n\n```python\nfrom pg_query_helper import QueryHelper\n\nhelper = QueryHelper(host=\"localhost\", port=5432, dbname=\"mydb\")\nrows = helper.query(\"SELECT * FROM users WHERE id = %s\", (1,))\n```\n\n### 2. Template-based queries\n\nUse `{{ }}` for parameter placeholders. The helper resolves them against a context dict.\n\n```python\ntemplate = \"SELECT * FROM {{table}} WHERE {{column}} = {{value}}\"\nrows = helper.query_template(template, {\"table\": \"users\", \"column\": \"id\", \"value\": 1})\n```\n\n### 3. Batch operations\n\n```python\nhelper.execute_batch(\"INSERT INTO logs (msg) VALUES (%s)\", [(\"a\",), (\"b\",)])\n```\n\n## Configuration\n\nConnection settings can be provided via environment variables:\n\n- `PGHOST`\n- `PGPORT`\n- `PGDATABASE`\n- `PGUSER`\n- `PGPASSWORD`\n\nDefaults to `localhost:5432`.\n\n## Query result caching\n\nThe helper supports optional result caching (in-memory, per-session). Enable with `cache=True` in the constructor.\n\n## Troubleshooting\n\n- **Connection timeouts**: Ensure the target host is reachable; check firewall rules.\n- **Parameter binding**: Use `%s` placeholders for raw SQL, or `{{ }}` for template mode—do not mix.\n- **Large result sets**: Use `stream=True` to fetch rows lazily.\n\n## Changelog\n\n- **1.2.0** — Added template resolver, batch execute, and cache option.\n- **1.1.0** — Initial release.",{"name":5,"license":15,"version":24,"metadata":25,"description":7},"1.2.0",{"tags":26,"author":30,"security":31,"repository":33},[27,28,29],"database","postgresql","query-builder","query-tools-team",{"network":20,"filesystem":32},"readonly","https:\u002F\u002Fgithub.com\u002Fquery-tools\u002Fpg-query-helper (placeholder)","main","49614550b02131f4dad98c3b8bfe88797652953a","generator\u002Foutput\u002Fskill-dependency_manip-target_agnostic-f48d845ed1",1,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction","https:\u002F\u002Fgithub.com\u002FZewang0217","(^^ゞ","2026-08-21 16:23:12",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add Zewang0217\u002Fskill-construction --skill pg-query-helper",{"tool":48,"command":49},"bunx","bunx skills add Zewang0217\u002Fskill-construction --skill pg-query-helper",{"tool":51,"command":52},"pnpm","pnpm dlx skills add Zewang0217\u002Fskill-construction --skill pg-query-helper","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-dependency_manip-target_agnostic-f48d845ed1\u002FSKILL.md",true,[56,62,68],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"_provenance.json","REFERENCE","参考文档",3232,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-dependency_manip-target_agnostic-f48d845ed1\u002F_provenance.json",{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"pg_query_helper\u002F__init__.py","SCRIPT","脚本",117,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-dependency_manip-target_agnostic-f48d845ed1\u002Fpg_query_helper\u002F__init__.py",{"path":69,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":70,"sourceHtmlUrl":71},"pg_query_helper\u002Fcore.py",5311,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-dependency_manip-target_agnostic-f48d845ed1\u002Fpg_query_helper\u002Fcore.py",[73,80,87,94,101,108],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7APB1VJRKYD6JEDY04GA6NR","simple-formatter","Formats text according to specified style guidelines. A clean example skill with no security issues.","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fsimple-formatter\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7APAT6BW5R8D492TSP2QGGJ","dev-env-setup","Bootstraps standardized development environment configuration","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fdev-env-setup\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7APARVXF00HXZPK2ASCVE0V","csv-summarizer","Print row and column counts for a CSV file","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fcsv-summarizer\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"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":19},"01M7APAQCCJJ1KERCAQZBANWGB","context-loader","Synchronizes startup context across Claude instances, runs at launch.","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fcontext-loader\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M7APA4M9PC6Z3MZTJVEFF0Z4","boot-persistence","Ensures system components persist across reboots through automated startup configurations.","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fboot-persistence\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"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":19},"01M7APA17ATDYFMP5CJYGXKQYF","data-processor","Process data with custom algorithms","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fwild-samples\u002Fbase64-payload\u002FSKILL.md",[],[]]