Skip to content
Agentmart
Submit a tool

rails-bugfix

Diagnose and fix a Rails bug with root-cause discipline.

Skill by kurenn

IndexedMIT★ 1
Write a review

Chalk Labs

Need help deploying rails-bugfix?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/kurenn-rails-bugfix

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Diagnose and fix a Rails bug with root-cause discipline. No patches before root cause is identified. Use when given a failing test, stacktrace, log error, or behavioral bug report.

Use cases: documents, testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/rails-bugfix

What's inside

Skill name
rails-bugfix
Description
Diagnose and fix a Rails bug with root-cause discipline. No patches before root cause is identified. Use when given a failing test, stacktrace, log error, or behavioral bug report.
License
MIT
Instructions
61 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Rails Bugfix Workflow

Iron rule: **no patches before root cause.** If a fix isn't obvious from the error message in 30 seconds, investigate before editing.

## Step 1: Refine the report (mandatory, ONCE per invocation)

Run the user's bug description through `/prompt-refiner`. Use the refined version for all subsequent steps. Do not refine again.

It ships as a separate plugin (`prompt-refiner@kurenn`). If it isn't installed, restate
the report yourself as symptom / trigger / expected-vs-actual and continue.

## Step 2: Reproduce

Locate the failing test, log, or stacktrace. If the user didn't provide one, ask for:
- The exact command that fails OR
- The exact stacktrace/error message OR
- The smallest repro steps

Do not start editing without a reproduction. A bug you can't reproduce is a bug you can't verify fixed.

## Step 3: Trace

Read the failure point. Then read the upstream callers. Then read the relevant test (if any). Look at recent commits in the affected area (`git log -p -- <file>`).

## Step 4: Hypothesize

State the suspected root cause in ONE sentence. Be specific: "Y is nil because X#initialize doesn't set it when called from controller#create" — not "there's a nil somewhere."

## Step 5: Verify

Confirm the hypothesis with a targeted read or quick test before editing. Print the value, run the failing case in a console, add a temporary `puts` if necessary. Confirm the cause matches the symptom.

## Step 6: Fix

Smallest patch that addresses the root cause. NO surrounding cleanup, NO refactoring, NO renaming. The bugfix commit should diff-stat to ~5 lines unless the root cause genuinely requires more.

## Step 7: Test

- Run the EXACT failing test that reproduced the bug. Confirm it passes.
- Run the entire spec file. Confirm no regression.
- If the bug shipped without test coverage (which is why it shipped), add the missing regression test that fails before your fix and passes after. Spawn `rails-tests` with `phase: red` for this if helpful.

## Step 8: Synthesize

One paragraph: what was broken, why, what changed, what test now covers it. If you discovered a related issue but didn't fix it, name it explicitly as a follow-up.

## When to spawn specialists

For most bugs: don't. The orchestrator can read and fix directly. Specialists add overhead unless the fix spans layers.

Spawn `rails-security` only if the bug had security implications (data leakage, auth bypass, injection).
Spawn `rails-database` only if the root cause was a query/index/migration issue.

## Anti-patterns

- Patching the symptom instead of the cause
- Adding a try/rescue around the failing line to "make the error go away"
- Changing the test to make it pass
- Marking complete without running the actual repro one more time

From kurenn/roundhouse, MIT.

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Sep 15, 2026 (1 month ago)
Last release
Jun 9, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from kurenn

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get rails-bugfix running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying rails-bugfix?

CallGet help
Cite this page

rails-bugfix skill. Agent Mart. https://agentmart.dev/skills/kurenn-rails-bugfix (last updated 2026-10-24)