CommunityCodierung & Entwicklunggithub.com

Skill-Index-Snippets

Erstelle und pflege AGENTS.md / CLAUDE.md Snippet-Indexe, die Aufgaben an die richtigen dotnet-skills und Agenten weiterleiten (inkl. komprimierter Vercel-ähnlicher Indexe).

Was ist Skill-Index-Snippets?

Diese Skill-Anleitung dient dazu, einen kompakten, stets aktiven Index in AGENTS.md oder CLAUDE.md zu erstellen und zu warten, der KI-Assistenten wie Claude Code, Cursor oder Codex dabei hilft, Aufgaben effizient an die richtigen dotnet-skills und Spezialagenten weiterzuleiten. Anstatt darauf zu hoffen, dass der Assistent sich an eine bestimmte Fähigkeit "erinnert", wird ein kleiner Router-Snippet bereitgestellt, der retrieval-basiertes Denken erzwingt, eine Aufgaben-zu-Skill/Agenten-Routingtabelle enthält und optionale Qualitätsprüfungen definiert. Die Quelle der Wahrheit ist die plugin.json-Datei, in der alle Skills (als Verzeichnisse mit SKILL.md) und Agenten (als Markdown-Dateien) registriert sind. Es werden sowohl ein lesbarer Minimal-Snippet als auch ein maximal komprimierter, kontextsparender Vercel-ähnlicher Snippet bereitgestellt. Nach Änderungen an Skills oder Agenten muss die plugin.json aktualisiert, die Skills validiert und die Snippet-Routing-Listen entsprechend angepasst werden – entweder manuell oder durch Ausführen des Skripts `./scripts/generate-skill-index-snippets.sh --update-readme`.

Funktioniert mit✓Claude Code~Codex CLI~Cursor✓OpenCode
npx skills add https://github.com/Aaronontheweb/dotnet-skills/tree/main/skills/skills-index-snippets

Installed? Explore more Codierung & Entwicklung skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Pflege von Skill-Index-Snippets (AGENTS.md / CLAUDE.md)

Wann diese Fähigkeit verwendet werden soll

Verwende diese Fähigkeit bei:

  • Hinzufügen, Entfernen oder Umbenennen von Skills oder Agenten in diesem Repository
  • Aktualisieren von .claude-plugin/plugin.json
  • Erstellen von Kopier-/Einfüge-Snippets für nachgelagerte Repositories (OpenCode, Claude Code, etc.)
  • Einem kompakten, stets aktiven Index, der die Skill-Nutzung verbessert

Ziel

Skills und Agenten für Programmierassistenten einfach nutzbar machen, indem die Entscheidungsfindung reduziert wird.

Anstatt darauf zu hoffen, dass ein Assistent sich "erinnert", eine Fähigkeit aufzurufen, wird ein kleiner Router-Snippet in AGENTS.md / CLAUDE.md bereitgestellt, der:

  1. Den Assistenten anweist, retrieval-basiertes Denken zu bevorzugen
  2. Einen Aufgaben-zu-Skill/Agenten-Routingindex bereitstellt
  3. Leichte Qualitätsprüfungen definiert (optional)

Quelle der Wahrheit

  • Registry: .claude-plugin/plugin.json
    • Skills werden als Verzeichnisse aufgelistet (jedes enthält SKILL.md)
    • Agenten werden als Markdown-Dateien in agents/ aufgelistet
  • Skill-IDs: das name:-Feld in der Frontmatter jeder SKILL.md
  • Agenten-IDs: das name:-Feld in der Frontmatter jedes Agenten

Beim Schreiben von Snippets für nachgelagerte Repos immer auf Skills/Agenten anhand ihrer IDs (Frontmatter name) verweisen, nicht auf lokale Dateisystempfade.

Minimal-Snippet-Vorlage (Lesbar)

Verwende dies in Ziel-Repos, um häufige Aufgaben zu routen:

# Agent Guidance: dotnet-skills

IMPORTANT: Prefer retrieval-led reasoning over pretraining for any .NET work.
Workflow: skim repo patterns -> consult dotnet-skills by name -> implement smallest-change -> note conflicts.

Routing (invoke by name)
- C# / code quality: modern-csharp-coding-standards, csharp-concurrency-patterns, api-design, type-design-performance
- ASP.NET Core / Web (incl. Aspire): aspire-service-defaults, aspire-integration-testing
- Data: efcore-patterns, database-performance
- DI / config: dependency-injection-patterns, microsoft-extensions-configuration
- Testing: testcontainers-integration-tests, playwright-blazor-testing, snapshot-testing

Quality gates (use when applicable)
- dotnet-slopwatch: after substantial new/refactor/LLM-authored code
- crap-analysis: after tests added/changed in complex code

Specialist agents
- dotnet-concurrency-specialist, dotnet-performance-analyst, dotnet-benchmark-designer, akka-net-specialist, docfx-specialist

Komprimierte Snippet-Vorlage (Vercel-Stil)

Verwende dies, wenn maximale Dichte gewünscht wird (kleiner Kontext-Fußabdruck):

[dotnet-skills]|IMPORTANT: Prefer retrieval-led reasoning over pretraining for any .NET work.
|flow:{skim repo patterns -> consult dotnet-skills by name -> implement smallest-change -> note conflicts}
|route:
|csharp:{modern-csharp-coding-standards,csharp-concurrency-patterns,api-design,type-design-performance}
|aspnetcore-web:{aspire-service-defaults,aspire-integration-testing}
|data:{efcore-patterns,database-performance}
|di-config:{dependency-injection-patterns,microsoft-extensions-configuration}
|testing:{testcontainers-integration-tests,playwright-blazor-testing,snapshot-testing}
|quality-gates:{dotnet-slopwatch(after:substantial new/refactor/LLM code),crap-analysis(after:tests added/changed in complex code)}
|agents:{dotnet-concurrency-specialist,dotnet-performance-analyst,dotnet-benchmark-designer,akka-net-specialist,docfx-specialist}

Den README-Block neu generieren

Wenn das README die folgenden Markierungen enthält, kann der Generator es automatisch aktualisieren:

<!-- BEGIN DOTNET-SKILLS COMPRESSED INDEX -->
...compressed snippet...
<!-- END DOTNET-SKILLS COMPRESSED INDEX -->

Führe aus:

./scripts/generate-skill-index-snippets.sh --update-readme

So aktualisierst du Snippets nach Skill-Änderungen

  1. Aktualisiere .claude-plugin/plugin.json, um Skills und Agenten aufzunehmen/zu entfernen.
  2. Stelle sicher, dass jeder Skill die korrekte Frontmatter name: hat (wird von OpenCode und anderen verwendet).
  3. Führe ./scripts/validate-marketplace.sh aus.
  4. Aktualisiere deine Snippet-Routing-Listen:
    • Füge neue Skills in die richtige Kategorie ein
    • Entferne gelöschte Skills
    • Die Namen müssen exakt mit den Frontmatter-IDs übereinstimmen
  5. Wenn du einen nachgelagerten AGENTS.md/CLAUDE.md-Snippet pflegst, generiere ihn neu und kopiere ihn erneut in die abhängigen Repos.

Empfohlene Kategorien

Dies sind Snippet-Kategorien (nicht unbedingt die Repository-Ordnerstruktur):

  • C# / Codequalität
  • ASP.NET Core / Web (inkl. Aspire)
  • Daten
  • DI / Konfiguration
  • Tests
  • Qualitätsprüfungen
  • Spezialagenten

Halte das Snippet klein; es sollte ein Router sein, keine Dokumentation.

Individual skills in this repo

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

akka-hosting-actor-patterns

Patterns for building entity actors with Akka.Hosting - GenericChildPerEntityParent, message extractors, cluster sharding abstraction, akka-reminders, and ITimeProvider. Supports both local testing and clustered production modes.

akka-net-aspire-configuration

Configure Akka.NET with .NET Aspire for local development and production deployments. Covers actor system setup, clustering, persistence, Akka.Management integration, and Aspire orchestration patterns.

akka-net-best-practices

Critical Akka.NET best practices including EventStream vs DistributedPubSub, supervision strategies, error handling, Props vs DependencyResolver, work distribution patterns, and cluster/local mode abstractions for testability.

akka-net-management

Akka.Management for cluster bootstrapping, service discovery (Kubernetes, Azure, Config), health checks, and dynamic cluster formation without static seed nodes.

akka-net-testing-patterns

Write unit and integration tests for Akka.NET actors using modern Akka.Hosting.TestKit patterns. Covers dependency injection, TestProbes, persistence testing, and actor interaction verification. Includes guidance on when to use traditional TestKit.

api-design

Design stable, compatible public APIs using extend-only design principles. Manage API compatibility, wire compatibility, and versioning for NuGet packages and distributed systems.

aspire-configuration

Configure Aspire AppHost to emit explicit app config via environment variables; keep app code free of Aspire clients and service discovery.

aspire-integration-testing

Write integration tests using .NET Aspire

aspire-service-defaults

Create a shared ServiceDefaults project for Aspire applications. Centralizes OpenTelemetry, health checks, resilience, and service discovery configuration across all services.

crap-analysis

Analyze code coverage and CRAP (Change Risk Anti-Patterns) scores to identify high-risk code. Use OpenCover format with ReportGenerator for Risk Hotspots showing cyclomatic complexity and untested code paths.

csharp-concurrency-patterns

Choosing the right concurrency abstraction in .NET - from async/await for I/O to Channels for producer/consumer to Akka.NET for stateful entity management. Avoid locks and manual synchronization unless absolutely necessary.

database-performance

Database access patterns for performance. Separate read/write models, avoid N+1 queries, use AsNoTracking, apply row limits, and never do application-side joins. Works with EF Core and Dapper.

dependency-injection-patterns

Organize DI registrations using IServiceCollection extension methods. Group related services into composable Add* methods for clean Program.cs and reusable configuration in tests.

dotnet-devcert-trust

Diagnose and fix .NET HTTPS dev certificate trust issues on Linux. Covers the full certificate lifecycle from generation to system CA bundle inclusion, with distro-specific guidance for Ubuntu, Fedora, Arch, and WSL2.

dotnet-local-tools

Managing local .NET tools with dotnet-tools.json for consistent tooling across development environments and CI/CD pipelines.

dotnet-project-structure

Modern .NET project structure including .slnx solution format, Directory.Build.props, central package management, SourceLink, version management with RELEASE_NOTES.md, and SDK pinning with global.json.

dotnet-slopwatch

Use Slopwatch to detect LLM reward hacking in .NET code changes. Run after every code modification to catch disabled tests, suppressed warnings, empty catch blocks, and other shortcuts that mask real problems.

efcore-patterns

Entity Framework Core best practices including NoTracking by default, query splitting for navigation collections, migration management, dedicated migration services, and common pitfalls to avoid.

ilspy-decompile

Understand implementation details of .NET code by decompiling assemblies. Use when you want to see how a .NET API works internally, inspect NuGet package source, view framework implementation, or understand compiled .NET binaries.

mailpit-integration

Test email sending locally using Mailpit with .NET Aspire. Captures all outgoing emails without sending them. View rendered HTML, inspect headers, and verify delivery in integration tests.

Verwandte Skills