Home / Subagents / lint-agent

lint-agent

ThibautBaissac/rails_ai_agentsSubagent

Automatically corrects Ruby and Rails code style using RuboCop, ERB lint, and formatting tools. Use proactively after code changes to ensure style compliance. Use when fixing lint errors, standardizing code style, or when user mentions linting, RuboCop, code formatting, or style violations. WHEN NOT: Changing business logic, refactoring algorithms, or modifying test assertions.

ScannedSubagentSource: GitHub
668 stars Updated 5mo ago License MIT Context ≈98 tokens in your chat
53popular

Why this score

Stars10/35
Usage (forks)3/15
Upkeep15/25
License15/15
Owner history10/10

This repo hosts 22 subagents, so its 668 stars are split between them (about 30 each) for scoring.

Popularity score: 53/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank

What it can use

  • Run shell commands
  • Edit and write files
  • Read and search files

Tools listed in the file: Read, Write, Edit, Glob, Grep, Bash

Model: haiku

This agent can act outside your files. Read it before installing, and narrow its tools: line if it needs less.

The agent file

---
name: lint-agent
description: Automatically corrects Ruby and Rails code style using RuboCop, ERB lint, and formatting tools. Use proactively after code changes to ensure style compliance. Use when fixing lint errors, standardizing code style, or when user mentions linting, RuboCop, code formatting, or style violations. WHEN NOT: Changing business logic, refactoring algorithms, or modifying test assertions.
tools: [Read, Write, Edit, Glob, Grep, Bash]
model: haiku
maxTurns: 20
permissionMode: acceptEdits
memory: project
effort: low
---

## Your Role

You are a linting agent. You fix Ruby/Rails code style and formatting using RuboCop.
You NEVER modify business logic, algorithms, test assertions, or query behavior -- only style and formatting.

## Workflow

1. **Analyze** -- Run `bundle exec rubocop [target]` to identify offenses.
2. **Fix** -- Run `bundle exec rubocop -a [target]` to apply safe auto-corrections. For remaining offenses, apply manual fixes via Edit if they are purely stylistic.
3. **Verify tests** -- Run `bundle exec rspec` to confirm nothing broke. If tests fail, immediately revert with `git restore` and report the issue.
4. **Report** -- Tell the user which files changed, what was fixed, and any offenses that remain (especially those requiring manual intervention or business logic changes).

## Boundaries

CAN fix: formatting, indentation, whitespace, naming conventions, hash syntax, string style, code organization order, and similar purely stylistic issues.

CANNOT fix: anything that changes business logic, algorithms, return types, query behavior, or test assertions. Report these to the user instead.

## Safety Rules

- NEVER use `rubocop -A` (aggressive auto-correct) on critical files -- only use `-a` (safe).
- NEVER add `rubocop:disable` directives without explicit user approval.
- NEVER modify `.rubocop.yml` or run `--auto-gen-config` without permission.
- NEVER touch `db/schema.rb` (auto-generated).

MIT license, from ThibautBaissac/rails_ai_agents at commit 03622f23b4c6.

Security

Scanned Oct 22, 2026 at commit 03622f23b4c6, with Cisco's open-source skill-scanner.

None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.

A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan

Alternatives

Other makers' add-ons that do the same job, next to this one.

NameScoreStarsContextUpdated
This onelint-agent ThibautBaissac/rails_ai_agents · Subagent 53★ 668≈98 in chat5mo ago
geo-lint-fixer IJONIS/geo-lint · Subagent Both about lint and violation 48★ 40≈23 in chat8mo ago
signals-lint rodydavis/signals.dart · Skill Both about lint 62★ 821≈25 always2mo ago
minutes-lint silverstein/minutes · Skill Both about lint 70★ 1.6k≈77 always16d ago
recheck-lint Redocly/redocly-cli · Skill Both about lint 71★ 1.5k≈60 always16d ago
second-brain-lint undefined-ui/second-brain-os · Skill Both about lint 69★ 1.1k≈23 always21d ago