cli
Skill54 starsChanged 3 months agoApache-2.0View on GitHub
Use for .NET command-line tool development with Spectre.Console/Spectre.Console.Cli, Microsoft.Extensions.Hosting, dependency injection, localized help text, command settings, aliases, examples, terminal output, exit codes, and stdio-safe command paths.
14 other projects use a version of this.
Adopted by
Most recently taken up by
- lobehub/lobehubtheir own version, first seen Oct 1, 2026
- BrightGold70/skillstheir own version, first seen Sep 29, 2026
- cailleachzou/skillstheir own version, first seen Sep 27, 2026
- bendrucker/claudetheir own version, first seen Sep 26, 2026
- jamillazarev/multica-opstheir own version, first seen Sep 25, 2026
- flowing-abyss/obsidian-vault-skillstheir own version, first seen Sep 19, 2026
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- lobehub/lobehub★ 83ksame name
- TacosyHorchata/Pilot★ 32same name
- pinecone-io/gemini-cli-extension★ 23same name
- bendrucker/claude★ 17same name
- jamillazarev/multica-ops★ 13same name
- flowing-abyss/obsidian-vault-skills★ 9same name
- jkaninda/okapi-skills★ 3same name
- cailleachzou/skills★ 2same name
- Rayan55050/progressive-agent★ 2same name
- worldbank/geoPovLearn★ 2same name
4 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 3 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Read command registration in src/Apps/CommandLine/Program.cs.
- Distinctive: line 12
Read the invoked service before changing command behavior.
- Distinctive: line 13
Keep command classes thin: parse settings, validate input, set context, call services, and format output.
- Distinctive: line 18
Put reusable behavior in CoreMod services, CodeGenerator, or Share instead of command classes.
- Very specific: line 19
Use CommandSolutionHelper.TrySetSolutionAsync when the command needs a current solution.
- Very specific: line 20
Use OutputHelper or AnsiConsole consistently with nearby commands.
- Very specific: line 28
Add user-facing command text to both src/Share/Localizer.zh-CN.resx and src/Share/Localizer.en-US.resx.
- Very specific: line 29
Add focused tests under tests/StudioMod.Tests/Commands for command behavior, config output, or error handling.
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLI Development
Workflow
- Identify the command surface under
src/Apps/CommandLine. - Read command registration in
src/Apps/CommandLine/Program.cs. - Read the invoked service before changing command behavior.
- Keep command classes thin: parse settings, validate input, set context, call services, and format output.
Conventions
- Inherit from
AsyncCommand<TSettings>orAsyncCommand. - Put reusable behavior in CoreMod services, CodeGenerator, or Share instead of command classes.
- Use
CommandSolutionHelper.TrySetSolutionAsyncwhen the command needs a current solution. - Use
OutputHelperorAnsiConsoleconsistently with nearby commands. - Escape dynamic Spectre markup with
Markup.Escape. - Return
0for success and1for expected validation or operation failures. - Register new commands in DI and
CommandApp.Configure, including aliases, examples, and localized descriptions. - Preserve raw MCP/stdio command paths. Do not add logos, logs, or human-readable output that can break protocol clients.
Localization And Tests
- Add user-facing command text to both
src/Share/Localizer.zh-CN.resxandsrc/Share/Localizer.en-US.resx. - Add focused tests under
tests/StudioMod.Tests/Commandsfor command behavior, config output, or error handling.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

