AgentXM.Examples.TinyFlags.CSharp 0.1.0

dotnet add package AgentXM.Examples.TinyFlags.CSharp --version 0.1.0
                    
NuGet\Install-Package AgentXM.Examples.TinyFlags.CSharp -Version 0.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AgentXM.Examples.TinyFlags.CSharp" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AgentXM.Examples.TinyFlags.CSharp" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="AgentXM.Examples.TinyFlags.CSharp" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AgentXM.Examples.TinyFlags.CSharp --version 0.1.0
                    
#r "nuget: AgentXM.Examples.TinyFlags.CSharp, 0.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AgentXM.Examples.TinyFlags.CSharp@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AgentXM.Examples.TinyFlags.CSharp&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=AgentXM.Examples.TinyFlags.CSharp&version=0.1.0
                    
Install as a Cake Tool

.NET C# TinyFlags

This example shows how a NuGet package can ship companion AXM extensions for its users. The package is a small C# feature flag library named AgentXM.Examples.TinyFlags.CSharp.

The AXM extensions are published to AgentXM.ai under @examples. The NuGet package uses the AgentXM.Examples.* namespace.

The package ships AXM recommendations in an axm.json sidecar packed at the NuGet package root:

{
  "recommendedExtensions": ["@examples/packs/dotnet-csharp-tinyflags@^0.1.0"]
}

When this package is installed in another project, axm discover can read ~/.nuget/packages/agentxm.examples.tinyflags.csharp/0.1.0/axm.json and surface the companion pack as a package-author recommendation.

A working consumer is in ../dotnet-csharp-app/ (the pawmatch CLI).

Package

Targets net10.0. Solution is .slnx. Shared MSBuild settings live in Directory.Build.props; package versions are managed centrally in Directory.Packages.props.

dotnet test

The library lives in src/AgentXM.Examples.TinyFlags.CSharp/TinyFlags.cs and exposes:

  • TinyFlag.Boolean(...)
  • TinyFlag.Variant(...) — accepts ReadOnlySpan<string> (collection-expression friendly)
  • TinyFlags.Create(...)
  • TinyFlags.Evaluate(...) — returns a FlagValue discriminated union (Bool / Variant)

Tests use xUnit v3 on Microsoft.Testing.Platform.

Companion Extensions

The authored extension sources live under .axm/extensions/@examples/.

Type FQN
Skill @examples/skills/dotnet-csharp-tinyflags-add-flag
Skill @examples/skills/dotnet-csharp-tinyflags-rollout-review
Skill @examples/skills/dotnet-csharp-tinyflags-cleanup-flag
Subagent @examples/subagents/dotnet-csharp-tinyflags-maintainer
Pack @examples/packs/dotnet-csharp-tinyflags

The pack bundles the three skills and the maintainer subagent. Each manifest declares pkg:nuget/agentxm.examples.tinyflags.csharp@0.1.0 as its companion package.

Scenario

A NuGet package author can use this layout as a model:

  1. Implement the normal .NET package.
  2. Pack axm.json into the NuGet package root.
  3. Add AXM extension sources in .axm/extensions/<owner>/.
  4. Mark the extensions as authored in .axm/settings.json.
  5. Publish the extensions independently or as a companion pack.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 89 5/14/2026