pinme-email

pinme-email is a skill for Claude Code, Codex from glitternetwork/pinme. It costs 35 tokens per session (1,253 once invoked), scanned A, original, MIT.

Instructions for adding email sending to a PinMe Worker written in TypeScript. PinMe is the platform hosting the Worker, and the guide describes its email API and required environment values.

In plain words
What is it for?
It helps implement emails such as verification codes by calling PinMe's send_email endpoint from Worker code.
Why use it?
It removes uncertainty about the request format, authentication, recipient fields, and platform defaults when adding email delivery.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

not rated 3.7krepo +3 1mo ago A scan Socket: warnSnyk: passSkillSpector: pass 35 tokens original MIT

Good fit It helps implement emails such as verification codes by calling PinMe's send_email endpoint from Worker code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/glitternetwork/pinme/pinme-email
About the project

PinMe is a zero-configuration command-line tool for creating and deploying full-stack web projects with a frontend, Worker backend, and database, as well as uploading static sites. Developers and coding agents use it to launch or update frontend applications and their supporting services from one command. Its catalogue skills and instructions describe agent workflows for deploying with PinMe.

glitternetwork/pinme · 3,739 stars · on GitHub · pinme.eth.limo

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 glitternetwork/pinme --skill pinme-email
Clone the repo
git clone --depth 1 https://github.com/glitternetwork/pinme

Made for: Claude Code, Codex.

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 pinme-email

README.md
[![agentmods](https://agentmods.dev/badge/skills/glitternetwork/pinme/pinme-email/github.svg)](https://agentmods.dev/skills/glitternetwork/pinme/pinme-email)
Your own site
<a href="https://agentmods.dev/skills/glitternetwork/pinme/pinme-email"><img src="https://agentmods.dev/badge/skills/glitternetwork/pinme/pinme-email/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 pinme-email

Your own site · 80×15
<a href="https://agentmods.dev/skills/glitternetwork/pinme/pinme-email"><img src="https://agentmods.dev/badge/skills/glitternetwork/pinme/pinme-email.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,253 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket warn 30 Apr 2026
  • Snyk pass 30 Apr 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.00035 $0.01253
Opus 5 $0.00017 $0.00626
Sonnet 5 $0.00007 $0.00251
Haiku 4.5 $0.00003 $0.00125

Measured 9d ago against content hash 9929d2e8416e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

pinme-email scanned grade A with 1 finding 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 9d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

resp = await fetch(url, {
skills/pinme-email/SKILL.md · 163 lines

How it starts

The opening of the file, as written. The whole thing — 163 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PinMe Worker Email API Integration

Guides how to call PinMe platform's email sending API in a PinMe Worker (TypeScript).

Environment Variables

The following environment variables are automatically injected when the Worker is created — no manual configuration needed:

// backend/src/worker.ts
export interface Env {
  DB: D1Database;
  API_KEY: string;      // Project API Key — used for send_email authentication
  BASE_URL?: string;    // Optional override for PinMe API base URL, defaults to https://pinme.cloud
}

API_KEY is the sole credential for the Worker to call PinMe platform APIs. When BASE_URL is not set, it defaults to https://pinme.cloud.


Send Email API

Endpoint: POST {BASE_URL}/api/v4/send_email Authentication: X-API-Key header (using env.API_KEY) Sender: Automatically set to {project_name}@pinme.cloud

Request Format

{
  "to": "[email protected]",
  "subject": "Your verification code",
  "html": "<p>Your code is <strong>123456</strong></p>"
}
Field Type Required Description
to string Yes Recipient email address
subject string Yes Email subject
html string Yes HTML body

Response Format

Success (200):

{ "code": 200, "msg": "ok", "data": { "ok": true } }

Errors:

HTTP Status Meaning data.error Example
401 API Key missing or invalid "X-API-Key header is required" / "Invalid API key"
400 Parameter validation failed "Invalid email address" / "Subject is required"
500 Email service error "Failed to send email"

Worker Example Code

async function sendEmail(env: Env, to: string, subject: string, html: string): Promise<{ ok: boolean; error?: string }> {
  const baseUrl = env.BASE_URL ?? 'https://pinme.cloud';
  const resp = await fetch(`${baseUrl}/api/v4/send_email`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      'X-API-Key': env.API_KEY,
    },
    body: JSON.stringify({ to, subject, html }),
  });

  const result = await resp.json() as { code: number; msg: string; data?: { ok?: boolean; error?: string } };

  if (resp.status !== 200 || result.code !== 200) {
    return { ok: false, error: result.data?.error || result.msg || 'Unknown error' };
  }
  return { ok: true };
}

// Usage in routes
async function handleSendVerification(request: Request, env: Env): Promise<Response> {
  const { email } = await request.json() as { email: string };
  const code = Math.random().toString().slice(2, 8);

  const result = await sendEmail(env, email, 'Verification Code',
    `<p>Your code is <strong>${code}</strong></p>`);

  if (!result.ok) {
    return json({ error: result.error }, 500);
  }
  return json({ ok: true });
}

Read the full file on GitHub · 163 lines

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. 9d ago First seen · 163 lines · 35 tokens per session scan A 9929d2e8416e

Subscribe to this mod's changes

pinme-email is a skill published in the GitHub repository glitternetwork/pinme (3,739 stars, last pushed 1mo ago), licensed MIT. It adds 35 tokens to every session and 1,253 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.