claude-codelisted
Install: claude install-skill afkbot-io/afkbotio
# claude-code
Use this skill when AFKBOT should drive the external Anthropic Claude Code CLI through `bash.exec`.
## Default mode
- Prefer non-interactive mode for AFKBOT automation:
- `claude -p "<prompt>"`
- Use interactive `claude` only if the user explicitly wants a live coding session, browser login, or in-session commands like `/model`.
- Run from the repo root that Claude should inspect.
## What to pass
Build each `bash.exec` command from these inputs:
1. target workspace:
- use the correct `cwd`
2. prompt:
- `-p "<prompt>"`
3. model:
- `--model <alias|name>`
4. reasoning effort when needed:
- `--effort low|medium|high|max`
## Common commands
```bash
claude --version
claude doctor
claude --model sonnet -p "Review the staged diff for correctness"
claude --model opus --effort high -p "Design a refactor plan for this service"
```
## Installation
Claude Code currently documents these supported installation paths:
```bash
curl -fsSL https://claude.ai/install.sh | bash
brew install --cask claude-code
winget install Anthropic.ClaudeCode
```
- Anthropic documents native install as the recommended path.
- The docs also note that the old npm installation path is deprecated.
## Authentication
Claude Code supports:
- browser login via `claude` for Pro, Max, Teams, Enterprise, or Console accounts;
- `ANTHROPIC_API_KEY` for direct API access;
- `ANTHROPIC_AUTH_TOKEN` for bearer-token gateway/proxy flows;
- cloud-provider credentials for Bedrock, Vertex AI