google-agents-cli-scaffold
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
headless-mode
Guide for using Claude Code programmatically via CLI flags and SDKs. Use for automation, CI/CD pipelines, scripting, and building tools on top of Claude Code. Covers --print mode, output formats, session management, and SDK integration.
Full skill instructions
Run Claude Code programmatically for automation, CI/CD, and scripting.
| Mode | Command | Use Case |
|---|---|---|
| CLI (simple) | claude -p "prompt" | One-shot tasks, scripts |
| CLI (structured) | claude -p "prompt" --output-format json | Parsing responses |
| TypeScript SDK | @anthropic-ai/claude-code | Full programmatic control |
| Python SDK | claude-code-sdk | Python automation |
The -p (or --print) flag runs Claude Code non-interactively. All CLI options work with -p, enabling automated workflows without human interaction.
claude -p "Explain what this project does"
| Flag | Purpose | Example |
|---|---|---|
-p, --print | Run non-interactively | claude -p "query" |
--output-format | Response format | json, stream-json, text |
--allowedTools | Auto-approve tools | "Bash,Read,Edit" |
--max-turns | Limit agent turns | --max-turns 5 |
--continue | Continue last session | claude -p "..." --continue |
--resume | Resume specific session | --resume $SESSION_ID |
Plain text output for simple tasks:
claude -p "Summarize auth.py"
Get metadata with response:
claude -p "Analyze this code" --output-format json
Returns:
{
"result": "Analysis text...",
"session_id": "abc123",
"usage": { "input_tokens": 100, "output_tokens": 50 }
}
Newline-delimited JSON for streaming:
claude -p "Generate report" --output-format stream-json
Allow specific tools without prompting:
claude -p "Fix the failing tests" --allowedTools "Bash,Read,Edit"
Restrict to specific bash patterns:
claude -p "Create a commit for staged changes" \
--allowedTools "Bash(git diff:*),Bash(git log:*),Bash(git commit:*)"
Use only in trusted, sandboxed environments:
claude -p "Deploy to staging" --dangerously-skip-permissions
claude -p "Review this codebase"
claude -p "Focus on the database layer" --continue
claude -p "Summarize findings" --continue
# Capture session ID
session_id=$(claude -p "Start review" --output-format json | jq -r '.session_id')
# Later: resume that session
claude -p "Continue the review" --resume "$session_id"
Create a new branch from an existing session:
claude -p "Try alternative approach" --resume $SESSION_ID --fork-session
Keep default behavior, add context:
claude -p "Review this PR" \
--append-system-prompt "Focus on security vulnerabilities"
Full control over Claude's behavior:
claude -p "Analyze code" \
--system-prompt "You are a security auditor. Only report vulnerabilities."
claude -p "Review code" --system-prompt-file ./prompts/security-review.txt
Force output to match a schema:
claude -p "Extract function names from utils.py" \
--output-format json \
--json-schema '{"type":"object","properties":{"functions":{"type":"array","items":{"type":"string"}}},"required":["functions"]}'
Response includes structured_output field:
{
"result": "...",
"structured_output": {
"functions": ["parseDate", "formatCurrency", "validateEmail"]
}
}
gh pr diff "$PR_NUMBER" | claude -p \
"Review this PR for bugs and improvements" \
--output-format json
claude -p "Run tests and fix failures" \
--allowedTools "Bash,Read,Edit" \
--max-turns 10
claude -p "Generate API documentation for src/api/" \
--allowedTools "Read,Glob,Grep,Write"
for file in src/*.ts; do
claude -p "Add JSDoc comments to $file" \
--allowedTools "Read,Edit"
done
| Feature | Interactive | Headless (-p) |
|---|---|---|
| Slash commands | Available | Not available |
| Permission prompts | Interactive | Auto-approve or skip |
| Output | Formatted | Raw text/JSON |
| Session | Persistent | One-shot (unless --continue) |
| File | Contents |
|---|---|
| CLI-FLAGS.md | Complete CLI flag reference |
| SDK.md | TypeScript and Python SDK usage |
| EXAMPLES.md | Practical automation examples |
Check if Claude is waiting for permission:
claude -p "query" --verbose
Add --allowedTools or --dangerously-skip-permissions.
Use jq to extract fields:
claude -p "query" --output-format json | jq -r '.result'
Sessions are directory-specific. Run from the same directory or use --session-id with a UUID.
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.
Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.
Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.
Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.
Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.
Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.
Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.
Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".
Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.
Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".
Opus.ai: Revolutionize Your Web Experience
Build a no-code AI app in minutes.
An IDE for code migration from legacy to modern frameworks through coding agents.
Automate CGI animation in live-action scenes
Branded artistic QR-code concepts
Launch a website in seconds with AI.
Streamline Your Coding Experience with AI Code Helper
Convert any screenshot or design to clean code.