[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72Y8TVRCPB3KW1ZAM3AYCKZ":3,"skill-same:01M72Y8TVRCPB3KW1ZAM3AYCKZ":54},{"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":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":30,"repositoryHomepageUrl":36,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":38,"updatedAt":39,"install":40,"resources":53},"01M72Y8TVRCPB3KW1ZAM3AYCKZ","external-api-adapters",null,"Use when designing, writing, or reviewing adapters for external APIs, ERP systems, payment providers, storage providers, or third-party services. Covers boundary contracts, typed clients, retries, timeouts, pagination, error normalization, observability, and tests. Do not use for pure internal domain logic with no external service boundary.","marcioaltoe\u002Fskills","marcioaltoe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1562865?v=4","01M72Y3750J2CG00P0H2AHDRSZ","Marcio Altoé","01M72Y37642F46H36R4E4S7BNA",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F05-implementation-loop\u002Fexternal-api-adapters\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: external-api-adapters\ndescription: Use when designing, writing, or reviewing adapters for external APIs, ERP systems, payment providers, storage providers, or third-party services. Covers boundary contracts, typed clients, retries, timeouts, pagination, error normalization, observability, and tests. Do not use for pure internal domain logic with no external service boundary.\nmetadata:\n  category: backend\n  tags: [backend, api, integration, adapters]\n  version: 0.1.0\n  author: Marcio Altoé\n  source: https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\n---\n\n# External API Adapters\n\nUse this skill when code crosses a process or vendor boundary.\n\n## Core Rules\n\n- Keep external APIs behind adapters. Domain and use case code should depend on ports, not SDKs or HTTP client details.\n- Convert external DTOs into internal domain\u002Fapplication types at the boundary.\n- Normalize external errors into a small set of application errors.\n- Set explicit timeouts for every network call.\n- Make retry behavior deliberate, bounded, and safe for the operation.\n- Capture correlation IDs, request IDs, vendor IDs, and pagination cursors as structured evidence.\n- Keep credentials and raw sensitive payloads out of logs, snapshots, and thrown messages.\n\n## Adapter Shape\n\n```ts\nexport interface ErpCustomerGateway {\n  fetchCustomer(id: CustomerId): Promise\u003CExternalCustomerResult>;\n}\n\nexport class HttpErpCustomerAdapter implements ErpCustomerGateway {\n  async fetchCustomer(id: CustomerId): Promise\u003CExternalCustomerResult> {\n    \u002F\u002F HTTP or SDK details stay here.\n  }\n}\n```\n\nPrefer one adapter per external capability or bounded integration. Avoid large \"vendor client\" classes that mix unrelated operations.\n\n## Boundary Checklist\n\n- Input is validated before leaving the application.\n- Output is parsed and validated before entering the application.\n- Timeouts are configured and tested.\n- Retry policy is documented by operation.\n- Non-idempotent calls have idempotency keys or no automatic retry.\n- Pagination and cursors have deterministic stop conditions.\n- Rate limit responses are handled explicitly.\n- Logs include operation, external system, request ID, and safe identifiers.\n- The adapter has tests for success, validation failure, timeout, retryable failure, non-retryable failure, and malformed response.\n\n## Retry Guidance\n\nRetry only when the operation is idempotent or has an idempotency key. Do not retry validation failures, authentication failures, authorization failures, or permanent business-rule responses.\n\nUse small bounded retries with jitter for transient network failures and 5xx responses. Surface repeated failure as a typed application error.\n\n## Error Normalization\n\nMap vendor-specific details to application errors:\n\n```ts\ntype ExternalServiceError =\n  | { kind: \"unavailable\"; retryAfterMs?: number; requestId?: string }\n  | { kind: \"unauthorized\"; requestId?: string }\n  | { kind: \"not-found\"; requestId?: string }\n  | { kind: \"invalid-response\"; requestId?: string; reason: string };\n```\n\nThe rest of the application should not branch on SDK exception names or raw HTTP status codes unless the adapter contract explicitly exposes them.\n\n## Testing Guidance\n\n- Unit test mapping and error normalization with focused fixtures.\n- Use contract tests for real or recorded external response shapes.\n- Keep fake clients behavior-based, not assertion-only mocks.\n- Include negative fixtures for malformed, partial, and unexpected responses.\n- Verify observability fields for failure paths when operations teams need them.\n\n## Common Mistakes\n\n- Passing external DTOs through the application unchanged.\n- Retrying non-idempotent operations.\n- Hiding partial failure behind empty arrays or `undefined`.\n- Treating all 4xx or all 5xx responses the same.\n- Adding SDK imports throughout use case or domain code.\n","# External API Adapters\n\nUse this skill when code crosses a process or vendor boundary.\n\n## Core Rules\n\n- Keep external APIs behind adapters. Domain and use case code should depend on ports, not SDKs or HTTP client details.\n- Convert external DTOs into internal domain\u002Fapplication types at the boundary.\n- Normalize external errors into a small set of application errors.\n- Set explicit timeouts for every network call.\n- Make retry behavior deliberate, bounded, and safe for the operation.\n- Capture correlation IDs, request IDs, vendor IDs, and pagination cursors as structured evidence.\n- Keep credentials and raw sensitive payloads out of logs, snapshots, and thrown messages.\n\n## Adapter Shape\n\n```ts\nexport interface ErpCustomerGateway {\n  fetchCustomer(id: CustomerId): Promise\u003CExternalCustomerResult>;\n}\n\nexport class HttpErpCustomerAdapter implements ErpCustomerGateway {\n  async fetchCustomer(id: CustomerId): Promise\u003CExternalCustomerResult> {\n    \u002F\u002F HTTP or SDK details stay here.\n  }\n}\n```\n\nPrefer one adapter per external capability or bounded integration. Avoid large \"vendor client\" classes that mix unrelated operations.\n\n## Boundary Checklist\n\n- Input is validated before leaving the application.\n- Output is parsed and validated before entering the application.\n- Timeouts are configured and tested.\n- Retry policy is documented by operation.\n- Non-idempotent calls have idempotency keys or no automatic retry.\n- Pagination and cursors have deterministic stop conditions.\n- Rate limit responses are handled explicitly.\n- Logs include operation, external system, request ID, and safe identifiers.\n- The adapter has tests for success, validation failure, timeout, retryable failure, non-retryable failure, and malformed response.\n\n## Retry Guidance\n\nRetry only when the operation is idempotent or has an idempotency key. Do not retry validation failures, authentication failures, authorization failures, or permanent business-rule responses.\n\nUse small bounded retries with jitter for transient network failures and 5xx responses. Surface repeated failure as a typed application error.\n\n## Error Normalization\n\nMap vendor-specific details to application errors:\n\n```ts\ntype ExternalServiceError =\n  | { kind: \"unavailable\"; retryAfterMs?: number; requestId?: string }\n  | { kind: \"unauthorized\"; requestId?: string }\n  | { kind: \"not-found\"; requestId?: string }\n  | { kind: \"invalid-response\"; requestId?: string; reason: string };\n```\n\nThe rest of the application should not branch on SDK exception names or raw HTTP status codes unless the adapter contract explicitly exposes them.\n\n## Testing Guidance\n\n- Unit test mapping and error normalization with focused fixtures.\n- Use contract tests for real or recorded external response shapes.\n- Keep fake clients behavior-based, not assertion-only mocks.\n- Include negative fixtures for malformed, partial, and unexpected responses.\n- Verify observability fields for failure paths when operations teams need them.\n\n## Common Mistakes\n\n- Passing external DTOs through the application unchanged.\n- Retrying non-idempotent operations.\n- Hiding partial failure behind empty arrays or `undefined`.\n- Treating all 4xx or all 5xx responses the same.\n- Adding SDK imports throughout use case or domain code.\n",{"name":5,"metadata":24,"description":7},{"tags":25,"author":12,"source":30,"version":31,"category":26},[26,27,28,29],"backend","api","integration","adapters","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills","0.1.0","main","dea450cfd9df78b5cf721964ef178a75cea55cbb","skills\u002F05-implementation-loop\u002Fexternal-api-adapters",2,"https:\u002F\u002Fmarcioaltoe.github.io\u002Fskills\u002F","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe","Senior Software Engineer · Backend, Systems & AI","2026-11-14 18:29:56",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add marcioaltoe\u002Fskills --skill external-api-adapters",{"tool":46,"command":47},"bunx","bunx skills add marcioaltoe\u002Fskills --skill external-api-adapters",{"tool":49,"command":50},"pnpm","pnpm dlx skills add marcioaltoe\u002Fskills --skill external-api-adapters","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F05-implementation-loop\u002Fexternal-api-adapters\u002FSKILL.md",true,[],[55,63,70,77,84,91],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":62},"01M72YNVSF4JTTQG3YTR9QNT4Z","startup-validator","Comprehensive startup idea validation and market analysis tool. Use when users need to evaluate a startup idea, assess market fit, analyze competition, validate problem-solution fit, or determine market positioning. Triggers include requests to \"validate my startup idea\", \"analyze market opportunity\", \"check if there's demand for\", \"research competition for\", \"evaluate business idea\", or \"see if my idea is viable\". Provides data-driven analysis using web search, market frameworks, competitive research, and positioning recommendations.","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F10-marketing\u002Fstartup-validator\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":62},"01M72YNN34B4MYKEX1X6BB1NS1","positioning-icp","When the user wants to define their ideal customer profile, position an AI product, build messaging architecture, or validate product-market fit. Also use when the user mentions 'ICP,' 'ideal customer profile,' 'positioning,' 'PMF,' 'product-market fit,' 'messaging,' 'buyer persona,' 'enrichment signals,' 'market positioning,' or 'competitive positioning.' This skill covers market positioning, ICP definition, messaging architecture, and PMF validation for AI-native products. Do NOT use for technical implementation, code review, or software architecture.","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F10-marketing\u002Fpositioning-icp\u002FSKILL.md",[],[],{"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":62},"01M72YNG8XJ4RHRB5DQMCY9C1N","copywriting","When the user wants to write or rewrite page copy (homepage, landing, pricing, feature), or asks which headline, promise, or message to lead with. Diagnoses the input first (blank brief, real voice, or point edit) and changes only what it calls for. Claims must be supportable; a declined claim names the evidence that would unlock it. No AI tells like 'it's not X, it's Y' or 'no X, no Y, no Z'. For editing, see copy-editing. For emails, see emails. For the offer, see offers.","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F10-marketing\u002Fcopywriting\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":62},"01M72YNBF4JMQ4VCFHTW0WS6SD","business-storyteller","Transforms technical work into persuasive business-language documents for non-technical stakeholders, including internal announcements, approval proposals, incident explainers, technical-debt cases, product explainers, and investor or partner memos. Use when the user asks to present technical work to the company, explain software to business teams, write a business case, make an approval document, or convert a technical artifact into stakeholder communication in the requested language. Do not use for READMEs, specs, ADRs, external marketing pages, or customer-facing sales copy.","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F10-marketing\u002Fbusiness-storyteller\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":62},"01M72YN8NQ6QR0GHX2A8YW2K4T","brand-storytelling","Help users craft compelling brand narratives. Use when someone is defining brand strategy, writing company positioning, creating pitch narratives, developing messaging frameworks, or trying to make their company story more memorable.","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F10-marketing\u002Fbrand-storytelling\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":95,"licenseFileUrl":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":62},"01M72YN3CJH7CKPF4AXNY79Q9S","skill-creator","Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F09-learning-loop\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmarcioaltoe\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002F09-learning-loop\u002Fskill-creator\u002FSKILL.md",[],[]]