Pack

Pack 322 · AI · 22 items

Legacy Code & Hard Bugs Pack

20 prompts + 2 skills for legacy code, refactoring and hard-to-find bugs — real jobs from the week, with the steps, rules and output an expert would ask for.

€6one-time · 22 prompts & skills · ≈ €0.27 each

  • Instant download
  • Yours to keep
  • Works in ChatGPT, Claude, Gemini
Also in the AI, code & security Bundle16 packs for €29 · save €67

What's inside

Made for legacy code, refactoring and hard-to-find bugs

20 prompts + 2 skills
  1. Prompt
    Async/Await And Promise Pitfall Review

    Finds unawaited promises, swallowed rejections, and sequential-vs-parallel mistakes in async JavaScript or TypeScript.

  2. Prompt
    Cross-Language Bug Translation Review

    Reviews code ported between languages for semantic mistranslations in types, errors, and standard-library behavior.

  3. Prompt
    Floating-Point And Numeric Precision Bug Review

    Detects precision loss, comparison errors, and rounding bugs in numeric and financial code.

  4. Prompt
    Git Bisect And Regression Localization Plan

    Designs a bisect-driven strategy to pinpoint the commit that introduced a regression and confirm the culprit.

  5. Prompt
    Heisenbug Reproduction Strategy

    Builds a systematic plan to reliably reproduce a rare, hard-to-trigger intermittent bug before attempting a fix.

  6. Prompt
    Legacy Code Comprehension And Bug Hunt

    Explains an unfamiliar legacy file and surfaces latent bugs and risky areas before you change it.

  7. Prompt
    Memory Leak And Resource Exhaustion Investigation

    Tracks down growing memory, unclosed handles, and unbounded structures, then recommends bounded, leak-free patterns.

  8. Prompt
    Off-By-One And Boundary Bug Localizer

    Pinpoints index, loop bound, and slicing errors by exhaustively reasoning through boundary inputs.

  9. Prompt
    Algorithm Complexity And Optimization Coach

    Analyzes time/space complexity of code and proposes algorithmic improvements with honest trade-offs.

  10. Prompt
    Code Smell Detector With Refactoring Recipes

    Identifies named code smells in a snippet and prescribes the matching refactoring with before/after examples.

  11. Prompt
    Distributed Systems Failure Mode Reviewer

    Stress-tests a distributed design against partition, retry, ordering, and partial-failure scenarios.

  12. Prompt
    Git History Forensics And Bisect Guide

    Uses git history and bisection logic to localize the commit that introduced a regression with minimal steps.

  13. Prompt
    Idiomatic Code Translation Between Languages

    Ports code to a target language using native idioms and libraries, not a literal line-by-line transliteration.

  14. Prompt
    Legacy Code Refactoring Strategist

    Plans a safe, incremental refactor of tangled legacy code with characterization tests and reversible seams.

  15. Prompt
    Memory Leak And Resource Exhaustion Analyst

    Hunts memory leaks and resource exhaustion by tracing object retention and lifecycle, with targeted instrumentation.

  16. Prompt
    Pair Programming Socratic Mentor

    Coaches a developer through a problem by asking guiding questions and revealing solutions only on request.

  17. Prompt
    Regex Builder And Explainer

    Constructs a precise, safe regular expression and explains each component, with tests and ReDoS warnings.

  18. Prompt
    Security-Focused Code Review For Pull Requests

    Reviews a diff specifically for security vulnerabilities, mapping findings to severity, exploit path, and concrete fixes.

  19. Prompt
    Self-Critiquing Code Generator

    Generates a solution, then adversarially critiques and revises it before presenting a hardened final version.

  20. Prompt
    Unit Test Generator With Edge Case Coverage

    Generates a complete test suite that maps each assertion to a behavior, prioritizing boundaries and failure modes.

  21. Skill
    Legacy Code Refactoring Strategist

    Plans safe, incremental refactors of legacy systems using characterization tests and strangler patterns.

  22. Skill
    Prompt Refactoring & Modernization Consultant

    Modernizes legacy prompts to current best practices, removing anti-patterns and aligning with new model capabilities.

What you download

Everything comes in one pack (.zip) you keep. Start with 00-GIVE-THIS-TO-YOUR-AI.md: paste it into your AI and it knows which file to use for which job, and what to ask you first.

More for Developers

legacy-code-hard-bugs/
├─ 00-GIVE-THIS-TO-YOUR-AI.md
├─ START-HERE.md
├─ TIPS-AND-FOLLOW-UPS.md
├─ AI-CHEAT-SHEET.md
├─ prompts/
│  ├─ 01-asyncawait-and-promise-pitfall-review.md
│  ├─ 02-cross-language-bug-translation-review.md
│  ├─ 03-floating-point-and-numeric-precision-bug-review.md
│  ├─ 04-git-bisect-and-regression-localization-plan.md
│  ├─ 05-heisenbug-reproduction-strategy.md
│  ├─ 06-legacy-code-comprehension-and-bug-hunt.md
│  ├─ 07-memory-leak-and-resource-exhaustion-investigation.md
│  ├─ 08-off-by-one-and-boundary-bug-localizer.md
│  ├─ 09-algorithm-complexity-and-optimization-coach.md
│  ├─ 10-code-smell-detector-with-refactoring-recipes.md
│  ├─ 11-distributed-systems-failure-mode-reviewer.md
│  ├─ 12-git-history-forensics-and-bisect-guide.md
│  ├─ 13-idiomatic-code-translation-between-languages.md
│  ├─ 14-legacy-code-refactoring-strategist.md
│  ├─ 15-memory-leak-and-resource-exhaustion-analyst.md
│  ├─ 16-pair-programming-socratic-mentor.md
│  ├─ 17-regex-builder-and-explainer.md
│  ├─ 18-security-focused-code-review-for-pull-requests.md
│  ├─ 19-self-critiquing-code-generator.md
│  └─ 20-unit-test-generator-with-edge-case-coverage.md
└─ skills/
   ├─ legacy-code-refactoring-strategist/SKILL.md
   └─ prompt-refactoring-modernization-consultant/SKILL.md

A look inside

Prompt · Async/Await And Promise Pitfall Review · opening lines
ROLE: You are a JavaScript/TypeScript reviewer specializing in asynchronous code correctness.

CONTEXT: The async code below runs in [NODE/BROWSER/DENO]. Reported issue: [UNHANDLED_REJECTION / SLOW / RACE / …

Questions

What do I get?

A .zip with 20 prompts + 2 skills for legacy code, refactoring and hard-to-find bugs: each prompt as a ready .md file, each skill as a SKILL.md folder, plus 00-GIVE-THIS-TO-YOUR-AI.md (a start file your AI reads first), START-HERE.md, TIPS-AND-FOLLOW-UPS.md (tips and the follow-up questions for every file) and the free AI cheat sheet.

How do I use it?

Open ChatGPT, Claude or Gemini and paste 00-GIVE-THIS-TO-YOUR-AI.md, or attach the folder. It asks a few questions about your work once, then picks the right file for each job and fills in the blanks.

Is it a subscription?

No. €6 once, and the files are yours to keep. Nothing renews.

How do I download it?

Right after checkout, on the confirmation page. Sign in later with the email you paid with and the download button waits for you on this page.

Why this price?

Packs are priced by what they hold: €0.50 a prompt and €1 a skill. This one is €6, about €0.27 an item.

All packs
Pack 307 · Prompts & skills

Prompt Architecture

2 prompts & 9 skills
Pack 308 · Prompts

AI Coding Workflow

14 prompts
Pack 310 · Prompts

AI Agent Design

15 prompts