/uno-platform:uno-agentic-supportfrom uno-platform
Configures Uno Platform apps for agent-driven execution: enables early-start logging to AGENT_CONSOLE_LOG and disables Hot Reload/Hot Design UI during agent testing.
Ships in uno-platform. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use when using agents to run a Uno Platform app. This skill ensures that the Uno app is properly set up to support agentic development.
When the app is run by an agent - i.e. the AGENT_CONSOLE_LOG is passed in as a command-line argument or else if the AGENT_CONSOLE_LOG environment variable is set - the skill will ensure that:
Select this skill for any of:
AGENT_CONSOLE_LOG was passed in as a command-line argument or the AGENT_CONSOLE_LOG environment variable is set, and any of below is true:
uno-agentic-supportuno-agentic-support: true but the Uno app is still showing the Hot Reload / Hot Design UI when launched by the agentBefore applying edits from this skill, run this prerequisite check in the current working folder and act on the result.
A Uno Platform app project must exist in or under the working folder. Find the Uno app .csproj in the working folder or any subfolder. A valid Uno app project must use the Uno SDK and contain App.xaml.cs in or under the project folder.
If the Uno Platform app project is not found, report this to the user and STOP.
In App.xaml.cs:
Adapt, don't paste blindly. Uno templates and application host setup vary. Preserve existing app behavior, logging providers, filters, host configuration, namespaces, and comments unless they directly conflict with agentic support.
Ensure that the App class includes these code snippets:
#if DEBUG
readonly bool startedByAgent;
#endif
#if DEBUG
void InitializeAgentSupport(string? agentConsoleLogPath)
{
if (agentConsoleLogPath is not null)
{
var stream = new FileStream(agentConsoleLogPath, FileMode.CreateNew, FileAccess.Write, FileShare.Read);
#pragma warning disable CA2000 // Dispose objects before losing scope
var writer = new StreamWriter(stream) { AutoFlush = true };
#pragma warning restore CA2000 // Dispose objects before losing scope
Console.SetOut(writer);
Console.SetError(writer);
}
// Make sure that loggings made before the application host is initialized are captured
LogExtensionPoint.AmbientLoggerFactory = LoggerFactory.Create(ConfigureAppLogging);
#if HAS_UNO
Uno.UI.Adapter.Microsoft.Extensions.Logging.LoggingAdapter.Initialize();
#endif
}
static string? ResolveAgentConsoleLogPath()
{
const string key = "AGENT_CONSOLE_LOG";
string prefix = key + "=";
foreach (string arg in Environment.GetCommandLineArgs())
{
if (arg.StartsWith(prefix, StringComparison.Ordinal))
{
string value = arg[prefix.Length..];
if (!string.IsNullOrEmpty(value)) return value;
}
}
string? fromEnv = Environment.GetEnvironmentVariable(key);
return string.IsNullOrEmpty(fromEnv) ? null : fromEnv;
}
#endif
void ConfigureAppLogging(ILoggingBuilder logBuilder)
{
_ = logBuilder.SetMinimumLevel(LogLevel.Warning);
#if DEBUG
// Set the default log level for the app's own namespace to Debug
_ = logBuilder.AddFilter(GetType().Namespace!.Split('.')[0], LogLevel.Debug);
// Make sure that agents receive the logs in the console
if (startedByAgent) _ = logBuilder.AddConsole();
// Uno Platform namespace filter groups
// Uncomment individual methods to see more detailed logging
//// Generic Xaml events
//logBuilder.XamlLogLevel(LogLevel.Debug);
//// Layout specific messages
//logBuilder.XamlLayoutLogLevel(LogLevel.Debug);
//// Storage messages
//logBuilder.StorageLogLevel(LogLevel.Debug);
//// Binding related messages
//logBuilder.XamlBindingLogLevel(LogLevel.Debug);
//// Binder memory references tracking
//logBuilder.BinderMemoryReferenceLogLevel(LogLevel.Debug);
//// DevServer and HotReload related
//logBuilder.HotReloadCoreLogLevel(LogLevel.Information);
//// Debug JS interop
//logBuilder.WebAssemblyLogLevel(LogLevel.Debug);
#endif
}
The App constructor must begin with below statements. Add them if not present, or move them to the top of the constructor if present but not at the top:
#if DEBUG
string? agentConsoleLogPath = ResolveAgentConsoleLogPath();
startedByAgent = agentConsoleLogPath is not null;
InitializeAgentSupport(agentConsoleLogPath);
var logger = this.Log();
if (logger.IsEnabled(LogLevel.Debug)) logger.LogDebug("Application Launched in DEBUG mode. uno-agentic-support: {StartedByAgent}", startedByAgent);
#endif
In the OnLaunched method:
.UseLogging() with configure: ConfigureAppLogging and enableUnoLogging: true..UseLogging() already exists, preserve existing app-specific logging setup and adapt it so ConfigureAppLogging still runs and Uno logging remains enabled..UseLogging() is missing, add it in the existing host configuration chain:
.UseLogging(
configure: ConfigureAppLogging,
enableUnoLogging: true
)
ConfigureAppLogging, preserve any existing app-specific filters and providers. Add the agent-specific pieces only if they are missing:
logBuilder.SetMinimumLevel(LogLevel.Warning);logBuilder.AddFilter(GetType().Namespace!.Split('.')[0], LogLevel.Debug);if (startedByAgent) logBuilder.AddConsole();UseStudio call is present, replace it with:
#if DEBUG
MainWindow.UseStudio(showHotReloadIndicator: !startedByAgent, launchHotDesignOnStart: !startedByAgent);
#endif
After editing:
AGENT_CONSOLE_LOG=<new-log-path>.uno-agentic-support:. Match this case-insensitively.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
9 skills in this plugin
/uno-csharpmarkup2Build or edit Uno Platform 6 UI in declarative C# with C# Markup 2 (CSharpForMarkup), instead of XAML. Use for Uno 6 apps on .NET 10/9 with MVVM or MVUX, Uno Extensions Navigation/Toolkit, and supported C# Markup 2 integrations such as LiveCharts2, ScottPlot, and Mapsui./uno-fluent2Fluent 2 Design System for Uno Platform. Use when designing UI layouts, choosing colors, applying typography, setting elevation/shadows, using theme resources, applying lightweight styling, or implementing Fluent Design principles in WinUI/Uno XAML apps. Covers color, typography, geometry, materials, motion, iconography, spacing, elevation, and responsive breakpoints./uno-npx claudepluginhub vincenth-net/dotnet-agentic-engineering --plugin uno-platform