Skip to content

Add 7 new .NET 11 skills to dotnet11 plugin#610

Open
AbhitejJohn wants to merge 1 commit into
mainfrom
dotnet11-skills
Open

Add 7 new .NET 11 skills to dotnet11 plugin#610
AbhitejJohn wants to merge 1 commit into
mainfrom
dotnet11-skills

Conversation

@AbhitejJohn

Copy link
Copy Markdown
Contributor

Summary

Building on top of #535 (which introduced the dotnet11 plugin and the initial system-text-json-net11 skill), this PR adds 7 additional .NET 11 skills covering new/updated APIs across the framework:

  • aspnetcore-blazor-components-net11 — New .NET 11 APIs across Microsoft.AspNetCore.Components, Components.Web, and Components.Endpoints
  • aspnetcore-middleware-services-net11 — New .NET 11 APIs for ASP.NET Core middleware and services (zero-allocation data protection, etc.)
  • dotnet-networking-net11 — New .NET 11 APIs in System.Net.Sockets and System.Net.Primitives
  • dotnet-numerics-memory-net11 — New .NET 11 APIs in System.Memory and System.Runtime.Numerics for BFloat16 data pipelines
  • dotnet-runtime-core-net11 — New .NET 11 APIs in System.Runtime and System.Runtime.InteropServices
  • dotnet-security-cryptography-net11 — New .NET 11 APIs in System.Security.Cryptography and System.Security.Cryptography.Pkcs
  • system-io-compression-net11 — New Zstandard (zstd) compression APIs and ZipArchiveEntry improvements

Attribution

These skills were contributed by @ManishJayaswal.

Copilot AI review requested due to automatic review settings May 4, 2026 21:05
@github-actions

github-actions Bot commented May 4, 2026

Copy link
Copy Markdown
Contributor

Skill Coverage Report

Plugin Skill Covered Coverage
dotnet11 aspnetcore-blazor-components-net11 0/1 0%
dotnet11 aspnetcore-middleware-services-net11 0/1 0%
dotnet11 dotnet-numerics-memory-net11 0/1 0%
dotnet11 dotnet-runtime-core-net11 0/3 0%
dotnet11 system-io-compression-net11 0/1 0%
Uncovered: dotnet11/aspnetcore-blazor-components-net11
  • [CodePattern] [Display] (line 135)
Uncovered: dotnet11/aspnetcore-middleware-services-net11
  • [CodePattern] readonly (line 188)
Uncovered: dotnet11/dotnet-numerics-memory-net11
  • [CodePattern] [count] (line 59)
Uncovered: dotnet11/dotnet-runtime-core-net11
  • [CodePattern] [256] (line 215)
  • [CodePattern] [ExtendedLayout] (line 254)
  • [CodePattern] [len] (line 160)
Uncovered: dotnet11/system-io-compression-net11
  • [CodePattern] CancellationToken (line 190)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands the dotnet11 plugin by adding seven new SKILL.md documents that describe newly introduced/updated .NET 11 APIs across ASP.NET Core, runtime/interop, networking, numerics/memory, cryptography, and compression.

Changes:

  • Added seven new .NET 11 skill documents under plugins/dotnet11/skills/.
  • Documented new API surfaces (e.g., Zstandard compression, Happy Eyeballs connect, BFloat16 pipelines, cross-platform PKCS, Blazor component APIs) with tables and usage examples.
  • Included code snippets intended to demonstrate practical usage patterns for the new APIs.
Show a summary per file
File Description
plugins/dotnet11/skills/aspnetcore-blazor-components-net11/SKILL.md Documents new Blazor component/navigation/media/TempData APIs with examples.
plugins/dotnet11/skills/aspnetcore-middleware-services-net11/SKILL.md Documents new ASP.NET Core middleware/services APIs (data protection spans, zstd response compression, passkey AAGUID).
plugins/dotnet11/skills/dotnet-networking-net11/SKILL.md Documents new socket connect algorithm + IPEndPoint UTF-8 + zstd HTTP decompression.
plugins/dotnet11/skills/dotnet-numerics-memory-net11/SKILL.md Documents BinaryPrimitives BFloat16 APIs and new BigInteger/Complex features.
plugins/dotnet11/skills/dotnet-runtime-core-net11/SKILL.md Documents new runtime/interop APIs (Rune support, Base64, BFloat16 helpers, interop layout, signals).
plugins/dotnet11/skills/dotnet-security-cryptography-net11/SKILL.md Documents new cryptography APIs (verify methods, PKCS/CMS features) with tables and snippets.
plugins/dotnet11/skills/system-io-compression-net11/SKILL.md Documents Zstandard compression APIs and ZipArchiveEntry improvements with examples.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comments suppressed due to low confidence (3)

plugins/dotnet11/skills/system-io-compression-net11/SKILL.md:184

  • This example uses File.OpenRead/File.Create but doesn’t include using System.IO; (or fully qualified File). Add the missing import/qualification so the snippet is self-contained and compilable.
using System.IO.Compression;

// Configure advanced compression options
var options = new ZstandardCompressionOptions
{
    Quality = 6,
    WindowLog = 22,
    EnableLongDistanceMatching = true,
    AppendChecksum = true
};

await using var src = File.OpenRead("large-dataset.bin");
await using var dst = File.Create("large-dataset.zst");
await using var zst = new ZstandardStream(dst, options, leaveOpen: false);

plugins/dotnet11/skills/system-io-compression-net11/SKILL.md:203

  • This ZipArchiveEntry example uses ZipFile, FileAccess, StreamReader, and CancellationToken but only imports System.IO.Compression. Add the required using directives (e.g., System, System.IO, System.Threading) or fully qualify the types so the sample compiles as shown.
using System.IO.Compression;

// Inspect and read zip entries with new APIs
using var archive = ZipFile.OpenRead("archive.zip");
foreach (var entry in archive.Entries)
{
    // Query the compression method
    Console.WriteLine($"{entry.FullName}: {entry.CompressionMethod}");

    // Open with explicit access mode
    using var stream = entry.Open(FileAccess.Read);
    using var reader = new StreamReader(stream);
    string content = await reader.ReadToEndAsync();

plugins/dotnet11/skills/dotnet-security-cryptography-net11/SKILL.md:67

  • In the HMAC Verify/VerifyAsync table, the VerifyAsync(byte[] key, Stream, byte[], CancellationToken) row omits the Stream parameter name, unlike the earlier tables. Consider using a consistent signature style (e.g., Stream source) to improve readability.
| `Verify(byte[] key, byte[] source, byte[] hash)` | Byte array verify |
| `Verify(ReadOnlySpan<byte>, ReadOnlySpan<byte>, ReadOnlySpan<byte>)` | Span verify |
| `VerifyAsync(byte[] key, Stream, byte[], CancellationToken)` | Async stream |
| `VerifyAsync(ReadOnlyMemory<byte>, Stream, ReadOnlyMemory<byte>, CancellationToken)` | Async memory |
  • Files reviewed: 7/7 changed files
  • Comments generated: 7

byte[] sourceData = File.ReadAllBytes("data.bin");

// Compress with the low-level encoder
var encoder = new ZstandardEncoder(quality: 3);
Comment on lines +151 to +154
using System.IO.Compression;

byte[] sourceData = File.ReadAllBytes("data.bin");

Comment on lines +68 to +70
Socket.ConnectAsync(SocketType.Stream, ProtocolType.Tcp,
args, ConnectAlgorithm.Parallel);
```
Comment on lines +296 to +305
@page "/checkout"
@inject ITempData TempData

@code {
private void SaveAndNavigate()
{
TempData["OrderId"] = "ORD-12345";
TempData["Message"] = "Order placed successfully!";
Nav.NavigateTo("/confirmation");
}
Comment on lines +296 to +303
| `PosixSignal.SIGKILL` | `-11` | Force-terminate a process |

> SIGKILL cannot be caught or ignored. This value is for sending signals
> to other processes.

```csharp
PosixSignal signal = PosixSignal.SIGKILL;
Console.WriteLine($"Signal value: {(int)signal}"); // -11
Comment on lines +60 to +64
using System.Buffers.Binary;
using System.Numerics;

byte[] fileData = File.ReadAllBytes("weights.bin");
int count = fileData.Length / 2;
| `VerifyHmac(HashAlgorithmName, byte[] key, byte[] source, byte[] hash)` | Byte array overload |
| `VerifyHmac(HashAlgorithmName, ReadOnlySpan<byte>, ReadOnlySpan<byte>, ReadOnlySpan<byte>)` | Span overload |
| `VerifyHmac(HashAlgorithmName, byte[] key, Stream source, byte[] hash)` | Stream overload |
| `VerifyHmacAsync(HashAlgorithmName, byte[] key, Stream, byte[], CancellationToken)` | Async stream |
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

✅ Automated diff scan completed for 8da37ce — no security concerns flagged.

This is an automated static analysis of the PR diff.

Generated by PR Malicious Code Scan · ● 664K ·

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

✅ Automated diff scan completed for 8da37ce — no security concerns flagged.

This is an automated static analysis of the PR diff.

Generated by PR Malicious Code Scan · ● 590.3K ·

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

✅ Automated diff scan completed for 8da37ce — no security concerns flagged.

This is an automated static analysis of the PR diff.

Generated by PR Malicious Code Scan · ● 281.8K ·

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

This PR has been automatically marked as stale because it has no activity for 30 days. It will be closed if no further activity occurs within another 7 days of this comment. If it is closed, you may reopen it anytime when you're ready again.

Note

🔒 Integrity filter blocked 26 items

The following items were blocked because they don't meet the GitHub integrity level.

  • #694 list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #686 list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #682 list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #609 list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #601 list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #598 list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #502 list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #486 list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #376 list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #329 list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #303 list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #269 list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #267 list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #266 list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #265 list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #263 list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • ... and 10 more items

To allow these resources, lower min-integrity in your GitHub frontmatter:

tools:
  github:
    min-integrity: approved  # merged | approved | unapproved | none

Generated by Close Stale Pull Requests · ● 505.7K ·

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants