← 返回 Skills 市场
lanyasheng

Prompt Hardening

作者 _silhouette · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
88
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install prompt-hardening
功能描述
硬化 agent prompt、system prompt、SOUL.md、AGENTS.md、cron prompt 使 LLM 可靠遵循指令。触发词:agent 不听话、忽略规则、绕过约束、prompt 优化、指令合规、规则强化、prompt 硬化、LLM 不遵守、模型违规、creative circumve...
安全使用建议
This skill appears to do what it says: static guidance and a small local audit script for hardening prompts. Before installing or running it: (1) Review the audit script locally — it contains several shell-logic bugs (quoting/expansion issues) so its results may be unreliable; run it in a safe sandbox or inspect and fix it first. (2) Note SKILL.md asks you to 'identify model history violations' but doesn't specify which logs or data to use — don't let the agent start reading unrelated logs or private data without explicit operator consent. (3) The skill is advisory and says it will not auto-modify prompts; insist on manual operator approval before applying any changes. (4) If you plan to use automated enforcement, pair prompt hardening with code-level/tool hooks (the skill itself recommends that) rather than relying solely on prompt edits. If you want extra assurance, ask the author for clarity on how 'model history' should be obtained and for a corrected audit.sh implementation.
功能分析
Type: OpenClaw Skill Name: prompt-hardening Version: 1.0.0 The prompt-hardening skill bundle is a legitimate toolset designed to improve LLM instruction following through structured prompt engineering patterns. It contains a safe bash script (scripts/audit.sh) that performs local text analysis to score prompts against 16 hardening criteria and comprehensive documentation (SKILL.md, references/patterns.md) based on industry-standard research. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found.
能力评估
Purpose & Capability
Name/description (prompt hardening) match the provided artifacts: SKILL.md documents 16 hardening patterns, references, a simple audit script, and a smoke test. There are no env vars, binaries, or installs that are unrelated to auditing/rewriting prompts.
Instruction Scope
SKILL.md primarily instructs the operator/agent to read target prompt files and run scripts/audit.sh to produce a 16-point audit and suggested rewrites. This is within scope. Two caveats: (1) SKILL.md repeatedly says to 'identify model history violations' but doesn't define where or how to obtain model violation history (could imply reading logs or conversation history) — that is ambiguous and may require operator guidance to avoid overbroad data access; (2) SKILL.md explicitly states the skill is advisory and should not modify prompts automatically, which reduces risk if followed.
Install Mechanism
No install spec — instruction-only plus two small code files. Nothing downloaded from the network or installed on the host during skill activation.
Credentials
The skill requests no environment variables, credentials, or config paths. The actions described (reading prompt files and running a local audit script) are proportionate to the stated purpose.
Persistence & Privilege
always is false and there are no indications the skill modifies other skills or system-wide settings. The skill can be invoked autonomously by agents (platform default) but it does not request elevated or persistent privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install prompt-hardening
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /prompt-hardening 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the prompt-hardening skill for systematically strengthening agent and system prompts to improve instruction compliance. - Provides 16 hardening patterns with usage recommendations, quick reference, and reliability ratings. - Includes CLI tool for prompt audits with a 16-point checklist. - Documents clear usage boundaries—focuses on prompt compliance, not code-level enforcement or code review tasks. - Delivers audit results, hardened prompts, and violation analyses as output artifacts. - Advisory skill only; changes are not applied automatically.
元数据
Slug prompt-hardening
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

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 插件,目前累计下载 88 次。

如何安装 Prompt Hardening?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install prompt-hardening」即可一键安装,无需额外配置。

Prompt Hardening 是免费的吗?

是的,Prompt Hardening 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Prompt Hardening 支持哪些平台?

Prompt Hardening 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Prompt Hardening?

由 _silhouette(@lanyasheng)开发并维护,当前版本 v1.0.0。

💬 留言讨论