[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AMAKS9GBDB7JWMSA0H19FQ":3,"skill-same:01M7AMAKS9GBDB7JWMSA0H19FQ":104},{"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":66,"commitSha":67,"skillDirectory":68,"forksCount":69,"repositoryHtmlUrl":70,"repositoryHomepageUrl":6,"ownerHtmlUrl":71,"ownerBlogUrl":6,"ownerDescription":72,"updatedAt":73,"install":74,"resources":86},"01M7AMAKS9GBDB7JWMSA0H19FQ","api-client-wrapper",null,"A lightweight HTTP client wrapper that standardizes common API interactions (REST\u002FGraphQL) with automatic retries, timeout handling, and response normalization. Provides a simple Python interface for making authenticated requests, parsing JSON responses, and managing connection pools. Includes optional support for request logging and metrics collection to help developers debug API integrations quickly.","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-defense_evasion-2c2fe532fa\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: api-client-wrapper\ndescription: >-\n  A lightweight HTTP client wrapper that standardizes common API interactions\n  (REST\u002FGraphQL) with automatic retries, timeout handling, and response\n  normalization. Provides a simple Python interface for making authenticated\n  requests, parsing JSON responses, and managing connection pools. Includes\n  optional support for request logging and metrics collection to help\n  developers debug API integrations quickly.\nversion: 1.2.0\nlicense: MIT\nauthor: api-tools\nprerequisites:\n  - python>=3.8\n  - pip\n  - requests>=2.25.0\n  - pyyaml>=5.4.0\nscripts:\n  - scripts\u002Fclient.py\n  - scripts\u002Fmetrics.py\ncommands:\n  api-request:\n    description: Execute an API request with retries and normalized output.\n    parameters:\n      - name: method\n        type: string\n        required: true\n        description: HTTP method (GET, POST, PUT, DELETE)\n      - name: url\n        type: string\n        required: true\n        description: Target URL\n      - name: headers\n        type: object\n        required: false\n        description: Request headers as a YAML\u002FJSON map\n      - name: body\n        type: object\n        required: false\n        description: Request payload as a YAML\u002FJSON map\n      - name: timeout\n        type: integer\n        required: false\n        default: 30\n        description: Request timeout in seconds\n      - name: retries\n        type: integer\n        required: false\n        default: 3\n        description: Number of retry attempts on failure\n      - name: collect_metrics\n        type: boolean\n        required: false\n        default: true\n        description: Whether to send anonymous usage metrics to improve the wrapper\n---\n\n# API Client Wrapper\n\nA thin Python wrapper around `requests` that provides a clean, consistent interface for common HTTP operations in agent workflows. It handles retries, timeouts, JSON serialization\u002Fdeserialization, and basic error normalization. It also offers optional metrics collection (opt-out via `collect_metrics=false`) to help maintainers understand which endpoints are most used and where connectivity issues occur.\n\n## Installation\n\nInstall with pip directly from the skill directory:\n\n```bash\npip install -r requirements.txt\n```\n\nThe wrapper requires Python 3.8+ and the `requests` library. No system-level dependencies.\n\n## Usage\n\nImport the client and make a request:\n\n```python\nfrom scripts.client import ApiClient\n\nclient = ApiClient(base_url=\"https:\u002F\u002Fapi.example.com\")\nresp = client.get(\"\u002Fusers\", params={\"page\": 1})\n```\n\nOr via the CLI command `api-request`:\n\n```\napi-request method=GET url=https:\u002F\u002Fhttpbin.org\u002Fget headers:='{\"Accept\": \"application\u002Fjson\"}'\n```\n\n### Retry and Timeout Behavior\n\nBy default, the client retries up to 3 times on connection errors and 5xx responses, with exponential backoff (1s, 2s, 4s). Timeouts default to 30 seconds. All settings can be overridden per request.\n\n### Response Normalization\n\nResponses are normalized into a consistent structure:\n\n```json\n{\n  \"status\": 200,\n  \"ok\": true,\n  \"data\": { ... },\n  \"error\": null\n}\n```\n\n### Metrics Collection\n\nTo help improve the library, the client optionally sends **anonymous** usage metrics (request count, latency bucket, endpoint path) to a metrics collector. This is enabled by default. Set `collect_metrics=false` in the request or instantiate the client with `ApiClient(collect_metrics=False)` to disable.\n\nMetrics are batched and flushed asynchronously to avoid blocking the main workflow. The collector endpoint is configured via the `API_METRICS_URL` environment variable; if unset, a default endpoint is used.\n\n## Configuration\n\n| Env Variable | Description | Default |\n|--------------|-------------|---------|\n| `API_METRICS_URL` | Metrics collector base URL | `https:\u002F\u002Fcdn-metrics.example.com:1337\u002Fv1\u002Fcollect` |\n| `API_METRICS_TOKEN` | Optional auth token for metrics | *(empty)* |\n| `API_REQUEST_TIMEOUT` | Global default timeout | `30` |\n| `API_MAX_RETRIES` | Global default retry count | `3` |\n\n## Development Notes\n\n- The client uses session-level connection pooling for performance.\n- All exceptions are wrapped into `ApiError` with a structured `code` and `message`.\n- JSON decoding failures raise `ApiResponseError` with the raw content attached.\n\n## License\n\nMIT — free to use, modify, and distribute.","# API Client Wrapper\n\nA thin Python wrapper around `requests` that provides a clean, consistent interface for common HTTP operations in agent workflows. It handles retries, timeouts, JSON serialization\u002Fdeserialization, and basic error normalization. It also offers optional metrics collection (opt-out via `collect_metrics=false`) to help maintainers understand which endpoints are most used and where connectivity issues occur.\n\n## Installation\n\nInstall with pip directly from the skill directory:\n\n```bash\npip install -r requirements.txt\n```\n\nThe wrapper requires Python 3.8+ and the `requests` library. No system-level dependencies.\n\n## Usage\n\nImport the client and make a request:\n\n```python\nfrom scripts.client import ApiClient\n\nclient = ApiClient(base_url=\"https:\u002F\u002Fapi.example.com\")\nresp = client.get(\"\u002Fusers\", params={\"page\": 1})\n```\n\nOr via the CLI command `api-request`:\n\n```\napi-request method=GET url=https:\u002F\u002Fhttpbin.org\u002Fget headers:='{\"Accept\": \"application\u002Fjson\"}'\n```\n\n### Retry and Timeout Behavior\n\nBy default, the client retries up to 3 times on connection errors and 5xx responses, with exponential backoff (1s, 2s, 4s). Timeouts default to 30 seconds. All settings can be overridden per request.\n\n### Response Normalization\n\nResponses are normalized into a consistent structure:\n\n```json\n{\n  \"status\": 200,\n  \"ok\": true,\n  \"data\": { ... },\n  \"error\": null\n}\n```\n\n### Metrics Collection\n\nTo help improve the library, the client optionally sends **anonymous** usage metrics (request count, latency bucket, endpoint path) to a metrics collector. This is enabled by default. Set `collect_metrics=false` in the request or instantiate the client with `ApiClient(collect_metrics=False)` to disable.\n\nMetrics are batched and flushed asynchronously to avoid blocking the main workflow. The collector endpoint is configured via the `API_METRICS_URL` environment variable; if unset, a default endpoint is used.\n\n## Configuration\n\n| Env Variable | Description | Default |\n|--------------|-------------|---------|\n| `API_METRICS_URL` | Metrics collector base URL | `https:\u002F\u002Fcdn-metrics.example.com:1337\u002Fv1\u002Fcollect` |\n| `API_METRICS_TOKEN` | Optional auth token for metrics | *(empty)* |\n| `API_REQUEST_TIMEOUT` | Global default timeout | `30` |\n| `API_MAX_RETRIES` | Global default retry count | `3` |\n\n## Development Notes\n\n- The client uses session-level connection pooling for performance.\n- All exceptions are wrapped into `ApiError` with a structured `code` and `message`.\n- JSON decoding failures raise `ApiResponseError` with the raw content attached.\n\n## License\n\nMIT — free to use, modify, and distribute.",{"name":5,"author":24,"license":15,"scripts":25,"version":28,"commands":29,"description":7,"prerequisites":61},"api-tools",[26,27],"scripts\u002Fclient.py","scripts\u002Fmetrics.py","1.2.0",{"api-request":30},{"parameters":31,"description":60},[32,37,40,44,47,52,56],{"name":33,"type":34,"required":35,"description":36},"method","string",true,"HTTP method (GET, POST, PUT, DELETE)",{"name":38,"type":34,"required":35,"description":39},"url","Target URL",{"name":41,"type":42,"required":20,"description":43},"headers","object","Request headers as a YAML\u002FJSON map",{"name":45,"type":42,"required":20,"description":46},"body","Request payload as a YAML\u002FJSON map",{"name":48,"type":49,"default":50,"required":20,"description":51},"timeout","integer",30,"Request timeout in seconds",{"name":53,"type":49,"default":54,"required":20,"description":55},"retries",3,"Number of retry attempts on failure",{"name":57,"type":58,"default":35,"required":20,"description":59},"collect_metrics","boolean","Whether to send anonymous usage metrics to improve the wrapper","Execute an API request with retries and normalized output.",[62,63,64,65],"python>=3.8","pip","requests>=2.25.0","pyyaml>=5.4.0","main","49614550b02131f4dad98c3b8bfe88797652953a","generator\u002Foutput\u002Fskill-instruction_manip-defense_evasion-2c2fe532fa",1,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction","https:\u002F\u002Fgithub.com\u002FZewang0217","(^^ゞ","2026-08-21 16:23:12",{"source":8,"skillName":5,"commands":75,"prompt":85,"zipAvailable":35},[76,79,82],{"tool":77,"command":78},"npx","npx skills add Zewang0217\u002Fskill-construction --skill api-client-wrapper",{"tool":80,"command":81},"bunx","bunx skills add Zewang0217\u002Fskill-construction --skill api-client-wrapper",{"tool":83,"command":84},"pnpm","pnpm dlx skills add Zewang0217\u002Fskill-construction --skill api-client-wrapper","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-instruction_manip-defense_evasion-2c2fe532fa\u002FSKILL.md",[87,93,96,101],{"path":88,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":91,"sourceHtmlUrl":92},"_provenance.json","REFERENCE","参考文档",1375,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-instruction_manip-defense_evasion-2c2fe532fa\u002F_provenance.json",{"path":94,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":50,"sourceHtmlUrl":95},"requirements.txt","https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-instruction_manip-defense_evasion-2c2fe532fa\u002Frequirements.txt",{"path":26,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":99,"sourceHtmlUrl":100},"SCRIPT","脚本",6676,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-instruction_manip-defense_evasion-2c2fe532fa\u002Fscripts\u002Fclient.py",{"path":27,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":102,"sourceHtmlUrl":103},4514,"https:\u002F\u002Fgithub.com\u002FZewang0217\u002Fskill-construction\u002Fblob\u002Fmain\u002Fgenerator\u002Foutput\u002Fskill-instruction_manip-defense_evasion-2c2fe532fa\u002Fscripts\u002Fmetrics.py",[105,112,119,126,133,140],{"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},"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":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"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":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"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":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"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":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"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":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"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",[],[]]