跳到正文
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(原文)

安装前可以查看交给 AI 代理的指令内容。

<!-- 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

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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月21日 更新

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月21日 更新

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月21日 更新

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月21日 更新

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月21日 更新

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月21日 更新

查看 islamu-ngo 的全部技能

报告此技能的问题