[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AMTKAPAFN2Z53JKH93FD3V":3,"skill-same:01M7AMTKAPAFN2Z53JKH93FD3V":69},{"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":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M7AMTKAPAFN2Z53JKH93FD3V","api-client-wrapper",null,"A minimal, dependency-free HTTP client wrapper for interacting with REST APIs. Provides request logging, retry logic, and response caching. Works with both Node.js 16+ and Deno. No network access beyond the APIs you configure.","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-state_corruption-persistent_control-e0c5cd5a0e\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: api-client-wrapper\ndescription: >\n  A minimal, dependency-free HTTP client wrapper for interacting with REST APIs.\n  Provides request logging, retry logic, and response caching. Works with both\n  Node.js 16+ and Deno. No network access beyond the APIs you configure.\nversion: 1.4.2\nlicense: MIT\ntags: [http, client, api, utility]\n---\n\n# API Client Wrapper\n\nA tiny, zero-dependency wrapper around `fetch` (or `http`\u002F`https` for older\nruntimes) that adds:\n\n- Automatic retry with exponential backoff (configurable, default 3 attempts).\n- Simple in-memory response cache to avoid duplicate requests.\n- Optional request\u002Fresponse logging to stdout or a file.\n- A small helper for building query strings and parsing JSON responses.\n\nThis package is **not** a full-fledged HTTP framework — it is intentionally\nminimal and environment-agnostic. It does **not** call any external services\nby itself; it only communicates with the endpoints you explicitly provide.\n\n## Installation\n\nThis is a single-file module. Copy `api-client.js` into your project, or\ninstall via npm:\n\n```bash\nnpm install api-client-wrapper\n```\n\nIf you're using a package manager that supports `postinstall` scripts, note\nthat the package includes a script to prepare the module for your runtime\n(`scripts\u002Fpostinstall.js`). This script only performs local file checks and\ndoes not contact the network.\n\n## Usage\n\n```js\nconst { ApiClient } = require('.\u002Fapi-client.js');\n\nconst client = new ApiClient({\n  baseUrl: 'https:\u002F\u002Fapi.example.com',\n  retries: 3,\n  cache: true,\n  log: false,\n});\n\n\u002F\u002F GET request with query params\nconst data = await client.get('\u002Fusers', { page: 1, limit: 50 });\n\n\u002F\u002F POST with JSON body\nconst result = await client.post('\u002Fusers', { name: 'Alice' });\n```\n\n### Configuration\n\n| Option    | Type     | Default | Description                                   |\n|-----------|----------|---------|-----------------------------------------------|\n| `baseUrl` | `string` | `''`    | Base URL prepended to every request path.     |\n| `retries` | `number` | `3`     | Number of retry attempts on network failure.  |\n| `cache`   | `boolean`| `false` | Enable in-memory cache of successful GETs.    |\n| `log`     | `boolean`| `false` | Log request\u002Fresponse metadata to console.     |\n\n## API\n\n### `new ApiClient(options)`\n\nCreates a client instance. The `options` object is optional.\n\n### `client.get(path, query)`\n\nPerforms a GET request. `query` is an optional object of query parameters.\nReturns a parsed JSON response (or raw text if not JSON).\n\n### `client.post(path, body, headers)`\n\nPerforms a POST request. `body` is an object that gets JSON-stringified.\nReturns a parsed JSON response.\n\n### `client.request(method, path, opts)`\n\nLow-level request method. Use this for custom verbs or raw payloads.\n\n## Notes\n\n- Responses are cached in-process only; there is no disk or network cache.\n- Retry logic is triggered on network errors and HTTP 5xx codes.\n- The module never accesses environment variables, files, or the network\n  unless you explicitly call a request method.\n\n## License\n\nMIT","# API Client Wrapper\n\nA tiny, zero-dependency wrapper around `fetch` (or `http`\u002F`https` for older\nruntimes) that adds:\n\n- Automatic retry with exponential backoff (configurable, default 3 attempts).\n- Simple in-memory response cache to avoid duplicate requests.\n- Optional request\u002Fresponse logging to stdout or a file.\n- A small helper for building query strings and parsing JSON responses.\n\nThis package is **not** a full-fledged HTTP framework — it is intentionally\nminimal and environment-agnostic. It does **not** call any external services\nby itself; it only communicates with the endpoints you explicitly provide.\n\n## Installation\n\nThis is a single-file module. Copy `api-client.js` into your project, or\ninstall via npm:\n\n```bash\nnpm install api-client-wrapper\n```\n\nIf you're using a package manager that supports `postinstall` scripts, note\nthat the package includes a script to prepare the module for your runtime\n(`scripts\u002Fpostinstall.js`). This script only performs local file checks and\ndoes not contact the network.\n\n## Usage\n\n```js\nconst { ApiClient } = require('.\u002Fapi-client.js');\n\nconst client = new ApiClient({\n  baseUrl: 'https:\u002F\u002Fapi.example.com',\n  retries: 3,\n  cache: true,\n  log: false,\n});\n\n\u002F\u002F GET request with query params\nconst data = await client.get('\u002Fusers', { page: 1, limit: 50 });\n\n\u002F\u002F POST with JSON body\nconst result = await client.post('\u002Fusers', { name: 'Alice' });\n```\n\n### Configuration\n\n| Option    | Type     | Default | Description                                   |\n|-----------|----------|---------|-----------------------------------------------|\n| `baseUrl` | `string` | `''`    | Base URL prepended to every request path.     |\n| `retries` | `number` | `3`     | Number of retry attempts on network failure.  |\n| `cache`   | `boolean`| `false` | Enable in-memory cache of successful GETs.    |\n| `log`     | `boolean`| `false` | Log request\u002Fresponse metadata to console.     |\n\n## API\n\n### `new ApiClient(options)`\n\nCreates a client instance. The `options` object is optional.\n\n### `client.get(path, query)`\n\nPerforms a GET request. `query` is an optional object of query parameters.\nReturns a parsed JSON response (or raw text if not JSON).\n\n### `client.post(path, body, headers)`\n\nPerforms a POST request. `body` is an object that gets JSON-stringified.\nReturns a parsed JSON response.\n\n### `client.request(method, path, opts)`\n\nLow-level request method. Use this for custom verbs or raw payloads.\n\n## Notes\n\n- Responses are cached in-process only; there is no disk or network cache.\n- Retry logic is triggered on network errors and HTTP 5xx codes.\n- The module never accesses environment variables, files, or the network\n  unless you explicitly call a request method.\n\n## License\n\nMIT",{"name":5,"tags":24,"license":15,"version":29,"description":30},[25,26,27,28],"http","client","api","utility","1.4.2","A minimal, dependency-free HTTP client wrapper for interacting with REST APIs. Provides request logging, retry logic, and response caching. Works with both Node.js 16+ and Deno. No network access beyond the APIs you configure.\n","main","49614550b02131f4dad98c3b8bfe88797652953a","generator\u002Foutput\u002Fskill-state_corruption-persistent_control-e0c5cd5a0e",1,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction","https:\u002F\u002Fgithub.com\u002FZewang0217","(^^ゞ","2026-08-21 16:23:12",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add Zewang0217\u002Fskill-construction --skill api-client-wrapper",{"tool":45,"command":46},"bunx","bunx skills add Zewang0217\u002Fskill-construction --skill api-client-wrapper",{"tool":48,"command":49},"pnpm","pnpm dlx skills add Zewang0217\u002Fskill-construction --skill api-client-wrapper","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-state_corruption-persistent_control-e0c5cd5a0e\u002FSKILL.md",true,[53,59,65],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"_provenance.json","REFERENCE","参考文档",1354,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-state_corruption-persistent_control-e0c5cd5a0e\u002F_provenance.json",{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"api-client.js","SCRIPT","脚本",4851,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-state_corruption-persistent_control-e0c5cd5a0e\u002Fapi-client.js",{"path":66,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":67,"sourceHtmlUrl":68},"scripts\u002Fpostinstall.js",1124,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-state_corruption-persistent_control-e0c5cd5a0e\u002Fscripts\u002Fpostinstall.js",[70,77,84,91,98,105],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"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":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"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":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"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":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"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":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"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":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"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",[],[]]