← Back to Skills Marketplace
ivangdavila

C#

by Iván · GitHub ↗ · v1.0.1
linuxdarwinwin32 ✓ Security Clean
1308
Downloads
3
Stars
4
Active Installs
2
Versions
Install in OpenClaw
/install csharp
Description
Avoid common C# mistakes — null traps, async pitfalls, LINQ gotchas, and disposal leaks.
README (SKILL.md)

Quick Reference

Topic File
Null reference, nullable types nulls.md
Async/await, deadlocks async.md
Deferred execution, closures linq.md
Value vs reference, boxing types.md
Iteration, equality collections.md
IDisposable, using, finalizers dispose.md

Critical Rules

  • ?. and ?? prevent NRE but ! overrides warnings — still crashes if null
  • .Result or .Wait() on UI thread — deadlock, use await or ConfigureAwait(false)
  • LINQ is lazy — query.Where(...) doesn't execute until iteration
  • Multiple enumeration of IEnumerable — may re-query database, call .ToList() first
  • Closure captures variable, not value — loop variable in lambda captures last value
  • Struct in async method — copied, modifications lost after await
  • String comparison culture — StringComparison.Ordinal for code, CurrentCulture for UI
  • GetHashCode() must be stable — mutable fields break dictionary lookup
  • Modifying collection while iterating — throws, use .ToList() to iterate copy
  • decimal for money — float/double have precision loss
  • readonly struct prevents defensive copies — use for performance
  • sealed prevents inheritance — enables devirtualization optimization
Usage Guidance
This skill is a static collection of C# best-practice notes and appears internally consistent. The only minor oddity is the declared 'dotnet' binary requirement in the metadata despite there being no instructions that run code; that requirement is harmless but may be unnecessary. If you plan to allow the agent to execute example code, review any code before executing (running untrusted code with dotnet could be risky). Otherwise, it's safe from credential exfiltration or external network behavior — no secrets, no installers, no endpoints are present.
Capability Analysis
Type: OpenClaw Skill Name: csharp Version: 1.0.1 The skill bundle consists entirely of metadata and documentation files (`.md`). The `SKILL.md` defines the skill and its requirement for the `dotnet` binary, which is appropriate for a C# skill. All other markdown files provide educational content on C# programming pitfalls. There is no executable code, no prompt injection attempts against the AI agent, and no indicators of malicious behavior such as data exfiltration, unauthorized command execution, or persistence mechanisms. The content is purely informational and aligned with the stated purpose of providing C# programming guidance.
Capability Assessment
Purpose & Capability
The skill's name, description, and included .md files all align: they are C# guidance documents. The only minor mismatch is the declared required binary 'dotnet' in metadata — none of the instructions actually run dotnet or require it to read the docs. Requiring the dotnet binary is plausible if the agent were to compile/run examples, but the skill itself contains only static guidance.
Instruction Scope
SKILL.md and the included files only contain static advice about nulls, async, LINQ, disposal, types, and collections. There are no runtime commands, no references to reading arbitrary system files or environment variables, and no instructions to transmit data to external endpoints.
Install Mechanism
No install spec and no code files — this is the lowest-risk pattern (instruction-only). Nothing will be downloaded or written to disk by the skill itself.
Credentials
The skill requests no environment variables, credentials, or config paths. This is proportional to its purpose as a static reference.
Persistence & Privilege
The skill is not always-enabled and uses normal autonomous-invocation defaults. It does not request elevated persistence or cross-skill configuration changes.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install csharp
  3. After installation, invoke the skill by name or use /csharp
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
Initial release
v1.0.0
Initial release
Metadata
Slug csharp
Version 1.0.1
License
All-time Installs 4
Active Installs 4
Total Versions 2
Frequently Asked Questions

What is C#?

Avoid common C# mistakes — null traps, async pitfalls, LINQ gotchas, and disposal leaks. It is an AI Agent Skill for Claude Code / OpenClaw, with 1308 downloads so far.

How do I install C#?

Run "/install csharp" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is C# free?

Yes, C# is completely free (open-source). You can download, install and use it at no cost.

Which platforms does C# support?

C# is cross-platform and runs anywhere OpenClaw / Claude Code is available (linux, darwin, win32).

Who created C#?

It is built and maintained by Iván (@ivangdavila); the current version is v1.0.1.

💬 Comments