← Back to Skills Marketplace
lanyasheng

Prompt Hardening

by _silhouette · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
88
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install prompt-hardening
Description
硬化 agent prompt、system prompt、SOUL.md、AGENTS.md、cron prompt 使 LLM 可靠遵循指令。触发词:agent 不听话、忽略规则、绕过约束、prompt 优化、指令合规、规则强化、prompt 硬化、LLM 不遵守、模型违规、creative circumve...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install prompt-hardening
  3. After installation, invoke the skill by name or use /prompt-hardening
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug prompt-hardening
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Prompt Hardening?

硬化 agent prompt、system prompt、SOUL.md、AGENTS.md、cron prompt 使 LLM 可靠遵循指令。触发词:agent 不听话、忽略规则、绕过约束、prompt 优化、指令合规、规则强化、prompt 硬化、LLM 不遵守、模型违规、creative circumve... It is an AI Agent Skill for Claude Code / OpenClaw, with 88 downloads so far.

How do I install Prompt Hardening?

Run "/install prompt-hardening" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Prompt Hardening free?

Yes, Prompt Hardening is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Prompt Hardening support?

Prompt Hardening is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Prompt Hardening?

It is built and maintained by _silhouette (@lanyasheng); the current version is v1.0.0.

💬 Comments