/userscript-development:new-userscriptfrom userscript-development
Scaffold 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.
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.
Create a new userscript file ready to load into Tampermonkey.
Order of precedence:
$USERSCRIPT_REPOS_BASE env varuserscripts_base_path from ${CLAUDE_USER_DATA:-${XDG_DATA_HOME:-$HOME/.local/share}/claude-plugins}/userscript-development/config.json@name)@match / @include (use @match by preference; it's stricter)@descriptiondocument-start | document-end | document-idle (default document-idle)GM_* / GM.* grants (default none)Use the official Tampermonkey metadata keys. Common ones:
// ==UserScript==
// @name <Human Name>
// @namespace <stable URL or reverse-domain>
// @version 0.1.0
// @description <one sentence>
// @author <name>
// @match https://example.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=example.com
// @grant none
// @run-at document-idle
// @license MIT
// ==/UserScript==
Full key list: https://www.tampermonkey.net/documentation.php?locale=en#meta
(function () {
'use strict';
// TODO: implement
console.log('[<script-name>] loaded on', location.href);
})();
Create <base>/<script-name>/:
<script-name>.user.js — the script (Tampermonkey requires the .user.js suffix for install URLs)README.md — placeholder; tell the user to run generate-readme later.git — git init it so it's ready to publishIf the user prefers single-file userscripts (no per-script directory), accept <base>/<script-name>.user.js instead. Ask once and remember the choice in the user's config if they want.
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./docs-lookupLook 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./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.