Explain
Vysvětluje soubor Rails nebo celý uživatelský tok, počínaje historií gitu
Funguje s nastavením
Co umí
Dvourežimový vysvětlovač kódu pro kódové báze Rails: nasměrujte ho na soubor, třídu nebo metodu pro podrobné čtení, nebo pojmenujte uživatelský tok jako password reset or checkout for a box-drawing flowchart plus entry points, branching logic and side effects. Začíná s git logem souboru, takže commit messages dodávají 'why' the code cannot. Vyvolává se ručně jako /explain - it sets disable-model-invocation, so it never fires from plain conversation.
Testovací report
Nasměroval jsem to na 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 or 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. Háček je v tom, že 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.
Testováno: 2026-07-30 · Claude Code 2.x (agent harness)
Instalace
git clone https://github.com/thoughtbot/rails-consultant.git mkdir -p ~/.claude/skills cd rails-consultant && cp -r skills/explain ~/.claude/skills/explain
Příkazy a ukázkové prompty
/explainVysvětluje soubor Rails nebo celý uživatelský tok, počínaje historií gitu
Skilly se spouštějí běžnými požadavky — žádné příkazy k zapamatování. Po instalaci ho aktivují prompty jako tyto (anglicky):
/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