extension-backendlisted
Install: claude install-skill andrewr303/claude-codex-plugin-lab
# Extension Backend
Build a secure, maintainable backend API for a Chrome extension. Recommended stack: **NestJS + MongoDB (Mongoose)**.
## When to Activate
Activate this skill when extension work requires:
- License verification / payment webhooks
- User authentication / account management
- Data sync across devices
- External API proxy (hide API keys from extension)
- Any server-side logic
## Workflow (Execute This)
### Step 1: Ask user to confirm requirements
1. **Do you need a backend?** (explain why: API keys, auth, payments, sync)
2. **Stack preference**: NestJS + MongoDB (recommended) or custom?
3. **Hosting target**: Vercel / Railway / Fly.io / AWS / self-hosted?
4. **Features needed** (pick from):
- User auth (Google OAuth via chrome.identity)
- License/subscription verification
- Payment webhooks (Stripe, Paddle, etc.)
- Data sync / storage API
- External API proxy
- Rate limiting
### Step 2: Fetch framework docs
Use `docs-seeker` skill to fetch latest docs:
- **NestJS**: https://docs.nestjs.com/
- **Mongoose**: https://mongoosejs.com/docs/
- **TypeScript style**: https://google.github.io/styleguide/tsguide.html
- **JavaScript style**: https://google.github.io/styleguide/jsguide.html
### Step 3: Scaffold the backend
```bash
npx @nestjs/cli new extension-backend --strict --package-manager pnpm
cd extension-backend
pnpm add @nestjs/mongoose mongoose @nestjs/config class-validator class-transformer
pnpm add helmet @nestjs/throttler
pnpm add