# Cs Code Style

> Load before writing or editing any C# file (.cs), the moment a task will create or modify C# code and before the first edit. Covers language level, member declaration style, type choice, and naming. The trigger is writing; a session that only reads code leaves it unloaded.

- **Type:** Skill
- **Install:** `agentstack add skill-toverux-grimoire-cs-code-style`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [toverux](https://agentstack.voostack.com/s/toverux)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [toverux](https://github.com/toverux)
- **Source:** https://github.com/toverux/grimoire/tree/main/plugins/csharp/skills/cs-code-style

## Install

```sh
agentstack add skill-toverux-grimoire-cs-code-style
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# C# Code Style

- Write code that compiles clean under `true` and strict null-checking (`enable`).
- Use the very latest C# 14 language features.
- Use the `init` and `required` modifiers when appropriate rather than constructor-based parameters.
- Use the compiler-synthesized `field` keyword for backing fields rather than declaring them manually.
- Declare extension methods/properties in C# 14 `extension(Receiver) { ... }` blocks grouped by receiver type, rather than classic `this`-parameter extension methods.
- Choose the data structure type deliberately: class, struct, readonly struct, record class, record struct, readonly record struct, ref struct, or readonly ref struct.
- Prefer `is` and `is not` over `==` and `!=` where applicable.
- Name exception variables `ex` by default (catch clauses, `Assert.Throws` results, etc.).

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [toverux](https://github.com/toverux)
- **Source:** [toverux/grimoire](https://github.com/toverux/grimoire)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-toverux-grimoire-cs-code-style
- Seller: https://agentstack.voostack.com/s/toverux
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
