Xcratch extension debug
Xcratch extension development skills for AI agents
npx -y skills add xcratch/xcratch-skills --skill xcratch-extension-debugAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when debugging an in-development Xcratch extension in VS Code. Trigger phrases: breakpoints not hit, source maps, debug on xcratch.github.io editor, live server HTTPS, extension not loading in editor.
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
1.5 KB, 281 tokens by cl100k_base, as published. Nobody here has run it
Xcratch Extension Debug
Debug an extension under development with the public xcratch.github.io editor and VS Code, by serving the local build over HTTPS and loading it via the ?extension= query parameter. No local scratch-editor checkout is required.
When to Use
- Breakpoints in extension source are not hit
- Source maps are not resolved
- Extension fails to load from local HTTPS URL
- You need a reproducible VS Code debug workflow
Quick Start
# Extension repo
npm run watch
Then in VS Code, run launch config debug extension on xcratch.github.io editor.
This launch uses preLaunchTask: start live server, which serves the workspace root over HTTPS on https://0.0.0.0:5500, then opens Chrome at:
https://xcratch.github.io/editor/?extension=https://0.0.0.0:5500/dist/xcratchExample.mjs
You will be prompted for the extension URL; the default points at dist/xcratchExample.mjs.
Load Extension URL
https://0.0.0.0:5500/dist/xcratchExample.mjs
Workflow Details
- VS Code debug configuration and troubleshooting: See ./references/vscode-debug.md
What ships with it: 1 file
6.6 KB alongside SKILL.md
references/
- vscode-debug.md6.6 KB