rigortype/rigor/rigor-monkeypatch-resolve

Claude Code and agent skill by rigortype/rigor

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Resolve Rigor diagnostics caused by literal `def` methods in a project's own monkey-patches by wiring their files into `pre_eval:`. Use when project core extensions cause undefined-method findings; not for dynamic method generation or an external gem without RBS.

Install

npx vskill@latest install rigortype/rigor/rigor-monkeypatch-resolve

SKILL.md

Rigor Monkeypatch Resolve

When a project adds methods to existing classes in its own files — the classic lib/core_ext/*.rb class String; def squish; …; end pattern — Rigor does not see them unless told to, so every call to the added method fires call.undefined-method (or call.unresolved-toplevel for a top-level helper). pre_eval: (ADR-17) fixes this: it pre-evaluates the listed project files and registers every method they define with a literal def / def self..

First: load the version-current copy

This skill's exact commands, flags, and config keys drift between Rigor releases, so follow the copy that ships with the installed Rigor rather than any vendored or frozen copy of this file. Get the complete current procedure in one call:

sh
rigor skill --full rigor-monkeypatch-resolve

If you already loaded this skill via rigor skill you have the current copy — just proceed. If rigor is not on PATH, this task needs it: run `rigor-next-steps` to install Rigor first, then come back.

When to use

  • rigor triage shows a cluster of call.undefined-method /

call.unresolved-toplevel whose receiver is a core class the project monkey-patches (or a top-level helper the project defines).

When NOT to use

  • The methods are generated dynamically (define_method with a

computed name, method_missing, a class_eval <<~RUBY … def #{name} heredoc). pre_eval: walks for literal defs and will not find them — that residue is a rigor-plugin-author job.

  • The cluster is on a third-party gem with no RBS — that is

rigor-rbs-setup.

Procedure

Phase 1 — confirm it is a monkey-patch cluster
sh
rigor triage --format json

Look at the selectors / hotspots: a cluster keyed on a core receiver (String#squish, Integer#…) or a top-level helper, all pointing back to a file in your project that defines them. Open that file and confirm the methods are written as literal def / def self..

Phase 2 — wire the file(s) into pre_eval:

Add the defining file paths to pre_eval: in .rigor.dist.yml (paths are resolved relative to the config file):

yaml
pre_eval:
- lib/core_ext/string.rb
- lib/core_ext/integer.rb

List the files that contain the `def`s, not the call sites.

Phase 3 — verify the cluster cleared
sh
rigor check

The call.undefined-method cluster on those methods should be gone. If some survive, those specific methods are almost certainly dynamically generated — pre_eval: cannot reach them, and the durable fix is a project plugin (hand off to rigor-plugin-author). A genuine typo (a real undefined method) correctly keeps firing — do not add it to pre_eval:.

Next step

Re-run rigor skill describe. With the monkey-patch noise gone, the remaining diagnostics are a cleaner target for rigor-baseline-reduce or rigor-protection-uplift.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
91
Repository forks
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/rigortype/rigor/rigor-monkeypatch-resolve/badge)](https://verified-skill.com/skills/rigortype/rigor/rigor-monkeypatch-resolve)

Something wrong with this skill or its page? Tell us.