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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/userscript-development:new-userscriptThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create a new userscript file ready to load into Tampermonkey.
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.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub danielrosehill/claude-code-plugins --plugin userscript-development