lint

Run standardrb, erblint, and brakeman to detect and fix Ruby and ERB code issues.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/drhazemibclc/plate --skill lint-drhazemibclc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lint
Source: https://github.com/drhazemibclc/plate/tree/main/.codex/skills/lint
Command: npx skills add https://github.com/drhazemibclc/plate --skill lint-drhazemibclc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures Ruby and ERB code quality by automating lint checks and auto-fixes, reducing defects that reach production.

Core Features & Use Cases

  • Initial assessment determines which checks are needed based on changed files or the request.
  • Execute tools: standardrb for Ruby linting, erblint for ERB linting, and brakeman for security scanning.
  • Analyze results and apply fixes or surface issues for code review.

Quick Start

Run lint to automatically assess Ruby and ERB code quality and apply fixes before pushing to origin.

Frequently Asked Questions about lint

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Ruby and ERB code quality checks in a CI pipeline?

Automate Ruby and ERB code quality checks by running standardrb, erblint, and brakeman to detect lint, formatting, and security issues, then applying available fixes directly within your CI workflows.

How do I run a security scan on a Ruby on Rails codebase before pushing?

Run a security scan on Ruby on Rails code by executing brakeman to identify vulnerabilities, alongside standardrb and erblint, to analyze and fix code quality issues before pushing to origin.

Does this linting approach work with pre-commit hooks and code review workflows?

Yes, this linting approach works with pre-commit hooks and code review workflows by assessing changed files, executing standardrb, erblint, and brakeman, and surfacing issues for review or applying fixes automatically.

What is the best way to auto-fix ERB linting issues in Rails projects?

The best way to auto-fix ERB linting issues is to run erblint, which parses ERB files for code quality violations and applies available corrections to keep your Rails views compliant.

Can I check Ruby code formatting and security without installing multiple separate tools?

You can check Ruby code formatting and security through a unified process that executes standardrb for formatting, erblint for ERB rules, and brakeman for security scanning, parsing their outputs to apply fixes.

Why should I run static analysis on changed Ruby files instead of the entire codebase?

Running static analysis on changed Ruby files optimizes pre-commit checks and CI pipelines by targeting only modified code, ensuring faster execution of standardrb, erblint, and brakeman scans while preventing defects.