Skills for Real Engineers. Straight from my .agents directory.
pinme-auth
Agent skill fromglitternetwork/pinme
Use when a PinMe project (Worker TypeScript) needs to integrate user authentication — creating email/password users, verifying id_tokens, querying user info, or listing users via Identity Platform auth proxy APIs.
How to install pinme-auth
npx skills add glitternetwork/pinme# or add only this skill to Claude Code: copy the folder
skills/pinme-auth/
# into
~/.claude/skills/pinme-auth/ (all projects)
.claude/skills/pinme-auth/ (one project)
1# PinMe Worker Auth API Integration23Guides how to call PinMe platform's Identity Platform auth proxy APIs in a PinMe Worker (TypeScript).45## Environment Variables67```typescript8// backend/src/worker.ts9export interface Env {10 DB: D1Database;11 API_KEY: string; // 项目 API Key — 用于所有 auth 接口认证12 PROJECT_NAME: string; // 项目名 — 所有 auth 接口必须同时传递13 BASE_URL?: string; // 可选,默认 https://pinme.cloud14}15```1617> `API_KEY` 和 `PROJECT_NAME` 是所有 auth 接口的必填凭证,缺一不可。1819---2021## 认证方式(所有接口通用)2223| 参数 | 传递方式 | 必填 | 说明 |24|------|---------|------|------|25| `X-API-Key` | 请求头 | 是 | 项目 API Key |26| `project_name` | Query 参数 | 是 | 必须与 `X-API-Key` 对应同一个项目 |2728服务端会先校验这两个字段是否匹配同一个项目,再从项目配置中取出 `tenant_id`,然后转调 Identity Platform。2930---3132## 通用错误3334| 场景 | HTTP | `data.error` |35|------|------|-------------|36| 缺少 `X-API-Key` | 401 | `X-API-Key header is required` |37| 缺少 `project_name` | 400 | `project_name is required` |38| API Key 和项目不匹配 | 401 | `Invalid API key or project name` |39| 项目未配置认证租户 | 400 | `Auth service not configured for this project` |4041---4243## 通用 TypeScript 类型4445```typescript46type ApiEnvelope<T> = {47 code: number // 200=成功,其他=失败48 msg: string // "ok" | "fail" | "invalid param"49 data: T50}5152type ApiErrorData = { error?: string }5354type UserInfo = {55 uid: string56 email: string57 display_name: string58 photo_url?: string59 disabled: boolean60 email_verified: boolean61}62```6364---6566## API 1: 创建用户6768**Endpoint:** `POST {BASE_URL}/api/v1/auth/create_user?project_name={project_name}`69…
Excerpt shown under the repository's MIT license.
More skills in pinme
Similar skill repositories
Public repository for Agent Skills
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
The open-source app everyone uses to manage agents at work
