360 Secure SkillHub
360 安全技能中心

prompt-ab-lab

该 Skill 帮助用户系统化设计提示词 A/B 实验:先明确成功标准,再生成评测准则与结构化测试表,逐用例记录输出并计算加权得分,比较权衡后给出下一轮迭代建议,交付实验计划、评分对比表与准则,并附带本地 Python 记录脚本。

52yuanchangxing
52yuanchangxing
热度 80.97
最近更新 2026-05-11 17:31:16
分类:数据依赖:代码执行 / 读写文件应用场景:研究 / 报告撰写 / 数据处理 / 模板

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add prompt-ab-lab
Metadata
name
prompt-ab-lab
description
Design, log, compare, and score prompt experiments so users can systematically improve outputs instead of guessing.
version
1.1.0
metadata
{"openclaw":{"requires":{"bins":["python3"]},"emoji":"🧰"}}

Prompt A/B Lab

Purpose

Design, log, compare, and score prompt experiments so users can systematically improve outputs instead of guessing.

Trigger phrases

  • 比较两个提示词
  • prompt ab test
  • 提示词实验
  • 哪个 prompt 更好
  • 建一个评测表

Ask for these inputs

  • prompt A and B
  • task
  • evaluation criteria
  • test set
  • weights if any

Workflow

  1. Define what success looks like before comparing prompts.
  2. Generate an evaluation rubric and structured test table.
  3. Log outputs per test case and compute weighted scores.
  4. Summarize tradeoffs instead of declaring a winner too early.
  5. Recommend the next experiment iteration.

Output contract

  • experiment plan
  • scored comparison table
  • rubric
  • next-iteration suggestions

Files in this skill

  • Script: {baseDir}/scripts/prompt_experiment_logger.py
  • Resource: {baseDir}/resources/eval_rubric.md

Operating rules

  • Be concrete and action-oriented.
  • Prefer preview / draft / simulation mode before destructive changes.
  • If information is missing, ask only for the minimum needed to proceed.
  • Never fabricate metrics, legal certainty, receipts, credentials, or evidence.
  • Keep assumptions explicit.

Suggested prompts

  • 比较两个提示词
  • prompt ab test
  • 提示词实验

Use of script and resources

Use the bundled script when it helps the user produce a structured file, manifest, CSV, or first-pass draft. Use the resource file as the default schema, checklist, or preset when the user does not provide one.

Boundaries

  • This skill supports planning, structuring, and first-pass artifacts.
  • It should not claim that files were modified, messages were sent, or legal/financial decisions were finalized unless the user actually performed those actions.

Compatibility notes

  • Directory-based AgentSkills/OpenClaw skill.
  • Runtime dependency declared through metadata.openclaw.requires.
  • Helper script is local and auditable: scripts/prompt_experiment_logger.py.
  • Bundled resource is local and referenced by the instructions: resources/eval_rubric.md.