Claude Code Skill
claudex ships a Claude Code skill that lets Claude — and agents like openclaw — run claudex commands on your behalf without extra setup.
What is a skill?
A Claude Code skill is a SKILL.md file that teaches Claude how to use a tool. When the skill is loaded, Claude knows every subcommand, flag, and JSON output shape for claudex. It can answer questions like "which project cost the most this week?" or "find sessions where I worked on the auth middleware" by running the right claudex command and interpreting the result.
Installing the skill
Personal skill (all your projects)
mkdir -p ~/.claude/skills/claudex
curl -sL https://raw.githubusercontent.com/utensils/claudex/main/.claude/skills/claudex/SKILL.md \
-o ~/.claude/skills/claudex/SKILL.mdThis makes the skill available in every Claude Code session on your machine.
Project-local skill
mkdir -p .claude/skills/claudex
curl -sL https://raw.githubusercontent.com/utensils/claudex/main/.claude/skills/claudex/SKILL.md \
-o .claude/skills/claudex/SKILL.mdOnly active when you're in that project's directory.
From this repo (if you cloned claudex)
The skill is already at .claude/skills/claudex/SKILL.md in the repo root. Copy it wherever you need it:
cp .claude/skills/claudex/SKILL.md ~/.claude/skills/claudex/SKILL.mdUsing the skill
Once installed, you can invoke it directly:
/claudex summary
/claudex search "schema migration"
/claudex cost --project myrepoOr just ask Claude naturally — it will invoke the skill automatically when your question is about session history, costs, or tool usage:
"How much have I spent on the utensils project this week?" "Find all sessions where I worked on the auth middleware." "What are my most-used tools across all projects?"
For agents (openclaw and others)
The skill is designed so autonomous agents can extract structured data reliably. Every subcommand that produces output supports --json, and the skill documents the exact JSON shape for each command. Agents should:
- Run
claudex <subcommand> --jsonto get machine-readable output. - Pipe to
jq(or parse in-process) for the specific field they need. - Never rely on the human-readable table output — column widths and formatting are terminal-dependent.
Example agent pattern — find the most expensive project:
claudex cost --json | jq 'max_by(.cost_usd) | {project, cost_usd}'Keeping the skill up to date
Pull the latest version any time claudex ships new subcommands or flag changes:
curl -sL https://raw.githubusercontent.com/utensils/claudex/main/.claude/skills/claudex/SKILL.md \
-o ~/.claude/skills/claudex/SKILL.mdThe skill file itself contains a self-update reminder at the bottom with this same command.
Skill source
The canonical skill lives at .claude/skills/claudex/SKILL.md in the repository.