scratch-block-dragging

Simulate drag-and-drop block assembly in the Scratch editor using Playwright.

2|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/yokobond/scratch-skills --skill scratch-block-dragging
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scratch-block-dragging
Source: https://github.com/yokobond/scratch-skills/tree/main/plugins/scratch-operation/skills/scratch-block-dragging
Command: npx skills add https://github.com/yokobond/scratch-skills --skill scratch-block-dragging

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of Scratch programs by simulating the visual drag-and-drop process of block assembly within the Scratch editor.

Core Features & Use Cases

  • Visual Block Assembly: Builds Scratch programs by dragging blocks from the palette to the script area using Playwright mouse operations.
  • Mimics User Interaction: Replicates how a real user interacts with the Scratch editor UI.
  • Use Case: Create a Scratch project where the cat moves, changes costumes, and makes sounds based on user input, all by visually assembling the blocks.

Quick Start

Use the scratch-block-dragging skill to make a Scratch project where the cat bounces around the screen.

Frequently Asked Questions about scratch-block-dragging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Scratch block assembly visually instead of generating code directly?

Automate Scratch block assembly visually by using Playwright to simulate drag-and-drop mouse operations, moving blocks from the palette into the script area just like a real user interacting with the Scratch editor UI.

Can I use Playwright to build Scratch programs by simulating drag and drop interactions?

Yes, you can use Playwright to build Scratch programs by simulating drag-and-drop interactions, replicating how a real user visually assembles blocks within the Scratch editor UI for programmatic development.

What is visual block assembly for Scratch and when is it needed?

Visual block assembly for Scratch is the process of programmatically dragging blocks into the script area. It is needed when automating Scratch project creation requires mimicking exact user interaction and precise coordinate calculations rather than injecting code.

Does automating Scratch block dragging require interacting with the Blockly API?

Yes, automating Scratch block dragging requires interacting with the Blockly API alongside Playwright mouse operations to ensure reliable block manipulation and precise visual assembly within the editor UI.

What are the limitations of simulating Scratch drag and drop with Playwright?

Simulating Scratch drag and drop with Playwright requires precise coordinate calculations to reliably manipulate blocks, meaning visual assembly can be sensitive to UI layout changes and exact positioning within the Blockly environment.