diegosouzapw/awesome-omni-skill/creating-bookmarklets
Claude Code and agent skill by diegosouzapw/awesome-omni-skill
- community
Checking that the SKILL.md file is still in the repository.
Creates browser-executable JavaScript bookmarklets with strict formatting requirements. Use when users mention bookmarklets, browser utilities, dragging code to bookmarks bar, or need JavaScript that runs when clicked in the browser toolbar.
Install
npx vskill@latest install diegosouzapw/awesome-omni-skill/creating-bookmarkletsSKILL.md
Bookmarklet Creation
Critical Requirements
Comment Style - ABSOLUTE
Use ONLY `/* */` comments. NEVER use `//` comments.
Bookmark execution contexts fail with // style. Every comment must use block format.
IIFE Wrapper
All bookmarklets must wrap in IIFE:
Protocol Prefix
All delivered bookmarklets must begin with javascript: protocol:
This makes the code immediately usable without requiring manual modification during installation.
Workflow
1. Generate Pretty-Printed Code
Create readable source with:
- 2-space indentation
- Descriptive variable names
- Block comments for key sections
- Logical organization
- Prepend `javascript:` protocol to the code
This version with `javascript:` prefix gets stored in GitHub and shown to users, making it ready for installation without manual modification.
2. Provide Installation
Default approach - reference installer:
Installer handles:
- Minification with Terser
- URL encoding
- Draggable link generation
- GitHub repo integration
Alternative - generate link programmatically: Use Terser.js to create installable link if requested:
Requires: <script src="https://cdn.jsdelivr.net/npm/terser/dist/bundle.min.js"></script>
3. Deliverables
Always provide:
- Pretty-printed source code with `javascript:` protocol prepended
- Installation method (installer link or generated link)
- Brief description of functionality
- Usage instructions
The code should be delivered in a format ready for direct use - users should be able to copy the entire code block (including javascript:) without modification.
Code Standards
Error Handling
Console Logging
Include debug traces by default:
User Feedback
Common Patterns
DOM Manipulation
Data Extraction
Clipboard Operations
Dynamic Library Loading
Browser Compatibility
Provide fallbacks for unsupported features:
Constraints
Cannot use:
- External files (CSS, images) without embedding
- Build tools or preprocessing
//style comments
Can use:
- Fetch API
- localStorage/sessionStorage
- Modern browser APIs
- CDN libraries (loaded dynamically)
Testing
Before delivering:
- Verify no
//comments exist - Test in browser console wrapped in IIFE
- Check error handling with missing DOM elements
- Verify user feedback for all paths
Example Output
GitHub Storage
User repository: https://github.com/oaustegard/bookmarklets
Pretty-printed format matches storage requirements. Installer loads directly from this repo.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cli-automation/creating-bookmarklets/SKILL.md
Popularity
- Repository stars
- 35
- Repository forks
- 12
- 7-day trend score
- 18
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 9 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/diegosouzapw/awesome-omni-skill/creating-bookmarklets)