/userscript-development:docs-lookupfrom userscript-development
Look up Tampermonkey documentation — metadata keys (`@match`, `@grant`, `@run-at`, etc.), the GM_* / GM.* API, and configuration. Fetches the official docs page on demand to stay current.
Ships in userscript-development. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Authoritative reference: https://www.tampermonkey.net/documentation.php?locale=en
@match vs @include, @require, @resource, @connect, @run-at, @inject-into, etc.).GM_* / GM.* function (GM_xmlhttpRequest, GM_setValue, GM_addStyle, GM.cookie, etc.).WebFetch on:
https://www.tampermonkey.net/documentation.php?locale=en
GM. (promise-based) vs GM_ (sync) variant, mention both and which one Tampermonkey recommends.@match is stricter and faster than @include; prefer it.@grant none runs the script in the page context (can touch window, no GM_*). Any other grant runs in a sandbox with unsafeWindow for page access.@run-at document-start fires before the DOM is ready — use it for header injection, not DOM mutation.@require URLs are fetched once at install time and cached; updating the remote file does not re-fetch unless the user reinstalls.@connect is required for cross-origin GM_xmlhttpRequest.What SKILL.md sets; muted values are Claude Code's defaults
userscript-development@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin userscript-development8 skills in this plugin
/bump-versionBump a userscript's `@version` (semver), update README, commit, tag, and push. Tampermonkey only auto-updates installed scripts when `@version` increases — forgetting this means users never receive fixes./generate-readmeGenerate or refresh a userscript repo's README.md from its `==UserScript==` metadata block — install button, what it does, supported sites, version, license. Idempotent; safe to re-run after metadata changes./new-userscriptScaffold a new Tampermonkey userscript with a complete `==UserScript==` metadata block, sensible defaults, and a starter IIFE body. Drops it in the user's userscripts base directory if configured, otherwise asks where to place it.