Skip to content
Back to skills

Naming

ASecurity

Manage C# naming rules and bulk-rename violations. --rule edits .editorconfig, --migrate bulk-renames IDE1006 violations.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added October 6, 2026
ai-agentsgoc#

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add e128/dotnet-reference --skill naming --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Naming?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Naming
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/e128-naming/badge)](https://www.skillsdirectory.com/skills/e128-naming)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: naming
description: >
  Manage C# naming rules and bulk-rename violations. --rule edits .editorconfig,
  --migrate bulk-renames IDE1006 violations.
when_to_use: Edit C# naming rules in .editorconfig, or bulk-rename IDE1006 violations.
argument-hint: "[--rule | --migrate] [args]"
---

# Naming Skill

Two modes for managing C# naming conventions. Mode auto-detected from user prompt.

| Mode | Behavior |
|------|----------|
| `--rule` | Read/modify naming rules in `.editorconfig` |
| `--migrate` | Spawn `naming-migrate` agent to bulk-rename symbols to match `.editorconfig` rules |

Default: `--rule`. Use `--migrate` to fix violations.

The two modes are sequential steps: change the rule first (`--rule`), then fix violations (`--migrate`).

---

## Mode: --rule (Edit Naming Rules)

Read and modify C# naming style rules in `.editorconfig`. Front-loads current rules as a table, gates changes behind confirmation, verifies with `check.sh`.

### Step 1: Load and Display Current Rules

Read `.editorconfig`. Extract all naming-related entries, symbol groups, style rules, and severity lines. Present as a table:

| # | Rule Name | Symbol Category | Required Style | Severity | Applicable Kinds |

Parse from these entry types:
- `dotnet_naming_rule.{name}.symbols = {group}`: links rule to symbol group
- `dotnet_naming_symbols.{group}.applicable_kinds = {kinds}`: which symbols the rule covers
- `dotnet_naming_style.{style}.required_prefix = {prefix}`: the style constraint
- `dotnet_diagnostic.IDE1006.severity = {level}`: enforcement level

### Step 2: Ask for Change

Use `AskUserQuestion` with options:
- Specific rule to modify (from table row numbers)
- Change IDE1006 severity
- Add new symbol category
- View only (no change)

**Never edit .editorconfig without explicit "approved" from `AskUserQuestion`. This is a hard gate.**

### Step 3: Apply Change

Edit `.editorconfig` at the specific line identified in Step 1. For new symbol categories, add all three entry types (rule, symbols, style) as a coherent block.

### Step 4: Verify

```
scripts/format.sh --changed
scripts/check.sh
```

If `check.sh` produces new IDE1006 violations, surface them as a table (file, line, message). Do not auto-fix, present the list and suggest `--migrate` mode.

### Step 5: Report

Report: "Rule updated. Build clean." or list of violations with file:line breakdown. If violations exist, note: "Run `naming --migrate` to fix IDE1006 violations automatically."

---

## Mode: --migrate (Bulk Rename)

The IDE1006 bulk-rename loop runs as the **`naming-migrate` agent**, not inline.
It is a multi-file refactor with build loops, so it belongs in isolated context (keeps the
parent session lean) and should use semantic-accurate renames (Roslyn `find_references` /
IDE rename) rather than text search.

Spawn it via the `Agent` tool with `subagent_type: naming-migrate`:

```
Agent(subagent_type: "naming-migrate",
      prompt: "Bulk-rename all IDE1006 naming violations to satisfy the .editorconfig naming
               rules. Use scripts/check.sh to surface violations and scripts/build.sh to
               verify. {any specifics the user gave, e.g. a target project or symbol}")
```

The agent collects violations, renames each symbol across `src/` and `tests/`, loops the
build until clean, and returns a migration report. Relay its report to the user verbatim, 
do not re-run the rename inline.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.