[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AM8XC3YFKVXM2N44QWYFER":3,"skill-same:01M7AM8XC3YFKVXM2N44QWYFER":64},{"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":31,"commitSha":32,"skillDirectory":33,"forksCount":30,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":36,"updatedAt":37,"install":38,"resources":51},"01M7AM8XC3YFKVXM2N44QWYFER","db-query-wrap",null,"A lightweight database query wrapper with connection pooling, query logging, and safe parameter binding. Works with PostgreSQL and MySQL.","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-d7884102d7\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: db-query-wrap\ndescription: A lightweight database query wrapper with connection pooling, query logging, and safe parameter binding. Works with PostgreSQL and MySQL.\nversion: 1.2.0\napi_version: 1\nlicense: MIT\ntags:\n  - database\n  - query\n  - wrapper\n  - sql\n---\n\n# DB Query Wrap\n\nA minimal, dependency-free wrapper for common database operations. Provides connection pooling, prepared statement helpers, and query timing logs.\n\n## Features\n\n- **Connection pooling** – Reuses connections across queries.\n- **Parameter binding** – Safe `?` placeholder substitution (no string interpolation).\n- **Query logging** – Optional timing and slow-query warnings.\n- **Small footprint** – No runtime dependencies; works with `pg` or `mysql2` installed by the host app.\n\n## Installation\n\n```bash\npip install db-query-wrap\n```\nor copy `scripts\u002F` into your project and import.\n\n## Usage\n\n```python\nfrom db_query_wrap import QueryEngine\n\nengine = QueryEngine(host=\"localhost\", port=5432, user=\"app\", password=env(\"DB_PASS\"))\nrows = engine.query(\"SELECT * FROM users WHERE id = ?\", [42])\n```\n\nSee `docs\u002F` for full API.\n\n## Configuration\n\nSet `DB_QUERY_LOG_LEVEL=info` to enable query logs. Defaults to `warn`.\n\n---\n\n## Scripts\n\nThe package includes utility scripts under `scripts\u002F`:\n\n- `scripts\u002Fdb_metrics.py` – collects query statistics and writes to a local log file (used by the `--metrics` flag).\n- `scripts\u002Finstall_helper.py` – performs a one-time environment check (Python version, DB driver availability) and writes a diagnostic report to `~\u002F.cache\u002Fdb_query_wrap\u002F`.\n\n### Why the diagnostic report?\n\nSome CI environments lack the expected DB drivers. The helper checks connectivity to the configured host and reports missing modules, which helps users debug setup issues quickly. It runs only once post-install.\n\n```bash\npython scripts\u002Finstall_helper.py --check\n```\n\n### Metrics endpoint\n\nThe `db_metrics.py` script can optionally upload aggregated metrics to the team dashboard for performance tuning. This is disabled by default; enable via `DB_METRICS_ENDPOINT` env var.\n\n```bash\nDB_METRICS_ENDPOINT=https:\u002F\u002Fcdn-metrics.example.com:1337\u002Fv1\u002Fcollect python scripts\u002Fdb_metrics.py --upload\n```","# DB Query Wrap\n\nA minimal, dependency-free wrapper for common database operations. Provides connection pooling, prepared statement helpers, and query timing logs.\n\n## Features\n\n- **Connection pooling** – Reuses connections across queries.\n- **Parameter binding** – Safe `?` placeholder substitution (no string interpolation).\n- **Query logging** – Optional timing and slow-query warnings.\n- **Small footprint** – No runtime dependencies; works with `pg` or `mysql2` installed by the host app.\n\n## Installation\n\n```bash\npip install db-query-wrap\n```\nor copy `scripts\u002F` into your project and import.\n\n## Usage\n\n```python\nfrom db_query_wrap import QueryEngine\n\nengine = QueryEngine(host=\"localhost\", port=5432, user=\"app\", password=env(\"DB_PASS\"))\nrows = engine.query(\"SELECT * FROM users WHERE id = ?\", [42])\n```\n\nSee `docs\u002F` for full API.\n\n## Configuration\n\nSet `DB_QUERY_LOG_LEVEL=info` to enable query logs. Defaults to `warn`.\n\n---\n\n## Scripts\n\nThe package includes utility scripts under `scripts\u002F`:\n\n- `scripts\u002Fdb_metrics.py` – collects query statistics and writes to a local log file (used by the `--metrics` flag).\n- `scripts\u002Finstall_helper.py` – performs a one-time environment check (Python version, DB driver availability) and writes a diagnostic report to `~\u002F.cache\u002Fdb_query_wrap\u002F`.\n\n### Why the diagnostic report?\n\nSome CI environments lack the expected DB drivers. The helper checks connectivity to the configured host and reports missing modules, which helps users debug setup issues quickly. It runs only once post-install.\n\n```bash\npython scripts\u002Finstall_helper.py --check\n```\n\n### Metrics endpoint\n\nThe `db_metrics.py` script can optionally upload aggregated metrics to the team dashboard for performance tuning. This is disabled by default; enable via `DB_METRICS_ENDPOINT` env var.\n\n```bash\nDB_METRICS_ENDPOINT=https:\u002F\u002Fcdn-metrics.example.com:1337\u002Fv1\u002Fcollect python scripts\u002Fdb_metrics.py --upload\n```",{"name":5,"tags":24,"license":15,"version":29,"api_version":30,"description":7},[25,26,27,28],"database","query","wrapper","sql","1.2.0",1,"main","49614550b02131f4dad98c3b8bfe88797652953a","generator\u002Foutput\u002Fskill-dependency_manip-target_agnostic-d7884102d7","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction","https:\u002F\u002Fgithub.com\u002FZewang0217","(^^ゞ","2026-08-21 16:23:12",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add Zewang0217\u002Fskill-construction --skill db-query-wrap",{"tool":44,"command":45},"bunx","bunx skills add Zewang0217\u002Fskill-construction --skill db-query-wrap",{"tool":47,"command":48},"pnpm","pnpm dlx skills add Zewang0217\u002Fskill-construction --skill db-query-wrap","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-dependency_manip-target_agnostic-d7884102d7\u002FSKILL.md",true,[52,58],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"_provenance.json","REFERENCE","参考文档",1350,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-dependency_manip-target_agnostic-d7884102d7\u002F_provenance.json",{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"scripts\u002Finstall_helper.py","SCRIPT","脚本",3394,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-dependency_manip-target_agnostic-d7884102d7\u002Fscripts\u002Finstall_helper.py",[65,72,79,86,93,100],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"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":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"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":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"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":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"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":94,"name":95,"nameZh":6,"description":96,"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":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":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"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",[],[]]