re-frame2-improver

Reviews existing re-frame2 ClojureScript code against an anti-pattern catalogue and reports severity-ordered findings.

49|Updated May 7, 2026
One-click install
npx skills add https://github.com/day8/re-frame2 --skill re-frame2-improver-day8
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: re-frame2-improver
Source: https://github.com/day8/re-frame2/tree/main/skills/re-frame2-improver
Command: npx skills add https://github.com/day8/re-frame2 --skill re-frame2-improver-day8

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Existing re-frame2 codebases accumulate anti-patterns — hand-rolled HTTP retry loops, boolean subscription clusters acting as ad-hoc state machines, manual loading flags, schemaless boundary events, imperative effects in handlers, and view-side hook state — that are hard to spot and tedious to audit by hand. This Skill statically critiques a body of re-frame2 source in one pass and returns every material finding with concrete evidence and the smallest safe correction. ## Core Features & Use Cases - Anti-pattern detection: Routes greppable signals in the in-scope .cljs / .cljc source to a six-leaf catalogue, each leaf carrying detection rules, symptom examples, and edge cases that pre-empt false positives. - Severity-ordered critique: Returns findings highest consequence first, each with path:line evidence, concrete consequence, smallest safe correction, and a cross-link to the canonical idiom under skills/re-frame2/patterns/ or spec/. - Intent-gated fixes: A plain review request stays read-only; a direct "fix it" request authorises safe in-scope edits, while cross-cutting redesigns remain proposals. - Use Case: Paste a snippet from cart/handlers.cljs and ask for an anti-pattern audit; the Skill loads only the matching catalogue leaves, consolidates co-occurring findings that share one refactor, and delivers the complete critique in the same turn. ## Quick Start Ask the assistant to review your re-frame2 code for anti-patterns, pasting a ClojureScript snippet or naming a .cljs file or directory to audit.

Frequently Asked Questions about re-frame2-improver

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review re-frame2 code for anti-patterns?▼

Ask for a review, audit, or critique of your re-frame2 code with source in scope — paste a ClojureScript snippet or name a .cljs or .cljc file or directory. The Skill reads the source, detects catalogue anti-patterns, and returns every material finding in one turn.

What anti-patterns does re-frame2 code review detect?▼

The catalogue covers six anti-patterns: manual HTTP retry loops, boolean discriminator subscription clusters, manual loading flags, schemaless boundary events, imperative effects in event handlers, and view-side hook state holding non-render-local state.

Does the re-frame2-improver skill apply fixes automatically?▼

No, a plain review or audit request is read-only and only states the smallest safe correction per finding. A direct fix request authorises safe edits inside the named scope, while cross-cutting redesigns always remain proposals.

When should I not use re-frame2-improver for ClojureScript work?▼

Do not use it for greenfield bootstrap, authoring new code, live-runtime inspection, pair-session retros, re-frame v1 to v2 migration, Reagent-to-Fresco porting, or porting the re-frame2 framework itself. Those tasks route to sibling skills in the re-frame2 family.

Why does re-frame2-improver decline some review requests?▼

It activates only when three filters hold: explicit review phrasing, a body of re-frame2 source in scope, and the task not belonging to a sibling skill. Vocabulary alone without a file, snippet, or resolvable path fails the source-in-scope filter.