Agent Skillsai-shifu/ai-shifu › user-auth-flows

user-auth-flows

GitHub

处理后端用户认证、验证码、Token持久化及临时用户逻辑变更,确保凭证状态与提供者调度集中管理,同步更新前后端载荷。

src/api/skills/user-auth-flows/SKILL.md ai-shifu/ai-shifu

Trigger Scenarios

修改后端用户认证逻辑 调整验证码或Token持久化策略 集成新的认证提供者

Install

npx skills add ai-shifu/ai-shifu --skill user-auth-flows -g -y
More Options

Non-standard path

npx skills add https://github.com/ai-shifu/ai-shifu/tree/main/src/api/skills/user-auth-flows -g -y

Use without installing

npx skills use ai-shifu/ai-shifu@user-auth-flows

指定 Agent (Claude Code)

npx skills add ai-shifu/ai-shifu --skill user-auth-flows -a claude-code -g -y

安装 repo 全部 skill

npx skills add ai-shifu/ai-shifu --all -g -y

预览 repo 内 skill

npx skills add ai-shifu/ai-shifu --list

SKILL.md

Frontmatter
{
    "name": "user-auth-flows",
    "description": "Use when changing backend user auth, verification codes, token persistence, temp-user behavior, or auth-provider integration. Keep provider dispatch and credential state centralized."
}

User Auth Flows

Core Rules

  • Keep repository, token-store, and auth-factory paths as the source of truth.
  • Preserve verification-code consumption semantics and retry safety.
  • Update frontend-facing auth payloads together with backend persistence logic.

Workflow

  1. Start from repository.py, token_store.py, auth/factory.py, and the specific flow file such as email_flow.py or phone_flow.py.
  2. Confirm whether the change affects credentials, tokens, temp users, or provider dispatch.
  3. Update validation and persistence together; avoid one-sided changes in route or provider code.
  4. Add or update tests under src/api/tests/service/user/.

Regression Checklist

  • Happy-path login or verification.
  • Retry or duplicate submission path.
  • Invalid or expired verification code.
  • Token persistence and logout semantics when affected.

Version History

  • e65aa77 Current 2026-08-20 15:13

Same Skill Collection

src/api/skills/shifu-authoring-flow/SKILL.md
src/cook-web/skills/app-error-boundary-display/SKILL.md
src/cook-web/skills/async-confirm-dialog-loading/SKILL.md
src/cook-web/skills/chat-actionbar-ask-placement/SKILL.md
src/cook-web/skills/chat-element-streaming/SKILL.md
src/cook-web/skills/chat-layout-width-detection/SKILL.md
src/cook-web/skills/deep-link-lessonid-routing/SKILL.md
src/cook-web/skills/fullscreen-dialog-portal/SKILL.md
src/cook-web/skills/interaction-user-input-defaults/SKILL.md
src/cook-web/skills/listen-mode-audio-streaming/SKILL.md
src/cook-web/skills/listen-mode-slide-mobile-integration/SKILL.md
src/cook-web/skills/markdownflow-controlled-sync/SKILL.md
src/cook-web/skills/module-augmentation-guardrails/SKILL.md
src/cook-web/skills/next-build-node-runtime/SKILL.md
src/cook-web/skills/shared-loading-dots/SKILL.md
src/cook-web/skills/hook-contract-refactor-safety/SKILL.md

Metadata

Files
0
Version
e65aa77
Hash
5831cde7
Indexed
2026-08-20 15:13

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-25 12:53
浙ICP备14020137号-1 $방문자$