standr/refactor
Code craft
AI-generated code works. It just reads like five different developers wrote it in isolation. The refactor plugin brings coherence—consistent naming, aligned structure, reduced noise, and the kind of review a senior engineer would give before approving a merge.
10 skills
/scan Diagnose craft problems and recommend which skills to apply.
/normalize Unify style across related code.
/symmetry Align parallel functions, classes, and modules.
/distill Remove noise and reduce accidental complexity.
/rename Fix weak or misleading names.
/idiomatize Make code feel natural for the language and framework.
/make-explicit Improve clarity even at the cost of slight verbosity.
/comment-why Rewrite comments to explain reasoning, not obvious mechanics.
/decomment Delete useless comments.
/review-craft Critique code quality globally, beyond correctness.
Demo
Eight commands, one codebase
Eight focused examples from a small Python backend. Each command applied to a real problem: compressed names, inconsistent shapes, asymmetric vocabulary, repeated guards, tangled conditionals, a deprecated API, comment noise.
Fix weak or misleading names.
Look for: `d`, `p`, `x` are meaningless. `item`, `unit_price`, `order` say what they carry.
def build_receipt(d, p): v = d["qty"] * p t = {"q": d["qty"], "u": p, "v": v} return t def add_item(d, x): d["i"].append(x) return d
def build_receipt(item, unit_price): total = item["qty"] * unit_price receipt = {"qty": item["qty"], "unit_price": unit_price, "total": total} return receipt def add_item(order, item): order["items"].append(item) return order
Install
Choose your method.
$ npx standr install