Claude Skill API Armor — AI skill for Claude Code
给上线项目的 AI API 加防护甲 — 三层鉴权 (master/BYOK/free) + Upstash 限流 + 后端代理.
How to install Claude Skill API Armor
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Jane-xiaoer/claude-skill-api-armor and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Skill API Armor does
给上线项目的 AI API 加防护甲 — 三层鉴权 (master/BYOK/free) + Upstash 限流 + 后端代理。Claude Code skill。
Alternatives in AI
- Claude Task Master — by eyaltoledano - A task management system for AI-driven development with Claude, designed to work seamlessly 26k ★
- Prompt Master — A Claude skill that writes the accurate prompts for any AI tool 4.9k ★
- Dotai — The ultimate AI development stack, including Claude Code, Task Master, and Curso 1.1k ★
README
api-armor
给上线项目的 AI API 加防护甲。三层鉴权(master / BYOK / free)+ Upstash Redis 限流 + 后端代理。一个 Claude Code skill。
这是什么
你在 Vite / Next.js 项目里直接 `import { GoogleGenAI }` → 部署到 Vercel → 任何访客打开 DevTools 都能从 bundle 里扒到你的 `AIza...` key。然后 5 分钟之内你的 Google AI Studio 账单就开始飞。
`api-armor` 是解决这件事的 skill:
- 后端代理 —— 真 API key 永远只在服务端,前端永远
fetch('/api/generate') - 三层鉴权 ——
master(你自己,无限)/byok(用户自带 key,无限)/free(你的 key,每天 N 次) - Upstash Redis 限流 —— IP + cookie fingerprint,跨 serverless instance 准确
- 可选 cost guard —— 全局日额阈值熔断(防恶意刷穹爆账单)
这套模式的源头是 [xiaoer-tools-wall](https://github.com/Jane-xiaoer/xiaoers-arsenal) 的 `/api/chat`,跑了几个月扛住公开访客 + 白嫖客 + 善意用户三类。
谁应该用
- 你做了一个 Vite / Next.js 项目,里面调 Gemini / OpenAI / Anthropic API
- 你想部署到 Vercel / Netlify / Cloudflare 给人看
- 你不想自己的 API 账单一夜烧爆
不该用的场景:
- 纯本地工具(不联网)
- 已经有完整 SaaS 鉴权 + 计费的项目(你不需要这个,你需要的是用户系统)
用法
方式 A:装成 Claude Code skill(推荐)
bash <(curl -fsSL https://raw.githubusercontent.com/Jane-xiaoer/claude-skill-api-armor/main/install.sh)
装完后,开 Claude Code,对 Claude 说:
「这个项目要部署到 Vercel,里面用了 Gemini API,帮我加固」
Claude 会自动调用 `api-armor` skill,按 9 步 checklist 审计 + 套模板 + 给你 deploy 指引。
方式 B:手动用模板
git clone https://github.com/Jane-xiaoer/claude-skill-api-armor.git
cp claude-skill-api-armor/templates/lib/* 你的项目/lib/
cp claude-skill-api-armor/templates/api/* 你的项目/api/
cp claude-skill-api-armor/templates/components/SettingsModal.tsx 你的项目/components/
然后跟 SKILL.md 的 9 步走。
文件结构
claude-skill-api-armor/
├── SKILL.md # 主指令(Claude 会读这个)
├── README.md # 你正在看的
├── install.sh # 一键装到 ~/.shared-skills/
├── LICENSE # MIT
├── templates/
│ ├── api/generate.ts # Vercel serverless function(后端代理)
│ ├── lib/
│ │ ├── ratelimit.ts # Upstash Redis + 内存 fallback
│ │ └── settings.ts # 客户端 localStorage(master + BYOK)
│ ├── com
Related Skills
Free AI API Directory
⚡ 100+ Verified Free AI APIs (2026) — Permanent Free Tiers, Signup Credits & BYOK Routers for Cursor & Claude
Nole
Free local web search/extraction router for AI agents. Go CLI + MCP, BYOK/free-first routing, keyless DDGS/Scr
Claude Korean Translator
claude.ai 한↔영 자동 번역 Chrome 확장 — 한국어로 쓰면 영어로 전송, Claude의 영어 답변을 한국어로 표시. 본인 Anthropic API 키(Haiku)로 동작 (BYOK).
K Dense Byok
An AI co-scientist powered by Claude Scientific Skills running on your desktop.
Zhigeng
知更 — 本地 AI 的上下文与记忆层。Mac 上用语音输入、情境代回并调度 Codex / Claude Code;iOS 正在成为随身记忆终端和本地 Agent 遥控器。Local-first · BYOK.
Generative
Native Android AI client app. ChatGPT, Claude, Gemini, Copilot, Codex, Ollama — BYOK, private, and actually na
Related Agents
PDF Compiler
Compiles {file_prefix}_resume.tex and {file_prefix}_cover_letter.tex into PDFs with local pdflatex when it is
Gsc Backlinks
GSC domain-authority analyst. Pulls Tranco rank (free, no key) and Open PageRank (free API key) for the proper
Contract Sync
Propaga un cambio del contrato OpenAPI B2B de FreeTicket (/api/v1) a TODOS los clientes del paraguas (cli y mc