← 返回 Skills 市场
Nutrition Provider R2
作者
snailb1007
· GitHub ↗
· v0.1.2
· MIT-0
309
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install nutrition-provider-r2
功能描述
crawl the Vietnam nutrition provider page-by-page with scrapling-official and upload each raw provider record to Cloudflare R2 after fetch. use for provider-...
安全使用建议
What to check before installing:
- The SKILL.md requires Cloudflare R2 credentials (R2_ACCOUNT_ID, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY, R2_BUCKET) but the registry metadata does not declare these environment variables — ask the publisher to update metadata so you clearly see required secrets before install.
- Inspect the included script (scripts/upload_page_to_r2.py) yourself: it uploads objects to a Cloudflare R2 endpoint constructed from R2_ACCOUNT_ID and uses boto3.put_object. If you provide credentials, ensure they are scoped only to the intended bucket and consider using short-lived/limited keys.
- The package's install spec installs only the 'uv' brew formula; Python dependencies (boto3/botocore) appear only in the script comments. Confirm how your environment will install those dependencies (uv may manage them, or you may need to pip install) to avoid unexpected network installs at runtime.
- Confirm you trust the source: the skill will create many objects in your R2 bucket (one per provider record). Consider testing in a sandbox bucket/run-id to verify behavior and naming (keys follow the documented layout) and to validate pacing (60s per page) to avoid accidental overuse or costs.
- Verify scrapling-official is present and configured exactly as the instructions require; the skill defers crawling entirely to that helper.
If the publisher updates the package metadata to declare the required env vars and documents how Python deps are installed, the inconsistencies would be resolved and the package would be more trustworthy.
功能分析
Type: OpenClaw Skill
Name: nutrition-provider-r2
Version: 0.1.2
The skill bundle is a specialized crawler designed to extract nutritional data from a specific Vietnamese government portal and upload it to a user-configured Cloudflare R2 bucket. The Python script `scripts/upload_page_to_r2.py` uses standard libraries (boto3) for S3-compatible uploads and includes proper input sanitization for object keys; the instructions in `SKILL.md` emphasize polite crawling practices, such as a 60-second pacing window per page.
能力评估
Purpose & Capability
The skill's code and instructions align with the description: it expects scrapling-official to crawl the site and uses a helper script to split page JSON into per-record objects and upload them to Cloudflare R2. Requiring the 'uv' runner is plausible for executing the provided helper. Overall capabilities match the stated purpose.
Instruction Scope
SKILL.md stays within the stated scope: it directs the agent to use scrapling-official for fetching, to preserve raw JSON, to split data into per-record objects, and upload them to R2. It references only included files (references/source-notes.md) and the provided helper script. It does not instruct unrelated data collection or exfiltration to third-party endpoints beyond Cloudflare R2.
Install Mechanism
Install spec only installs the 'uv' brew formula which is consistent with the script's shebang. However, the Python dependencies required by the script (boto3, botocore) are not declared in the package install spec (they are only in the script header comments). This may lead to runtime failures or hidden install steps depending on how 'uv' handles dependencies; the install mechanism is incomplete and should be clarified.
Credentials
The runtime instructions explicitly require Cloudflare R2 credentials (R2_ACCOUNT_ID, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY, R2_BUCKET), but the registry metadata lists no required environment variables or primary credential. That mismatch is significant: the skill needs sensitive credentials to function but does not declare them in metadata for the user to see at install time. Confirming and limiting the required credentials is necessary before installing.
Persistence & Privilege
The skill is not force-included (always: false) and does not request unusual persistent privileges. It does not modify other skills or agent-wide settings. Autonomous invocation is allowed (platform default) but is not combined with other high-risk flags here.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install nutrition-provider-r2 - 安装完成后,直接呼叫该 Skill 的名称或使用
/nutrition-provider-r2触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.2
Expanded the skill to support both the Vietnam nutrition foods lookup and prepared-dish lookup flows, documented the second canonical API and schema, clarified per-record uploads for both sources, and added guidance to separate R2 namespaces between foods and dishes.
v0.1.1
Refined the skill into a scrapling-official wrapper, switched the default storage model to per-food uploads, added duplicate-safe food keying and extract-foods helper mode, and clarified that page-level payloads are only for debug or failure artifacts.
v0.1.0
Initial publish of the provider-specific scrapling-to-R2 wrapper skill.
元数据
常见问题
Nutrition Provider R2 是什么?
crawl the Vietnam nutrition provider page-by-page with scrapling-official and upload each raw provider record to Cloudflare R2 after fetch. use for provider-... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 309 次。
如何安装 Nutrition Provider R2?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install nutrition-provider-r2」即可一键安装,无需额外配置。
Nutrition Provider R2 是免费的吗?
是的,Nutrition Provider R2 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Nutrition Provider R2 支持哪些平台?
Nutrition Provider R2 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Nutrition Provider R2?
由 snailb1007(@snailb1007)开发并维护,当前版本 v0.1.2。
推荐 Skills