πŸ”₯ Flame200 XP

Refactor to Clean Code

Write a prompt to modernize a legacy JavaScript module to TypeScript with proper types and smaller functions.

cursorclaude

Starter context

Legacy: 200-line utils.js with mixed concerns (HTTP + formatting + validation).

Evaluation criteria

  • Asks for incremental refactor steps
  • Preserves public API
  • Requests type annotations
  • Includes before/after example

Your prompt

Write a prompt between 50 and 5000 characters. Your draft saves locally in this browser.

0 / 5,000

70%

How confident are you that this prompt meets the evaluation criteria?

Sign in to submit

Monthly leaderboard

Coming in v1.5

Per-challenge rankings reset monthly. Top 10 scores go public when AI-powered challenge scoring ships in v1.5 β€” opt out to appear as Anonymous.

RankLearnerScorePassed
1β€”β€”β€”
2β€”β€”β€”
3β€”β€”β€”

Rankings use score, then earliest pass time. No global all-time board β€” beginner-friendly monthly resets only.

Coming in v1.5

Challenge threads ship in v1.5 with moderation and rate limits.