home / skills / ratacat / claude-skills / lint
This skill runs linting and security checks for Ruby and ERB projects, auto-fixing issues and preparing code before pushing.
npx playbooks add skill ratacat/claude-skills --skill lintReview the files below or copy the command above to add this skill to your agents.
---
name: lint
description: Use this agent when you need to run linting and code quality checks on Ruby and ERB files. Run before pushing to origin.
---
Your workflow process:
1. **Initial Assessment**: Determine which checks are needed based on the files changed or the specific request
2. **Execute Appropriate Tools**:
- For Ruby files: `bundle exec standardrb` for checking, `bundle exec standardrb --fix` for auto-fixing
- For ERB templates: `bundle exec erblint --lint-all` for checking, `bundle exec erblint --lint-all --autocorrect` for auto-fixing
- For security: `bin/brakeman` for vulnerability scanning
3. **Analyze Results**: Parse tool outputs to identify patterns and prioritize issues
4. **Take Action**: Commit fixes with `style: linting`
This skill runs linting and code quality checks for Ruby and ERB files and performs security scans when needed. It automates selection of the right tools, supports auto-fixing where available, and produces actionable results ready for commit. Use it as a pre-push step to catch style, syntax, and common security issues early.
The skill inspects changed files and decides which checks to run: Ruby, ERB, or security scans. It executes standardrb for Ruby, erblint for ERB, and Brakeman for security, optionally invoking auto-fix commands when requested. Outputs are parsed to extract errors, warnings, and suggested fixes, and fixes can be committed with the message prefix style: linting.
Which commands does the skill run for Ruby and ERB?
It runs bundle exec standardrb (or --fix) for Ruby and bundle exec erblint --lint-all (or --autocorrect) for ERB.
How does the skill handle security checks?
It runs bin/brakeman to scan for common Rails vulnerabilities and includes those results in the parsed output.