ruby
Skill0 starsChanged 9 months agoMITView on GitHub
name: Ruby Coding Preferences description: Preferences for developing and maintaining Ruby code dependencies: ruby>=3.4.8, mise Apply these rules when developing and maintaining Ruby projects. - Use white space such as blank lines to make code more readable. - If a code statement spans multiple lines, add a blank line before and after the statement to make it easier to read. - Class self. methods should appear first, followed by initialize (if needed), then instance methods, then private instance methods. -…
11 other projects use a version of this.
Adopted by
Most recently taken up by
- rogue-dev-studio/ai-agents-roguetheir own version, first seen Nov 1, 2026
- damacus/agent-skillstheir own version, first seen Oct 29, 2026
- bsene/skillstheir own version, first seen Oct 25, 2026
- maroffo/claude-forgetheir own version, first seen Oct 25, 2026
- mukco/claude-skillstheir own version, first seen Oct 15, 2026
- G1Joshi/Agent-Skillstheir own version, first seen Oct 13, 2026
Used with
Projects with it also use grill-me.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
GoogleSkillgrill-me
A relentless interview to sharpen a plan or design.
Also in 3 projects that use this
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- carapace-sh/carapace-bin★ 2ksame name
- Mindrally/skills★ 275same name
- nimadorostkar/Claude-Skills-collection★ 33same name
- maroffo/claude-forge★ 17same name
- G1Joshi/Agent-Skills★ 15same name
- bsene/skills★ 7same name
- damacus/agent-skills★ 2same name
- display-design-studio/skills★ 2same name
- kimtth/agent-skill-100-lines-or-less★ 2same name
- rogue-dev-studio/ai-agents-rogue★ 2same name
1 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 10 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Use single quotes for strings unless interpolation is required.
- Distinctive: line 17
Prefer early returns (also known as guard clauses)over nested conditionals.
- Distinctive: line 19
Use white space such as blank lines to make code more readable.
- Distinctive: line 20
If a code statement spans multiple lines, add a blank line before and after the statement to make it easier to read.
- Very specific: line 23
Use freeze on constant arrays and hashes.
- Distinctive: line 28
If an attr_reader is not used outside of the class, define it in the private section of the class.
- Distinctive: line 31
When a method call spans multiple lines, use parentheses after the method name and indent each argument two spaces on subsequent lines.
- Distinctive: line 34
When an assignment is multiline, add a blank line before and after the block of code, insert a newline after the equal sign and follow …
- Very specific: line 38
Use %w[] for word arrays (not %w{}).
- Very specific: line 40
Use is_a? instead of kind_of?
- Distinctive: line 42
Use .tap (if possible)if a method is used to build a single return value.
- Very specific: line 44
Add spaces around default parameters: def method(arg = default).
- Very specific: line 48
If an array of literals is defined with %w or %i and contains more than five elements, put each element on its own line in the form %w[ …
- Distinctive: line 57
If Rubocop is installed, use it to enforce other coding standards.
- Distinctive: line 67
If a method has named paramaters, alphabetize the order of the named parameters.
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Metadata
name: Ruby Coding Preferences description: Preferences for developing and maintaining Ruby code dependencies: ruby>=3.4.8, mise
When to Apply
Apply these rules when developing and maintaining Ruby projects.
Rules for Ruby Usage
- Order methods, functions, and variables alphabetically by name.
- Use single quotes for strings unless interpolation is required.
- Prefer early returns (also known as guard clauses)over nested conditionals.
- Use white space such as blank lines to make code more readable.
- If a code statement spans multiple lines, add a blank line before and after the statement to make it easier to read.
- Use
freezeon constant arrays and hashes. - Class
self.methods should appear first, followed by initialize (if needed), then instance methods, then private instance methods. - If an attr_reader is not used outside of the class, define it in the private section of the class.
- When a method call spans multiple lines, use parentheses after the method name and indent each argument two spaces on subsequent lines.
- When an assignment is multiline, add a blank line before and after the block of code, insert a newline after the equal sign and follow other rules listed here to format the rest of the statement.
- Use
%w[]for word arrays (not%w{}). - Use
is_a?instead ofkind_of?. - Use .tap (if possible)if a method is used to build a single return value.
- Add spaces around default parameters:
def method(arg = default). - Alphabetize arrays in ransackable methods.
- If an array of literals is defined with
%wor%iand contains more than five elements, put each element on its own line in the form%w[followed by a new line, indent 2, list an item, new line, etc, and close with].freeze. - Align scope arrows (
->) vertically when there are many scopes. - Try to align the assignment operator (
=) vertically when there are many assignments in sequence. - If Rubocop is installed, use it to enforce other coding standards. If Rubocop's styles conflict with these guidelines, use Rubocop's configuration file to override the conflicting rules, but provide an alert about the discrepancies.
- Alphabetize constants when possible. If a constant is dependent on another constant, it obvously must appear out of order.
- Alphabetize the keys of a hash whenever possible.
- If a method has named paramaters, alphabetize the order of the named parameters.
Resources
See the skills file for Rails Coding Preferences.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

