[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M799EKTXYD2XGJDA7DM27EQP":3,"skill-same:01M799EKTXYD2XGJDA7DM27EQP":56},{"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":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":39,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M799EKTXYD2XGJDA7DM27EQP","validating-api-contracts",null,"Validate API contracts using consumer-driven contract testing (Pact, Spring Cloud Contract).\nUse when performing specialized testing.\nTrigger with phrases like \"validate API contract\", \"run contract tests\", or \"check consumer contracts\".","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftesting--contract-test-validator--validating-api-contracts\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: validating-api-contracts\ndescription: |\n  Validate API contracts using consumer-driven contract testing (Pact, Spring Cloud Contract).\n  Use when performing specialized testing.\n  Trigger with phrases like \"validate API contract\", \"run contract tests\", or \"check consumer contracts\".\n\nallowed-tools: Read, Write, Edit, Grep, Glob, Bash(test:contract-*)\nversion: 1.0.0\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\nlicense: MIT\ncompatible-with: claude-code, codex, openclaw\ntags: [testing, api, validating-api]\n---\n# Contract Test Validator\n\n## Overview\n\nValidate API contracts between services using consumer-driven contract testing to prevent breaking changes in microservice architectures. Supports Pact (the industry standard for CDC testing), Spring Cloud Contract (JVM), and OpenAPI-diff for specification comparison.\n\n## Prerequisites\n\n- Contract testing framework installed (Pact JS\u002FPython\u002FJVM, or Spring Cloud Contract)\n- Pact Broker running (or PactFlow SaaS) for contract storage and verification\n- Consumer and provider services with clearly defined API boundaries\n- Existing integration points documented (which consumers call which provider endpoints)\n- CI pipeline configured for both consumer and provider repositories\n\n## Instructions\n\n1. Identify consumer-provider relationships in the system:\n   - Map which services call which APIs (e.g., Frontend calls User API, Order API calls Payment API).\n   - Document each interaction: HTTP method, path, headers, request body, expected response.\n   - Prioritize contracts for the most critical and frequently changing integrations.\n2. Write consumer-side contract tests (Pact consumer tests):\n   - Define the expected interaction: method, path, query parameters, headers, request body.\n   - Specify the expected response: status code, headers, and response body structure.\n   - Use matchers for flexible assertions (`like()`, `eachLike()`, `term()`) instead of exact values.\n   - Generate a Pact file (JSON contract) from the consumer test.\n3. Publish consumer contracts to the Pact Broker:\n   - Run `pact-broker publish` with the consumer version and branch\u002Ftag.\n   - Enable webhooks to trigger provider verification when new contracts are published.\n   - Configure can-i-deploy checks in CI to gate deployments.\n4. Write provider-side verification tests:\n   - Configure the Pact verifier to fetch contracts from the Pact Broker.\n   - Set up provider states (test data scenarios matching consumer expectations).\n   - Run verification against the actual provider implementation.\n   - Publish verification results back to the Pact Broker.\n5. Handle contract evolution:\n   - Adding new fields: Safe -- consumers using matchers will not break.\n   - Removing fields: Breaking -- coordinate with all consumers before removal.\n   - Changing field types: Breaking -- requires consumer updates first.\n   - Use `can-i-deploy` to check compatibility before releasing either side.\n6. For schema-based validation (non-Pact):\n   - Compare OpenAPI spec versions using `openapi-diff` to detect breaking changes.\n   - Flag removed endpoints, changed parameter types, and narrowed response schemas.\n   - Run schema validation tests against the actual API responses.\n7. Integrate contract tests into the CI\u002FCD pipeline for both consumers and providers.\n\n## Output\n\n- Consumer Pact test files defining expected API interactions\n- Generated Pact contract files (JSON) in `pacts\u002F` directory\n- Provider verification test configuration\n- Pact Broker deployment with published contracts and verification status\n- CI pipeline integration with `can-i-deploy` deployment gates\n- Contract evolution report flagging breaking vs. non-breaking changes\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|---------|\n| Provider verification fails | Provider response does not match consumer expectations | Check if the contract is outdated; update consumer tests if the change is intentional; fix provider if regression |\n| `can-i-deploy` blocks release | Consumer has unverified or failed contracts | Run provider verification; check if the right version tags are published; verify Pact Broker webhook fired |\n| Pact Broker connection error | Broker URL or credentials misconfigured | Verify `PACT_BROKER_BASE_URL` and `PACT_BROKER_TOKEN` environment variables; check network connectivity |\n| Provider state not found | Consumer test references a state the provider does not implement | Add the missing provider state setup function; align state names between consumer and provider |\n| Too many contracts to maintain | Every consumer-provider pair has extensive contracts | Focus on critical interactions; use matchers instead of exact values; consolidate similar interactions |\n\n## Examples\n\n**Pact consumer test (JavaScript):**\n```typescript\nimport { PactV4 } from '@pact-foundation\u002Fpact';\n\nconst provider = new PactV4({ consumer: 'Frontend', provider: 'UserAPI' });\n\ndescribe('User API Contract', () => {\n  it('fetches a user by ID', async () => {\n    await provider\n      .addInteraction()\n      .given('user with ID 1 exists')\n      .uponReceiving('a request for user 1')\n      .withRequest('GET', '\u002Fapi\u002Fusers\u002F1', (builder) => {\n        builder.headers({ Accept: 'application\u002Fjson' });\n      })\n      .willRespondWith(200, (builder) => {  # HTTP 200 OK\n        builder\n          .headers({ 'Content-Type': 'application\u002Fjson' })\n          .jsonBody({\n            id: like('1'),\n            name: like('Alice'),\n            email: like('alice@example.com'),\n          });\n      })\n      .executeTest(async (mockServer) => {\n        const response = await fetch(`${mockServer.url}\u002Fapi\u002Fusers\u002F1`);\n        const user = await response.json();\n        expect(user.name).toBeDefined();\n      });\n  });\n});\n```\n\n**Provider verification test:**\n```typescript\nimport { Verifier } from '@pact-foundation\u002Fpact';\n\ndescribe('User API Provider Verification', () => {\n  it('validates consumer contracts', async () => {\n    await new Verifier({\n      providerBaseUrl: 'http:\u002F\u002Flocalhost:3000',  # 3000: 3 seconds in ms\n      pactBrokerUrl: process.env.PACT_BROKER_BASE_URL,\n      pactBrokerToken: process.env.PACT_BROKER_TOKEN,\n      provider: 'UserAPI',\n      publishVerificationResult: true,\n      providerVersion: process.env.GIT_SHA,\n      stateHandlers: {\n        'user with ID 1 exists': async () => {\n          await db.users.create({ id: '1', name: 'Alice', email: 'alice@example.com' });\n        },\n      },\n    }).verifyProvider();\n  });\n});\n```\n\n**can-i-deploy CI check:**\n```bash\npact-broker can-i-deploy \\\n  --pacticipant Frontend \\\n  --version $(git rev-parse HEAD) \\\n  --to-environment production \\\n  --broker-base-url $PACT_BROKER_URL \\\n  --broker-token $PACT_BROKER_TOKEN\n```\n\n## Resources\n\n- Pact documentation: https:\u002F\u002Fdocs.pact.io\u002F\n- PactFlow (managed Pact Broker): https:\u002F\u002Fpactflow.io\u002F\n- Spring Cloud Contract: https:\u002F\u002Fspring.io\u002Fprojects\u002Fspring-cloud-contract\n- openapi-diff: https:\u002F\u002Fgithub.com\u002FOpenAPITools\u002Fopenapi-diff\n- Consumer-Driven Contracts: https:\u002F\u002Fmartinfowler.com\u002Farticles\u002FconsumerDrivenContracts.html","# Contract Test Validator\n\n## Overview\n\nValidate API contracts between services using consumer-driven contract testing to prevent breaking changes in microservice architectures. Supports Pact (the industry standard for CDC testing), Spring Cloud Contract (JVM), and OpenAPI-diff for specification comparison.\n\n## Prerequisites\n\n- Contract testing framework installed (Pact JS\u002FPython\u002FJVM, or Spring Cloud Contract)\n- Pact Broker running (or PactFlow SaaS) for contract storage and verification\n- Consumer and provider services with clearly defined API boundaries\n- Existing integration points documented (which consumers call which provider endpoints)\n- CI pipeline configured for both consumer and provider repositories\n\n## Instructions\n\n1. Identify consumer-provider relationships in the system:\n   - Map which services call which APIs (e.g., Frontend calls User API, Order API calls Payment API).\n   - Document each interaction: HTTP method, path, headers, request body, expected response.\n   - Prioritize contracts for the most critical and frequently changing integrations.\n2. Write consumer-side contract tests (Pact consumer tests):\n   - Define the expected interaction: method, path, query parameters, headers, request body.\n   - Specify the expected response: status code, headers, and response body structure.\n   - Use matchers for flexible assertions (`like()`, `eachLike()`, `term()`) instead of exact values.\n   - Generate a Pact file (JSON contract) from the consumer test.\n3. Publish consumer contracts to the Pact Broker:\n   - Run `pact-broker publish` with the consumer version and branch\u002Ftag.\n   - Enable webhooks to trigger provider verification when new contracts are published.\n   - Configure can-i-deploy checks in CI to gate deployments.\n4. Write provider-side verification tests:\n   - Configure the Pact verifier to fetch contracts from the Pact Broker.\n   - Set up provider states (test data scenarios matching consumer expectations).\n   - Run verification against the actual provider implementation.\n   - Publish verification results back to the Pact Broker.\n5. Handle contract evolution:\n   - Adding new fields: Safe -- consumers using matchers will not break.\n   - Removing fields: Breaking -- coordinate with all consumers before removal.\n   - Changing field types: Breaking -- requires consumer updates first.\n   - Use `can-i-deploy` to check compatibility before releasing either side.\n6. For schema-based validation (non-Pact):\n   - Compare OpenAPI spec versions using `openapi-diff` to detect breaking changes.\n   - Flag removed endpoints, changed parameter types, and narrowed response schemas.\n   - Run schema validation tests against the actual API responses.\n7. Integrate contract tests into the CI\u002FCD pipeline for both consumers and providers.\n\n## Output\n\n- Consumer Pact test files defining expected API interactions\n- Generated Pact contract files (JSON) in `pacts\u002F` directory\n- Provider verification test configuration\n- Pact Broker deployment with published contracts and verification status\n- CI pipeline integration with `can-i-deploy` deployment gates\n- Contract evolution report flagging breaking vs. non-breaking changes\n\n## Error Handling\n\n| Error | Cause | Solution |\n|-------|-------|---------|\n| Provider verification fails | Provider response does not match consumer expectations | Check if the contract is outdated; update consumer tests if the change is intentional; fix provider if regression |\n| `can-i-deploy` blocks release | Consumer has unverified or failed contracts | Run provider verification; check if the right version tags are published; verify Pact Broker webhook fired |\n| Pact Broker connection error | Broker URL or credentials misconfigured | Verify `PACT_BROKER_BASE_URL` and `PACT_BROKER_TOKEN` environment variables; check network connectivity |\n| Provider state not found | Consumer test references a state the provider does not implement | Add the missing provider state setup function; align state names between consumer and provider |\n| Too many contracts to maintain | Every consumer-provider pair has extensive contracts | Focus on critical interactions; use matchers instead of exact values; consolidate similar interactions |\n\n## Examples\n\n**Pact consumer test (JavaScript):**\n```typescript\nimport { PactV4 } from '@pact-foundation\u002Fpact';\n\nconst provider = new PactV4({ consumer: 'Frontend', provider: 'UserAPI' });\n\ndescribe('User API Contract', () => {\n  it('fetches a user by ID', async () => {\n    await provider\n      .addInteraction()\n      .given('user with ID 1 exists')\n      .uponReceiving('a request for user 1')\n      .withRequest('GET', '\u002Fapi\u002Fusers\u002F1', (builder) => {\n        builder.headers({ Accept: 'application\u002Fjson' });\n      })\n      .willRespondWith(200, (builder) => {  # HTTP 200 OK\n        builder\n          .headers({ 'Content-Type': 'application\u002Fjson' })\n          .jsonBody({\n            id: like('1'),\n            name: like('Alice'),\n            email: like('alice@example.com'),\n          });\n      })\n      .executeTest(async (mockServer) => {\n        const response = await fetch(`${mockServer.url}\u002Fapi\u002Fusers\u002F1`);\n        const user = await response.json();\n        expect(user.name).toBeDefined();\n      });\n  });\n});\n```\n\n**Provider verification test:**\n```typescript\nimport { Verifier } from '@pact-foundation\u002Fpact';\n\ndescribe('User API Provider Verification', () => {\n  it('validates consumer contracts', async () => {\n    await new Verifier({\n      providerBaseUrl: 'http:\u002F\u002Flocalhost:3000',  # 3000: 3 seconds in ms\n      pactBrokerUrl: process.env.PACT_BROKER_BASE_URL,\n      pactBrokerToken: process.env.PACT_BROKER_TOKEN,\n      provider: 'UserAPI',\n      publishVerificationResult: true,\n      providerVersion: process.env.GIT_SHA,\n      stateHandlers: {\n        'user with ID 1 exists': async () => {\n          await db.users.create({ id: '1', name: 'Alice', email: 'alice@example.com' });\n        },\n      },\n    }).verifyProvider();\n  });\n});\n```\n\n**can-i-deploy CI check:**\n```bash\npact-broker can-i-deploy \\\n  --pacticipant Frontend \\\n  --version $(git rev-parse HEAD) \\\n  --to-environment production \\\n  --broker-base-url $PACT_BROKER_URL \\\n  --broker-token $PACT_BROKER_TOKEN\n```\n\n## Resources\n\n- Pact documentation: https:\u002F\u002Fdocs.pact.io\u002F\n- PactFlow (managed Pact Broker): https:\u002F\u002Fpactflow.io\u002F\n- Spring Cloud Contract: https:\u002F\u002Fspring.io\u002Fprojects\u002Fspring-cloud-contract\n- openapi-diff: https:\u002F\u002Fgithub.com\u002FOpenAPITools\u002Fopenapi-diff\n- Consumer-Driven Contracts: https:\u002F\u002Fmartinfowler.com\u002Farticles\u002FconsumerDrivenContracts.html",{"name":5,"tags":24,"author":28,"license":15,"version":29,"description":30,"allowed-tools":31,"compatible-with":32},[25,26,27],"testing","api","validating-api","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Validate API contracts using consumer-driven contract testing (Pact, Spring Cloud Contract).\nUse when performing specialized testing.\nTrigger with phrases like \"validate API contract\", \"run contract tests\", or \"check consumer contracts\".\n","Read, Write, Edit, Grep, Glob, Bash(test:contract-*)","claude-code, codex, openclaw","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Ftesting--contract-test-validator--validating-api-contracts",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill validating-api-contracts",{"tool":48,"command":49},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill validating-api-contracts",{"tool":51,"command":52},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill validating-api-contracts","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftesting--contract-test-validator--validating-api-contracts\u002FSKILL.md",true,[],[57,64,71,78,85,93],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"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},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\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":89,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\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},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]