Source note: Adapted from my original write-up on X. You can inspect and download the packaged prompt-optimizer Skill on Boloop or view commit 7933467 on GitHub.

“Don’t make the search box query on every keystroke—wait until I pause before searching.”

That was the first sentence I gave prompt-optimizer in its opening test round.

A frontend engineer reading that would simply say, “Oh, add input debounce.” Yet for the person typing it, what makes a search box pleasant is whether it waits while they are still typing—nobody cares where the term “debounce” came from.

Still, that exact domain term helps the coding agent doing the work next. In the rewrite, the concrete mechanism is spelled out too: while typing continuously, cancel any pending search that hasn’t fired yet, wait until the final input pauses, then send the request. Afterward, open the browser’s Network panel, type several characters in a row, and check when the request actually goes out.

That small handoff is what I find compelling: you keep speaking the way you naturally talk, and by the time the request reaches an agent like Codex, it already carries the code-inspection steps and verification cues needed to act cleanly.

Cutting noise first, then sharpening translation

In the previous write-up, I focused on teaching the Skill when to stay quiet. Earlier, replying “you decide” could accidentally trigger another confirmation round—and nobody wants to confirm whether they meant “continue.” So those replies now pass straight through; the Skill only steps in with one short rewrite and asks approve / edit / use original when rewriting actually helps.

This update sharpens that single paragraph: when a user describes a visual effect or bug symptom in everyday words and a clear domain term removes ambiguity, the Skill supplies the term while keeping the observable outcome intact.

For a login card, “looks like frosted glass showing the layer behind it” becomes glassmorphism, paired with backdrop blur, readable text contrast, and clear input focus states. By contrast, “make the homepage feel more premium” is genuinely open—so the Skill avoids guessing one arbitrary style, instead naming hierarchy, whitespace, and typography directions for the user to choose.

Black-box tests across English, Japanese, Spanish, and Chinese

Testing only frontend cases I already know doesn’t prove much. So I gave two independent read-only agents the updated SKILL.md and 12 cold test inputs—with no prior conversation—spanning Chinese, English, Japanese, and Spanish.

English: “The longer a web tab stays open, the slower a button gets”

It is tempting to jump straight to “fix the memory leak.” With only a symptom in hand, how could anyone be sure it’s memory? The rewrite put memory leaks, uncleaned timers/listeners, growing state or DOM nodes, and main-thread long tasks on the table—and specified how to judge:

Inspect the relevant source code and verify against real runtime evidence using browser DevTools profiling (Performance recordings and Memory heap snapshots over time)

Record Performance first, compare heap snapshots across time, apply the smallest fix only with evidence, and re-test clicking the button after keeping the tab open long enough. That subtle “open for a long time” in the user’s wording decides how verification must include elapsed time.

Japanese: Two people editing the same order

When two people edit one order simultaneously, the later submission from an older version must not silently overwrite the first save. The technical name is a lost update (optimistic locking / conflict detection), while the acceptance line stays crystal clear to anyone:

古い版をもとにした保存リクエストは上書きせず明示的に競合として拒否する挙動とし、前提となるコードやスキーマ情報が不足している場合は推測せず不足点を報告してください。

The first save survives; the stale submission gets an explicit conflict rejection—and if order model or schema details are missing, report the gap instead of guessing.

SQL optimization & CI/CD rollback

A 20-second report query where numbers must not change was rewritten to inspect the execution plan and compare both row values and query duration before/after. A request to auto-check, deploy on push, and revert if broken mapped to CI/CD gates and rollback—while leaving provider choice to the repository’s existing stack.

Spanish copy, invoice OCR, vendor contracts, and medical search

  • Spanish landing page for small shop owners: “Don’t sound like a corporate robot.” The Skill preserved Spanish, focused on above-the-fold value proposition, daily help for shop owners, and one next step—and kept product honesty explicit:
Apóyate en la información real del producto y deja marcados como espacios por completar los datos o funciones que aún no se hayan proporcionado.
  • Hundreds of invoice photos into a spreadsheet: Mapped to batch OCR and field extraction, flagging unreadable totals for human review and spot-checking real receipts.
  • Vendor contract traps: Directed the assistant to look for unilateral price hikes, cap clauses, and exit notice deadlines, pointing each judgment back to exact contract lines.
  • Chinese medical search (“Does intermittent fasting help fatty liver? No clickbait tone”): Concrete metrics—liver fat content, liver enzymes, and fibrosis—grounded in RCTs, systematic reviews, and clinical guidelines, explicitly separating whether benefits come from fasting timing itself or simply total calorie restriction and weight loss.

What it left untouched—and what remains unproven

One test input was not rewritten at all:

Change the primary submit button color in src/App.tsx to #2563eb

Target file, element, and exact hex color were already concrete, so it passed silently as a SKIP. First-round results scored 12/12 (11 rewritten as expected, 1 explicit instruction silently skipped).

Honest boundary: does executing the rewritten prompt produce measurably better code, reports, or copy than running the raw prompt directly? We don’t have numbers for that yet—this round only verified up to the confirmation step. End-to-end A/B execution comparisons still lie ahead.

Next time you want a search box to pause before firing, just type how you normally say it—check whether the rewritten terms match what you meant, or reply use original. You can inspect `commit 7933467`, explore github.com/TinkCarlos/prompt-optimizer, or download the prompt-optimizer Skill on Boloop.