rubocop

rubocop is a command for Claude Code from sergiobayona/vector_mcp. It costs 0 tokens per session (1,362 once invoked), scanned A, original, MIT.

A guided workflow for checking and correcting Ruby code style and lint problems with RuboCop, focused on the VectorMCP gem.

In plain words
What is it for?
Use it to inspect RuboCop offenses, apply safe or unsafe automatic fixes, and finish remaining corrections while checking the repository state.
Why use it?
It helps find all reported issues and separates automatic corrections from changes that need manual review.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/sergiobayona/vector_mcp/rubocop
Clone the repo
git clone --depth 1 https://github.com/sergiobayona/vector_mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rubocop

README.md
[![agentmods](https://agentmods.dev/badge/commands/sergiobayona/vector_mcp/rubocop.svg)](https://agentmods.dev/commands/sergiobayona/vector_mcp/rubocop)
Your own site
<a href="https://agentmods.dev/commands/sergiobayona/vector_mcp/rubocop"><img src="https://agentmods.dev/badge/commands/sergiobayona/vector_mcp/rubocop.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,362 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01362
Opus 5 $0.00000 $0.00681
Sonnet 5 $0.00000 $0.00272
Haiku 4.5 $0.00000 $0.00136

Measured 5d ago against content hash 5178fe40aa53, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rubocop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/rubocop.md · 205 lines

How it starts

The opening of the file, as written. The whole thing — 205 lines — stays where its author put it; the contents beside it link to each section on GitHub.

RuboCop Fix All Offenses

Comprehensive workflow for running RuboCop and systematically fixing all style and linting offenses in the VectorMCP Ruby gem.

Overview

This command runs RuboCop to identify all linting and style issues, then systematically fixes them using both automatic fixes and manual corrections where needed.

Steps

1. Pre-check: Git Status

Ensure we're starting from a clean state:

!git status --porcelain

If there are uncommitted changes, commit or stash them first to isolate RuboCop fixes.

2. Initial RuboCop Analysis

Run RuboCop to see current state of offenses:

# Get overview of all offenses
!bundle exec rubocop --format progress

# Get detailed offense breakdown by cop
!bundle exec rubocop --format offenses

Analyze the output:

  • Note total offense count
  • Identify most common offense types
  • Look for auto-correctable offenses

3. Auto-correct Safe Offenses

Fix all safe auto-correctable offenses first:

# Auto-correct safe offenses only
!bundle exec rubocop --auto-correct

# Check remaining offenses after safe corrections
!bundle exec rubocop --format progress

4. Auto-correct Unsafe Offenses (with caution)

Fix unsafe auto-correctable offenses (review changes carefully):

# Auto-correct unsafe offenses (be careful!)
!bundle exec rubocop --auto-correct-all

# Immediately check what changed
!git diff

⚠️ IMPORTANT: Review all changes from unsafe auto-corrections before proceeding.

5. Run Tests After Auto-corrections

Ensure auto-corrections didn't break anything:

!bundle exec rspec

If tests fail, investigate and fix issues before continuing.

6. Manual Fix Remaining Offenses

Address remaining offenses that require manual intervention:

# Show remaining offenses with file locations
!bundle exec rubocop --format simple

# For specific files with many offenses, focus on one file at a time
!bundle exec rubocop lib/vector_mcp/specific_file.rb --format simple

Read the full file on GitHub · 205 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 205 lines · 0 tokens per session scan A 5178fe40aa53

Subscribe to this mod's changes

rubocop is a command published in the GitHub repository sergiobayona/vector_mcp (13 stars, last pushed 19d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,362 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.