DigiTransact · Vibe Coding Academy

DEVELOPMENT WORKBOOK

Debugging prompts

Work through 14 debugging tasks. Open a brief to see its worked example, customise the variables and copy the completed prompt.

← All categories
Diagnose a midnight date shift Intermediate

Trace where a date-only value becomes a timezone-aware instant.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Trace the fault using local synthetic evidence for {{project}}. Trace where a date-only value becomes a timezone-aware instant.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a ranked hypothesis list, one discriminating check and a narrow correction. Separate observations from hypotheses; state what would disprove the leading explanation.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A ranked hypothesis list, one discriminating check and a narrow correction. The trace compares the original date string with stored and rendered values.

Worked example

Input: birthday displayed one day early after saving.
Passing result: The trace compares the original date string with stored and rendered values.

Common mistakes

Follow-up prompts

Link to this prompt
Find a double-click cart increment Intermediate

Distinguish repeated events from duplicated state updates.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Trace the fault using local synthetic evidence for {{project}}. Distinguish repeated events from duplicated state updates.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a ranked hypothesis list, one discriminating check and a narrow correction. Separate observations from hypotheses; state what would disprove the leading explanation.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A ranked hypothesis list, one discriminating check and a narrow correction. A counted listener trace separates two handlers from two dispatches.

Worked example

Input: one tap sometimes adds two items.
Passing result: A counted listener trace separates two handlers from two dispatches.

Common mistakes

Follow-up prompts

Link to this prompt
Explain vanishing filter selections Intermediate

Locate the state reset during a results refresh.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Trace the fault using local synthetic evidence for {{project}}. Locate the state reset during a results refresh.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a ranked hypothesis list, one discriminating check and a narrow correction. Separate observations from hypotheses; state what would disprove the leading explanation.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A ranked hypothesis list, one discriminating check and a narrow correction. The check compares option identifiers before and after refresh.

Worked example

Input: selecting Kumasi unticks after new data arrives.
Passing result: The check compares option identifiers before and after refresh.

Common mistakes

Follow-up prompts

Link to this prompt
Investigate a frozen progress bar Intermediate

Separate stalled work from delayed progress rendering.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Trace the fault using local synthetic evidence for {{project}}. Separate stalled work from delayed progress rendering.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a ranked hypothesis list, one discriminating check and a narrow correction. Separate observations from hypotheses; state what would disprove the leading explanation.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A ranked hypothesis list, one discriminating check and a narrow correction. The trace compares terminal job state to the last rendered state.

Worked example

Input: import finishes but bar remains at 70%.
Passing result: The trace compares terminal job state to the last rendered state.

Common mistakes

Follow-up prompts

Link to this prompt
Correct a decimal total mismatch Intermediate

Identify where rounding happens across line items.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Trace the fault using local synthetic evidence for {{project}}. Identify where rounding happens across line items.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a ranked hypothesis list, one discriminating check and a narrow correction. Separate observations from hypotheses; state what would disprove the leading explanation.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A ranked hypothesis list, one discriminating check and a narrow correction. A fixture distinguishes per-line rounding from final-total rounding.

Worked example

Input: sum of displayed prices differs from invoice total.
Passing result: A fixture distinguishes per-line rounding from final-total rounding.

Common mistakes

Follow-up prompts

Link to this prompt
Trace focus lost after deletion Intermediate

Find why keyboard focus jumps to the document body.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Trace the fault using local synthetic evidence for {{project}}. Find why keyboard focus jumps to the document body.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a ranked hypothesis list, one discriminating check and a narrow correction. Separate observations from hypotheses; state what would disprove the leading explanation.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A ranked hypothesis list, one discriminating check and a narrow correction. The correction moves focus to the surviving adjacent action.

Worked example

Input: delete the middle row in a list.
Passing result: The correction moves focus to the surviving adjacent action.

Common mistakes

Follow-up prompts

Link to this prompt
Investigate stale search results Intermediate

Determine whether an older request overwrote a newer query.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Trace the fault using local synthetic evidence for {{project}}. Determine whether an older request overwrote a newer query.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a ranked hypothesis list, one discriminating check and a narrow correction. Separate observations from hypotheses; state what would disprove the leading explanation.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A ranked hypothesis list, one discriminating check and a narrow correction. The final visible results belong to tamale.

Worked example

Input: slow search for ta completes after tamale.
Passing result: The final visible results belong to tamale.

Common mistakes

Follow-up prompts

Link to this prompt
Explain an empty CSV first row Intermediate

Distinguish encoding markers from column-name errors.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Trace the fault using local synthetic evidence for {{project}}. Distinguish encoding markers from column-name errors.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a ranked hypothesis list, one discriminating check and a narrow correction. Separate observations from hypotheses; state what would disprove the leading explanation.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A ranked hypothesis list, one discriminating check and a narrow correction. The diagnostic compares actual header code points to the expected label.

Worked example

Input: first column visually reads Name but lookup fails.
Passing result: The diagnostic compares actual header code points to the expected label.

Common mistakes

Follow-up prompts

Link to this prompt
Diagnose duplicated scheduled reports Intermediate

Locate overlap between job scheduling and worker retries.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Trace the fault using local synthetic evidence for {{project}}. Locate overlap between job scheduling and worker retries.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a ranked hypothesis list, one discriminating check and a narrow correction. Separate observations from hypotheses; state what would disprove the leading explanation.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A ranked hypothesis list, one discriminating check and a narrow correction. Two run identifiers distinguish duplicate scheduling from repeat delivery.

Worked example

Input: same weekly summary appears twice.
Passing result: Two run identifiers distinguish duplicate scheduling from repeat delivery.

Common mistakes

Follow-up prompts

Link to this prompt
Repair a sticky loading skeleton Intermediate

Ensure every return path exits the loading state.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Trace the fault using local synthetic evidence for {{project}}. Ensure every return path exits the loading state.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a ranked hypothesis list, one discriminating check and a narrow correction. Separate observations from hypotheses; state what would disprove the leading explanation.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A ranked hypothesis list, one discriminating check and a narrow correction. A zero-item result reaches an explicit empty state.

Worked example

Input: empty successful response leaves shimmer visible.
Passing result: A zero-item result reaches an explicit empty state.

Common mistakes

Follow-up prompts

Link to this prompt
Trace a missing draft on back navigation Intermediate

Distinguish component unmounting from deliberate reset.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Trace the fault using local synthetic evidence for {{project}}. Distinguish component unmounting from deliberate reset.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a ranked hypothesis list, one discriminating check and a narrow correction. Separate observations from hypotheses; state what would disprove the leading explanation.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A ranked hypothesis list, one discriminating check and a narrow correction. The trace identifies which transition discarded the draft.

Worked example

Input: back from review clears the address.
Passing result: The trace identifies which transition discarded the draft.

Common mistakes

Follow-up prompts

Link to this prompt
Explain a one-page print cutoff Intermediate

Isolate height and overflow rules affecting print output.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Trace the fault using local synthetic evidence for {{project}}. Isolate height and overflow rules affecting print output.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a ranked hypothesis list, one discriminating check and a narrow correction. Separate observations from hypotheses; state what would disprove the leading explanation.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A ranked hypothesis list, one discriminating check and a narrow correction. The print fixture verifies both first and final rows are present.

Worked example

Input: page two disappears only when printing.
Passing result: The print fixture verifies both first and final rows are present.

Common mistakes

Follow-up prompts

Link to this prompt
Trace swapped list rows Intermediate

Distinguish unstable render keys from incorrect sorting.

Recommended tools: OpenAI Codex or Claude Code

Complete prompt

Trace the fault using local synthetic evidence for {{project}}. Distinguish unstable render keys from incorrect sorting.

Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver a ranked hypothesis list, one discriminating check and a narrow correction. Separate observations from hypotheses; state what would disprove the leading explanation.

Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.

Expected output

A ranked hypothesis list, one discriminating check and a narrow correction. The check tracks persistent record IDs through the sort.

Worked example

Input: editing one pupil changes another after sorting.
Passing result: The check tracks persistent record IDs through the sort.

Common mistakes

Follow-up prompts

Link to this prompt