Explain
Spiega un file Rails o un intero flusso utente, partendo dalla cronologia git
Richiede configurazione
Cosa fa
Two-mode code explainer per codebase Rails: puntalo a un file, class o method per una close reading, o name a user flow like password reset o checkout per un box-drawing flowchart plus entry points, branching logic e side effects. Si apre con il file's git log so commit messages supply the 'why' the code cannot. Invocato manually as /explain - it sets disable-model-invocation, so it never fires from plain conversation.
Rapporto di test
L'ho puntato al Clearance's real passwords_controller.rb, 115 lines with eight years of history. Explaining it cold covers the mechanics correctly but has nothing to say about why the reset mail uses deliver_now o why the actions return 202 and 303 instead of 200; the skill's mandatory opening step, git log plus the last diff, surfaced all three answers - PR 882 inlined delivery so integrators need no background worker and so send failures reach the user, and PR 965 changed the status codes because Turbo will not re-render a 200. That is the difference between a description and a working mental model. The catch is that the frontmatter sets disable-model-invocation: true, so none of the three natural phrasings I tested would load it - you have to type /explain yourself, and the README only documents the plugin and npx install paths, not the plain skills-directory copy that also works.
Testato il: 2026-07-30 · Claude Code 2.x (agent harness)
Installazione
git clone https://github.com/thoughtbot/rails-consultant.git mkdir -p ~/.claude/skills cd rails-consultant && cp -r skills/explain ~/.claude/skills/explain
Comandi e prompt di esempio
/explainSpiega un file Rails o un intero flusso utente, partendo dalla cronologia git
Gli skill si attivano con richieste in linguaggio naturale, senza comandi da ricordare. Dopo l'installazione, prompt come questi lo attivano (in inglese):
/explain app/controllers/clearance/passwords_controller.rb, why deliver_now?/explain the checkout flow, draw the entry points and side effects/explain how password reset works in this app, starting from git history