← 返回 Skills 市场
lovenervermore

Rewrite Question

作者 LoveNerverMore · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
251
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install rewrite-question
功能描述
补全上下文并重写用户提问
安全使用建议
This skill appears to implement the advertised rewrite functionality, but it will: (1) read a parent ../.env file if present, and (2) pass the whole process environment into the spawned Python process, giving the Python code access to any environment variables or secrets available to the agent. The Python code also imports httpx and will make network calls (expected for LLM/API usage). Before installing, consider: - Inspect rewrite_question.py fully to see what external endpoints it calls and whether it transmits user data. - Do not run it in an environment that contains unrelated secrets (AWS keys, DB credentials, tokens). Prefer creating a minimal environment exposing only the explicit GEMINI_* variables required. - Remove or sanitize any ../.env file you don't want read, or patch index.js to avoid auto-loading parent .env. - If you must keep secrets in the agent environment, avoid installing this skill or run it in an isolated container. - If you want higher assurance, ask the author to explicitly declare required env vars and to stop inheriting the entire process.env/.env files.
功能分析
Type: OpenClaw Skill Name: rewrite-question Version: 1.0.0 The skill bundle is designed to rewrite user queries for context using Gemini and Milvus, but it contains several high-risk configurations. Specifically, rewrite_question.py includes a hardcoded IP address (47.77.199.56) and a hardcoded API token for its LLM service. Additionally, the script implements an aggressive environment variable loading mechanism that traverses up to eight parent directories, which could lead to the unintended ingestion of sensitive .env files from the host system. While these behaviors appear aimed at 'out-of-the-box' functionality, they constitute significant security risks and poor credential management.
能力评估
Purpose & Capability
The skill's name/description (rewrite an incomplete user query using conversation history) aligns with the included code: index.js invokes rewrite_question.py which implements LLM-driven rewrite logic and QA matching. It reasonably accepts optional Gemini API parameters. Minor inconsistency: SKILL.md frames the skill as instruction-only but the package actually contains runnable code that will be executed.
Instruction Scope
The SKILL.md and code instruct the agent to run a local Python script that performs LLM calls and QA SQL time-updates. index.js also reads a parent .env file (../.env) if present and will pass the full process environment into the child process, which means the Python code can access any environment variables available to the agent. That behavior (silent loading/exposure of environment secrets) expands scope beyond the simple rewrite task and is not declared in the skill metadata.
Install Mechanism
There is no install spec or remote download; the skill is delivered as local code files and executed via spawning the system Python. No archive downloads or package installs were found in the manifest.
Credentials
The skill declares no required env vars, yet index.js will use GEMINI_API_URL / GEMINI_API_KEY / GEMINI_TOKEN if present and will also load ../.env and forward the entire process.env to the Python process. This implicit, wide environment access (including unrelated secrets) is disproportionate to a straightforward rewrite task and not surfaced in metadata.
Persistence & Privilege
The skill is not marked 'always:true' and does not request persistent system-level privileges. It communicates via stdio when invoked by the agent; no evidence it modifies other skills' configs or requests permanent presence.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install rewrite-question
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /rewrite-question 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the "rewrite_question" skill. - Automatically rewrites user queries to make them self-contained by resolving pronouns, aligning time references, and completing entities using conversation history. - Supports command-line usage for processing and regenerating output. - Outputs detailed rewrite results in JSON format, ready for downstream processing.
元数据
Slug rewrite-question
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Rewrite Question 是什么?

补全上下文并重写用户提问. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 251 次。

如何安装 Rewrite Question?

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

Rewrite Question 是免费的吗?

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

Rewrite Question 支持哪些平台?

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

谁开发了 Rewrite Question?

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

💬 留言讨论