Token导航 LogoToken导航TokenDH.com
效率需要联网clawhub未标认证来源可访问clear审计通过

prompt-design-tuning提示设计调整

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

3,951

周安装

163

GitHub Stars

1

下载量

1,291
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:prompt-design-tuning(提示设计调整)
来源仓库:https://github.com/abysscat-yj/prompt-design-tuning
安装命令:
openclaw skills install prompt-design-tuning
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install prompt-design-tuning

简介

协同设计并迭代优化提示词的启动候选方案生成器。

  • 适用于遵循“人为控制、代理执行”原则的复杂任务场景。
  • 提供评估与推荐机制确保最终提示的有效性。
  • 需结合具体业务目标设定评估维度与权重标准。
  • 安装方式:通过 clawhub 平台使用 openclaw skills install prompt-design-tuning 命令部署。

SKILL.md

name
prompt_design_tuning_best_practice
description
Collaboratively design, evaluate, iterate on, and recommend a final launch candidate for a target prompt under the principle of “human-gated, agent-executed” workflow.

Prompt Design & Tuning Best Practices

The goal of this Skill is not to casually “chat about prompts,” but to turn prompt tuning into an executable, reviewable, and cost-controlled engineering workflow.

The Agent handles most of the execution work. Humans are responsible only for validating direction, approving high-cost loops, and signing off on the final launch candidate.


When to Use

Use this Skill when the user needs to:

  • design or optimize a target prompt from scratch
  • design a separate evaluation / judge prompt
  • compare the performance of multiple models on an evaluation set
  • work with an existing API curl, SDK integration, or request protocol
  • run controlled prompt iterations under a limited budget
  • turn prompt tuning into a reusable workflow instead of a one-off chat exercise

Working Modes

1. Design-Only Mode

Use this mode when:

  • there is no runnable environment yet
  • no evaluation resources are available yet
  • real model calls cannot be executed for now

In this mode, the Agent should produce:

  • task definition
  • target prompt draft
  • judge prompt draft
  • evaluation plan
  • script skeletons
  • manual execution guidance

2. Execution Mode

Use this mode when:

  • a runnable environment already exists
  • the model invocation method has been provided
  • the evaluation set, resource limits, and candidate models have been provided

In this mode, the Agent should continue with:

  • batch generation
  • automatic evaluation
  • result analysis
  • prompt iteration
  • final candidate recommendation

Core Principles

The following rules are non-negotiable by default:

  1. The target prompt and the judge prompt must be separated.

Do not silently modify both in the same comparison round and then mix their gains together.

  1. Before large-scale evaluation, the task definition (task spec) must be frozen first.
  1. Every round of prompt optimization must have a clear optimization hypothesis.

No random “this sentence feels off, let’s tweak it” behavior.

  1. An experiment log must be maintained, including at least:

- version number - summary of changes in the current round - optimization hypothesis - evaluation results - cost information - conclusion

  1. Any high-cost evaluation loop must be approved by a human beforehand.
  1. The final launch candidate must be reviewed by a human.

A high machine-evaluation score does not automatically mean it is ready for launch.

  1. If the input information is incomplete, low-risk assumptions may be made, but they must be stated explicitly.

Recommended Inputs to Collect

The Agent should gather or infer the following whenever possible:

  • business goal
  • user scenario
  • input format
  • output format
  • hard constraints
  • unacceptable errors
  • success criteria
  • online acceptance threshold
  • evaluation set
  • candidate models
  • invocation method (curl / SDK / API)
  • resource limits (TPM, RPM, timeout, budget, retry cap)

Target Deliverables

By default, the workflow should aim to produce the following:

  • docs/task_spec.md
  • prompts/production_prompt_v{n}.md
  • prompts/judge_prompt_v{n}.md
  • docs/eval_plan.md
  • scripts/run_generation.py
  • scripts/run_judge.py
  • reports/iteration_{n}_summary.md
  • reports/final_recommendation.md
  • reports/experiment_log.md

Human Gates

By default, human confirmation is required only at the following key checkpoints:

Gate A — Freeze the Task Definition

Confirm:

  • whether the task is understood correctly
  • whether the success criteria are reasonable
  • whether the constraints are complete

Gate B — Confirm the Direction of the Target Prompt

Confirm:

  • whether the target prompt is directionally correct
  • whether it is ready to enter evaluation

Gate C — Confirm the Direction of the Judge Prompt

Confirm:

  • whether the evaluation standard is fair
  • whether the judge is evaluating what actually matters

Gate D — Approve a High-Cost Iteration Loop

Confirm:

  • model list
  • TPM budget
  • number of iteration rounds
  • whether it is worth spending more resources

Gate E — Final Review

Confirm:

  • whether the current best version can serve as a launch candidate
  • whether to continue optimizing
  • whether to stop

Unless the user explicitly asks for finer-grained control, do not interrupt too frequently in the middle.


Execution Flow

Phase 0 — Task Definition (Task Spec)

Before writing any prompt, first establish a clear task definition.

The task definition should include at least:

  • problem description
  • input format
  • output format
  • business goal
  • user goal
  • constraints
  • explicitly forbidden outputs
  • positive and negative examples
  • success metrics
  • unresolved issues
  • current assumptions

If the user’s description is incomplete, do not stall. Fill in reasonable assumptions first, then present them for confirmation.

After this, proceed to Gate A.


Phase 1 — Generate the First Draft of the Target Prompt

Based on the task definition, produce the first draft of the target prompt.

Requirements:

  • instructions must be clear
  • constraints must be explicit
  • output structure must be stable
  • ambiguity should be minimized
  • controllability should be prioritized over fluffy “stylistic” wording
  • examples should be included only when they are truly helpful

Also output:

  • key design rationale
  • predicted risk points
  • likely failure scenarios
  • what to pay close attention to in the first evaluation round

After this, proceed to Gate B.


Phase 2 — Generate the First Draft of the Judge Prompt

Design an independent Judge / Eval Prompt.

Requirements:

  • evaluate the task outcome, not whether the prompt itself reads nicely
  • score across separate dimensions, then aggregate
  • include hard-fail categories
  • output must be structured JSON
  • minimize bias caused by stylistic model preferences
  • explicitly handle the following cases:

- partially correct outputs - format errors - misunderstanding of the task - unsafe or policy-violating content - reasonable uncertainty caused by incomplete task information

Also output:

  • scoring dimensions
  • weight design
  • hard-fail conditions
  • Judge output JSON schema
  • Judge blind spots

After this, proceed to Gate C.


Phase 3 — Design the Evaluation Plan

Before running large-scale evaluations, define the evaluation plan clearly.

The plan should include at least:

  • source and size of the evaluation set
  • sample slicing strategy (easy / medium / hard / edge cases)
  • online acceptance threshold
  • primary metrics
  • secondary diagnostic metrics
  • tie-breaking rules
  • maximum number of iteration rounds
  • total budget limit
  • early stopping conditions

Default loop policy:

  • by default, run at most 2 high-cost optimization rounds
  • stop if the gains are marginal and the failure types have not improved in substance
  • if the Judge itself looks unreliable, fix the Judge first instead of continuing to modify the target prompt

Phase 4 — Write the Generation Script

If executable conditions are available, the Agent should write a batch generation script.

The script should support, as much as possible:

  • jsonl / csv / excel input
  • multiple models
  • resume from checkpoint
  • retries and backoff
  • logging
  • strict input-output order preservation
  • TPM / RPM rate limiting
  • structured outputs for downstream evaluation

TPM Handling Principles

Do not crudely translate TPM directly into high concurrency.

Preferred approach:

  • estimate token consumption per request
  • use token-bucket or time-window rate limiting
  • use conservative concurrency when RPM and latency are unknown
  • prioritize stability before speed

Phase 5 — Batch Generate Model Outputs

Run the full evaluation set across all specified models and prompt versions.

At minimum, record:

  • model name
  • prompt version
  • input sample ID
  • raw output
  • token usage (if available)
  • latency
  • retry count
  • request failure information
  • truncation / parsing failures

If generation failures occur frequently:

  • first separate infrastructure issues from prompt issues
  • do not conclude that the prompt is bad before ruling out quota, network, rate-limiting, or protocol problems

Phase 6 — Run Automatic Evaluation

Use the Judge Prompt to evaluate generated outputs in batch.

Requirements:

  • Judge output must be structured JSON
  • raw judge outputs must be traceable
  • compute overall scores and slice-level metrics
  • automatically identify major failure clusters
  • distinguish format errors from content errors
  • if the Judge is noisy, state that explicitly instead of pretending the results are reliable

Phase 7 — Analyze and Optimize

A new prompt iteration is allowed only when there is a clear optimization hypothesis.

Each round must include:

  1. summarize the previous round’s results
  2. identify the major failure clusters
  3. propose the optimization hypothesis for this round
  4. modify only the most necessary prompt sections
  5. provide a version-diff summary
  6. predict what should improve and what may regress

Do not run another round for no reason.

If the next round will consume meaningful resources, go to Gate D first.


Phase 8 — Final Recommendation

Once a version reaches a sufficiently strong level, the Agent should produce a final review package.

It should include at least:

  • final target prompt
  • final judge prompt
  • recommended model
  • overall metrics
  • slice-level metrics
  • major remaining failure types
  • cost / latency notes
  • whether launch is recommended
  • what should be monitored after launch

After this, proceed to Gate E.


Default Outputs at Each Gate

Gate A Output

  • task definition document
  • current assumptions
  • missing information
  • recommended acceptance criteria

Gate B Output

  • target prompt v1
  • design rationale
  • expected risks

Gate C Output

  • judge prompt v1
  • scoring rubric
  • JSON schema
  • Judge blind spots

Gate D Output

  • current result comparison
  • failure analysis
  • prompt change summary
  • next-round optimization hypothesis
  • estimated resource consumption

Gate E Output

  • final candidate
  • why it is the current best version
  • where it may still fail
  • recommendation to launch / continue optimizing / stop

Default Analysis Templates

Experiment Log Fields

Each experiment round should record at least:

  • iteration
  • production_prompt_version
  • judge_prompt_version
  • model
  • dataset_version
  • hypothesis
  • change_summary
  • aggregate_score
  • slice_scores
  • dominant_failures
  • cost
  • verdict

Suggested Failure Taxonomy

The Agent should try to classify failures into one of the following:

  • task misunderstanding
  • missing constraints
  • extraction error
  • reasoning error
  • incomplete coverage
  • unsafe / policy-violating output
  • format / schema error
  • verbose / redundant output
  • hallucinated details
  • mismatch between Judge and actual task goal
  • infrastructure failure

Explicitly Forbidden Anti-Patterns

Do not do the following:

  • modify both the target prompt and the judge prompt in the same round without saying so
  • look only at aggregate score and ignore the failure distribution
  • overfit to a tiny evaluation set without warning about the risk
  • use machine evaluation as a substitute for final human review
  • loop endlessly because the score moved slightly
  • rewrite the whole prompt when only one part is broken
  • hide critical assumptions
  • declare success without showing hard examples

Default Behavior When the Skill Is Triggered

When this Skill is triggered, the Agent should follow this order:

  1. build or refresh the task definition
  2. determine which phase the workflow is currently in
  3. prioritize filling missing artifacts before rewriting existing ones
  4. prefer incremental optimization over full rewrites
  5. request confirmation only at the defined human gates
  6. after each major step, output a concise decision memo including:

- what changed - why it changed - which metrics improved - what major issues remain - whether another round is worth it


Example Trigger Phrases

The following requests are suitable triggers for this Skill:

  • “Help me automate this prompt tuning workflow”
  • “Write the target prompt first, then the judge prompt, then design the evaluation”
  • “Use the evaluation set and several models to find the current best prompt”
  • “Run 1 to 2 prompt iteration rounds under a controlled budget”
  • “Turn this prompt tuning process into a reusable agent skill”
  • “Let the agent drive the process, and keep humans only at key checkpoints”

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

73.36%
按下载量换算947

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills