skills/cli-agents/claude-code-install/SKILL.md
A three-part Claude Code setup skill with subskills for installation, skip-login configuration, and custom API-key launcher setup. Use when the user wants Claude Code installed or configured on the current host, with instructions adapted to the actual operating system and runtime environment.
npx skillsauth add igamenovoer/magic-context claude-code-installInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Invoke this skill explicitly by name ($claude-code-install) because it modifies the local host environment.
Detect the host OS first and choose commands accordingly.
On Windows, prefer the PowerShell helpers in scripts/*.ps1; if the user needs a double-clickable entrypoint, use the matching scripts/*.bat wrapper.
On Linux or macOS, prefer the POSIX shell helpers in scripts/*.sh.
Do not mix command styles across OS families.
If the OS is unclear from context, check it before acting.
Treat the scripts in scripts/ as optional accelerators and reference implementations, not the only path.
Before running a helper script, inspect the actual environment: available shell, available package managers, PATH layout, permission constraints, and existing Claude configuration.
If a helper script works in the current environment, use it.
If a helper script fails, do not stop at the script failure. Read the relevant subskill guide under references/, infer the required actions, and execute an environment-appropriate plan manually.
This skill has exactly three subskills.
installation
Install the Claude Code CLI in the current environment.
Primary guide: references/installation.md
Optional helpers: scripts/install-comp.sh, scripts/install-comp.ps1, scripts/install-comp.bat
skip-login-config
Configure the host so Claude Code skips first-run onboarding/login locally.
Primary guide: references/skip-login-config.md
Optional helpers: scripts/config-skip-login.sh, scripts/config-skip-login.ps1, scripts/config-skip-login.bat
add-custom-api-key
Create a custom launcher or shell/profile function that injects an Anthropic-compatible API key and optional base URL/model overrides.
Primary guide: references/add-custom-api-key.md
Optional helpers: scripts/config-custom-api-key.sh, scripts/config-custom-api-key.ps1, scripts/config-custom-api-key.bat
Known provider registry: references/known-providers.json
installation.skip-login-config.claude-kimi, a custom base URL, a known provider name such as yunwu-global, or a custom API key, use add-custom-api-key.installation, then skip-login-config, then add-custom-api-key.For each subskill:
references/ first.scripts/ only if it matches the environment and clearly reduces work.claude-yunwu launcher that reads the key from an environment variable and targets yunwu-global."references/installation.mdreferences/skip-login-config.mdreferences/add-custom-api-key.mdreferences/known-providers.jsonscripts/data-ai
Create readable Mermaid diagrams inside Markdown files. Use for flowcharts and sequence diagrams that must render cleanly in common Markdown renderers (e.g., GitHub) without horizontal scrolling. Covers fenced mermaid blocks, init/theme styling, label wrapping with <br/>, and sequenceDiagram layout rules (short IDs, wrapped labels, don’t break identifiers).
development
Manual invocation only; use only when the user explicitly requests `make-program-tutorial` by exact name, OR when the user asks to use a skill to create an SDK/API/library tutorial. Create a clear, reproducible, step-by-step tutorial for a specific API/SDK/library (or a set of functions/classes), with runnable examples, expected outputs, and basic troubleshooting.
testing
Use when the user wants to create a self-hosted, offline-installable Conda channel (mirror) containing a specific subset of packages using Pixi.
tools
Guides the agent to setup a new or existing Pixi environment for compiling C++ and CUDA code. It ensures the correct compilers, toolkits, and CMake configurations are in place for a robust user-space build.