claude-api-in-prototypes

claude-api-in-prototypes is a skill for Claude Code from asgeirtj/system_prompts_leaks. It costs 19 tokens per session (279 once invoked), scanned A, original, CC0-1.0.

A built-in way for HTML prototypes to send prompts to Claude, an AI model, without adding an SDK or API key.

In plain words
What is it for?
Use it to add AI features such as summarizing text, answering questions, or calling custom tools from an HTML artifact.
Why use it?
It removes the setup needed to call Claude from a prototype and can handle responses and in-page tool calls.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to add AI features such as summarizing text, answering questions, or calling custom tools from an HTML artifact.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/asgeirtj/system_prompts_leaks/claude-api-in-prototypes
About the project

System Prompts Leaks is a collection of captured system instructions used to guide AI chatbots and coding agents before they receive user messages. It serves researchers and developers studying how different AI assistants are directed.

asgeirtj/system_prompts_leaks · 64,614 stars · on GitHub

Install

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.

Any agent
npx skills add asgeirtj/system_prompts_leaks --skill claude-api-in-prototypes
Clone the repo
git clone --depth 1 https://github.com/asgeirtj/system_prompts_leaks

Made for: Claude Code.

Wrote 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.

agentmods badge for claude-api-in-prototypes

README.md
[![agentmods](https://agentmods.dev/badge/skills/asgeirtj/system_prompts_leaks/claude-api-in-prototypes/github.svg)](https://agentmods.dev/skills/asgeirtj/system_prompts_leaks/claude-api-in-prototypes)
Your own site
<a href="https://agentmods.dev/skills/asgeirtj/system_prompts_leaks/claude-api-in-prototypes"><img src="https://agentmods.dev/badge/skills/asgeirtj/system_prompts_leaks/claude-api-in-prototypes/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.

agentmods 80×15 button for claude-api-in-prototypes

Your own site · 80×15
<a href="https://agentmods.dev/skills/asgeirtj/system_prompts_leaks/claude-api-in-prototypes"><img src="https://agentmods.dev/badge/skills/asgeirtj/system_prompts_leaks/claude-api-in-prototypes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 279 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Fable 5.1 · 6 Sept 2026 📄 Read the review Third-party audits
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.00279
Opus 5 $0.00010 $0.00139
Sonnet 5 $0.00004 $0.00056
Haiku 4.5 $0.00002 $0.00028

Measured 12d ago against content hash 7875558b123c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

claude-api-in-prototypes 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 12d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

Anthropic/claude-design/skills/claude-api-in-prototypes/SKILL.md · 24 lines

What it actually says

Claude API in prototypes

Your HTML artifacts can call Claude via a built-in helper. No SDK or API key needed.

<script>
(async () => {
  const text = await window.claude.complete("Summarize this: ...");
  // or with a messages array:
  const text2 = await window.claude.complete({
    messages: [{ role: 'user', content: '...' }],
  });
})();
</script>

Calls default to claude-haiku-4-5 with a 1024-token output cap. The body may also set model (haiku/sonnet families only), max_tokens (up to 32000), system, tool_choice, and client tools — standard Messages API shapes, except each tool also carries run: async (input) => string and the helper executes tool calls in-page and loops (max 8 model calls), resolving with the final text. Handler throws become is_error tool_results. Server tools (web search etc.) are rejected; no streaming; rate-limited 15 calls/minute per user, loop iterations included. Shared artifacts run under the viewer's quota.

Changes

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.

  1. 12d ago First seen · 24 lines · 19 tokens per session scan A 7875558b123c

Subscribe to this mod's changes

claude-api-in-prototypes is a skill published in the GitHub repository asgeirtj/system_prompts_leaks (64,614 stars, last pushed 2d ago), licensed CC0-1.0. It adds 19 tokens to every session and 279 once invoked, about $0.0001 per session on Opus 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.