一键导入
monolith-auth-and-sessions
Use when implementing login/signup/logout, access control, and cookie-backed session logic in this Monolith app.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when implementing login/signup/logout, access control, and cookie-backed session logic in this Monolith app.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | monolith-auth-and-sessions |
| description | Use when implementing login/signup/logout, access control, and cookie-backed session logic in this Monolith app. |
app/session/session.goconfig.SECRET_KEYRun: make generator authentication
Scaffold includes:
User model/login, /signup, /logoutsession.InitSession().Wrap handlers with login/admin middleware decorators.
If user is anonymous, redirect to /login.
SECRET_KEY in production.Use when generating or extending the built-in admin dashboard, admin-only middleware, and pprof debug endpoints.
Use when an agent needs authoritative make/go command usage in this repository, including test, run, guides, deploy, server setup, and generator invocations.
Use when building HTTP controllers and templates, including REST action scaffolding, view rendering patterns, and route wiring.
Use when working on persistence setup, migrations, and service integrations (like email) that depend on app config and models.
Use when adding app features via the built-in generator (model/controller/resource/authentication/job/admin), including expected file mutations and post-generation validation.
Use when creating or extending asynchronous background jobs, including generator usage, queue registration, payload handling, and worker lifecycle.