← 返回 Skills 市场
Prompt Hardening
作者
_silhouette
· GitHub ↗
· v1.0.0
· MIT-0
130
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install prompt-hardening-v2
功能描述
硬化 agent prompt、system prompt、SOUL.md、AGENTS.md、cron prompt 使 LLM 可靠遵循指令。触发词:agent 不听话、忽略规则、绕过约束、prompt 优化、指令合规、规则强化、prompt 硬化、LLM 不遵守、模型违规、creative circumve...
安全使用建议
This skill appears to be what it claims: an advisory/audit toolkit for hardening prompts. Before installing or running it: 1) Inspect and remove or fix tests/test_smoke.py (it checks a hard-coded /Users/sly path which is environment-specific and should not be required). 2) Run scripts/audit.sh only on copies of your prompt files to avoid accidental edits; the script only greps content but verify behavior locally. 3) Clarify where 'model historical violations' data comes from — do not grant the skill access to conversation logs, secrets, or other unrelated data unless you intend to. 4) Review references/sources.md: it cites 'leaked system prompts' — using such material may have legal or ethical implications; vet the sources and licensing. 5) For critical enforcement (safety, code execution, or privileged actions), follow the SKILL.md guidance to pair prompt hardening with code-level (tool/hook) enforcement rather than relying on prompts alone.
功能分析
Type: OpenClaw Skill
Name: prompt-hardening-v2
Version: 1.0.0
The bundle is a utility toolkit designed to improve LLM instruction-following through 'prompt hardening' techniques. It includes a shell script (scripts/audit.sh) for static analysis of prompt files and comprehensive documentation (SKILL.md, references/patterns.md) on defensive prompt engineering. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found; the tool's logic is strictly focused on auditing and optimizing agent reliability.
能力评估
Purpose & Capability
The name, description, SKILL.md, patterns, and scripts all align with 'prompt hardening' and provide audit/checklist functionality. The included scripts and references are relevant. Minor oddity: tests/test_smoke.py asserts a hard-coded local path (/Users/sly/.openclaw/skills/...), which is unrelated to functionality and likely an auto-generated or environment-specific artifact that should be removed or adjusted.
Instruction Scope
SKILL.md is primarily advisory and instructs reading target prompt files and running scripts/audits. It explicitly states it will not automatically modify targets and requires operator action to apply changes. One ambiguity: it recommends '识别模型历史违反过的规则' (identify historical violations) but does not specify where to obtain conversation history — ensure the operator does not grant the skill access to unrelated logs or private transcripts unless intended.
Install Mechanism
No install spec and no third-party downloads — the skill is instruction-heavy with a small local audit shell script and docs. This is low-risk from an installation/execution perspective. audit.sh merely reads a prompt file and checks for keywords.
Credentials
The skill requests no environment variables, credentials, or config paths. The only potential concern is that references/sources.md cites a repository described as 'leaked system prompts' — this is a content provenance/ethical/legal concern, not a credential request.
Persistence & Privilege
Flags are default (always:false, user-invocable:true). The skill does not request persistent presence or elevated platform privileges and the SKILL.md warns that changes should be applied manually or via another executor skill.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install prompt-hardening-v2 - 安装完成后,直接呼叫该 Skill 的名称或使用
/prompt-hardening-v2触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: harden agent prompts for reliable instruction following
元数据
常见问题
Prompt Hardening 是什么?
硬化 agent prompt、system prompt、SOUL.md、AGENTS.md、cron prompt 使 LLM 可靠遵循指令。触发词:agent 不听话、忽略规则、绕过约束、prompt 优化、指令合规、规则强化、prompt 硬化、LLM 不遵守、模型违规、creative circumve... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 130 次。
如何安装 Prompt Hardening?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install prompt-hardening-v2」即可一键安装,无需额外配置。
Prompt Hardening 是免费的吗?
是的,Prompt Hardening 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Prompt Hardening 支持哪些平台?
Prompt Hardening 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Prompt Hardening?
由 _silhouette(@lanyasheng)开发并维护,当前版本 v1.0.0。
推荐 Skills