1.6 KiB
1.6 KiB
name, description, agent, tools, argument-hint
| name | description | agent | tools | argument-hint | ||||
|---|---|---|---|---|---|---|---|---|
| scaffold-discord-oauth-vue3-vite | 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 |
|
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.shwhen 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-oauthbundle manually. - Default to
--mode dry-rununless 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@useimports to the target project's conventions. For projects using atomic design, colocated SCSS and a stories stub are required for theDiscordAuthWidgetorganism. - 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.jsin a separate terminal (or add anauth:devscript) and configure the Vite proxy for/api/auth.