refatorar-codigo

refatorar-codigo is a skill for Claude Code from eduardolagares/ia-config. It costs 74 tokens per session (877 once invoked), scanned A, original, no licence file.

A code-cleanup helper for changed Ruby on Rails code. It works from a branch comparison, local edits, or file paths and keeps the existing behavior and project conventions.

In plain words
What is it for?
Use it to clean up a Rails diff, local changes, or selected files with the refactoring commands it supports.
Why use it?
It reduces the time spent shortening and tidying recently changed code while checking that its behavior stays the same.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it to clean up a Rails diff, local changes, or selected files with the refactoring commands it supports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eduardolagares/ia-config/refatorar-codigo
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add eduardolagares/ia-config --skill refatorar-codigo
Clone the repo
git clone --depth 1 https://github.com/eduardolagares/ia-config

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for refatorar-codigo

README.md
[![agentmods](https://agentmods.dev/badge/skills/eduardolagares/ia-config/refatorar-codigo/github.svg)](https://agentmods.dev/skills/eduardolagares/ia-config/refatorar-codigo)
Your own site
<a href="https://agentmods.dev/skills/eduardolagares/ia-config/refatorar-codigo"><img src="https://agentmods.dev/badge/skills/eduardolagares/ia-config/refatorar-codigo/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for refatorar-codigo

Your own site · 80×15
<a href="https://agentmods.dev/skills/eduardolagares/ia-config/refatorar-codigo"><img src="https://agentmods.dev/badge/skills/eduardolagares/ia-config/refatorar-codigo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 877 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00074 $0.00877
Opus 5 $0.00037 $0.00439
Sonnet 5 $0.00015 $0.00175
Haiku 4.5 $0.00007 $0.00088

Measured 9d ago against content hash 09adbe7bf96f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

refatorar-codigo scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/eduardolagares/refatorar-codigo/SKILL.md · 68 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 68 lines · 74 tokens per session scan A 09adbe7bf96f

Subscribe to this mod's changes

refatorar-codigo is a skill published in the GitHub repository eduardolagares/ia-config (3 stars, last pushed 7d ago), with no licence file. It adds 74 tokens to every session and 877 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

ruby-refactor

Ruby refactoring guidelines from community best practices. This skill should be used when refactoring, reviewing, or restructuring Ruby code to improve design, readability, and maintainability. Triggers on tasks involving code smells, method extraction, conditional simplification, coupling reduction, design patterns…

pproenca/dot-skills · 65 tokens

sgcop-setup

A setup guide for adding the sgcop Ruby and Rails code-checking rules to a project. RuboCop is a tool that finds style and quality problems in Ruby code.

SonicGarden/sgcop · 169 tokens

gem-docs-review

Harvests offline documentation (README, CHANGELOG, public API) for every gem in a Ruby/Rails project's Gemfile.lock into a local cache, tracks gem versions in a manifest, and refreshes only gems whose version changed. Then reviews a git diff or pull request against that cache to surface (a) gem-upgrade impact …

VSN2015/concerns_on_rails · 152 tokens

simplify

Simplifies and refines Ruby on Rails code following 37signals patterns and the One Person Framework philosophy, while preserving exact functionality. Focuses on recently modified code unless instructed otherwise. Use this skill when simplifying or refactoring Rails code, reviewing recently written Rails code for…

maquina-app/rails-claude-code · 123 tokens

gemtracker

Analyze Ruby gem dependencies, vulnerabilities, outdated packages, maintenance health, and insecure gem sources with the gemtracker CLI. Use when asked to audit Ruby gems, check Gemfile.lock security, review dependency health, or run gemtracker.

spaquet/gemtracker · 49 tokens

code-review

Use when reviewing a Rails PR, diff, or merge request. Ground findings in a real file:line. Trigger words: review PR, code review, review my diff, CR.

igmarin/rails-agent-skills · 40 tokens