warptoolkit-console-diagnostics

Implements console output, hex dumping, and unique filename generation in WinForms apps.

1|1|Updated Jun 12, 2022
One-click install
npx skills add https://github.com/KlausLoeffelmann/WinFormsDevTools --skill warptoolkit-console-diagnostics-klausloeffelmann
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: warptoolkit-console-diagnostics
Source: https://github.com/KlausLoeffelmann/WinFormsDevTools/tree/main/.github/skills/WARP-Console-Diagnostics
Command: npx skills add https://github.com/KlausLoeffelmann/WinFormsDevTools --skill warptoolkit-console-diagnostics-klausloeffelmann

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires WarpToolkit.WinForms.Specialized.

What problem does it solve? WinForms developers often need an in-process console pane for diagnostics, a way to inspect raw bytes as hex/ASCII, and collision-free filenames for exports. This Skill documents the WarpToolkit.WinForms.Specialized APIs that cover all three tasks with verified signatures. ## Core Features & Use Cases - ConsoleControl: A RichTextBox-derived interactive console with async styled writes, channel-colored output (Trace, Debug, Error, Git, Sql), and command execution via RunCommandAsync. - HexAsciiDumper: Incrementally formats byte or string data as hex, octal, or decimal rows with optional ASCII/Unicode text columns. - FilenameDisambiguator: Generates unique, non-colliding filenames using DateBased, GuidBase, or DateAmended generation strategies. - Use Case: While building a Git scanner tool, embed a ConsoleControl tab to stream colored build output, dump binary payloads with HexAsciiDumper for inspection, and export chat logs using FilenameDisambiguator so no export ever overwrites another. ## Quick Start Add the WarpToolkit.WinForms.Specialized NuGet package (minimum version 0.9.324-preview.ge962db2903) and ask the AI to create a ConsoleControl that writes channel-colored log lines from async code.

Frequently Asked Questions about warptoolkit-console-diagnostics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a console output window to a WinForms app?▼

Use ConsoleControl from WarpToolkit.WinForms.Specialized, which derives from RichTextBox and can be configured in the Designer. Write to it with await WriteLineAsync or WriteAsync, optionally passing a ConsoleChannel for predefined colors.

How to dump bytes as hex and ASCII in C#?▼

HexAsciiDumper formats byte arrays or strings into hex, octal, or decimal rows with optional ASCII or Unicode text columns. Feed data incrementally via TryGetString and always call GetRemaining or Flush to emit the buffered final partial row.

How do I generate unique filenames in C# without collisions?▼

FilenameDisambiguator produces collision-free filenames using GenerationStrategy options: None, DateBased, GuidBase, or DateAmended. Set Title, BasePath, and Extension, then read FullFilename for a guaranteed non-colliding path.

Does ConsoleControl support colored output channels?▼

Yes, ConsoleControl supports channels via the ConsoleChannel enum: Default, Trace, Debug, Information, Warning, Error, Git, and Sql. Use the WriteLineAsync(text, channel) overload, with colors defined by the static ConsoleChannelColors class.

Why is my ConsoleControl output missing or out of order?▼

All ConsoleControl write, run, and style methods are async and return Task, so they must be awaited and marshaled to the UI thread. Fire-and-forget calls from background threads can cause missing or misordered output.

What NuGet package is required for these WinForms diagnostics tools?▼

The WarpToolkit.WinForms.Specialized package is required, at minimum version 0.9.324-preview.ge962db2903. Check referenced projects for contradicting NuGet package versions that need updating before adding it.