← Back to Skills Marketplace
Rewrite Question
by
LoveNerverMore
· GitHub ↗
· v1.0.0
· MIT-0
251
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install rewrite-question
Description
补全上下文并重写用户提问
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install rewrite-question - After installation, invoke the skill by name or use
/rewrite-question - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is Rewrite Question?
补全上下文并重写用户提问. It is an AI Agent Skill for Claude Code / OpenClaw, with 251 downloads so far.
How do I install Rewrite Question?
Run "/install rewrite-question" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Rewrite Question free?
Yes, Rewrite Question is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Rewrite Question support?
Rewrite Question is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Rewrite Question?
It is built and maintained by LoveNerverMore (@lovenervermore); the current version is v1.0.0.
More Skills