360 Secure SkillHub
360 安全技能中心

Authentication

核心功能为提供身份验证四阶段结构化指导(澄清目标、设计方案、落地验证、运维迭代),附完成前检查清单,可切换至自由模式。典型场景包括登录实现、令牌刷新、认证bug修复,或认证项目评审、上线等。输入为用户的认证需求/问题,输出针对性实操步骤、风险提示,助力规范推进认证工作。

codenova58
codenova58
热度 62.15
最近更新 2026-05-11 17:37:15
分类:安全依赖:纯提示词应用场景:调试排错 / 工作流 / 概念解释

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add authentication
Metadata
name
authentication
description
Proving identity: sessions, tokens, MFA, recovery. Use when implementing login, token refresh, or auth bugs.

Authentication Skill

This skill provides structured guidance for Authentication work. Act as an active guide: confirm triggers, propose the stages below, and adapt if the user wants a lighter pass.

When to Offer This Workflow

Trigger conditions:

  • User mentions authentication or closely related work
  • They want a structured workflow rather than ad-hoc tips
  • They are preparing a review, rollout, or stakeholder communication

Initial offer: Explain the four stages briefly and ask whether to follow this workflow or work freeform. If they decline, continue in their preferred style.

Workflow Stages

Stage 1: Clarify context & goals

Anchor on threat model: sessions vs tokens. Ask what success looks like, constraints, and what must not break. Capture unknowns early.

Stage 2: Design or plan the approach

Translate goals into a concrete plan around passwords, MFA, and recovery. Compare alternatives and explicit trade-offs; avoid implicit assumptions.

Stage 3: Implement, validate, and harden

Execute with verification loops tied to token lifetime and refresh. Prefer small steps, measurable checks, and rollback points where risk is high.

Stage 4: Operate, communicate, and iterate

Close the loop with logging, lockout, and abuse: monitoring, documentation, stakeholder updates, and lessons learned for the next cycle.

Checklist Before Completion

  • Goals and constraints are explicit for Authentication Skill
  • Risks and trade-offs are stated, not hand-waved
  • Verification steps match the change’s impact (tests, canary, peer review)
  • Operational follow-through is covered (monitoring, docs, owners)

Tips for Effective Guidance

  • Be procedural: stage-by-stage, with clear exit criteria
  • Ask for missing context (environment, scale, deadlines) before prescribing
  • Prefer checklists and concrete examples over generic platitudes
  • If the user declines the workflow, switch to freeform help without lecturing

Handling Deviations

  • If the user wants to skip a stage: confirm and continue with what they need.
  • If context is missing: ask targeted questions before strong recommendations.
  • Prefer concrete examples, trade-offs, and verification steps over generic advice.

Quality Bar

  • Each recommendation should be actionable (what to do next).
  • Call out failure modes relevant to Authentication (security, scale, UX, or ops).
  • Keep tone direct and respectful of the user’s time.