verify

GitHub

用于本地构建并启动 LLM Gateway 全栈(API、DevPass 仪表盘、网关)以端到端验证变更。支持 Stripe webhook 流程测试,通过多终端配置偏移端口避免冲突,并提供数据库种子、登录凭证及常见陷阱提示。

.claude/skills/verify/SKILL.md theopenco/llmgateway

Trigger Scenarios

需要本地端到端验证 LLM Gateway 变更 调试或测试 Stripe webhook 支付流程 本地运行 API、网关和 DevPass 仪表盘

Install

npx skills add theopenco/llmgateway --skill verify -g -y
More Options

Non-standard path

npx skills add https://github.com/theopenco/llmgateway/tree/main/.claude/skills/verify -g -y

Use without installing

npx skills use theopenco/llmgateway@verify

指定 Agent (Claude Code)

npx skills add theopenco/llmgateway --skill verify -a claude-code -g -y

安装 repo 全部 skill

npx skills add theopenco/llmgateway --all -g -y

预览 repo 内 skill

npx skills add theopenco/llmgateway --list

SKILL.md

Frontmatter
{
    "name": "verify",
    "description": "Build, launch, and drive the LLM Gateway stack locally to verify a change end-to-end (API + DevPass dashboard + gateway), including Stripe webhook flows."
}

Verify a change by running the stack

Build first (always via Turbo filters): pnpm exec turbo run build --filter=api --filter=gateway --filter=code.

Launch on offset ports (never fight other worktrees for :4002/:3004)

Each server blocks, so run each one in its own terminal session (or as its own background task). In every session, set the shared DB/Redis env first:

# All sessions — persistent containers openllm-pg (5433) and openllm-redis (6380)
export DATABASE_URL="postgres://postgres:pw@localhost:5433/db" REDIS_PORT=6380

Terminal 1 — API on :4102 (env vars on the command line beat ../../.env):

cd apps/api && PORT=4102 API_URL=http://localhost:4102 CODE_URL=http://localhost:3104 \
  ORIGIN_URLS="http://localhost:3104,http://localhost:4102" \
  node --enable-source-maps --env-file=../../.env dist/serve.js

Terminal 2 — DevPass dashboard on :3104:

cd apps/code && API_URL=http://localhost:4102 pnpm exec next dev --port 3104 --turbopack

Terminal 3 — Gateway on :4101:

cd apps/gateway && PORT=4101 node --enable-source-maps --env-file=../../.env dist/serve.js

If the DB is empty, seed with pnpm --filter db seed. Login: admin@example.com / password same as email (owns DevPass Pro org test-personal-org-id, API key llmgdev_devpass_test_token).

Gotchas

  • Session auth via curl: POST /auth/sign-in/email with Origin: header from ORIGIN_URLS, save cookies (-c cookies.txt), reuse with -b.
  • Dev-plan API keys reject provider/model ids on the gateway — use the root model id (claude-opus-4-8, not anthropic/claude-opus-4-8).
  • Stripe end-to-end: stripe listen --api-key $STRIPE_SECRET_KEY --print-secret (key from root .env; the CLI's own login is expired), restart the API with STRIPE_WEBHOOK_SECRET_TEST=<whsec>, then stripe listen --api-key ... --forward-to localhost:4102/stripe/webhook. Hosted checkout accepts 4242 4242 4242 4242. Test idempotency with stripe events resend <evt_id>.
  • Drive the dashboard with Playwright MCP; screenshots must be saved under the repo's .playwright-mcp/ (its allowed root).

Version History

  • 8c03315 Current 2026-07-24 16:53

Same Skill Collection

.agents/skills/add-model/SKILL.md
.agents/skills/blog/SKILL.md
.agents/skills/changelog/SKILL.md
.agents/skills/core-web-vitals/SKILL.md
.agents/skills/knowledge-base/SKILL.md
.agents/skills/migrations/SKILL.md
.agents/skills/pull-request/SKILL.md
.agents/skills/skill-authoring/SKILL.md
.agents/skills/verify/SKILL.md

Metadata

Files
0
Version
8c03315
Hash
4f7a163e
Indexed
2026-07-24 16:53

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-16 21:36
浙ICP备14020137号-1 $mapa de visitantes$