bundle skill¶
The bundle skill command is project-aware: it reads Gemfile.lock to
determine which gems and versions are in use, generates skills for all of them,
and links the results into .claude/skills/ (Claude Code's skill directory) in
the project root. The generated SKILL.md files are a shared format that other
assistants read too — see Using with other assistants.
Global options¶
These flags work without a subcommand:
bundle skill --version # print installed version and exit
bundle skill -v # same
bundle skill help # print usage (subcommands, options, env)
Bundler intercepts -h and --help before the plugin sees them, so
bundle skill help (or bundle skill with no subcommand) is the way to see
the usage text.
Prerequisites¶
Run once after installing gem-skill:
Or add to the project Gemfile:
Subcommands¶
bundle skill install¶
Generate and link skills for all direct dependencies in Gemfile.lock.
Options:
| Flag | Description |
|---|---|
--force, -f |
Regenerate even if skills are already cached |
--verify |
Verify generated skills against each gem's source and fix mismatches (exit 2 if any fixes applied) |
--model MODEL, -m MODEL |
LLM model to use (overrides GEMSKILL_MODEL) |
--max-tokens TOKENS |
Max output tokens per skill (overrides GEMSKIL_MAX_TOKENS; default: 32767) |
--temperature TEMP |
Sampling temperature; ignored by reasoning models (overrides GEMSKILL_TEMPERATURE; default: 0.2) |
--version, -v |
Print the installed gem-skill version and exit |
Flags may come before or after the subcommand (bundle skill --model MODEL install works too), and --model=MODEL style is accepted. An unknown or abbreviated flag, or a value flag with nothing after it, is an error.
Example:
What it processes:
- All gems listed in the
DEPENDENCIESsection ofGemfile.lock - Runtime dependencies declared in any
gemspecreferenced by theGemfile(viagemspecdirective)
All gems are processed concurrently:
⠋ Installing skills (claude-sonnet-4-6)
✓ rake 13.4.2 already cached
✓ zeitwerk 2.8.2 done
✓ ruby_llm 1.16.0 done
After completion, each skill is symlinked into the project skill directory
(.claude/skills/ by default; set
GEMSKILL_PROJECT_DIR to change it,
e.g. .agents for Codex):
your-project/.claude/skills/
├── rake → ~/.gem/skills/rake/13.4.2/
├── ruby_llm → ~/.gem/skills/ruby_llm/1.16.0/
└── zeitwerk → ~/.gem/skills/zeitwerk/2.8.2/
The assistant automatically reads SKILL.md from each linked directory (Claude
Code reads .claude/skills/; other assistants use their own roots).
Exit status (same for install and refresh, so CI can detect failures):
| Code | Meaning |
|---|---|
0 |
Every gem succeeded and --verify corrected nothing (or was not used) |
1 |
At least one gem failed |
2 |
--verify found and corrected problems |
An error (1) takes precedence over corrections (2): if any gem errors while
others were fixed, the command exits 1.
bundle skill refresh¶
Re-sync .claude/skills/ after bundle update.
| Flag | Description |
|---|---|
--force, -f |
Regenerate all skills, even those already at the correct version |
--verify |
Verify each skill that is (re)generated against its gem's source and fix mismatches (exit 2 if any fixes applied); gems shown up to date are not re-verified |
--model MODEL, -m MODEL |
LLM model to use |
--max-tokens TOKENS |
Max output tokens per skill (overrides GEMSKIL_MAX_TOKENS; default: 32767) |
--temperature TEMP |
Sampling temperature; ignored by reasoning models (overrides GEMSKILL_TEMPERATURE; default: 0.2) |
refresh skips gems that are already linked at the correct version (shows
up to date), regenerates gems whose version changed, and removes dead symlinks
for gems no longer in Gemfile.lock.
Typical workflow:
bundle skill list¶
Show all skills currently linked in this project.
Example output:
Skills linked in .claude/skills/ (3 ok):
[ok ] rake 13.4.2
[ok ] ruby_llm 1.16.0
[ok ] zeitwerk 2.8.2
A BROKEN status means the symlink target no longer exists in the cache —
run bundle skill install to regenerate.