Skip to content
Back to skills

Code Style

ASecurity

Clean C# code style based on project rules

  • 33 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 3, 2026
ai-agentsc#documentation

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add architects-toolkit/SmartHopper --skill code-style --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Style?

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

Security grade badge for Code Style
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/architects-toolkit-code-style/badge)](https://www.skillsdirectory.com/skills/architects-toolkit-code-style)

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: code-style
description: Clean C# code style based on project rules
allowed-tools:
  - read
  - edit
  - grep
  - glob
  - ask_user_question
triggers:
  - user
  - model
---

1. Ask the user which files they want to clean if no file list is provided.

2. For the selected `*.cs` files, apply the repository style:
  - Add XML docstrings to members when missing. Use `/// <inheritdoc/>` only when the parent/interface member has accurate documentation.
  - Ensure 4-space indentation and remove repeated whitespace that is not meaningful alignment.
  - Keep one blank line between members and remove multiple consecutive blank lines.
  - Use braces for `if`, `for`, `foreach`, `while`, `try`, and similar blocks.
  - Use trailing commas in multi-line initializers.
  - Prefix instance member access with `this.` where appropriate.
  - Sort using directives alphabetically, with `System` namespaces first.
  - Preserve or add the standard file header, replacing `YYYY` with the file creation year or range:
/*
 * SmartHopper - AI-powered Grasshopper Plugin
 * Copyright (C) YYYY Marc Roca Musach
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 */

3. Do not perform broad refactors during a style cleanup unless the user explicitly asks for them.

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.

Comments

Loading comments…