← 返回 Skills 市场
Promptbuddy Lite
作者
Steventsang18
· GitHub ↗
· v3.0.0
· MIT-0
191
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install promptbuddy-lite
功能描述
【全局自动激活技能】 ⚠️ 每次收到用户消息时,必须先执行以下步骤: 1. 调用命令优化用户输入: ```bash cd ~/.openclaw/workspace/skills/promptbuddy-lite && bash scripts/preprocess.sh "用户输入" ``` 2. 根据返回结果...
安全使用建议
This skill's code looks like a reasonable shell prompt-optimizer, but there are several mismatches you should consider before installing or enabling it:
- The README/manifest claims 'zero dependencies' but scripts call python3. Ensure you have python3 and inspect the python scripts the shell calls.
- The included install.sh requires sudo and will copy binaries to /usr/local/bin and write /etc/promptbuddy-lite/config.json. Do not run install.sh with root unless you trust the author and have reviewed the scripts.
- preprocess.sh will be invoked per-message if you follow the SKILL.md flow: it writes preferences in $HOME/.openclaw/, creates /tmp/pb_last_metadata.json, and will execute collect_feedback_safe.py from $HOME/.openclaw/workspace/skills/promptbuddy-optimizer if that directory exists. That means it can run code from another skill; inspect that collector script (not included here) to confirm it doesn't exfiltrate data.
- The feedback pipeline attempts to strip raw user input from metadata, but you should inspect the collector (promptbuddy-optimizer/scripts/collect_feedback_safe.py) to be sure. If you cannot review that file, consider disabling the feedback path.
Recommended actions:
1) Review all included scripts locally (promptbuddy.sh, preprocess.sh, feedback.sh, install.sh) and any referenced collector scripts before running.
2) If you need to test, run scripts in a sandboxed account/container and avoid running install.sh with sudo until you are comfortable.
3) If you want the optimizer but not persistence, run the promptbuddy.sh directly from the skill directory instead of performing the system-wide install.
Given these inconsistencies (zero-dep claim vs python usage, system-wide install, execution of another skill’s script), treat the skill as suspicious until you verify the external collector and are comfortable with the install behavior.
功能分析
Type: OpenClaw Skill
Name: promptbuddy-lite
Version: 3.0.0
The skill bundle is a lightweight prompt optimization tool based on the HMAW hierarchical architecture. It uses Bash scripts (promptbuddy.sh, preprocess.sh) to perform keyword-based intent recognition and template-based prompt construction. While the installation script (install.sh) requires sudo to place utilities in /usr/local/bin and the feedback script (feedback.sh) references a secondary 'optimizer' skill directory, the code logic is transparent and lacks any indicators of data exfiltration, malicious remote execution, or harmful prompt injection.
能力评估
Purpose & Capability
The skill claims '零依赖 / pure Shell' but multiple scripts call python3 to parse JSON (preprocess.sh, feedback.sh). The package contains an install.sh that writes binaries to /usr/local/bin and creates /etc/promptbuddy-lite — actions that require root and are not reflected in registry metadata (no install spec). These are disproportionate to the simple 'prompt optimization' description and contradict the zero-dependency claim.
Instruction Scope
SKILL.md and the provided top-level instructions require invoking scripts/preprocess.sh for each user message. preprocess.sh reads/writes files in the user's home (~/.openclaw/.pb_show_prompt), creates /tmp/pb_last_metadata.json, and — if present — executes an external script from $HOME/.openclaw/workspace/skills/promptbuddy-optimizer/scripts/collect_feedback_safe.py (i.e., code belonging to another skill). Executing code from another skill's directory and writing temp/pref files for every message is broader scope than a pure, stateless optimizer and could result in unexpected data flows.
Install Mechanism
There is no registry install spec but an install.sh is included that requires sudo, copies scripts to /usr/local/bin, and creates /etc/promptbuddy-lite/config.json. This is a high-friction, higher-privilege install step (system-wide changes) not declared in the registry metadata. No external network downloads are used, but the need for root to install system binaries is a material risk if you don't trust the author.
Credentials
Registry lists no required env vars, which matches the manifest, but scripts access $HOME, /tmp, /etc, and rely on python3 (not declared). They also call code under $HOME/.openclaw/workspace/skills/promptbuddy-optimizer if that path exists — executing that script could cause metadata to be sent elsewhere. The declared zero credentials is correct, but indirect execution of other-skill scripts and undeclared python dependency are disproportionate to the simple stated purpose.
Persistence & Privilege
The skill is not marked always:true (registry: always:false), which limits forced global activation. However SKILL.md and scripts advertise '全自动激活' and the install script installs system-wide CLI tools. Installing those binaries requires root and creates persistent files under /etc and /usr/local/bin, which increases persistence/privilege compared with an instruction-only skill. The skill itself does not request to modify other skills' configs, but it will execute another skill's feedback collector if present.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install promptbuddy-lite - 安装完成后,直接呼叫该 Skill 的名称或使用
/promptbuddy-lite触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v3.0.0
PromptBuddy Lite 3.0.0
- 全新 HMAW 层级式架构(4 层分解:角色、任务、格式、约束)
- 自动识别输入场景并生成多层结构化 Prompt
- 文档示例优化,突出层级结构与实际应用
- 技术实现与介绍统一更新,理论依据新增 HMAW 论文
- 保持零依赖、纯 Shell 实现和极快响应
v1.0.1
No changes detected in this version (1.0.1).
- No file changes or updates were made.
- Functionality and documentation remain the same as the previous release.
v2.0.1
fix: optimize SKILL.md for ClawHub - cleaner user-facing documentation
v1.0.0
v1.0.0: Zero-dependency Shell prompt optimizer
元数据
常见问题
Promptbuddy Lite 是什么?
【全局自动激活技能】 ⚠️ 每次收到用户消息时,必须先执行以下步骤: 1. 调用命令优化用户输入: ```bash cd ~/.openclaw/workspace/skills/promptbuddy-lite && bash scripts/preprocess.sh "用户输入" ``` 2. 根据返回结果... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 191 次。
如何安装 Promptbuddy Lite?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install promptbuddy-lite」即可一键安装,无需额外配置。
Promptbuddy Lite 是免费的吗?
是的,Promptbuddy Lite 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Promptbuddy Lite 支持哪些平台?
Promptbuddy Lite 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Promptbuddy Lite?
由 Steventsang18(@steventsang18)开发并维护,当前版本 v3.0.0。
推荐 Skills