[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CSD5PP1DH0G1P1XNRXHD3Z":3,"skill-same:01M7CSD5PP1DH0G1P1XNRXHD3Z":48},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7CSD5PP1DH0G1P1XNRXHD3Z","api-contract-testing",null,"Use when a task adds or changes an HTTP endpoint, its request\u002Fresponse shape, status codes, auth or error format - the request matrix, curl templates and what counts as a contract break","makifbaysal\u002Ftasktrooper","makifbaysal","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F25031940?v=4","01M7CRG3ZCSYZSSEVDMW3DEYC8","Mehmet Akif Baysal","01M7CRG401FJ8YAXH5ER730XYV",122,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fqa-agent\u002Fskills\u002Fapi-contract-testing\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: api-contract-testing\ncategory: qa\ndescription: Use when a task adds or changes an HTTP endpoint, its request\u002Fresponse shape, status codes, auth or error format - the request matrix, curl templates and what counts as a contract break\n---\n# API Contract Testing\n\n## Contract source\n\nThe task, its acceptance criteria and the spec document first; then the repo's OpenAPI file or README API docs (the named boot-docs exception). Never the handler source — a contract derived from the implementation only proves the implementation matches itself.\n\n## Request template\n\n```bash\ncurl -sS -D \"$QA\u002Fh.txt\" -o \"$QA\u002Fb.json\" -w '%{http_code} %{time_total}s\\n' -X POST \"$BASE\u002Fapi\u002Ftasks\" -H \"Authorization: Bearer $TOKEN\" -H 'Content-Type: application\u002Fjson' -d '{\"title\":\"qa-T-12 a\"}'; jq . \"$QA\u002Fb.json\"  # no jq (stock Windows, some Linux): read_file the body instead\n```\n\n## Per changed endpoint, the matrix\n\nOne case each, mapped to the category enum:\n\n| Case | Category |\n|---|---|\n| 2xx happy path | `happy_path` |\n| 400\u002F422 for invalid body, with the error payload shape | `negative` |\n| 401 no token | `auth` |\n| 403 other user's resource (BOLA: create as A, read\u002Fupdate\u002Fdelete as B) | `auth` |\n| 404 unknown id | `negative` |\n| 409 duplicate where uniqueness is implied | `negative` |\n| 405 wrong method | `negative` |\n| extra unknown\u002Fprivileged field ignored, e.g. `\"role\":\"admin\"` (mass assignment) | `auth` |\n| pagination edges (limit 0, max, max+1) | `boundary` |\n| idempotency: PUT\u002FDELETE twice, POST with `Idempotency-Key` twice when claimed | `negative` |\n| content-type (missing, wrong) | `negative` |\n\n## Compatibility\n\nExisting fields keep their name, type and nullability. A removed or renamed field is a break unless the task explicitly asks for it. Compare against the OpenAPI file, or a request to the same endpoint on stage\u002Fthe default branch.\n\n## Side effects\n\nVerify them the same way backend-manual-testing does — a 2xx with the wrong DB row or missed outbound call is a FAIL, not a pass with a note.\n\n## Optional depth: schema fuzzing\n\nLocal boot only, and only when the repo ships an OpenAPI file:\n\n```bash\nuvx schemathesis run \u003Copenapi> --url \u003Cbase> -H \"Authorization: Bearer $TOKEN\" --include-path-regex '\u003Cchanged path>' --checks not_a_server_error,status_code_conformance,response_schema_conformance --max-examples 20 --max-failures 5\n```\n\nScope it to the changed paths with `--include-path-regex`. Never run it against stage or anything shared — it generates many writes.\n\n## Worked Example\n\n\"POST \u002Ftasks title ≤120 chars\": happy path (120 chars, 201); empty title (422); 121 chars (422); no auth (401); another user's project (403); duplicate title where unique (409 or 201 per spec); wrong Content-Type (415\u002F400); unknown field `is_admin:true` ignored (201, field absent from response) — 8 cases, each with its expected code recorded before running it.\n\n## Red Flags\n\n- Asserting only the status code and never the body shape.\n- Testing authz with the same user for both sides of a BOLA case.\n- Fuzzing a shared environment (stage, a shared database).\n","# API Contract Testing\n\n## Contract source\n\nThe task, its acceptance criteria and the spec document first; then the repo's OpenAPI file or README API docs (the named boot-docs exception). Never the handler source — a contract derived from the implementation only proves the implementation matches itself.\n\n## Request template\n\n```bash\ncurl -sS -D \"$QA\u002Fh.txt\" -o \"$QA\u002Fb.json\" -w '%{http_code} %{time_total}s\\n' -X POST \"$BASE\u002Fapi\u002Ftasks\" -H \"Authorization: Bearer $TOKEN\" -H 'Content-Type: application\u002Fjson' -d '{\"title\":\"qa-T-12 a\"}'; jq . \"$QA\u002Fb.json\"  # no jq (stock Windows, some Linux): read_file the body instead\n```\n\n## Per changed endpoint, the matrix\n\nOne case each, mapped to the category enum:\n\n| Case | Category |\n|---|---|\n| 2xx happy path | `happy_path` |\n| 400\u002F422 for invalid body, with the error payload shape | `negative` |\n| 401 no token | `auth` |\n| 403 other user's resource (BOLA: create as A, read\u002Fupdate\u002Fdelete as B) | `auth` |\n| 404 unknown id | `negative` |\n| 409 duplicate where uniqueness is implied | `negative` |\n| 405 wrong method | `negative` |\n| extra unknown\u002Fprivileged field ignored, e.g. `\"role\":\"admin\"` (mass assignment) | `auth` |\n| pagination edges (limit 0, max, max+1) | `boundary` |\n| idempotency: PUT\u002FDELETE twice, POST with `Idempotency-Key` twice when claimed | `negative` |\n| content-type (missing, wrong) | `negative` |\n\n## Compatibility\n\nExisting fields keep their name, type and nullability. A removed or renamed field is a break unless the task explicitly asks for it. Compare against the OpenAPI file, or a request to the same endpoint on stage\u002Fthe default branch.\n\n## Side effects\n\nVerify them the same way backend-manual-testing does — a 2xx with the wrong DB row or missed outbound call is a FAIL, not a pass with a note.\n\n## Optional depth: schema fuzzing\n\nLocal boot only, and only when the repo ships an OpenAPI file:\n\n```bash\nuvx schemathesis run \u003Copenapi> --url \u003Cbase> -H \"Authorization: Bearer $TOKEN\" --include-path-regex '\u003Cchanged path>' --checks not_a_server_error,status_code_conformance,response_schema_conformance --max-examples 20 --max-failures 5\n```\n\nScope it to the changed paths with `--include-path-regex`. Never run it against stage or anything shared — it generates many writes.\n\n## Worked Example\n\n\"POST \u002Ftasks title ≤120 chars\": happy path (120 chars, 201); empty title (422); 121 chars (422); no auth (401); another user's project (403); duplicate title where unique (409 or 201 per spec); wrong Content-Type (415\u002F400); unknown field `is_admin:true` ignored (201, field absent from response) — 8 cases, each with its expected code recorded before running it.\n\n## Red Flags\n\n- Asserting only the status code and never the body shape.\n- Testing authz with the same user for both sides of a BOLA case.\n- Fuzzing a shared environment (stage, a shared database).\n",{"name":5,"category":24,"description":7},"qa","main","910394a0b6db9fc8c9a8f36328ec421d3ebd8b38","catalog\u002Fagents\u002Fqa-agent\u002Fskills\u002Fapi-contract-testing",18,"https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper","https:\u002F\u002Ftasktrooper.ai","https:\u002F\u002Fgithub.com\u002Fmakifbaysal","Senior Software Developer","2026-11-15 04:50:29",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add makifbaysal\u002Ftasktrooper --skill api-contract-testing",{"tool":40,"command":41},"bunx","bunx skills add makifbaysal\u002Ftasktrooper --skill api-contract-testing",{"tool":43,"command":44},"pnpm","pnpm dlx skills add makifbaysal\u002Ftasktrooper --skill api-contract-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fqa-agent\u002Fskills\u002Fapi-contract-testing\u002FSKILL.md",true,[],[49,55,62,69,76,83],{"skillNo":50,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7CSVEPQW6J6TD6CS2T5FPNZ","visual-craft","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fvisual-craft\u002FSKILL.md",[],[],{"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":19},"01M7CSVAQG91ETHQ0HBNZDG5FR","ux-copy","Use when you write any words a user reads in a mockup or a hand-off - content language and voice, buttons, labels, errors, empty states, confirmations, numbers and dates, and the longest-string check","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fux-copy\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7CSV6H0J38659NDXHJQ8396","screen-mockup-html","Use when you draw screens as the design task's HTML mockup - ONE canvas document holding every screen and every variant side by side, the sanitizer-safe recipe, phone and wide frames, the states grid, static control states, and the loopback self-check with screenshots at 375, 768 and 1440 attached to the task","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fscreen-mockup-html\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7CSV3JFRF3BM3XK52M7YEYR","performance-awareness","How the performance score moves for your role. Use when the score context shows a declining trend, or before handing off work you have not self-checked against every criterion.","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fperformance-awareness\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7CSTZDH00YRF5SCT7BRT9QD","design-variants","Use when a screen design needs variants - how many, variants as side-by-side rows on the one canvas, what makes two variants genuinely different, recommending one, how the human's choice is read, and narrowing to the chosen one in revision","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fdesign-variants\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7CSTV6P3SM3PAE28DB0RF77","design-system-authoring","Use when you derive, change or extend a design system - where tokens live per stack, the DTCG token tree, role-based names for both themes, base vs layer vs drift, the DESIGN.md section order, the inventory format, the contrast check and the lint every proposal returns","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fdesign-system-authoring\u002FSKILL.md",[],[]]