A prompt skill to rewrite API errors without leaking internals
Keep a stable error code the client already knows. Strip stack paths, SQL, and hostnames. EMPTY body is allowed with a code.
What to do first
- Keep a stable error code the client already knows. Strip stack paths, SQL, and hostnames. EMPTY body is allowed with a code.
- Run the compare in a new chat when the first chat wrote the draft you are checking.
- Keep marks short: OK / FIX / DROP (or the skill-specific tags below).
Pack
Paste only what the skill may use. Invented paths outside the pack are DROP.
Prompt
Skill: ai-api-error-message-check
Keep a stable error code the client already knows. Strip stack paths, SQL, and hostnames. EMPTY body is allowed with a code.
PACK:
[paste source]
Return one block per item with a mark and a one-line reason.
Do not rewrite the whole file unless I ask.

Marks
| Mark | Meaning |
|---|---|
| OK | Matches the pack |
| FIX | Wrong, but a precise edit is clear |
| DROP | Invented or unsafe — do not publish |

Loop

Related
Share