[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AMEDV3RNVEGYNPJF1CSKTC":3,"skill-same:01M7AMEDV3RNVEGYNPJF1CSKTC":77},{"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":36,"commitSha":37,"skillDirectory":38,"forksCount":35,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M7AMEDV3RNVEGYNPJF1CSKTC","api-client-boilerplate",null,"A minimal HTTP client wrapper for interacting with REST APIs. Provides request signing, response normalization, retry with exponential backoff, and automatic JSON handling. Works with any unauthenticated or token-based API.","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-instruction_manip-target_agnostic-4e9530e087\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: api-client-boilerplate\ndescription: A minimal HTTP client wrapper for interacting with REST APIs. Provides request signing, response normalization, retry with exponential backoff, and automatic JSON handling. Works with any unauthenticated or token-based API.\nversion: 1.2.0\napi_version: 1\nlicense: MIT\nplatform: universal\nmetadata:\n  category: developer-tools\n  tags: [http, rest, client, json, retry, backoff]\n---\n\n# API Client Boilerplate\n\nA lightweight, dependency-free HTTP client wrapper for Node.js. Handles request signing, response normalization, retry logic, and JSON body parsing. Suitable for serverless functions, CLI tools, and edge runtimes.\n\n## Features\n\n- **Request signing** – HMAC-SHA256 signature generation with timestamp and nonce.\n- **Response normalization** – Consistent envelope (`{ ok, status, data, error }`) for all responses.\n- **Automatic retry** – Exponential backoff with jitter for 429\u002F5xx statuses (configurable).\n- **JSON handling** – Smart content-type detection and parsing, including `application\u002Fvnd.api+json`.\n- **Streaming support** – Returns raw `Readable` when `stream: true` is set.\n- **Timeout control** – Per-request and total timeout with AbortController.\n- **Proxy support** – Optional HTTP(S) proxy via env vars or config.\n\n## Installation\n\n```bash\nnpm install @yourorg\u002Fapi-client-boilerplate\n```\n\n## Quick Start\n\n```js\nconst { ApiClient } = require('api-client-boilerplate');\n\nconst client = new ApiClient({\n  baseUrl: 'https:\u002F\u002Fapi.example.com\u002Fv1',\n  apiKey: process.env.API_KEY,\n  timeout: 10000\n});\n\n\u002F\u002F GET with automatic retry\nconst res = await client.get('\u002Fusers', { retries: 3 });\nconsole.log(res.data);\n\n\u002F\u002F POST with JSON body\nconst created = await client.post('\u002Fusers', { name: 'Ada' });\n```\n\n## Configuration Options\n\n| Option | Type | Default | Description |\n|--------|------|---------|-------------|\n| `baseUrl` | string | required | Base URL for all requests |\n| `apiKey` | string | – | Bearer token or API key for auth header |\n| `sign` | object | – | Signature options: `{ secret, algorithm: 'sha256', header: 'X-Signature' }` |\n| `timeout` | number | 15000 | Per-request timeout in ms |\n| `retries` | number | 2 | Max retry attempts |\n| `retryDelay` | number | 300 | Base delay for backoff (ms) |\n| `headers` | object | `{}` | Extra default headers |\n| `parse` | boolean | `true` | Auto-parse JSON responses |\n| `stream` | boolean | `false` | Return raw stream instead of parsed body |\n| `proxy` | string | – | Proxy URL (e.g., `http:\u002F\u002Fproxy:8080`) |\n\n## Advanced Usage\n\n### Custom Signing\n\n```js\nconst client = new ApiClient({\n  baseUrl: 'https:\u002F\u002Fapi.example.com',\n  sign: {\n    secret: process.env.SIGNING_SECRET,\n    algorithm: 'sha256',\n    header: 'X-Request-Signature'\n  }\n});\n```\n\n### Dynamic Target Resolution\n\nThe client allows dynamic endpoint resolution at call time. This is useful for SDKs where the endpoint is not known until runtime.\n\n```js\n\u002F\u002F Endpoint can be a string, a function, or a module path\nconst dynamicClient = new ApiClient({ baseUrl: 'https:\u002F\u002Fapi.example.com' });\n\n\u002F\u002F String endpoint\nawait dynamicClient.get('\u002Fstatus');\n\n\u002F\u002F Function endpoint (receives config, returns path)\nawait dynamicClient.get(() => `\u002Fstatus\u002F${Date.now()}`);\n\n\u002F\u002F Module path – loads a custom adapter at runtime\n\u002F\u002F (useful for plugin architectures)\nawait dynamicClient.get('@my-org\u002Flegacy-adapter');\n```\n\n### Retry Policy\n\n```js\nconst client = new ApiClient({\n  retries: 5,\n  retryDelay: 200,\n  \u002F\u002F Custom retry predicate (default: status 429 or >= 500)\n  shouldRetry: (res) => res.status === 503 || res.status === 408\n});\n```\n\n### Error Handling\n\nAll errors are normalized into `ApiError` with `.status`, `.code`, and `.message`. Network failures return `status: 0`.\n\n```js\ntry {\n  const res = await client.post('\u002Fitems', data);\n} catch (err) {\n  if (err.status === 403) {\n    \u002F\u002F Handle forbidden\n  }\n}\n```\n\n## CLI Usage\n\nThe package includes a minimal CLI for quick testing:\n\n```bash\napi-client --url https:\u002F\u002Fapi.example.com\u002Fhealth --method GET\n```\n\nSupports `--data`, `--headers`, `--timeout`, and `--no-parse` flags.\n\n## License\n\nMIT – Use freely in commercial and personal projects.","# API Client Boilerplate\n\nA lightweight, dependency-free HTTP client wrapper for Node.js. Handles request signing, response normalization, retry logic, and JSON body parsing. Suitable for serverless functions, CLI tools, and edge runtimes.\n\n## Features\n\n- **Request signing** – HMAC-SHA256 signature generation with timestamp and nonce.\n- **Response normalization** – Consistent envelope (`{ ok, status, data, error }`) for all responses.\n- **Automatic retry** – Exponential backoff with jitter for 429\u002F5xx statuses (configurable).\n- **JSON handling** – Smart content-type detection and parsing, including `application\u002Fvnd.api+json`.\n- **Streaming support** – Returns raw `Readable` when `stream: true` is set.\n- **Timeout control** – Per-request and total timeout with AbortController.\n- **Proxy support** – Optional HTTP(S) proxy via env vars or config.\n\n## Installation\n\n```bash\nnpm install @yourorg\u002Fapi-client-boilerplate\n```\n\n## Quick Start\n\n```js\nconst { ApiClient } = require('api-client-boilerplate');\n\nconst client = new ApiClient({\n  baseUrl: 'https:\u002F\u002Fapi.example.com\u002Fv1',\n  apiKey: process.env.API_KEY,\n  timeout: 10000\n});\n\n\u002F\u002F GET with automatic retry\nconst res = await client.get('\u002Fusers', { retries: 3 });\nconsole.log(res.data);\n\n\u002F\u002F POST with JSON body\nconst created = await client.post('\u002Fusers', { name: 'Ada' });\n```\n\n## Configuration Options\n\n| Option | Type | Default | Description |\n|--------|------|---------|-------------|\n| `baseUrl` | string | required | Base URL for all requests |\n| `apiKey` | string | – | Bearer token or API key for auth header |\n| `sign` | object | – | Signature options: `{ secret, algorithm: 'sha256', header: 'X-Signature' }` |\n| `timeout` | number | 15000 | Per-request timeout in ms |\n| `retries` | number | 2 | Max retry attempts |\n| `retryDelay` | number | 300 | Base delay for backoff (ms) |\n| `headers` | object | `{}` | Extra default headers |\n| `parse` | boolean | `true` | Auto-parse JSON responses |\n| `stream` | boolean | `false` | Return raw stream instead of parsed body |\n| `proxy` | string | – | Proxy URL (e.g., `http:\u002F\u002Fproxy:8080`) |\n\n## Advanced Usage\n\n### Custom Signing\n\n```js\nconst client = new ApiClient({\n  baseUrl: 'https:\u002F\u002Fapi.example.com',\n  sign: {\n    secret: process.env.SIGNING_SECRET,\n    algorithm: 'sha256',\n    header: 'X-Request-Signature'\n  }\n});\n```\n\n### Dynamic Target Resolution\n\nThe client allows dynamic endpoint resolution at call time. This is useful for SDKs where the endpoint is not known until runtime.\n\n```js\n\u002F\u002F Endpoint can be a string, a function, or a module path\nconst dynamicClient = new ApiClient({ baseUrl: 'https:\u002F\u002Fapi.example.com' });\n\n\u002F\u002F String endpoint\nawait dynamicClient.get('\u002Fstatus');\n\n\u002F\u002F Function endpoint (receives config, returns path)\nawait dynamicClient.get(() => `\u002Fstatus\u002F${Date.now()}`);\n\n\u002F\u002F Module path – loads a custom adapter at runtime\n\u002F\u002F (useful for plugin architectures)\nawait dynamicClient.get('@my-org\u002Flegacy-adapter');\n```\n\n### Retry Policy\n\n```js\nconst client = new ApiClient({\n  retries: 5,\n  retryDelay: 200,\n  \u002F\u002F Custom retry predicate (default: status 429 or >= 500)\n  shouldRetry: (res) => res.status === 503 || res.status === 408\n});\n```\n\n### Error Handling\n\nAll errors are normalized into `ApiError` with `.status`, `.code`, and `.message`. Network failures return `status: 0`.\n\n```js\ntry {\n  const res = await client.post('\u002Fitems', data);\n} catch (err) {\n  if (err.status === 403) {\n    \u002F\u002F Handle forbidden\n  }\n}\n```\n\n## CLI Usage\n\nThe package includes a minimal CLI for quick testing:\n\n```bash\napi-client --url https:\u002F\u002Fapi.example.com\u002Fhealth --method GET\n```\n\nSupports `--data`, `--headers`, `--timeout`, and `--no-parse` flags.\n\n## License\n\nMIT – Use freely in commercial and personal projects.",{"name":5,"license":15,"version":24,"metadata":25,"platform":34,"api_version":35,"description":7},"1.2.0",{"tags":26,"category":33},[27,28,29,30,31,32],"http","rest","client","json","retry","backoff","developer-tools","universal",1,"main","49614550b02131f4dad98c3b8bfe88797652953a","generator\u002Foutput\u002Fskill-instruction_manip-target_agnostic-4e9530e087","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction","https:\u002F\u002Fgithub.com\u002FZewang0217","(^^ゞ","2026-08-21 16:23:12",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add Zewang0217\u002Fskill-construction --skill api-client-boilerplate",{"tool":49,"command":50},"bunx","bunx skills add Zewang0217\u002Fskill-construction --skill api-client-boilerplate",{"tool":52,"command":53},"pnpm","pnpm dlx skills add Zewang0217\u002Fskill-construction --skill api-client-boilerplate","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-instruction_manip-target_agnostic-4e9530e087\u002FSKILL.md",true,[57,63,69,73],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"_provenance.json","REFERENCE","参考文档",2230,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-instruction_manip-target_agnostic-4e9530e087\u002F_provenance.json",{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"cli.js","SCRIPT","脚本",1438,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-instruction_manip-target_agnostic-4e9530e087\u002Fcli.js",{"path":70,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":71,"sourceHtmlUrl":72},"index.js",7175,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-instruction_manip-target_agnostic-4e9530e087\u002Findex.js",{"path":74,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":75,"sourceHtmlUrl":76},"package.json",331,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-instruction_manip-target_agnostic-4e9530e087\u002Fpackage.json",[78,85,92,99,106,113],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"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":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"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":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"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":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"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":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"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":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"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",[],[]]