moonshot-web-search
Installation
SKILL.md
Moonshot Web Search
Run a bundled shell script that calls Moonshot's builtin "$web_search" tool in two rounds and prints the final answer.
This skill must not answer from base-model memory when the script does not run successfully.
Resources
scripts/search.sh: Execute a Moonshot web search and print the model's final answer.
Workflow
- Resolve
SKILL_DIRas the directory containing thisSKILL.md. - Require
MOONSHOT_API_KEYbefore doing anything else. If it is missing, stop immediately and tell the user they need to provide a valid Moonshot API key in the environment. Do not attempt to answer the user's question without the key. - Extract a clean search request from the user's prompt. Preserve concrete constraints such as time range, geography, language, and output format.
- Run the script with an already-resolved absolute path. Do not rely on a temporary env assignment like
SKILL_DIR=... bash "$SKILL_DIR/scripts/search.sh"because many shells expand"$SKILL_DIR"before the temporary assignment takes effect.