← 返回 Skills 市场
91
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install scratch-blocks
功能描述
Use this skill when the user uploads a `.sb3` or `.sprite3` file, or when the conversation is about Scratch and clearer block-style visualization would help.
安全使用建议
This skill appears to do what it says: it will execute the included Python scripts locally to extract and render Scratch projects, and it does not request credentials or make network calls. Before installing, review that you're comfortable with the agent running those local Python scripts on user-supplied .sb3/.sprite3 files (the extractor writes to /tmp/scratchcode/<md5>/blocks.json and may leave files behind). If you are concerned about residual files, delete /tmp/scratchcode after use. If you need additional assurance, inspect the two scripts (scripts/extract.py and scripts/render_ascii.py) yourself — they use only the Python standard library and the bundled BLOCK_CATALOG, and I found no code that exfiltrates data or contacts external endpoints.
功能分析
Type: OpenClaw Skill
Name: scratch-blocks
Version: 0.0.2
The skill bundle is designed to help an AI agent process and visualize Scratch projects (.sb3/.sprite3 files). The included Python scripts, 'extract.py' and 'render_ascii.py', perform local file operations such as unzipping archives and parsing JSON to generate ASCII representations of code blocks. There is no evidence of data exfiltration, malicious execution, or harmful prompt injection; the logic is entirely consistent with the stated purpose of providing a Scratch code assistant.
能力评估
Purpose & Capability
Name/description (render Scratch projects into block-style ASCII) match the included files and scripts: extract.py converts .sb3/.sprite3/project.json to the internal scratch-json, and render_ascii.py renders that format using the bundled BLOCK_CATALOG. No unrelated binaries, env vars, or external services are requested.
Instruction Scope
SKILL.md gives explicit, constrained instructions: run scripts/extract.py for archives, produce scratch-json in /tmp, and run scripts/render_ascii.py to render output. It forbids returning scratch-json to users and requires using the renderer output. The runtime steps reference only local files and the temp output; they do not ask the agent to read other system files or contact external endpoints.
Install Mechanism
No install specification — instruction-only plus bundled Python scripts. Both scripts use only the Python standard library and local data files; nothing is downloaded or executed from external URLs.
Credentials
The skill requires no environment variables, credentials, or config paths. The scripts operate on user-provided Scratch files and local temp dirs only.
Persistence & Privilege
extract.py creates a working directory under /tmp/scratchcode/<md5>/ and writes blocks.json there (and may leave that directory). The skill is not always-enabled and does not request persistent elevated privileges or modify other skills.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install scratch-blocks - 安装完成后,直接呼叫该 Skill 的名称或使用
/scratch-blocks触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.0.2
- Updated SKILL.md with detailed workflow, output contract, and internal format guidelines.
- Added instructions on handling `.sb3` and `.sprite3` files, and on using internal `scratch-json` only with the designated rendering script.
- Clarified that all Scratch code shown to users must be rendered using `scripts/render_ascii.py`, never raw or hand-drawn.
- Provided explicit structure and usage examples for scripts, variables, lists, and block data.
- Outlined best practices for how and when to display rendered Scratch blocks in user replies.
元数据
常见问题
Scratch Blocks 是什么?
Use this skill when the user uploads a `.sb3` or `.sprite3` file, or when the conversation is about Scratch and clearer block-style visualization would help. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 91 次。
如何安装 Scratch Blocks?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install scratch-blocks」即可一键安装,无需额外配置。
Scratch Blocks 是免费的吗?
是的,Scratch Blocks 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Scratch Blocks 支持哪些平台?
Scratch Blocks 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Scratch Blocks?
由 Z-Bra0(@z-bra0)开发并维护,当前版本 v0.0.2。
推荐 Skills