/userscript-development:new-userscript-repofrom userscript-development
Set up a brand-new development workspace for a single userscript. Asks public or private, creates the GitHub repo with the chosen visibility, installs this plugin at project scope inside it, and ends. The user opens that repo in a fresh Claude Code session and starts authoring the script with `new-userscript`.
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.
Spin up a clean per-script workspace. This is the bootstrap step — it does not write the userscript itself. Once the repo exists, the user runs new-userscript inside it.
Github-Stars-Cleaner). Will be used verbatim as the GitHub repo name and the local directory name.$USERSCRIPT_REPOS_BASE env varuserscripts_base_path in ${CLAUDE_USER_DATA:-${XDG_DATA_HOME:-$HOME/.local/share}/claude-plugins}/userscript-development/config.jsontest ! -d "<base>/<repo-name>" && ! gh repo view danielrosehill/<repo-name> >/dev/null 2>&1
If either hits, ask the user for a different name. Do not overwrite.mkdir -p "<base>/<repo-name>"
cd "<base>/<repo-name>"
README.md:
# <repo-name>
Tampermonkey userscript. Authored with the [`userscript-development`](https://github.com/danielrosehill/Claude-Userscript-Development-Plugin) Claude Code plugin.
Run `/new-userscript` inside this repo to scaffold the `.user.js`.
LICENSE (or skip if private and the user prefers no license — ask)..gitignore with .DS_Store, node_modules/, .envrc.git init -q
git add -A
git commit -q -m "Initial commit: <repo-name> userscript workspace"
gh repo create danielrosehill/<repo-name> --<public|private> --source=. --push
claude plugins install userscript-development@danielrosehill --scope project
<path> and run /new-userscript to scaffold the script body."gh repo edit --visibility public.new-userscript automatically — keep this skill's scope to workspace bootstrap only. Authoring is a separate step in a fresh session so the user's intent for the script can drive the metadata block.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.