joogy06/agent-foundry/claude-code-cli
Claude Code and agent skill by joogy06/agent-foundry
- community
Checking that the SKILL.md file is still in the repository.
Use when working with the Claude Code CLI (`claude`) — headless and interactive modes, flags, agents, plugins, MCP servers, hooks, settings, sessions, and the local custom ecosystem (forge, bob, alf, pa, wiki, agent-teams). Covers Claude Code 2.1.x. Refresh of the upstream `superpowers:working-with-claude-code` reference plus local-environment additions.
Install
npx vskill@latest install joogy06/agent-foundry/claude-code-cliSKILL.md
Claude Code CLI
Task-indexed reference for Claude Code 2.1.170 (and the 2.1.x line in general). Forked from the superpowers working-with-claude-code skill at v0.3.1, refreshed against local ground truth, and extended with custom files that document this machine's forge/bob/alf/pa/wiki ecosystem.
This SKILL.md is the navigation index. Detailed documentation lives in references/. Read only what the current task needs.
When to use
- Building anything that calls
claudefrom the shell or a script (headless-pmode) - Authoring or debugging Claude Code agents, skills, plugins, hooks, MCP servers
- Editing
~/.claude/settings.json,~/.claude/CLAUDE.md,~/.claude/AGENTS.md - Cross-referencing Claude Code features against Antigravity CLI (agy), Codex CLI, or GitHub Copilot CLI (see
antigravity-cli,gh-copilot-cli,cross-tool-portabilitysub-skill) - Operating inside the local custom ecosystem (forge, bob, alf, pa, wiki, agent-teams)
Versions covered
| Component | Version (verified locally 2026-06-10) | |
|---|---|---|
| Claude Code CLI | 2.1.170 | |
| Plugin: superpowers (source for forked references) | 0.3.1 | |
| Codex plugin | 1.0.2 |
When the local claude version drifts from this skill, run scripts/verify-claude-install.sh to flag stale sections.
Quick task index
Headless / scripted invocation
| Task | Read | |
|---|---|---|
| Run a one-shot prompt and exit | references/headless.md, references/cli-reference.md | |
| Pipe data in / out as JSON | references/headless.md (--input-format, --output-format, --json-schema) | |
| CI-safe minimal mode (no hooks, no auto-memory, strict API key) | references/headless.md (--bare section) | |
| Cap session $ spend | references/headless.md (--max-budget-usd) | |
| Pin a pre-defined agent for a single invocation | references/sub-agents.md (--agent, --agents) | |
| Pick the model / fallback model | references/model-config.md |
Interactive use
| Task | Read | |
|---|---|---|
| Slash commands, key bindings, modes | references/interactive-mode.md, references/slash-commands.md | |
| Output styles, statusline | references/output-styles.md, references/statusline.md | |
| Resume / fork / continue sessions | references/cli-reference.md (--resume, --continue, --fork-session, --session-id) | |
| Built-in git worktree | references/cli-reference.md (-w/--worktree, --tmux) |
Agents and skills
| Task | Read | |
|---|---|---|
Author an agent (~/.claude/agents/<name>.md) | references/sub-agents.md | |
Author a skill (~/.claude/skills/<name>/SKILL.md) | references/skills.md + the cross-tool-portability sub-skill of research-for-skills | |
| Cross-tool skill that must work in Antigravity (agy)/Codex/Copilot | research-for-skills/cross-tool-portability/cross-tool-portability.md | |
| Skill discovery / progressive disclosure | references/skills.md |
Orchestration, teams, tasks, scheduling
| Task | Read | |
|---|---|---|
Workflow tool — script-driven multi-agent orchestration (agent(), pipeline(), parallel(), budget, journal resume) | references/orchestration.md | |
Saved/named workflows (.claude/workflows/, ~/.claude/workflows/) | references/orchestration.md | |
| Effort levels (low→max) and ultracode (v2.1.160+) | references/orchestration.md | |
Session cron (CronCreate/CronList/CronDelete), /loop pacing (ScheduleWakeup), RemoteTrigger, /schedule cloud routines, /goal | references/orchestration.md | |
| Why a subagent cannot fan out (Agent/Workflow = main loop ONLY) and the invert-control pattern | references/orchestration.md (KEY ASYMMETRY section) | |
| Native agent teams (TeamCreate/SendMessage — experimental, env-gated) | references/native-teams-tasks.md | |
| Native task lifecycle (TaskCreate/TaskList/TaskGet/TaskUpdate/TaskStop/TaskOutput, Monitor) | references/native-teams-tasks.md | |
| Teammate hooks (TeammateIdle/TaskCreated/TaskCompleted) | references/native-teams-tasks.md | |
Background agents (run_in_background, claude agents Agent View, claude --bg --exec, worktrees + EnterWorktree) | references/native-teams-tasks.md | |
Native teams vs the portable file-based agent-teams skill | references/native-teams-tasks.md |
Plugins and marketplaces
| Task | Read | |
|---|---|---|
| Install/uninstall/enable/disable a plugin | references/plugins.md, references/cli-reference.md (plugin subcommands) | |
| Add a marketplace | references/plugin-marketplaces.md | |
| Plugin component reference (commands, agents, skills, hooks, MCP, statuslines) | references/plugins-reference.md | |
| Validate a plugin in development | claude plugin validate <path> (see references/plugins.md) |
MCP servers
| Task | Read | |
|---|---|---|
| Add a stdio/http/sse MCP server | references/mcp.md (claude mcp add, add-json) | |
| Use a project-local MCP config | references/mcp.md (--mcp-config, --strict-mcp-config) | |
| Reset per-project MCP choices | claude mcp reset-project-choices | |
| Build your own MCP server | use the mcp-server-creator skill |
Hooks and settings
| Task | Read | |
|---|---|---|
| Settings.json schema | references/settings.md | |
| Hooks lifecycle, events, matchers | references/hooks.md, references/hooks-guide.md | |
| Override settings at the CLI | --settings, --setting-sources (see references/cli-reference.md) | |
| Stream hook events to JSON | --include-hook-events --output-format=stream-json |
Memory, context, files
| Task | Read | |
|---|---|---|
CLAUDE.md hierarchy and imports | references/memory.md | |
| Add context dirs / extra files | --add-dir, --file (see references/cli-reference.md) | |
| Custom system prompt | --system-prompt, --append-system-prompt | |
| Checkpoints (auto-save / restore) | references/checkpointing.md |
Authentication and providers
| Task | Read | |
|---|---|---|
| API key / OAuth / token | references/iam.md, claude auth subcommands | |
| Long-lived setup token | claude setup-token | |
| Amazon Bedrock | references/amazon-bedrock.md | |
| Google Vertex AI | references/google-vertex-ai.md (CLAUDE_CODE_USE_VERTEX=1) | |
| Custom LLM gateway | references/llm-gateway.md |
Cost, analytics, monitoring
| Task | Read | |
|---|---|---|
| What sessions cost and how it's measured | references/costs.md | |
| Where data goes | references/data-usage.md | |
| Analytics export | references/analytics.md | |
| Monitoring usage in CI | references/monitoring-usage.md |
Editor / IDE integrations
| Task | Read | |
|---|---|---|
| VS Code integration | references/vs-code.md | |
| JetBrains plugin | references/jetbrains.md | |
| Dev containers | references/devcontainer.md | |
| GitHub Actions | references/github-actions.md | |
| GitLab CI/CD | references/gitlab-ci-cd.md | |
| Third-party integrations | references/third-party-integrations.md |
Compliance, security, networking
| Task | Read | |
|---|---|---|
Permission modes (acceptEdits, auto, bypassPermissions, default, dontAsk, plan) | references/security.md, references/cli-reference.md | |
| IAM / token scopes / roles | references/iam.md | |
| Egress allow-list / firewall | references/network-config.md | |
| Terminal config | references/terminal-config.md | |
| Legal / compliance | references/legal-and-compliance.md | |
| Migration from older versions | references/migration-guide.md | |
| Troubleshooting | references/troubleshooting.md |
Custom local ecosystem (this machine only)
These are not documented in upstream superpowers — they are specific to this user's setup.
| Task | Read | |
|---|---|---|
| Forge → bob → agent-teams → team-manager → specialists workflow | references/custom-ecosystem.md | |
| Hard-rules checklist before spawning agents | references/custom-ecosystem.md (Hard Rules section) | |
| MEMORY index, project context (PROJECT.md, history.md, tasks.md) | references/custom-ecosystem.md (Memory + Project Docs sections) | |
| 119-skill library, _meta inventory | references/custom-ecosystem.md (Skills section) | |
| Cross-CLI orchestration: Claude + Codex + Antigravity (agy) in parallel | references/cross-tool-integration.md | |
| What changed since the Jan 2026 superpowers snapshot | references/upgrades-since-jan-2026.md |
Permission modes (verified from claude --help)
Six modes, exactly:
| Mode | Behaviour | |
|---|---|---|
default | Ask before each tool call | |
acceptEdits | Auto-allow file edits, ask for everything else | |
auto | Run the auto-mode classifier (see claude auto-mode) | |
dontAsk | Allow tool calls without prompting (use with --allowedTools) | |
bypassPermissions | Skip permission checks entirely (sandbox/trusted dirs only) | |
plan | Read-only planning mode |
--allow-dangerously-skip-permissions is a separate opt-in flag and should only be used in sandboxes with no internet access.
Top-level subcommands (verified)
Verified against claude --help on 2.1.170 (2026-06-10). agents is the background-agent Agent View (see references/native-teams-tasks.md), not a list of configured subagents. Use claude agents --help for the current sub-options on this machine.
Headless (-p) cheat sheet
See references/headless.md for the full surface.
Anti-patterns
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 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-cli/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. 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/joogy06/agent-foundry/claude-code-cli)