claude-code_rails-upgrade-skill: Instructions file for Claude Code

CLAUDE.md

claude-code_rails-upgrade-skill CLAUDE.md is an instructions file for Claude Code from ombulabs/claude-code_rails-upgrade-skill. It costs 4,785 tokens per session, scanned A, original, MIT.

Repository instructions for the Rails upgrade plugin. They explain its validation commands, version guides, detection patterns, priority labels, and testing conventions.

In plain words
What is it for?
Use them when editing upgrade-detection patterns, validating YAML and regular expressions, running fixture tests, and assigning priority to upgrade findings.
Why use it?
They help the coding agent apply the repository's rules consistently and catch invalid pattern files before changes are committed.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is ombulabs/claude-code_rails-upgrade-skill's own configuration. It tells Claude Code how to work on claude-code_rails-upgrade-skill itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-code_rails-upgrade-skill configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ombulabs/claude-code_rails-upgrade-skill. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ombulabs/claude-code_rails-upgrade-skill/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/ombulabs/claude-code_rails-upgrade-skill

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 claude-code_rails-upgrade-skill CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ombulabs/claude-code_rails-upgrade-skill/claude-md/github.svg)](https://agentmods.dev/instructions/ombulabs/claude-code_rails-upgrade-skill/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/ombulabs/claude-code_rails-upgrade-skill/claude-md"><img src="https://agentmods.dev/badge/instructions/ombulabs/claude-code_rails-upgrade-skill/claude-md/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 claude-code_rails-upgrade-skill CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ombulabs/claude-code_rails-upgrade-skill/claude-md"><img src="https://agentmods.dev/badge/instructions/ombulabs/claude-code_rails-upgrade-skill/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,785 This file is loaded in full into every session.
When invoked 4,785 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.04785 $0.04785
Opus 5.5 $0.01914 $0.01914
Sonnet 5.5 $0.00957 $0.00957
Haiku 4.5 $0.00479 $0.00479

Measured 15d ago against content hash fde2f7008aa3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

claude-code_rails-upgrade-skill CLAUDE.md 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 15d 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.

CLAUDE.md · 159 lines

How it starts

The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Project conventions for Claude

This file captures project-specific conventions Claude should follow when working in this repo.

Repository tooling

  • bin/validate-patterns validates every detection pattern YAML file under rails-upgrade/detection-scripts/patterns/. Run it before committing any change to a pattern file. Pure-stdlib Ruby, no Bundler or Gemfile required.

    • bin/validate-patterns validates every file
    • bin/validate-patterns path/to/file.yml validates one or more specific files
    • bin/validate-patterns --self-test runs built-in fixture assertions covering the four positive kind: values and the rejection paths (missing top-level key, missing required pattern key, broken regex, unknown kind: value, a control character from a single-backslash YAML escape, catastrophic backtracking). CI runs this alongside the file-validation step
    • Checks: YAML parses, required top-level keys present, the eight required pattern keys present on each entry, every pattern / exclude regex compiles, contains no control characters (in a double-quoted YAML string "\b" is a backspace; the word boundary is "\\b"), and finishes within 0.5s on long stress inputs (Ruby 3.2+, which has Regexp timeouts), and the kind: value is one of the allowed enum values (breaking, deprecation, migration, optional)
    • Exits 0 on success, 1 on any failure with a per-file error report. Every error line ends with a hint: saying how to fix it
  • bin/test-patterns runs fixture tests for a pattern file against its sibling *.expectations.yml (e.g. rails-40-patterns.yml + rails-40-patterns.expectations.yml). It confirms a pattern's regex actually matches what its explanation claims and skips what it shouldn't — validate-patterns only confirms the regex compiles, not that it's correct. Pure-stdlib Ruby, same shape as bin/validate-patterns.

    • bin/test-patterns tests every pattern file that has an expectations sibling; files without one are reported SKIP, not a failure
    • bin/test-patterns path/to/file.yml tests one or more specific files
    • bin/test-patterns --self-test runs built-in fixture assertions. CI runs this alongside the fixture-test step
    • Expectations are keyed by variable_name and list match (lines the pattern MUST flag) and no_match (lines it MUST NOT flag) — see the worked example in rails-40-patterns.expectations.yml
    • Exits 0 on success, 1 on any failure with a per-pattern error report. Each failure carries a hint:: for a missed match it says whether the pattern or the exclude: dropped the line

Read the full file on GitHub · 159 lines

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. 15d ago Changed · +2 lines · +117 tokens per session fde2f7008aa3
  2. 27d ago Changed · +3 lines · +407 tokens per session dce022683357
  3. 28d ago Changed · +111 tokens per session 22e9fa7ef932
  4. 29d ago Changed · +6 lines · +318 tokens per session bc22ea619651
  5. 1mo ago Changed · +20 lines · +896 tokens per session c3e9a06a1726
  6. 1mo ago First seen · 128 lines · 2,936 tokens per session scan A 774e01ec4352

Subscribe to this mod's changes

claude-code_rails-upgrade-skill CLAUDE.md is an instructions file published in the GitHub repository ombulabs/claude-code_rails-upgrade-skill (395 stars, last pushed 7d ago), licensed MIT. It adds 4,785 tokens to every session, about $0.0191 per session on Opus 5.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-30.

Related

Other instructions, from other repositories