Claude Code

Using OpenSkill with Claude Code

Setup

Claude Code is Anthropic's CLI for Claude. OpenSkill detects Claude Code automatically when the ~/.claude/ directory exists.

terminal
# Install a skill for Claude Code
$ osk install code-review -t claude

How It Works

When you install a skill for Claude Code, OpenSkill writes the skill's content to a SKILL.md file in Claude's skills directory. Claude Code reads these skill files and includes them as context in your conversations.

Skill Location

ScopePath
Global~/.claude/skills/<skill-name>/SKILL.md
Project.claude/skills/<skill-name>/SKILL.md
Global skills apply to all Claude Code sessions. Project-level skills only apply when working in the project directory.

Configuration

Set Claude Code as your default agent:

terminal
$ osk config set defaultAgent claude

You can also use the -t claude flag with any command to target Claude Code specifically.