SkillAgentSearch skills...

ConfigManager

A configuration file manager for C# / .NET / Mono

Install / Use

/learn @tejacques/ConfigManager
About this skill

Quality Score

0/100

Category

Design

Supported Platforms

Universal

README

ConfigManager

What is it?

A json configuration file manager for C# / .NET / Mono

How can I get it?

ConfigManager is available as a NuGet package: https://www.nuget.org/packages/ConfigManager/

PM> Install-Package ConfigManager

Why was it made?

I wanted a strongly typed configuration system that would automatically update it's values in long running processes, so if the configuration file changed, the changes would propagate automatically without restarting the binary or interupting service.

Example Usage

ConfigManager is a globally available static class that is typically used as follows:

ProjectDirectory/Config/configuredNames.conf

[
  "Billy",
  "John",
  "Harold"
]
public void Example()
{
    List<string> configuredNames = ConfigManager.GetCreateConfig<List<string>>("configuredNames");
    foreach(string name in configuredNames)
    {
        Console.WriteLine(name);
    }
}

The output will be:

  Billy
  John
  Harold

Config File Types

Config Manager supports both json and yaml. The type is differentiated by the file extension. A .conf or .json file is deserialized as Json, a .yaml file is deserialized as Yaml.

Creating a Configuration class to use

Part of the magic is that ConfigManager can translate your config files to any strongly typed object you define. The only constraint is that it must implement new(). The reason why is so that everything that comes back from the command is guaranteed to not be null.

public class ExampleConfig
{
    public string String { get; set; }
    public int Int { get; set; }
    public Website { get; set; }
    
    // Provide the default values of your config class here
    public ExampleConfig()
    {
        String = "Default String";
        Int = 0;
        Website = "www.example.org";
    }
}

ProjectDirectory/Config/ExampleConfig.conf

{
  "String" : "Test",
  "Int" : 10,
  "Website" : "https://github.com/tejacques/ConfigManager/"
}
public void ExampleConfigTest()
{
    ExampleConfig exampleConfig = ConfigManager.GetCreateConfig<ExampleConfig>("ExampleConfig");
    Console.WriteLine(exampleConfig.String);    // Test
    Console.WriteLine(exampleConfig.Int);       // 10
    Console.WriteLine(exampleConfig.Website);   // https://github.com/tejacques/ConfigManager/
}

Additional Features

While in debug mode, ConfigManager will first look for files that end in .dev.(conf|json|yaml) with the given name, unless a fully specified file path is given. This is ideal for things that differ between dev and prod such as a connection string.

Related Skills

diffs

341.8k

Use the diffs tool to produce real, shareable diffs (viewer URL, file artifact, or both) instead of manual edit summaries.

clearshot

Structured screenshot analysis for UI implementation and critique. Analyzes every UI screenshot with a 5×5 spatial grid, full element inventory, and design system extraction — facts and taste together, every time. Escalates to full implementation blueprint when building. Trigger on any digital interface image file (png, jpg, gif, webp — websites, apps, dashboards, mockups, wireframes) or commands like 'analyse this screenshot,' 'rebuild this,' 'match this design,' 'clone this.' Skip for non-UI images (photos, memes, charts) unless the user explicitly wants to build a UI from them. Does NOT trigger on HTML source code, CSS, SVGs, or any code pasted as text.

openpencil

1.9k

The world's first open-source AI-native vector design tool and the first to feature concurrent Agent Teams. Design-as-Code. Turn prompts into UI directly on the live canvas. A modern alternative to Pencil.

ui-ux-designer

Use this agent when you need to design, implement, or improve user interface components and user experience flows. Examples include: creating new pages or components, improving existing UI layouts, implementing responsive designs, optimizing user interactions, building forms or dashboards, analyzing existing UI through browser snapshots, or when you need to ensure UI components follow design system standards and shadcn/ui best practices.\n\n<example>\nContext: User needs to create a new dashboard page for team management.\nuser: "I need to create a team management dashboard where users can view team members, invite new members, and manage roles"\nassistant: "I'll use the ui-ux-designer agent to design and implement this dashboard with proper UX considerations, using shadcn/ui components and our design system tokens."\n</example>\n\n<example>\nContext: User wants to improve the user experience of an existing form.\nuser: "The signup form feels clunky and users are dropping off. Can you improve it?"\nassistant: "Let me use the ui-ux-designer agent to analyze the current form UX and implement improvements using our design system and shadcn/ui components."\n</example>\n\n<example>\nContext: User wants to evaluate and improve existing UI.\nuser: "Can you take a look at our pricing page and see how we can make it more appealing and user-friendly?"\nassistant: "I'll use the ui-ux-designer agent to take a snapshot of the current pricing page, analyze the UX against Notion-inspired design principles, and implement improvements using our design tokens."\n</example>

View on GitHub
GitHub Stars28
CategoryDesign
Updated3y ago
Forks6

Languages

C#

Security Score

60/100

Audited on Aug 4, 2022

No findings