# Claude Code Features and Practical Usage
🚀 Just mention "@/claude" in a PR or issue and watch fixes, features, and reviews happen automatically. Claude Code becomes an AI teammate that works inside your CI.
📌 Title and Feature URL
Title: GitHub Actions
URL:
📝 Overview
Claude Code GitHub Actions integrates Claude Code into your GitHub workflow. Mention "@/claude" on any PR or issue and Claude analyzes your code, creates pull requests, implements features, or fixes bugs. Built on the Claude Agent SDK, it is ideal for automating routine engineering tasks.
🔧 How It Works
- It auto-detects whether to run in interactive mode (responding to @/claude mentions) or automation mode (running immediately with a prompt) based on your config.
- It respects the repository's CLAUDE.md, following your project standards and existing code patterns.
- Code runs on GitHub-hosted runners and uses Sonnet by default (Opus 4.8 can be selected).
- Beyond the direct Claude API, it supports Amazon Bedrock and Google Vertex AI.
🛠 Practical Usage
- The easiest setup is running "/install-github-app" inside claude in your terminal; it guides you through the GitHub app and secrets (you need repo admin rights).
- For manual setup: install the Claude GitHub app ( add ANTHROPIC_API_KEY as a repository secret, and copy examples/claude.yml into .github/workflows/.
- Use the action "anthropics/claude-code-action
@v1". Pass instructions via "prompt" and CLI arguments via "claude_args".
- claude_args examples: --max-turns 5 / --model claude-sonnet-4-6 / --mcp-config /path/to/config.json
- Comment examples: "@/claude implement this feature based on the issue description", "@/claude fix the TypeError in the user dashboard component".
🎯 Use Cases
- Mention on an issue to auto-create a PR that turns requirements into working code.
- Request a standard review on a PR: "@/claude review this for security issues".
- Use a schedule (cron) trigger to auto-generate a daily summary of yesterday's commits and open issues.
- Wire in the code-review plugin to run its skill automatically on every PR update.
⚠️ Caveats
- Never commit API keys directly to the repo; always reference GitHub Secrets (secrets.ANTHROPIC_API_KEY).
- Costs accrue both as GitHub Actions minutes and API tokens. Use --max-turns and timeouts to prevent runaway jobs.
- If Claude doesn't respond, confirm the comment uses "@/claude" (not "/claude") and that the app and secrets are configured.
- v1.0 has breaking changes from beta: remove mode, change direct_prompt to prompt, and move CLI options into claude_args.
#
ClaudeCode# #
CICD#