19 lines
1.6 KiB
Markdown
19 lines
1.6 KiB
Markdown
---
|
|
name: "scaffold-discord-oauth-vue3-vite"
|
|
description: "Scaffold a full-stack Vue 3 + Vite Discord OAuth setup: server bundle under src/server with PKCE, sessions, and allowlist support, plus client-side composable, DiscordAuthWidget organism, callback page, router guard, and Vite proxy."
|
|
agent: "agent"
|
|
tools: [read, search, execute, edit]
|
|
argument-hint: "project-root=<path> mode=<dry-run|apply> frontend-origin=<url> allowlist-discord-ids=<csv>"
|
|
---
|
|
|
|
Scaffold Discord OAuth for the target project following the discord-oauth-vue3-vite skill procedure.
|
|
|
|
Requirements:
|
|
|
|
- Prefer `resources/scripts/scaffold-discord-oauth-vue3-vite.sh` when the shared resources repo is available in the current workspace or agent context.
|
|
- If that script path is not available, do not stop. Fall back to the skill procedure and scaffold the `src/server/discord-oauth` bundle manually.
|
|
- Default to `--mode dry-run` unless the user explicitly asks for apply mode.
|
|
- Keep the generated auth bundle under `src/server/`.
|
|
- After the server bundle, place the client-side files using the reference templates in `resources/templates/discord-oauth-vue3-vite/src/client/`. Adapt component tier paths and SCSS `@use` imports to the target project's conventions. For projects using atomic design, colocated SCSS and a stories stub are required for the `DiscordAuthWidget` organism.
|
|
- Summarize the generated server files, the client files placed, the env vars the user still needs to set, and the runtime wiring step.
|
|
- Include a concrete next action: run `node src/server/discord-oauth/server.js` in a separate terminal (or add an `auth:dev` script) and configure the Vite proxy for `/api/auth`. |