[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ARNBR311H3DTEX8GEGMY2K":3,"skill-same:01M7ARNBR311H3DTEX8GEGMY2K":64},{"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":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7ARNBR311H3DTEX8GEGMY2K","api-testing",null,"Writes or improves tests for HTTP APIs (REST, GraphQL): status, body, schema, headers, errors, auth, idempotency, pagination and side effects, with any HTTP client. Use when the user says 'API test', 'endpoint test' or 'validate the response schema'. Not for cross-team contracts (use contract-testing).","quark-sri\u002Fqestack","quark-sri","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F89900424?v=4","01M7ARN6E370E8C9T165BKJB5G","Srinivas Pasupulati","01M7ARN6F6BCMFYCV5RC5HR9JC",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fquark-sri\u002Fqestack\u002Fblob\u002Fmain\u002Fplugins\u002Fqestack\u002Fskills\u002Fapi-testing\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: api-testing\ndescription: \"Writes or improves tests for HTTP APIs (REST, GraphQL): status, body, schema, headers, errors, auth, idempotency, pagination and side effects, with any HTTP client. Use when the user says 'API test', 'endpoint test' or 'validate the response schema'. Not for cross-team contracts (use contract-testing).\"\nlicense: Apache-2.0\nargument-hint: \"[endpoint, controller, contract file or API area]\"\n---\n\n# api-testing\n\n## Objective\n\nA status code alone proves very little. An API test checks the whole contract of one call: the values, the shape, the headers, the errors, who may call it, and what it changes. This skill writes such tests against a real running service (in process or in a test environment), with only third-party services simulated.\n\n## Context\n\n1. Read `.agents\u002Fqa-project-context.md` if it exists. Use its API style, test stack, environments and authentication approach.\n2. If it does not exist, find them in the repository (contract files, controllers, existing API tests, configuration). Suggest `qa-project-context` once. Do not stop the work for it.\n\n## Discovery questions\n\n1. Is there a contract (an API description file, a schema, a GraphQL schema)? It is the oracle for shape and errors.\n2. How do clients authenticate (token, key, session, mutual TLS)? Which roles and tenants exist?\n3. Does the project have an HTTP client library or test helpers for APIs? Use them.\n4. Does the API change state (database, messages, calls to other services)? How can the test observe it?\n\n## Principles\n\n1. **Check every effect the contract defines** (see [the API checklist](references\u002Fapi-checklist.md)): status, body values, shape, headers, error payload, persisted state, side effects, and no side effect on failure.\n2. **Validate the shape against the contract** in each test, and check the important values explicitly.\n3. **Authorization is a test case.** For each endpoint: no credentials, wrong role, another user's or tenant's object.\n4. **Own data in each test.** Create it through the API or a test data helper, and give it unique keys.\n5. **Real service, simulated third parties.** Do not mock the API's own database or logic. Simulate only external services that the team does not own.\n\n## Workflow\n\n1. List the endpoints in scope with their contract: inputs, outputs, errors, permissions, side effects.\n2. Design the cases for each endpoint (see `test-case-designer`). Include a happy path, each documented error, the authorization cases and the boundaries of each input. Add idempotency, pagination and filters where the contract needs them.\n3. Set up the client: base address from configuration, an authentication helper that gets fresh credentials, a request and response log on failure.\n4. Write the tests. For each one, check the status, the important values, the shape, the headers that the contract defines, and the state or messages after the call. For a rejected call, check that nothing changed.\n5. Run the tests against the target environment with the project's command. Then break one rule on purpose to check that a test fails.\n\n## Stack recipes\n\nRead only the recipe for the stack of the project: [Java](references\u002Fjava.md), [TypeScript and JavaScript](references\u002Ftypescript.md), [Python](references\u002Fpython.md). For another stack, apply the principles with the project's own client, and say so.\n\n## Anti-patterns\n\n- **Status-only tests.** They pass when the body is wrong.\n- **Hard-coded tokens.** They expire and differ between environments.\n- **Testing against production** with tests that create or delete data.\n- **Conditional assertions** (`if` a header exists, check it). The check may never run.\n- **Mocking the API's own database.** The test then checks the mock, not the service.\n\n## Done when\n\n- Each endpoint in scope has a happy-path test and a test for each documented error.\n- Each endpoint has authorization tests (no credentials, wrong role, another owner's object).\n- Each response shape is validated against the contract, and the important values are checked.\n- State-changing calls check the stored state or the messages, and rejected calls check that nothing changed.\n- The tests run green in the target environment and fail on a deliberate break.\n\n## Related skills\n\n- `contract-testing`: agreements with consumers in other teams.\n- `database-testing`: deeper checks of stored state.\n- `service-virtualization`: simulate third-party services.\n- `security-testing`: injection, authentication and authorization in depth.\n","# api-testing\n\n## Objective\n\nA status code alone proves very little. An API test checks the whole contract of one call: the values, the shape, the headers, the errors, who may call it, and what it changes. This skill writes such tests against a real running service (in process or in a test environment), with only third-party services simulated.\n\n## Context\n\n1. Read `.agents\u002Fqa-project-context.md` if it exists. Use its API style, test stack, environments and authentication approach.\n2. If it does not exist, find them in the repository (contract files, controllers, existing API tests, configuration). Suggest `qa-project-context` once. Do not stop the work for it.\n\n## Discovery questions\n\n1. Is there a contract (an API description file, a schema, a GraphQL schema)? It is the oracle for shape and errors.\n2. How do clients authenticate (token, key, session, mutual TLS)? Which roles and tenants exist?\n3. Does the project have an HTTP client library or test helpers for APIs? Use them.\n4. Does the API change state (database, messages, calls to other services)? How can the test observe it?\n\n## Principles\n\n1. **Check every effect the contract defines** (see [the API checklist](references\u002Fapi-checklist.md)): status, body values, shape, headers, error payload, persisted state, side effects, and no side effect on failure.\n2. **Validate the shape against the contract** in each test, and check the important values explicitly.\n3. **Authorization is a test case.** For each endpoint: no credentials, wrong role, another user's or tenant's object.\n4. **Own data in each test.** Create it through the API or a test data helper, and give it unique keys.\n5. **Real service, simulated third parties.** Do not mock the API's own database or logic. Simulate only external services that the team does not own.\n\n## Workflow\n\n1. List the endpoints in scope with their contract: inputs, outputs, errors, permissions, side effects.\n2. Design the cases for each endpoint (see `test-case-designer`). Include a happy path, each documented error, the authorization cases and the boundaries of each input. Add idempotency, pagination and filters where the contract needs them.\n3. Set up the client: base address from configuration, an authentication helper that gets fresh credentials, a request and response log on failure.\n4. Write the tests. For each one, check the status, the important values, the shape, the headers that the contract defines, and the state or messages after the call. For a rejected call, check that nothing changed.\n5. Run the tests against the target environment with the project's command. Then break one rule on purpose to check that a test fails.\n\n## Stack recipes\n\nRead only the recipe for the stack of the project: [Java](references\u002Fjava.md), [TypeScript and JavaScript](references\u002Ftypescript.md), [Python](references\u002Fpython.md). For another stack, apply the principles with the project's own client, and say so.\n\n## Anti-patterns\n\n- **Status-only tests.** They pass when the body is wrong.\n- **Hard-coded tokens.** They expire and differ between environments.\n- **Testing against production** with tests that create or delete data.\n- **Conditional assertions** (`if` a header exists, check it). The check may never run.\n- **Mocking the API's own database.** The test then checks the mock, not the service.\n\n## Done when\n\n- Each endpoint in scope has a happy-path test and a test for each documented error.\n- Each endpoint has authorization tests (no credentials, wrong role, another owner's object).\n- Each response shape is validated against the contract, and the important values are checked.\n- State-changing calls check the stored state or the messages, and rejected calls check that nothing changed.\n- The tests run green in the target environment and fail on a deliberate break.\n\n## Related skills\n\n- `contract-testing`: agreements with consumers in other teams.\n- `database-testing`: deeper checks of stored state.\n- `service-virtualization`: simulate third-party services.\n- `security-testing`: injection, authentication and authorization in depth.\n",{"name":5,"license":15,"description":7,"argument-hint":24},"[endpoint, controller, contract file or API area]","main","33cd1b197739d1c9a7a907bc4bb50c00039c2371","plugins\u002Fqestack\u002Fskills\u002Fapi-testing",0,"https:\u002F\u002Fgithub.com\u002Fquark-sri\u002Fqestack","https:\u002F\u002Fgithub.com\u002Fquark-sri","2026-11-14 20:45:02",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add quark-sri\u002Fqestack --skill api-testing",{"tool":38,"command":39},"bunx","bunx skills add quark-sri\u002Fqestack --skill api-testing",{"tool":41,"command":42},"pnpm","pnpm dlx skills add quark-sri\u002Fqestack --skill api-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fquark-sri\u002Fqestack\u002Fblob\u002Fmain\u002Fplugins\u002Fqestack\u002Fskills\u002Fapi-testing\u002FSKILL.md",true,[46,52,56,60],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fapi-checklist.md","REFERENCE","参考文档",1918,"https:\u002F\u002Fgithub.com\u002Fquark-sri\u002Fqestack\u002Fblob\u002Fmain\u002Fplugins\u002Fqestack\u002Fskills\u002Fapi-testing\u002Freferences\u002Fapi-checklist.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fjava.md",2416,"https:\u002F\u002Fgithub.com\u002Fquark-sri\u002Fqestack\u002Fblob\u002Fmain\u002Fplugins\u002Fqestack\u002Fskills\u002Fapi-testing\u002Freferences\u002Fjava.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fpython.md",1775,"https:\u002F\u002Fgithub.com\u002Fquark-sri\u002Fqestack\u002Fblob\u002Fmain\u002Fplugins\u002Fqestack\u002Fskills\u002Fapi-testing\u002Freferences\u002Fpython.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Ftypescript.md",1977,"https:\u002F\u002Fgithub.com\u002Fquark-sri\u002Fqestack\u002Fblob\u002Fmain\u002Fplugins\u002Fqestack\u002Fskills\u002Fapi-testing\u002Freferences\u002Ftypescript.md",[65,72,79,86,93,100],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7ARWD0Z563VXR17R8QMHWKE","unit-testing","Writes, fixes or improves unit tests for rules, calculations, validation and state logic: arrange-act-assert, exact oracles, boundary sets, doubles only at boundaries, controlled clock and randomness. Use when the user says 'write unit tests', 'TDD this' or 'mock this dependency'. Not for HTTP endpoints (use api-testing).","https:\u002F\u002Fgithub.com\u002Fquark-sri\u002Fqestack\u002Fblob\u002Fmain\u002Fplugins\u002Fqestack\u002Fskills\u002Funit-testing\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7ARW7HQKKAWQZ4K8128SBXC","ui-automation","Writes, fixes or structures browser end-to-end tests for critical journeys: role, label or test ID locators, auto-waiting assertions, API data setup, page objects, auth reuse and traces. Use when the user says 'UI test', 'end-to-end test' or 'our UI tests are brittle'. Not for business rules (use unit-testing).","https:\u002F\u002Fgithub.com\u002Fquark-sri\u002Fqestack\u002Fblob\u002Fmain\u002Fplugins\u002Fqestack\u002Fskills\u002Fui-automation\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7ARW22645WR7R6MKTAP1CVP","testcase-reviewer","Reviews automated tests or manual test cases like a senior test architect: scores fidelity, oracles, assertion depth, edge cases and determinism, and finds tests that pass on wrong code. Use when the user says 'review my tests', 'test smells' or 'review AI-written tests'. Not for fault injection (use mutation-probe).","https:\u002F\u002Fgithub.com\u002Fquark-sri\u002Fqestack\u002Fblob\u002Fmain\u002Fplugins\u002Fqestack\u002Fskills\u002Ftestcase-reviewer\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7ARVXYW0WTC5E7J5CR4S0EC","testability-review","Scores how testable a feature, module or design is before tests exist (seams for clock, randomness and network, hidden state, observability) and gives the smallest production change per blocker. Use when the user asks 'is this testable' or 'why is this hard to test'. Not for writing the tests (use unit-testing).","https:\u002F\u002Fgithub.com\u002Fquark-sri\u002Fqestack\u002Fblob\u002Fmain\u002Fplugins\u002Fqestack\u002Fskills\u002Ftestability-review\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M7ARVTENW2RDMMKHDTGMYQBM","test-strategy","Writes a test strategy for a product, system or team: quality goals, test levels and their share, environments, data, automation scope, non-functional testing, metrics and a roadmap. Use when the user says 'test strategy' or 'QA strategy'. Not for one sprint or release plan (use test-planning).","https:\u002F\u002Fgithub.com\u002Fquark-sri\u002Fqestack\u002Fblob\u002Fmain\u002Fplugins\u002Fqestack\u002Fskills\u002Ftest-strategy\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M7ARVMXVKN1XHB1QQCRNGXP5","test-runner","Finds how a project runs its tests, runs the right subset, and triages each failure as product bug, test defect, environment problem or flaky test, with evidence. Use when the user says 'run the tests' or asks 'which tests fail and why'. Not for pipeline design (use ci-cd-integration).","https:\u002F\u002Fgithub.com\u002Fquark-sri\u002Fqestack\u002Fblob\u002Fmain\u002Fplugins\u002Fqestack\u002Fskills\u002Ftest-runner\u002FSKILL.md",[],[]]