coding-standard-c
БесплатноБез исполняемых скриптовНе проверенEnforce C coding standards including snake_case variables and functions, UPPER_SNAKE_CASE macros, and snake_case filenames.
от jdubray★ 27 звёзд на GitHubОб этом скилле
C Coding Standards
When reviewing or generating C code, follow these rules:
File Naming
- Source files: snake_case with
.cextension (e.g.,user_service.c,data_parser.c) - Header files: snake_case with
.hextension (e.g.,user_service.h,data_parser.h) - Keep names short but descriptive (max ~20 characters)
Header Guards
- Format: UPPER_SNAKE_CASE with
_Hsuffix - Include path in guard: (e.g.,
PROJECT_MODULE_FILE_H)
#ifndef USER_SERVICE_H
#define USER_SERVICE_H
// content
#endif /* USER_SERVICE_H */
Variable Naming
- Local variables: snake_case (e.g.,
user_count,buffer_size,is_valid) - Global variables: snake_case with
g_prefix (e.g.,g_config,g_instance_count) - Static variables: snake_case with
s_prefix (e.g.,s_initialized,s_cache) - Pointers: Include
porptrsuffix when helpful (e.g.,user_ptr,buffer_p)
Constant/Macro Naming
- Macros: UPPER_SNAKE_CASE (e.g.,
MAX_BUFFER_SIZE,DEFAULT_TIMEOUT) - Enum values: UPPER_SNAKE_CASE (e.g.,
STATUS_OK,ERROR_INVALID_INPUT) - Compile-time constants: UPPER_SNAKE_CASE with
#define
Function Naming
- Functions: snake_case (e.g.,
calculate_total(),parse_input()) - Module prefix: Use module name prefix (e.g.,
user_create(),user_destroy()) - Static functions: snake_case, no prefix needed (internal to file)
- Init/cleanup pairs: Use
_init()and_cleanup()or_create()and_destroy()
Type Naming
- Structs: snake_case with
_tsuffix or PascalCase (e.g.,user_data_torUserData) - Typedefs: snake_case with
_tsuffix (e.g.,user_id_t,callback_fn_t) - Enums: snake_case with
_esuffix for type (e.g.,status_e)
Organization
- Header includes at top (system headers, then project headers)
- Macro definitions after includes
- Type definitions (structs, enums, typedefs)
- Function prototypes
- Global/static variable declarations
- Function implementations
Установить coding-standard-c в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл coding-standard-c?
Enforce C coding standards including snake_case variables and functions, UPPER_SNAKE_CASE macros, and snake_case filenames.
Как установить скилл coding-standard-c?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл coding-standard-c запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic