Agent skill

Rubocop

by haru in haru/redmine_ai_helper

Run RuboCop linting and fix offenses for the redmineaihelper plugin

MITAuto-check passedDevelopment

Install Rubocop

skills CLI
$ npx skills add haru/redmine_ai_helper --skill rubocop -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install haru/redmine_ai_helper rubocop --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/haru/redmine_ai_helper.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/rubocop .claude/skills/rubocop && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
rubocop
GitHub stars
106
Token cost
~717 tokens
SKILL.md length
231 words
Files
1
Skills in repo
21
Repo updated
First seen
Licence
MIT

At a glance

Run RuboCop linting and fix offenses for the redmineaihelper plugin

  • Works in 4 steps: Run RuboCop → Auto-fix safe offenses → Manually fix remaining offenses → …
  • Tasks that involve Linting and formatting
  • SKILL.md covers Workflow and Common Cases
  • Calls bundle and git

What it does

Rubocop is an agent skill from haru/redmine_ai_helper. Run RuboCop linting and fix offenses for the redmineaihelper plugin

Its SKILL.md is about 720 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Linting and formatting and Backend development. The repository describes itself as: A Redmine plugin that adds AI agents, MCP Server, smart completion, and vector search. The licence is MIT.

When your agent uses it

  • Tasks that involve Linting and formatting
  • Tasks that involve Backend development

Example prompts

  • “/rubocop”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Run RuboCop
  2. Auto-fix safe offenses
  3. Manually fix remaining offenses
  4. Run tests to verify

What it can do on your machine

Read from SKILL.md and the folder at commit 3cd87d6. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bundle
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Rubocop loads about 717 tokens when it runs. Until then it costs about 19 tokens; SKILL.md has 231 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~19
When it runs · the whole SKILL.md, loaded when a task matches
~717

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from haru/redmine_ai_helper at commit 3cd87d6, republished under its MIT licence (© haru). 231 words, ~717 tokens.

Download SKILL.mdSave it as .claude/skills/rubocop/SKILL.md (or your agent's skills folder).
name
rubocop
description
Run RuboCop linting and fix offenses for the redmine_ai_helper plugin

RuboCop Check and Fix

Run RuboCop on the plugin codebase, auto-fix what is safe, and manually resolve remaining offenses.

Workflow

Step 1: Run RuboCop
bash
rubocop 2>&1
Step 2: Auto-fix safe offenses
bash
rubocop -A --except Rails/ActionControllerTestCase 2>&1

Exclude Rails/ActionControllerTestCase — Redmine plugin tests require ActionController::TestCase. Converting to ActionDispatch::IntegrationTest breaks the tests helper method and other controller-specific APIs.

Step 3: Manually fix remaining offenses

Address any offenses that remain after auto-correction using the guidelines below.

IMPORTANT: Never modify .rubocop.yml thresholds (Max: values) or Exclude: settings without explicit user approval. If offenses cannot be fixed in the source code, report them to the user and ask how to proceed. Do not raise Max: values, add new Exclude: entries, or run git checkout -- .rubocop.yml to work around violations.

CopAction
Rails/PluckIf called on a plain Ruby array (not ActiveRecord), add # rubocop:disable Rails/Pluck inline
Rails/RedundantPresenceValidationOnBelongsToIf tests assert errors[:foreign_key_id], the explicit validation is needed — add # rubocop:disable inline
Rails/I18nLocaleAssignmentRewrite I18n.locale = x as an I18n.with_locale(x) { ... } block
Cop disabled project-wideAdd Enabled: false under the cop name in .rubocop.yml — only with user approval
Step 4: Run tests to verify
bash
bundle exec rake redmine:plugins:test NAME=redmine_ai_helper 2>&1 | tail -20

Confirm 0 failures and 0 errors before finishing.

Common Cases

Rails/ActionControllerTestCase

Already disabled in .rubocop.yml. No changes needed.

yaml
Rails/ActionControllerTestCase:
  Enabled: false
Rails/RedundantPresenceValidationOnBelongsTo

The implicit belongs_to validation puts errors on :association_name, not :foreign_key_id. If tests check errors[:project_id] or errors[:user_id], keep the explicit validation:

ruby
validates :project_id, presence: true # rubocop:disable Rails/RedundantPresenceValidationOnBelongsTo
validates :user_id, presence: true    # rubocop:disable Rails/RedundantPresenceValidationOnBelongsTo
Rails/Pluck

.pluck is an ActiveRecord method and does not work on plain Ruby arrays. Disable inline:

ruby
issue_counts = members_workload.map { |m| m[:assigned_issues] } # rubocop:disable Rails/Pluck
Rails/I18nLocaleAssignment
ruby
# Before
original_locale = I18n.locale
I18n.locale = :ja
# ... test code
ensure
  I18n.locale = original_locale

# After
I18n.with_locale(:ja) do
  # ... test code
end

© haru, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/rubocop of haru/redmine_ai_helper.

Open the folder on GitHubat commit 3cd87d6

Compare with similar skills

Rubocop next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Rubocop compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Rubocop this skillharu/redmine_ai_helper106—~717Automated safety check: PassMIT
Update Dependenciesalorence/django-modern-rpc111—~1.3kAutomated safety check: PassMIT
Python Prodavila7/claude-code-templates32k8 repos~1.8kAutomated safety check: PassMIT
Htmlhintmanagedcode/dotnet-skills486—~1.2kAutomated safety check: PassMIT
Typescript SecurityHoangNguyen0403/agent-skills-standard571—~817Automated safety check: NotesMIT
Infer Conventionsanonaddy/anonaddy4.9k5 repos~3.1kAutomated safety check: PassMIT

Similar skills

  • Update Dependencies

    alorence/django-modern-rpc

    Routine update of all project dependencies — uv itself, uv.lock (all groups), tool versions pinned in GitHub workflows and .pre-commit-config.yaml (uv, ruff, mypy...), and SHA-pinned GitHub Actions.

    111 GitHub stars~1.3k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Python Pro

    davila7/claude-code-templates

    Master Python 3.12+ with modern features, async programming, performance optimization, and production-ready practices.

    32k GitHub starsUsed in 8 repos~1.8k tokens
    DevelopmentAuto-check passed
  • Htmlhint

    managedcode/dotnet-skills

    Use HTMLHint in .NET repositories that ship static HTML output or standalone frontend templates.

    486 GitHub stars~1.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Typescript Security

    HoangNguyen0403/agent-skills-standard

    Secure server-side TypeScript input, auth tokens, and injection boundaries.

    571 GitHub stars~817 tokensUpdated today
    DevelopmentAuto-check: notes
  • Infer Conventions

    anonaddy/anonaddy

    A skill your agent uses to analyze how a Laravel application is actually written and record its conventions as shared rules.

    4.9k GitHub starsUsed in 5 repos~3.1k tokens
    Backend & APIsAuto-check passed
  • Verification loop for Laravel projects: env checks, linting, static analysis, tests with coverage, security scans, and deployment readiness.

    276k GitHub starsUsed in 4 repos~1.1k tokens
    Backend & APIsAuto-check: notes

More from haru/redmine_ai_helper

All 21 skills in this repo
  • Commit

    haru/redmine_ai_helper

    Stage the current changes and create a git commit with a properly formatted English message.

    106 GitHub stars~1.1k tokensUpdated today
    Auto-check: notes
  • Create Pull Request

    haru/redmine_ai_helper

    Create a pull request from the current branch. An agent skill from haru/redmine_ai_helper.

    106 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Create Release Branch

    haru/redmine_ai_helper

    Create a release branch for a given version. An agent skill from haru/redmine_ai_helper.

    106 GitHub stars~599 tokensUpdated today
    Auto-check passed
  • Qlty Check

    haru/redmine_ai_helper

    Code quality checks, formatting, and metrics via qlty CLI. An agent skill from haru/redmine_ai_helper.

    106 GitHub starsUsed in 2 repos~628 tokens
    Auto-check passed
  • Redmine Playwright Login

    haru/redmine_ai_helper

    Connect to the running Redmine instance and log in via the Playwright MCP browser, using REDMINEPLAYRIGHTURL/REDMINEPLAYRIGHTUSER/REDMINEPLAYRIGHTPASSWORD environment variables.

    106 GitHub stars~796 tokensUpdated today
    Auto-check passed
  • Recreate Test DB

    haru/redmine_ai_helper

    Recreate the Redmine test database from scratch (delete db/schema.rb and db/redmine.sqlite3test, then run core and plugin migrations with RAILSENV=test).

    106 GitHub stars~364 tokensUpdated today
    Auto-check passed

Categories

Questions about Rubocop

What does Rubocop do?

Run RuboCop linting and fix offenses for the redmineaihelper plugin. Rubocop is an agent skill from haru/redmine_ai_helper.

When should I use Rubocop?

Rubocop fits situations like: tasks that involve Linting and formatting; tasks that involve Backend development.

How do I install Rubocop in Claude Code?

Run `npx skills add haru/redmine_ai_helper --skill rubocop -a claude-code`. Or copy the skill folder (.claude/skills/rubocop in haru/redmine_ai_helper) into .claude/skills/rubocop in your project. Claude Code loads it when a task matches its description.

How do I install Rubocop in Codex?

Run `npx skills add haru/redmine_ai_helper --skill rubocop -a codex`. Or copy the skill folder (.claude/skills/rubocop in haru/redmine_ai_helper) into .agents/skills/rubocop in your project. Codex loads it when a task matches its description.

Can I use Rubocop in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add haru/redmine_ai_helper --skill rubocop -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rubocop, .gemini/skills/rubocop, .github/skills/rubocop and .opencode/skills/rubocop in your project.

What does Rubocop need to run?

Going by SKILL.md and its folder, Rubocop needs the command-line tools its instructions call (bundle and git).

Does Rubocop access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Rubocop safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Rubocop use?

Rubocop is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Rubocop use?

About 717 tokens (SKILL.md is roughly 2.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Rubocop?

Skills that share tags, products or a category with Rubocop: Update Dependencies (alorence/django-modern-rpc, 111 stars), Python Pro (davila7/claude-code-templates, 32k stars), Htmlhint (managedcode/dotnet-skills, 486 stars) and Typescript Security (HoangNguyen0403/agent-skills-standard, 571 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rubocop?

haru (a GitHub user) maintains it in haru/redmine_ai_helper, which has 106 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on October 9, 2026.

Source: haru/redmine_ai_helper on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.