Jr Rails Second Opinion logo

Jr Rails Second Opinion

Community
julianrubisch
jr-rails-second-opinion

Get a Rails-flavored second opinion on a branch, PR, or working tree by delegating to a locally-installed agentic CLI (claude, codex, opencode, gemini, aider, etc.). Self-contained: no MCP server required.

Overview

Publisherjulianrubisch
Repositoryskills
Skill namejr-rails-second-opinion
Stars
30
Forks
2
Bundled files
43
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 43 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by julianrubisch on GitHub. Read the source before you install it.

Installation

Install the Jr Rails Second Opinion AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/julianrubisch/skills/tree/main/jr-rails-second-opinion
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/julianrubisch/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/jr-rails-second-opinion .claude/skills/jr-rails-second-opinion
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Jr Rails Second Opinion in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Jr Rails Second Opinion on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Jr Rails Second Opinion is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Rails Second Opinion (Local Agentic CLI)

Delegate review of Rails work (uncommitted diff, branch, or PR) to a locally-installed agentic CLI. Wraps the CLI in a structured Self-Review → External Review → Reconcile → Synthesize loop with H/M/L severity gating, mirroring the consult-outside-expert workflow but without MCP dependence.

Read @references/guide.md and follow it. Do not proceed without it.

Invocation

  • /jr-rails-second-opinion (review uncommitted changes; default)
  • /jr-rails-second-opinion <branch> (review <branch> diff vs main)
  • /jr-rails-second-opinion <PR#> (fetch PR with gh, review the diff)
  • /jr-rails-second-opinion --multi (run review through 2+ CLIs in parallel and reconcile)

Workflow Overview

1. CLI Discovery (Required First Step)

Probe for installed agentic CLIs. Do not trust the inherited $PATH or $SHELL — Claude Code's Bash tool spawns a non-login shell that misses fish/zsh PATH entries and most version-manager shims (asdf, mise, volta, fnm, bun, pnpm). Worse, $SHELL may report /bin/zsh even when the user actually runs fish (macOS user record defaults to zsh; fish is exec'd from .zshrc). Probe every installed user shell, merge their login PATHs, then augment with common install dirs:

bash
# Don't trust $SHELL — on macOS it often reflects the user-record default (zsh)
# even when the user actually runs fish via `exec fish` from .zshrc. Probe
# every installed user shell and merge their login PATHs.
PATHS_TO_TRY=()
for sh in fish zsh bash; do
  command -v "$sh" >/dev/null 2>&1 || continue
  case "$sh" in
    fish) p=$("$sh" -l -c 'string join : -- $PATH' 2>/dev/null) ;;
    *)    p=$("$sh" -l -c 'printf %s "$PATH"' 2>/dev/null) ;;
  esac
  [ -n "$p" ] && PATHS_TO_TRY+=("$p")
done
LOGIN_PATH=$(IFS=:; echo "${PATHS_TO_TRY[*]}")
[ -z "$LOGIN_PATH" ] && LOGIN_PATH="$PATH"

EXTRA_DIRS="$HOME/.local/bin:$HOME/.npm-global/bin:$HOME/.bun/bin:$HOME/.cargo/bin:$HOME/.deno/bin:$HOME/.asdf/shims:$HOME/.mise/shims:$HOME/Library/pnpm:/opt/homebrew/bin:/usr/local/bin"
SEARCH_PATH="$LOGIN_PATH:$EXTRA_DIRS"

for cmd in claude codex opencode gemini aider mods cursor-agent llm sgpt goose; do
  bin=$(PATH="$SEARCH_PATH" command -v "$cmd" 2>/dev/null) || continue
  echo "$cmd -> $bin"
done

Then call AskUserQuestion with the detected CLIs as options:

  • If 0 found, ask the mediator before escalating to install. They may have a CLI at a non-standard path — accept an absolute path via the "Other" answer. Only suggest installing (brew install codex, npm i -g opencode-ai) after they confirm nothing is installed.
  • If 1 found, still confirm it as the choice.
  • If 2+ found, list them as options. Add an "all of them (multi mode)" option when --multi is passed.

Reuse the resolved $SEARCH_PATH (or the absolute path) when invoking the CLI later — the same shell-context issue applies to invocation, not just detection.

2. Scope

Determine review scope:

  • Default (no arg): uncommitted changes (git diff + untracked summary).
  • Branch: git diff <base>...<branch> where base is main (or current upstream).
  • PR#: gh pr checkout <num> then branch flow, or fetch the PR diff via gh pr diff.

3. Brief Construction

Build the brief passed to the CLI. Force the H/M/L severity rubric and the five Rails-flavored review dimensions: architecture (skinny controllers, rich models, callback design), quality (Ruby idiom, naming, anti-patterns), performance (N+1, indexes, eager loading), testing (coverage, integration/unit balance), security (strong params, mass assignment, Brakeman class issues). Include the project's hard rule: never recommend service objects as a solution, and paste the Brief block from references/standards.md verbatim so the CLI judges by the same conventions the self-review uses.

See references/guide.md for the full brief template.

4. Run Review

Invoke the chosen CLI with its review-style command. Per-CLI invocations live in references/cli-invocations.md. Capture stdout to the working log.

5. Self-Review + Reconcile + Synthesize

Implementer (you) does a parallel self-review, then reconciles with the CLI's findings. Produce a synthesis with Consensus / Disagreements / Actions / Gate Status. Wait for mediator approval before acting.

6. Act + Iterate

Address agreed actions. Open a Round 2 if needed (re-run CLI on the updated artifact, capture deltas only). Stop on convergence: no open H, all M either fixed or accepted.

7. Cleanup

Delete the working log (second-opinion.md) after final attestation. The improved artifact is the deliverable, not the log.

Hard Rules

Judge by the pack's standards, not the CLI's taste. references/standards.md lists, per dimension, what a finding is measured against and links the shared reference that explains it (reference/shared/*.md, smells.md, patterns.md, refactorings/). Its Brief block goes into every CLI brief verbatim; in Reconcile, a CLI finding that contradicts a standard is dropped with the standard cited, and a finding a standard supports is kept even when self-review missed it. The first standard is the hard one: never recommend service objects (*Service, *Manager, *Handler, *Processor, *Creator, .call PORO patterns). When extraction is needed, prefer domain models, form objects, query objects, concerns, DCI contexts, or callback extraction.

Never act on a CLI finding without mediator approval. The CLI is a signal generator, not a judge. Decisions stay with the human.

The brief must demand the findings as the final message. Reasoning models will otherwise spend a whole run thinking and return nothing — a clean exit, a full log, an empty output file. The constraint is in references/guide.md's brief template; keep it when adapting the brief, and see references/cli-invocations.md for recovering a run that failed this way rather than paying for it twice.

Do not pipe secrets to the CLI. Brief construction must scrub .env, config/credentials/*, and any file Brakeman flags as containing secrets.

File Layout

jr-rails-second-opinion/
├── SKILL.md                       # This file (entry point)
└── references/
    ├── guide.md                   # Workflow detail (load when starting a session)
    ├── cli-invocations.md             # Per-CLI invocation patterns + flags (load when picking a CLI)
    ├── standards.md                   # What findings are judged against, per dimension, linked into reference/ (load once per session)
    └── second-opinion-log-template.md # Working-log skeleton (copy when starting a session)

Load reference files only when you need them. Progressive disclosure keeps the entry point cheap.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Jr Rails Second Opinion AI skill do?

Get a Rails-flavored second opinion on a branch, PR, or working tree by delegating to a locally-installed agentic CLI (claude, codex, opencode, gemini, aider, etc.). Self-contained: no MCP server required.

Why use Jr Rails Second Opinion on TypingMind?

Because you install it once and use it with any model. Jr Rails Second Opinion is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Jr Rails Second Opinion in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/julianrubisch/skills/tree/main/jr-rails-second-opinion. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Jr Rails Second Opinion?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Jr Rails Second Opinion?

As many as you like. As long as a model supports skills, you can use Jr Rails Second Opinion with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Jr Rails Second Opinion AI skill free?

Yes. It is published on GitHub by julianrubisch under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇