技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
world_bank_open_data【数据与研究】World Bank Open Data is a free global development data platform with access to countries worldwide and 29,000+ indicators covering economic, social, and environmental metrics including GDP, GNP, population, poverty, unemployment, trade, inflation, education, health, and environmental time series from 1960 to present.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill to answer questions that require World Bank Open Data country indicators, development metrics, or national-level time series.
Check whether the agent-gw Python SDK is available in the current Python environment, and install it only if the check fails:
python3 -c "import agent_gw" || python3 -m pip install "$(curl -s https://cdn.kimi.com/agentgw/pysdk/manifest.json | python3 -c "import json,sys; print(json.load(sys.stdin)['latest']['url'])")"
The SDK needs an API key from api_key=..., KIMI_API_KEY, or
~/.kimi/agent-gw.json.
python3 scripts/world_bank_open_data_tool.py describe from the plugin
directory to call get_data_source_desc({"name": "world_bank_open_data"}).params exactly from the Markdown requirements. Pay attention to
country or region, indicator code or name, year range, unit, source,
frequency, and national-level data constraints.python3 scripts/world_bank_open_data_tool.py call to call
call_data_source_tool.resp.result.assistant; ignore resp.result.user unless display content is
specifically needed.Use the bundled script from the plugin directory:
python3 scripts/world_bank_open_data_tool.py describe
After reading the Markdown and selecting an API:
python3 scripts/world_bank_open_data_tool.py call \
--api-name "<api name from markdown>" \
--params-json '{"required_param":"value"}'
For larger params, write a JSON object and pass
--params-file path/to/params.json.
The script:
{"name": "world_bank_open_data"} to get_data_source_desc{"data_source_name": "world_bank_open_data", "api_name": ..., "params": ...} to
call_data_source_toolerror.user or error.assistantfiles[].name path returned by the data sourceresult.assistant texts on successExpected call_data_source_tool response shape:
{
"is_success": bool,
"result": {"user": list[str], "assistant": list[str]} | None,
"error": {"user": list[str], "assistant": list[str]} | None,
"files": [{"name": str, "content": str}],
}
When files are returned, name is the file path or name to write. The path is
usually dictated by the selected API's params in the Markdown docs. If an API
does not need files, the response normally has no files to save.