Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add oaustegard/claude-skills --skill creating-bookmarkletsgit clone --depth 1 https://github.com/oaustegard/claude-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/oaustegard/claude-skills/creating-bookmarklets)<a href="https://agentmods.dev/skills/oaustegard/claude-skills/creating-bookmarklets"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/creating-bookmarklets/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/oaustegard/claude-skills/creating-bookmarklets"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/creating-bookmarklets.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00047 | $0.01191 |
| Opus 5.5 | $0.00019 | $0.00476 |
| Sonnet 5.5 | $0.00009 | $0.00238 |
| Haiku 4.5 | $0.00005 | $0.00119 |
Grade A, and why
creating-bookmarklets scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 230 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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.
/* ✓ Correct */
const x = 5; /* inline */
/* ✗ Wrong - breaks bookmarklets */
// const x = 5;
const y = 10; // inline
IIFE Wrapper
All bookmarklets must wrap in IIFE:
(function() {
/* bookmarklet code */
})();
Protocol Prefix
All delivered bookmarklets must begin with javascript: protocol:
javascript:(function() {
/* bookmarklet code */
})();
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:
Install: https://austegard.com/web-utilities/bookmarklet-installer.html
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:
async function createBookmarkletLink(code, title) {
const minified = await Terser.minify(code);
const encoded = encodeURIComponent(minified.code).replace(/'/g, "%27");
return `<a href="javascript:${encoded}">${title}</a>`;
}
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
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 230 lines · 47 tokens per session scan A 9a23b6011161
creating-bookmarklets is a skill published in the GitHub repository oaustegard/claude-skills (158 stars, last pushed 4d ago), licensed MIT. It adds 47 tokens to every session and 1,191 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
creating-bookmarklets compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| creating-bookmarkletsoaustegard/claude-skills | Skill | 158 | 4d ago | MIT | A | 47 | Claude Code, Codex |
| download-xhs-videosYijiaDuan/download-xhs-videos | Skill | 3 | 3mo ago | MIT | A | 181 | Claude Code, Codex |
| webclaw0xMassi/webclaw-skill | Skill | 3 | 1mo ago | AGPL-3.0 | A | 101 | Claude Code, Cursor |
| add-tavily-toolnanocoai/nanoclaw | Skill | 31k | yesterday | MIT | A | 41 | Claude Code |
| agent-browsernanocoai/nanoclaw | Skill | 31k | yesterday | MIT | A | 51 | Claude Code |
| broken-link-checkernowork-studio/notfair-plugin | Skill | 4.1k | 8d ago | MIT | A | 70 | Claude Code |
| dev-browsercode-yeongyu/oh-my-openagent | Skill | 71k | yesterday | none | A | 84 | Claude Code, Codex |