← 返回 Skills 市场
ts-prompt-optimizer
作者
chen435636097
· GitHub ↗
· v1.0.1
· MIT-0
88
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install ts-prompt-optimizer
功能描述
冬冬主人定制提示词优化器 - 完全个性化 多模型支持 智能路由集成 使用前缀 "ts:" 触发
安全使用建议
What to check before installing:
- Do not paste high-privilege credentials blindly. Prefer to set API keys yourself in a controlled way (environment variables) and avoid typing them into interactive installers unless you inspect the code first.
- The registry metadata looks broken (shows "[object Object]" for required env vars). Ask the publisher or maintainer to fix the package metadata before trusting it.
- Review the config_wizard and config_manager source (especially any _set_environment_variable implementation) to see whether API keys are written to plaintext files or shell profiles (~/.bashrc, ~/.profile) and where ts-env-config.json/ts-optimizer-config.yaml are saved. If they are stored unencrypted on disk, consider using ephemeral environment variables instead.
- The SKILL.md contains many emoji placeholders and a scan found unicode-control characters. Open the raw files in a hex/hex-aware editor to confirm there are no hidden control characters or obfuscated payloads.
- The skill will perform network requests to test model connections; if you are concerned, run it in a sandboxed environment (VM/container) or with a network monitor to observe outbound endpoints. Expected endpoints: DeepSeek, Bailian (Aliyun console) and optionally other model providers; if you see unknown remote endpoints, do not proceed.
- Because this package includes executable scripts (not just prose), consider running linting and a quick static scan (grep for suspicious functions: subprocess, os.system, requests.post to unexpected domains, writing to /etc, reading ~/.ssh, etc.) before use.
If you want, I can: (a) extract and search the omitted/remaining source files for functions that persist env vars or make network calls, (b) show the _set_environment_variable implementation if present, or (c) point out exact lines that write keys to disk — provide the omitted files and I will analyze them.
能力评估
Purpose & Capability
Name/description (prompt optimizer, multi-model routing) match the included scripts (optimizer, config manager, config wizard). Requiring python3 and optional DEEPSEEK_API_KEY / BAILIAN_API_KEY is coherent with multi-model support. However the registry metadata in the top-level listing is malformed (shows "[object Object]" for required env vars) and the registry claims 'instruction-only' while the package contains multiple executable scripts — these inconsistencies reduce trust.
Instruction Scope
SKILL.md instructs running the included Python scripts (config_wizard.py, ts-config, quick_setup.py) and to provide model API keys to test connections. That scope is appropriate for the stated purpose. Two concerns: (1) the SKILL.md contains many emoji markers and a pre-scan flagged 'unicode-control-chars' which could be an attempt to obfuscate or influence LLM parsers; (2) the config wizard offers to set environment variables and test model connections (network activity) — expected, but worth explicit attention.
Install Mechanism
There is no download/install-from-URL spec in the package—only local Python scripts. No package manager installs or remote archives referenced. This is a lower-risk install mechanism compared with arbitrary downloads.
Credentials
The only API secrets referenced in SKILL.md are DEEPSEEK_API_KEY and BAILIAN_API_KEY which are proportional to multi-model routing. BUT: (1) the registry metadata is malformed and doesn't correctly declare those env vars, which is suspicious; (2) scripts (config_wizard/config_manager) will read/write config under the user's home (~/.openclaw) and may persist API keys (they call a _set_environment_variable helper and write ts-env-config.json and ts-optimizer-config.yaml). Persisting keys to disk (or injecting into shell profiles) in plaintext is a security/privacy risk — verify exactly how and where keys are stored before providing credentials.
Persistence & Privilege
The skill stores configuration and history under the skill tree and in the user's home (~/.openclaw) and memory/ folders. always:false (not force-included). Autonomous invocation is allowed (platform default). No evidence it modifies other skills or system-wide settings beyond writing its own config, but the config wizard can set environment variables which may persist across sessions — review that behavior if you care about secret handling.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install ts-prompt-optimizer - 安装完成后,直接呼叫该 Skill 的名称或使用
/ts-prompt-optimizer触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Version 1.0.1
- Added FINAL_PUBLISH_CHECKLIST.md for final release validation steps.
- Added scripts/quick_setup_fixed_v2.py utility script to simplify quick setup.
v1.0.0
ts-prompt-optimizer 1.0.0 初始发布
- 全新冬冬主人定制的提示词优化器,支持完全个性化和多模型智能路由
- 标准/备用多前缀触发(ts:、ts-opt:、优化:),大小写不敏感
- 支持DeepSeek与千问(3.5 Plus/Coder Next)等模型,智能任务分流与故障切换
- 个性化优化规则与持续学习进化,兼容历史优化与用户偏好
- 完善的交互式/命令行配置系统,支持环境变量和分层配置
- 性能优化,优化过程快速且成本受控,错误恢复强健
元数据
常见问题
ts-prompt-optimizer 是什么?
冬冬主人定制提示词优化器 - 完全个性化 多模型支持 智能路由集成 使用前缀 "ts:" 触发. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 88 次。
如何安装 ts-prompt-optimizer?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install ts-prompt-optimizer」即可一键安装,无需额外配置。
ts-prompt-optimizer 是免费的吗?
是的,ts-prompt-optimizer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
ts-prompt-optimizer 支持哪些平台?
ts-prompt-optimizer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 ts-prompt-optimizer?
由 chen435636097(@chen435636097)开发并维护,当前版本 v1.0.1。
推荐 Skills