anth-ci-integration
Skill by jeremylongshore
Sets up CI/CD pipelines that validate Claude API integrations with mock-based unit tests and gated live prompt regression tests. Built for developers who want automated checks on Claude-powered features.
Install anth-ci-integration
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/anth-ci-integration ~/.claude/skills/anth-ci-integrationRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/anth-ci-integration ~/.gemini/antigravity-cli/skills/anth-ci-integrationAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install anth-ci-integration in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The anth-ci-integration skill configures CI/CD pipelines for Anthropic Claude API integrations. It separates testing into two layers. Mock-based unit tests in tests/unit/ patch anthropic.Anthropic, so they run on every push and pull request without an API key. Prompt regression tests in tests/prompt_regression/ call the live API and skip cleanly when the key is absent. The skill includes a GitHub Actions workflow, example test code and a cost guard in conftest.py.
The live job is gated to the main branch, or an equivalent protected release branch, and receives the ANTHROPIC_API_KEY secret only in that job. The skill also recommends explicit timeouts, concurrency limits and a cost ceiling so that a failure cannot silently use up the test budget. It is intended for developers who want automated testing, prompt regression tests or CI validation for Claude-powered features. The setup requires Python 3.12, pytest and the Anthropic SDK.
Written from the project's SKILL.md and checked against it.
What it can do
- Mock-based unit testsMocks anthropic.Anthropic in tests/unit/ so request and tool-routing checks need no API key.
- Prompt regression testsRuns a small set of live API prompt checks in tests/prompt_regression/ that skip when no key is set.
- GitHub Actions workflowRuns unit tests on push and pull request and the live job on main.
- CI cost guardUses a conftest.py hook to stop the run with a message when estimated spend passes a ceiling.
- Troubleshooting guideLists fixes for flaky prompt tests, 429 errors in CI and a missing GitHub secret.
What you need
- Anthropic API key stored as the ANTHROPIC_API_KEY repository secret
- Python 3.12
- pytest
- Anthropic Python SDK
- GitHub repository with GitHub Actions
Try asking
- Set up a GitHub Actions workflow that runs Claude unit tests on every push.
- Add a prompt regression test that checks my JSON extraction prompt output.
- Add a cost guard that fails CI when Claude test spend passes a set limit.
Good to know
- Live prompt regression tests call the Anthropic API and incur cost.
- The cost guard example uses hard-coded Haiku rates.
- Live tests are meant to run only on main or an equivalent protected branch.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/anth-ci-integration/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEditBash(npm:*)Grep
Alternatives to anth-ci-integration
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
anth-ci-integration: common questions
Do unit tests need an Anthropic API key?
No. The source says the unit tests in tests/unit/ need no API key, because they mock anthropic.Anthropic.
Which branch runs the live prompt regression tests?
The prompt-regression job is gated to main, or an equivalent protected release branch, and gets the secret only in that job.
What causes 429 errors in CI?
The source says parallel jobs sharing one key can cause 429 errors, and it recommends using a separate CI key.
How do I install anth-ci-integration?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is anth-ci-integration free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is anth-ci-integration safe to use?
It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.
What are alternatives to anth-ci-integration?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
