Introducing /refine

1 min read
Published

/refine is a skill that helps agents take the step from “make it work” to “make it right”.

Download /refine at https://github.com/thehale/skills

The skill directs the agent to work with you in three phases

  1. Align on domain terminology and public APIs (highly collaborative)
  2. Refine the code architecture (mix of collaboration/automation)
  3. Refine each layer of the implementation to avoid multiple common code smells (largely automated)
  • Loop until no more refinement opportunities are found

It’s synthesized from hundreds of my own points of feedback to coding agents, Jorge Manrubia’s Code I Like series, and a few other refactoring guides I really like1.

The results have been excellent for me. It’s easily the most robust way I’ve developed so far for turning a slop grenade into something that resembles the quality I strived for in my handcrafted code.