backend-server

backend-server is a skill for Claude Code, Codex from wangjianqi/AppStore. It costs 58 tokens per session (4,225 once invoked), scanned A, original, MIT.

A guide for building backend services, the server-side code and data systems that support an app. It covers APIs, databases, authentication, deployment, and services such as Supabase, Cloudflare Workers, Vapor, and Firebase.

In plain words
What is it for?
Use it when creating APIs, choosing a backend platform, designing database access policies, adding authentication, or deploying server and serverless code.
Why use it?
It compares common backend approaches and sets rules for protecting database access and keeping server credentials out of the app.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it when creating APIs, choosing a backend platform, designing database access policies, adding authentication, or deploying server and serverless code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wangjianqi/appstore/10-backend-server
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 wangjianqi/AppStore --skill 10-backend-server
Clone the repo
git clone --depth 1 https://github.com/wangjianqi/AppStore

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 backend-server

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/wangjianqi/appstore/10-backend-server"><img src="https://agentmods.dev/badge/skills/wangjianqi/appstore/10-backend-server.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,225 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.
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.00058 $0.04225
Opus 5.5 $0.00023 $0.01690
Sonnet 5.5 $0.00012 $0.00845
Haiku 4.5 $0.00006 $0.00422

Measured 1mo ago against content hash b1237c486532, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

backend-server 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 1mo 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.

ios-claude-skills/10-backend-server/SKILL.md · 463 lines

How it starts

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

后端服务开发

方案选型

方案 语言 适合场景 免费额度 学习成本
Supabase SQL + TypeScript 快速出产品、CRUD 为主 500MB 数据库 + 1GB 存储 低
Cloudflare Workers TypeScript 轻量 API、全球加速 10 万请求/天 中
Vapor Swift Swift 全栈、共享 Model 需自备服务器 高
Firebase TypeScript / Dart Google 生态、实时同步 Spark 计划免费 中

选择原则:

  • 独立开发者首选 Supabase(开箱即用,PostgreSQL + RLS 天然适合移动端)
  • 追求极致轻量和全球边缘部署选 Cloudflare Workers
  • 想前后端共享 Swift 代码选 Vapor
  • 已在 Google 生态内选 Firebase

Supabase 规范

项目初始化

npx supabase init
npx supabase login
npx supabase link --project-ref <project-id>

数据库 & RLS

  • 所有业务表必须启用 RLS,禁止 public schema 表无策略暴露
  • 策略命名:{操作}_{表名}_{角色},如 select_profiles_authenticated
  • 禁止在策略中使用 true(即允许所有访问),必须明确条件:
-- ✅ 正确:只允许用户访问自己的数据
CREATE POLICY select_profiles_authenticated ON profiles
  FOR SELECT TO authenticated
  USING (auth.uid() = user_id);

-- ❌ 禁止:允许所有人访问
CREATE POLICY select_profiles ON profiles
  FOR SELECT USING (true);
  • 视图必须设置 security_invoker = true:
CREATE VIEW public.user_stats WITH (security_invoker = true) AS
  SELECT * FROM stats WHERE user_id = auth.uid();
  • 禁止暴露 service_role key 到客户端,仅限服务端 / Edge Functions 使用

Edge Functions

  • 函数放在 supabase/functions/ 目录,每个函数一个子目录
  • 命名:kebab-case,如 send-push-notification
  • 必须验证用户身份:
import { createClient } from 'https://esm.sh/@supabase/supabase-js@2'

Deno.serve(async (req) => {
  const authHeader = req.headers.get('Authorization')
  if (!authHeader) {
    return new Response(JSON.stringify({ error: 'Unauthorized' }), { status: 401 })
  }

  const supabase = createClient(
    Deno.env.get('SUPABASE_URL') ?? '',
    Deno.env.get('SUPABASE_ANON_KEY') ?? '',
    { global: { headers: { Authorization: authHeader } } }
  )

  const { data: { user } } = await supabase.auth.getUser()
  if (!user) {
    return new Response(JSON.stringify({ error: 'Invalid token' }), { status: 401 })
  }

  // 业务逻辑...
})

Read the full file on GitHub · 463 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. 1mo ago First seen · 463 lines · 58 tokens per session scan A b1237c486532

Subscribe to this mod's changes

backend-server is a skill published in the GitHub repository wangjianqi/AppStore (17 stars, last pushed 4mo ago), licensed MIT. It adds 58 tokens to every session and 4,225 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-31.

Related

Other skills, from other repositories

migration-helper

Guide safe database and code migrations with zero-downtime strategies.

nguyenthienthanh/aura-frog · 16 tokens

api-patterns

API route implementation patterns with RLS, validation, and error handling. Use when creating API routes, implementing CRUD endpoints, adding server-side validation, handling webhooks, or implementing error handling patterns. Do NOT use for frontend-only changes or database migrations without API involvement.

bybren-llc/safe-agentic-workflow · 57 tokens

briefbound-api-contract

Use when a change touches an external contract surface - REST/GraphQL endpoints, request/response schemas, DB schema, events, or CLI arguments - and needs design, breaking-change analysis, versioning, or a migration path; do not use for general implementation planning, code review, or feature coding.

CCDawn/codex-skills · 66 tokens

supabase-development-guide

Write Supabase migrations, RLS policies or Edge Functions; configure Deno checks, pgTAP tests, secrets or deployment.

patrickserrano/lacquer · 31 tokens

drogon-gen-orm-model

A code generator that creates Drogon ORM model classes from PostgreSQL, MySQL, or SQLite3 tables. An ORM maps database tables to program objects so code can query and update them through those objects.

voidvec/drogon-claude-plugin · 46 tokens

tdx-dev-guide

A complete development process for adding a new TDX data fetcher. A fetcher retrieves data, while a cleaner converts it into the format used by the database.

Grid0723/skills · 51 tokens