From reference
Use Claude Code as a Unix utility. Headless mode, piping, CI/CD integration, output formats. Use when automating Claude into scripts or pipelines.
npx claudepluginhub artmin96/forge-studio --plugin referenceThis skill uses the workspace's default tool permissions.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Reviews prose for communication issues impeding comprehension, outputs minimal fixes in a three-column table per Microsoft Writing Style Guide. Useful for 'review prose' or 'improve prose' requests.
Claude Code follows Unix philosophy — it's composable with other tools.
Run without interactive session:
claude -p "explain this error" < error.log
claude -p "write a migration for adding email_verified_at to users" > migration.php
claude -p "review this diff for security issues" < <(git diff)
# Analyze build errors
cat build-error.txt | claude -p 'explain root cause and fix' > analysis.txt
# Generate commit message from diff
git diff --staged | claude -p 'write a concise commit message'
# Review a file
cat src/auth.php | claude -p 'review this for security vulnerabilities'
claude -p "prompt" --output-format text # Plain text (default)
claude -p "prompt" --output-format json # Structured JSON
claude -p "prompt" --output-format stream-json # Streaming JSON (for real-time)
# In GitHub Actions or CI pipeline
claude --permission-mode auto -p "fix all lint errors and commit"
# With tool restrictions
claude -p "review code" --allowedTools "Read,Grep,Glob"
{
"scripts": {
"ai:review": "git diff --staged | claude -p 'review this diff'",
"ai:commit": "git diff --staged | claude -p 'write commit message'",
"ai:test": "claude -p 'generate tests for recently changed files'"
}
}
claude -p "prompt" --verbose # Show tool calls and reasoning