本文へ移動
cccskills
無料GitHub で公開

shared-auth-component-placement

Place reusable auth components in the shared layer without breaking ASP.NET Core consumers or tests.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md1.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Shared Auth Component Placement

Context

Use this when an authentication or authorization component is being extracted from a host project into a shared library such as Managers.

Patterns

  • Put reusable claims transformation logic in JosephGuadagno.Broadcasting.Managers instead of duplicating it per host.
  • If the shared component implements ASP.NET Core auth contracts like IClaimsTransformation, add <FrameworkReference Include="Microsoft.AspNetCore.App" /> to that class library.
  • Remove the old host-local implementation after extraction so the host resolves a single canonical type.
  • Update tests to import the shared namespace explicitly when the type no longer lives in the host project.

Examples

  • src\JosephGuadagno.Broadcasting.Managers\EntraClaimsTransformation.cs
  • src\JosephGuadagno.Broadcasting.Managers\JosephGuadagno.Broadcasting.Managers.csproj
  • src\JosephGuadagno.Broadcasting.Web.Tests\EntraClaimsTransformationTests.cs

Anti-Patterns

  • Leaving the extracted component in both the shared library and the original host project.
  • Moving an ASP.NET Core auth type into a class library without adding the required framework reference.
  • Letting tests compile against a host-local copy when the shared implementation is supposed to be canonical.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Standard collaboration patterns for all squad agents — worktree awareness, decisions, cross-agent communication

日本語の概要は準備中です。原文の説明を表示しています。

jguadagno/jjgnet-broadcast182026年8月4日 更新

Shared hard rules enforced across all squad agents

日本語の概要は準備中です。原文の説明を表示しています。

jguadagno/jjgnet-broadcast182026年8月4日 更新

Comprehensive AI prompt engineering safety review and improvement prompt. Analyzes prompts for safety, bias, security vulnerabilities, and effectiveness while providing detailed improvement recommendations with extensive frameworks, testing methodologies, and educational content.

日本語の概要は準備中です。原文の説明を表示しています。

jguadagno/jjgnet-broadcast182026年8月4日 更新

Migrate API controller scope checks to framework-enforced authorization policies while preserving ownership checks.

日本語の概要は準備中です。原文の説明を表示しています。

jguadagno/jjgnet-broadcast182026年8月4日 更新

Review API DTO implementations for contract/domain separation, mapping patterns, and REST compliance

日本語の概要は準備中です。原文の説明を表示しています。

jguadagno/jjgnet-broadcast182026年8月4日 更新

Register shared claims transformation and hierarchical role policies in the API without breaking existing scope enforcement.

日本語の概要は準備中です。原文の説明を表示しています。

jguadagno/jjgnet-broadcast182026年8月4日 更新

jguadagno のスキルをすべて見る

このスキルの問題を報告する