Agent skill · software engineering · jeremylongshore

clade-ci-integration

Test and validate Claude integrations in CI/CD pipelines \u2014\nUse\

Why this skill is useful

Provides specific GitHub Actions workflows and mocking strategies for testing Claude integrations that the AI wouldn't reliably generate on its own.

What it needs

Requires npm installed locally. Requires anthropic account access. About 2k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.

What this skill does

Anthropic CI Integration Overview Testing Claude integrations in CI requires handling API keys securely, mocking for unit tests, and making real calls only in integration tests. GitHub Actions Setup Mock Strategy for Unit Tests Integration Test (Real API) Cost Control in CI Strategy How ---------- ----- Use Haiku only Cheapest model, fast Limit maxtokens maxtokens: 50 for validation tests Skip on PRs from forks Don't expose API key to untrusted code Run integration tests only on main if: github.ref == 'refs/heads/main' Budget cap Set spending limits in Anthropic console Output GitHub Actions workflow running unit tests (mocked, no API key needed) Integration tests making real Claude API calls on main branch Mock client returning realistic response shapes for unit tests CI costs controlled via Haiku model and tight maxtokens Error Handling Error Cause Solution ------- ------- ---------- API Error Check error type and status code See clade-common-errors Examples See GitHub Actions YAML, Mock Strategy with Vitest, Integration Test with real API, and Cost Control table above. Resources GitHub Actions Secrets Anthropic SDK Next Steps See clade-deploy-integration for deploying to production. Prerequisites GitHub repository with Actions enabled ANTHROPICAPIKEY stored as GitHub Actions secret Test framework installed (Vitest, Jest, or pytest) Instructions Step 1: Review the patterns below Each section contains production-ready code examples. Copy and adapt them to your use case. Step 2: Apply to your codebase Integrate the patterns that match your requirements. Test each change individually. Step 3: Verify Run your test suite to confirm the integration works correctly.

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills jeremylongshore/clade-ci-integration

View the source on GitHub

Browse the @skills marketplace