360 Secure SkillHub
360 安全技能中心

prompt-debugging-workflow

针对 LLM 提示词或工作流出现输出错误、格式不符、规则失效或效果退化的情况,提供从复现、失败归类、指令二分、冲突检查、单点修复到回归测试的系统化调试流程,并产出调试日志。

分类:开发
manteclaw
manteclaw
热度 40.65
最近更新 2026-12-04 10:35:59

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add manteclaw/prompt-debugging-workflow
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
prompt-debugging-workflow
version
1.0.1
description
Debug a misbehaving prompt systematically: reproduce, isolate, bisect the instructions, and fix the smallest thing. Use when an LLM workflow gives wrong, inconsistent, or drifting outputs.

Prompt Debugging Workflow

Overview

Prompt bugs feel random because several causes look identical: ambiguous instructions, conflicting rules, missing examples, context rot. This workflow separates them with experiments instead of vibes.

When to use

When an agent or prompt produces wrong format, ignores a rule, hallucinates a field, or degraded after an edit.

Workflow

  1. Reproduce — save the exact failing input, the exact output, and the model/settings; no fix attempts before this exists
  2. Classify the failure — wrong content, wrong format, missing step, invented content, or instruction ignored
  3. Bisect — remove half the instructions; if the failure survives, it lives in the other half; repeat until the culprit instruction is isolated
  4. Check for conflicts — two rules that cannot both be satisfied will be resolved unpredictably; find and rewrite the pair
  5. Add one targeted fix — a clarifying sentence, a single example, or a format scaffold; one change at a time
  6. Regression-test — rerun the failing case plus three previously passing cases before declaring the fix

Guardrails

  • Never fix by appending 'IMPORTANT: really do X' — find why X was not done
  • Never change the model and the prompt in the same experiment
  • Keep the failing cases as a permanent test set

Output format

A debug log: failing case, classification, bisection result, the fix, and regression results.


Part of the Manteclaw free skill series. These workflow skills are free forever; Manteclaw's paid automation tools (runnable code, not just prompts) live at payhip.com/Manteclaw.