nim-style-guide

Enforce formatting, naming, control flow, and error handling rules in Nim code.

54|3|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/planetis-m/skills --skill nim-style-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nim-style-guide
Source: https://github.com/planetis-m/skills/tree/main/nim-style-guide
Command: npx skills add https://github.com/planetis-m/skills --skill nim-style-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces strict coding standards for Nim, ensuring code is readable, maintainable, and idiomatic, reducing bugs and improving collaboration.

Core Features & Use Cases

  • Code Formatting: Enforces consistent indentation, line length, and spacing.
  • Naming Conventions: Mandates clear and consistent naming for types, procs, and variables.
  • Control Flow: Guides the use of loops, conditionals, and return statements for clarity.
  • Error Handling: Promotes robust error management and propagation.
  • Use Case: When reviewing a new Nim code submission, use this Skill to automatically check for adherence to all style guidelines, ensuring consistency across the project.

Quick Start

Apply the nim-style-guide skill to review the provided Nim code for style violations.

Frequently Asked Questions about nim-style-guide

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce consistent coding style and formatting in Nim?

To enforce Nim coding style, apply strict rules for indentation, line length, and spacing. This ensures your codebase remains readable, maintainable, and idiomatic across the entire project.

What are the best practices for naming variables and procs in Nim?

Best practices for Nim naming conventions mandate clear and consistent names for types, procs, and variables. This promotes readability and reduces bugs caused by confusing or ambiguous identifiers.

How should I handle errors and control flow in Nim to maintain code quality?

Robust Nim error handling and clear control flow maintain code quality by guiding the use of loops, conditionals, and return statements. This approach promotes explicit, bug-resistant error management and propagation.

Can I use this to automatically check Nim code submissions for style violations?

Yes, you can apply the style guide to automatically review new Nim code submissions. It checks for adherence to formatting, naming, and control flow guidelines, ensuring consistency across the project.

Do I need any external dependencies to check my Nim codebase for maintainability?

No external dependencies are required to check your Nim codebase for maintainability. The style guide operates independently to enforce strict coding standards for readable, idiomatic Nim code.