Communityコーディング&開発github.com

Anmolop97/Agent-Skills

JWT、OAuth2、セッション管理、RBACなどの認証・認可パターンをマスターし、安全でスケーラブルなアクセス制御システムを構築します。認証システムの実装、APIの保護、セキュリティ問題のデバッグに使用します。

Agent-Skills とは?

このスキルは、最新のベストプラクティスに基づいて安全でスケーラブルな認証・認可システムを構築するためのものです。JWT、OAuth2、OIDC、セッション管理、RBACなどの業界標準パターンを実装する際に役立ちます。サポート対象プラットフォームは汎用的なAIエージェントや開発ツール(Claude Code、Cursorなど)で、コード生成や設計支援に利用できます。ユーザー定義のユーザー、テナント、脅威モデルをもとに認証方式を選択し、トークンライフサイクルや認可モデルを設計します。リソースファイルとして`resources/implementation-playbook.md`が用意されており、詳細なパターンや例を参照できます。秘密情報の漏洩防止、最小権限の原則に従い、安全な運用を徹底します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Anmolop97/Agent-Skills/tree/HEAD/skills/auth-implementation-patterns

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

認証・認可実装パターン

業界標準のパターンと最新のベストプラクティスを用いて、安全でスケーラブルな認証・認可システムを構築します。

このスキルを使用する場面

  • ユーザー認証システムを実装する場合
  • RESTまたはGraphQL APIを保護する場合
  • OAuth2/ソーシャルログインまたはSSOを追加する場合
  • セッション管理またはRBACを設計する場合
  • 認証または認可の問題をデバッグする場合

このスキルを使用しない場面

  • UIのコピーやログインページのスタイリングのみが必要な場合
  • タスクがインフラのみでアイデンティティの考慮事項がない場合
  • 認証ポリシーやクレデンシャルストレージを変更できない場合

手順

  • ユーザー、テナント、フロー、脅威モデルの制約を定義します。
  • 認証方式(セッション、JWT、OIDC)とトークンライフサイクルを選択します。
  • 認可モデルとポリシー実施ポイントを設計します。
  • シークレットストレージ、ローテーション、ロギング、監査要件を計画します。
  • 詳細な例が必要な場合は、resources/implementation-playbook.md を開きます。

安全性

  • シークレット、トークン、クレデンシャルを決してログに記録しないでください。
  • 最小権限の原則を適用し、キーを安全に保存します。

リソース

  • resources/implementation-playbook.md:詳細なパターンと例を含みます。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

Anmolop97/Agent-Skills

Searches, installs, updates, and lists skills from the Antigravity Skill Vault. Use when choosing or managing workspace or global skills through the npm CLI.

Anmolop97/Agent-Skills

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

Anmolop97/Agent-Skills

Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIR...

Anmolop97/Agent-Skills

Searches, installs, updates, and lists skills from the Antigravity Skill Vault. Use when choosing or managing workspace or global skills through the npm CLI.

関連スキル