Manages Ruby gem dependencies with Bundler: Gemfile authoring, install, update, exec, audit, and gem packaging.
Agentic Workflow: Read -> Reason -> Act (bundler)
You are bundler (devtools/general) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — devtools context for bundler
- Domain: Manages Ruby gem dependencies with Bundler: Gemfile authoring, install, update, exec, audit, and gem packaging.
- dependency-management: Install, add, update, and verify Ruby gem dependencies. —
bundle init
- runtime-and-audit: Run gems in the bundle context and audit for vulnerabilities. —
bundle exec rspec
- Check
knowledge and prerequisites: bundle
2. Reason — think for bundler
- For
dependency-management: Install, add, update, and verify Ruby gem dependencies. — decide which checks to run
- For
runtime-and-audit: Run gems in the bundle context and audit for vulnerabilities. — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with bundler tools
- Tools:
Glob, Grep, Read, Bundle (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
bundler:ea93b133
Bundler for Ruby
Manage Ruby gem dependencies deterministically with Bundler.
What This Skill Does
- Author Gemfile and resolve Gemfile.lock
- Installs gems into the bundle path
- Updates and reports outdated gems
- Runs commands inside the bundle context (bundle exec)
- Audits dependencies for vulnerabilities
- Builds new gem skeletons
When to Use
- Any Ruby project with dependencies
- Upgrading a Rails app's gem set
- CI: install from lockfile deterministically
Real Commands
# Project setup
bundle init
bundle add rails --version '~> 7.1'
bundle add rspec --group test
bundle install --jobs 4
bundle config set path vendor/bundle
# Maintenance
bundle update --all
bundle outdated
bundle check
bundle lock --add-platform x86_64-linux
# Runtime
bundle exec rspec
bundle exec rake db:migrate
bundle exec rubocop
# Security
bundle audit check --update
bundle audit fix --patch
# Packaging
bundle gem my_gem
Best Practices
- Commit Gemfile.lock for apps (not for gems)
- Use groups: development/test/production separation
- Run bundle audit in CI to fail on vulnerable deps
- Use
bundle exec to avoid version conflicts
- Add platforms to the lockfile for multi-OS teams
Capabilities
dependency-management
Install, add, update, and verify Ruby gem dependencies.
Parameters:
gem (string): Gem name
version (string): Version constraint
group (string): Gem group, e.g. test, development
Commands:
bundle init
bundle install --jobs 4
bundle add rails --version '~> 7.1'
bundle update --all
bundle outdated
bundle check
bundle config set path vendor/bundle
Examples:
- bundle install --jobs 4
- bundle add rspec --group test
- bundle outdated
runtime-and-audit
Run gems in the bundle context and audit for vulnerabilities.
Parameters:
command (string): Command to run in bundle context
platform (string): Platform to add to lockfile
Commands:
bundle exec rspec
bundle exec rake db:migrate
bundle audit check --update
bundle exec rubocop
bundle lock --add-platform x86_64-linux
bundle clean --force
Examples:
- bundle exec rspec
- bundle audit check --update
- bundle lock --add-platform x86_64-linux
References
1---2name: "bundler"3description: "Manages Ruby gem dependencies with Bundler: Gemfile authoring, install, update, exec, audit, and gem packaging. Use when working with dependency management, runtime and audit, devtools or when the user mentions dependency management, runtime and audit, devtools."4license: "MIT"5compatibility: "Requires bundle."6metadata:7 source: https://skillmd.com/skills/opknock/bundler8 author: Kdesk9 version: 2.0.010 category: devtools11allowed-tools: "Glob Grep Read Bash(bundle:*)"12---1314Manages Ruby gem dependencies with Bundler: Gemfile authoring, install, update, exec, audit, and gem packaging.1516## Agentic Workflow: Read -> Reason -> Act (bundler)1718You are **bundler** (devtools/general) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — devtools context for `bundler`21- Domain: Manages Ruby gem dependencies with Bundler: Gemfile authoring, install, update, exec, audit, and gem packaging.22- **dependency-management**: Install, add, update, and verify Ruby gem dependencies. — `bundle init`23- **runtime-and-audit**: Run gems in the bundle context and audit for vulnerabilities. — `bundle exec rspec`24- Check `knowledge` and `prerequisites: bundle`2526### 2. Reason — think for `bundler`27- For `dependency-management`: Install, add, update, and verify Ruby gem dependencies. — decide which checks to run28- For `runtime-and-audit`: Run gems in the bundle context and audit for vulnerabilities. — decide which checks to run29- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs3031### 3. Act — execute with `bundler` tools32- Tools: `Glob`, `Grep`, `Read`, `Bundle` (see frontmatter `tools`/`allowed-tools`)33- Use `safe_path` for any write; record evidence (paths, checksums)34- Fingerprint: `bundler:ea93b133`3536# Bundler for Ruby3738Manage Ruby gem dependencies deterministically with Bundler.3940## What This Skill Does4142- Author Gemfile and resolve Gemfile.lock43- Installs gems into the bundle path44- Updates and reports outdated gems45- Runs commands inside the bundle context (bundle exec)46- Audits dependencies for vulnerabilities47- Builds new gem skeletons4849## When to Use5051- Any Ruby project with dependencies52- Upgrading a Rails app's gem set53- CI: install from lockfile deterministically5455## Real Commands5657```bash58# Project setup59bundle init60bundle add rails --version '~> 7.1'61bundle add rspec --group test62bundle install --jobs 463bundle config set path vendor/bundle6465# Maintenance66bundle update --all67bundle outdated68bundle check69bundle lock --add-platform x86_64-linux7071# Runtime72bundle exec rspec73bundle exec rake db:migrate74bundle exec rubocop7576# Security77bundle audit check --update78bundle audit fix --patch7980# Packaging81bundle gem my_gem82```8384## Best Practices8586- Commit Gemfile.lock for apps (not for gems)87- Use groups: development/test/production separation88- Run bundle audit in CI to fail on vulnerable deps89- Use `bundle exec` to avoid version conflicts90- Add platforms to the lockfile for multi-OS teams9192## Capabilities9394### dependency-management95Install, add, update, and verify Ruby gem dependencies.9697**Parameters:**98- `gem` (string): Gem name99- `version` (string): Version constraint100- `group` (string): Gem group, e.g. test, development101102**Commands:**103- `bundle init`104- `bundle install --jobs 4`105- `bundle add rails --version '~> 7.1'`106- `bundle update --all`107- `bundle outdated`108- `bundle check`109- `bundle config set path vendor/bundle`110111**Examples:**112- bundle install --jobs 4113- bundle add rspec --group test114- bundle outdated115116### runtime-and-audit117Run gems in the bundle context and audit for vulnerabilities.118119**Parameters:**120- `command` (string): Command to run in bundle context121- `platform` (string): Platform to add to lockfile122123**Commands:**124- `bundle exec rspec`125- `bundle exec rake db:migrate`126- `bundle audit check --update`127- `bundle exec rubocop`128- `bundle lock --add-platform x86_64-linux`129- `bundle clean --force`130131**Examples:**132- bundle exec rspec133- bundle audit check --update134- bundle lock --add-platform x86_64-linux135136## References137- [Bundler Documentation](https://bundler.io/docs.html)138- [bundle-audit](https://github.com/rubysec/bundler-audit)