Install
openclaw skills install @margaretzybgl/prompt-benchmark静态诊断 Prompt 质量、结构、安全性与模型兼容性
openclaw skills install @margaretzybgl/prompt-benchmarkProduce a reproducible static assessment of a prompt. Separate universal prompt quality from target-model compatibility, and never present static predictions as measured runtime performance.
Accept:
If context is missing, continue with explicit assumptions when a useful assessment is still possible. Lower confidence or mark criteria N/A instead of inventing requirements. Ask a question only when the missing information would materially change the assessment.
Treat model family names such as Claude, GPT, or DeepSeek as underspecified. State that family-level advice is being given unless an exact model/version is supplied.
Identify the task type, intended user, input, expected output, constraints, risk level, and target model. Distinguish requirements stated by the user from assumptions made during evaluation.
Choose an applicable task profile from references/scoring-rubric.md. Use the default weights only when no better profile applies.
For prompts available as text or files, run:
python3 {baseDir}/scripts/static_lint.py path/to/prompt.txt
Use - to read stdin and --format markdown for a readable summary. Treat script findings as leads, not final judgments: confirm each finding against the prompt before reporting it.
Read references/scoring-rubric.md completely and assess:
Apply only relevant criteria. Mark irrelevant criteria N/A and renormalize weights. Do not penalize a simple task merely for lacking a role, examples, XML tags, or a complex schema.
For each material finding provide:
Pass, Warning, Fail, or N/A;High, Medium, or Low.Do not expose hidden chain-of-thought. Give concise evaluative reasons and observable evidence.
Use the scoring anchors and severity caps in references/scoring-rubric.md.
Static compatibility prediction.Not measured unless actual runtime evidence was supplied.Follow references/report-schema.md. Lead with the verdict, top risks, and highest-leverage fixes. Include detailed checks after the scorecard.
Return an improved prompt only when requested or when it is clearly useful. Keep diagnosis and rewriting distinct: do not claim the rewrite performs better without runtime evidence.
Write the report in the user's language unless the user requests another language.
Detect examples by meaning, not only by headings. Count paired demonstrations such as input/output records, conversations, classification cases, and structured examples.
Do not automatically penalize zero-shot prompts. First determine example necessity:
Low: straightforward transformation or open-ended generation;Medium: strict format, nuanced style, or several interacting constraints;High: ambiguous labels, boundary decisions, complex business rules, or exact schema behavior.When necessity is high and no useful demonstration exists, recommend one representative example plus one boundary or failure example. An incorrect or contradictory example is more harmful than no example.
Read references/model-compatibility.md when a target model or comparison is requested.
Use verified, current model documentation supplied by the user or available through approved sources when precise capability claims matter. Otherwise:
Cross-model output is a portability risk matrix, not a runtime leaderboard.
This version performs static evaluation. It may recommend a future dynamic plan, but must not execute external model calls by default.
When dynamic testing would materially improve confidence, propose:
Always display dynamic metrics as Not run in a static report.
A trustworthy benchmark:
N/A decisions;