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

carpanet

Load when building .NET ATProtocol applications with CarpaNet source generators, XRPC queries, Jetstream subscriptions, OAuth 2.0 DPoP, or Lexicon JSON models.

インストール方法を見る

含まれるファイル(2)

  • SKILL.md2.7 KB
  • resources/guide.md30.8 KB

SKILL.md(原文)

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

<!-- ABOUTME: Compact router for CarpaNet ATProtocol and Roslyn source generator development. --> <!-- ABOUTME: Guides lexicon resolution, XRPC client instantiation, Jetstream, and DPoP authentication. -->

CarpaNet ATProtocol Development Router

Must-Read Docs

Top 5 Invariants

  1. Declare required lexicons in .csproj using <LexiconResolve Include="..."/> or <LexiconFiles Include="..."/> to drive compile-time source generation.
  2. Use source-generated ATProtoClientFactory.Create() or explicit ATProtoJsonContext and ATProtoCborContext instances to ensure reflection-free NativeAOT compatibility.
  3. Use JetstreamV2Client with JetstreamV2SubscribeOptions for live event ingestion, and persist evt.Seq for deterministic resume across restarts.
  4. For user-facing authentication, use OAuthSession with IOAuthSessionStore to manage DPoP keys and token lifecycle securely.
  5. All ATProtocol records and parameters use strongly-typed identifiers (ATDid, ATHandle, ATUri, ATIdentifier) with implicit string conversions.

Top 5 Anti-Patterns

  1. Assuming all Bluesky lexicons are present without explicitly declaring them in the project MSBuild file.
  2. Relying on reflection-based System.Text.Json serialization instead of the source-generated contexts.
  3. Swallowing ATProtoException errors or using legacy event callbacks instead of IAsyncEnumerable streaming.
  4. Committing plain user passwords instead of utilizing App Passwords or OAuth 2.0 DPoP authorization.
  5. Hardcoding relay or PDS URLs instead of resolving them via IdentityResolver.

Minimal Examples

// Unauthenticated public query
var client = ATProtoClientFactory.Create();
var profile = await client.AppBskyActorGetProfileAsync(
    new AppBsky.Actor.GetProfileParameters { Actor = new ATHandle("alice.bsky.social") });
// Real-time Jetstream v2 subscription
using var jetstream = new JetstreamV2Client(new Uri(BlueskyServices.JetstreamUsEast));
await foreach (var evt in jetstream.SubscribeAsync(new JetstreamV2SubscribeOptions
{
    Collections = ["app.bsky.feed.post"]
}))
{
    Console.WriteLine($"seq={evt.Seq} {evt.Commit?.Collection}/{evt.Commit?.Rkey}");
}

Verification Hooks

  • dotnet build --configuration Release --verbosity quiet
  • dotnet test --project tests/Event.Architecture.Tests/Event.Architecture.Tests.csproj --configuration Release --verbosity quiet

Related Skills

レビュー

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

同じリポジトリのスキル

概要と使いどころ

Load for Blazor/MudBlazor UI changes involving forms, dialogs, focus, keyboard navigation, landmarks, ARIA, color contrast, RTL-safe styling, or WCAG 2.2 AA tests; not for backend-only changes.

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

islamu-ngo/Event82026年10月12日 更新

Load when a task asks to research, verify, compare, or look up framework/package behavior, release notes, standards, RFCs, CVEs, or unfamiliar APIs; use repository evidence first, then official docs, and not for codebase navigation alone.

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

islamu-ngo/Event82026年10月12日 更新

aspire

無料

Load for Aspire AppHost work: start/stop/wait resources, inspect dashboard/logs/traces, add integrations/resources, rebuild a service, run isolated worktrees, or diagnose Aspire orchestration; not for plain dotnet apps, container-only deployments, or cloud deployment.

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

islamu-ngo/Event82026年10月12日 更新

Load for authentication or authorization changes involving BFF cookies/tokens, JWT validation, claims/user ID extraction, policies, handler access checks, impersonation, or 401/403 bugs; not for UI affordance gating alone.

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

islamu-ngo/Event82026年10月12日 更新

Load for Blazor BFF server work involving YARP proxy routes, cookie sessions, access-token forwarding/refresh, downstream API calls, BFF handlers, or browser-to-API auth failures; not for client component rendering or API JWT validation alone.

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

islamu-ngo/Event82026年10月12日 更新

Load when editing Blazor `.razor.css`, scoped selectors, `::deep`, BEM class names, RTL/logical CSS properties, or styling nested MudBlazor components; not for global design tokens or non-Blazor CSS.

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

islamu-ngo/Event82026年10月12日 更新

islamu-ngo のスキルをすべて見る

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