← 返回 Skills 市场
Smart Prompt Builder
作者
yuzhihui886
· GitHub ↗
· v2.0.0
· MIT-0
112
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install smart-prompt-builder
功能描述
智能提示构建器 - 根据语料库检索结果生成优化的写作提示。当需要为小说创作场景生成结构化提示词时使用,支持描写/对话/动作/情感 4 种场景类型,可注入 Voice Profile 和上下文信息。
安全使用建议
This skill appears to implement the advertised prompt-building features, but the LLM-backed script will send your style/context/corpus to an external service and requires an environment variable DASHSCOPE_API_KEY — neither of which are declared in the skill metadata or SKILL.md. Before installing or running: (1) decide whether you will use the LLM script; if not, avoid running build_prompt_llm.py or remove it. (2) If you do use it, verify and trust the endpoint (coding.dashscope.aliyuncs.com) and the owner, and only provide an API key you are willing to send prompt/context to that service. (3) Fix the dependency list (add requests and PyYAML) and ensure SKILL.md and manifest are updated to declare required env vars and the external endpoint. (4) Consider auditing or running the scripts in a sandbox to see what data would be transmitted. If you cannot verify the endpoint or owner, treat the LLM mode as high-risk and avoid supplying sensitive corpus or context.
功能分析
Type: OpenClaw Skill
Name: smart-prompt-builder
Version: 2.0.0
The skill bundle is a legitimate tool for generating structured writing prompts for fiction, supporting both template-based and LLM-powered generation. The Python scripts (`build_prompt.py` and `build_prompt_llm.py`) are well-structured, use safe parsing methods like `yaml.safe_load`, and their behaviors—including network calls to the Alibaba DashScope API—are fully aligned with the stated purpose. No evidence of malicious intent, secret exfiltration, or prompt injection was found.
能力评估
Purpose & Capability
The included scripts implement prompt-building functionality that matches the description (build_prompt.py). However, there is an additional script (build_prompt_llm.py) that acts as a client to an external LLM service (POST to coding.dashscope.aliyuncs.com) and requires an environment variable DASHSCOPE_API_KEY. The registry metadata declared no required env vars and SKILL.md does not document the need for this API key or the external endpoint, which is an incoherence.
Instruction Scope
SKILL.md documents CLI usage for scripts/build_prompt.py and general integration examples but does not describe the LLM client behavior or the required DASHSCOPE_API_KEY. The LLM script will transmit the provided style/context/prompt to a remote service — this is outside what the SKILL.md declares and could expose user-supplied context/corpus to an external endpoint.
Install Mechanism
There is no install spec (instruction-only), which is low-risk. However, scripts/requirements.txt only lists 'rich' while both scripts import PyYAML and build_prompt_llm.py imports requests; SKILL.md also mentions PyYAML. The mismatch between declared dependencies and requirements.txt is inconsistent and may lead users to install the wrong set of packages.
Credentials
build_prompt_llm.py reads DASHSCOPE_API_KEY from the environment and will abort if not set. The skill manifest declares no required env vars and SKILL.md doesn't mention this secret. Requesting an API key (and sending prompts/context) to an external service is a sensitive operation; declaring and justifying that credential in the manifest would be expected but is missing.
Persistence & Privilege
The skill does not request permanent presence (always:false) and does not modify other skills or system-wide settings. It runs as simple CLI tools and has no install hook that would persist or elevate privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install smart-prompt-builder - 安装完成后,直接呼叫该 Skill 的名称或使用
/smart-prompt-builder触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
v2.0 LLM 版本:新增 build_prompt_llm.py,通过 LLM 构建高质量写作提示词,默认 qwen3.6-plus
v1.0.0
初始版本:支持 4 种场景类型(描写/对话/动作/情感),Voice Profile 注入,上下文注入,语料库结果格式化
元数据
常见问题
Smart Prompt Builder 是什么?
智能提示构建器 - 根据语料库检索结果生成优化的写作提示。当需要为小说创作场景生成结构化提示词时使用,支持描写/对话/动作/情感 4 种场景类型,可注入 Voice Profile 和上下文信息。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 112 次。
如何安装 Smart Prompt Builder?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install smart-prompt-builder」即可一键安装,无需额外配置。
Smart Prompt Builder 是免费的吗?
是的,Smart Prompt Builder 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Smart Prompt Builder 支持哪些平台?
Smart Prompt Builder 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Smart Prompt Builder?
由 yuzhihui886(@yuzhihui886)开发并维护,当前版本 v2.0.0。
推荐 Skills