lua2147/claude-toolkit-catalog/claude-code-ci
Claude Code and agent skill by lua2147/claude-toolkit-catalog
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Running Claude Code in CI pipelines — non-interactive mode, stream-json output, GitHub Actions integration, and PR review automation. Maps to CCA Domain 3.
Install
npx vskill@latest install lua2147/claude-toolkit-catalog/claude-code-ciSKILL.md
The same SKILL.md was published earlier as niels-kwg/toolkit/claude-code-ci.
Claude Code in CI
Overview
How to run Claude Code as a non-interactive tool in CI/CD pipelines. Covers the claude -p interface, output parsing, GitHub Actions integration, and common automation patterns like PR review and test generation.
Non-Interactive Mode
Basic Invocation
Output Formats
| Format | Use Case | |
|---|---|---|
text | Human-readable output (default) | |
json | Single JSON object on completion | |
stream-json | Newline-delimited JSON events as they arrive |
stream-json Event Types
Parse the final result event for the actionable output.
GitHub Actions Integration
PR Review Workflow
Test Generation on PR
Key Flags for CI
| Flag | Purpose | |
|---|---|---|
-p "prompt" | Non-interactive single prompt mode | |
--output-format | Control output format (text, json, stream-json) | |
--model | Override default model | |
--max-turns | Limit agentic loop iterations (prevents runaway) | |
--allowedTools | Restrict which tools Claude can use | |
--disallowedTools | Block specific tools (e.g., block Bash in review-only jobs) |
Safety in CI
Parsing CI Output
When to Use
- Automated PR review on every push
- Pre-merge test generation for changed files
- Migration script validation before deploy
- Documentation freshness checks
- Security scanning as a CI gate
Common Mistakes
- Missing `--output-format`: Default text output is hard to parse in scripts — use
jsonorstream-json - No `--max-turns` in CI: Without a turn limit, an agentic loop can run indefinitely and burn credits
- Exposing API keys: Always use GitHub Secrets, never hardcode keys in workflow files
- Not restricting tools: In review-only jobs, block Write/Edit/Bash to prevent accidental modifications
- Ignoring exit codes:
claude -preturns non-zero on failure — check$?or useset -e - Large diffs as input: Diffs over 100KB may exceed context — filter to relevant files first
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/claude-code-ci/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lua2147/claude-toolkit-catalog/claude-code-ci)