Spark150 XP

Debug the Bug

Given a broken TypeScript function, write a debugging prompt that helps an AI find and fix the issue without rewriting the entire file.

cursorclaudechatgpt

Starter context

const sum = (nums: number[]) => nums.reduce((a, n) => a + n, 0); console.log(sum([1, 2, "3"]));

Evaluation criteria

  • Includes the buggy code snippet
  • Asks for root cause explanation
  • Requests minimal diff fix
  • Adds a test case to prevent regression

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.