一键导入
coding-standard-c
Enforce C coding standards including snake_case variables and functions, UPPER_SNAKE_CASE macros, and snake_case filenames.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Enforce C coding standards including snake_case variables and functions, UPPER_SNAKE_CASE macros, and snake_case filenames.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run a Recursive Language Model-style loop for long-context tasks. Uses a persistent local Python REPL and an rlm-subcall subagent as the sub-LLM (llm_query).
Enforce C++ coding standards including camelCase or snake_case variables, PascalCase classes, and consistent file naming.
Enforce Java coding standards including camelCase variables, PascalCase classes, and PascalCase filenames matching class names.
Enforce JavaScript/ES6+ and TypeScript coding standards including camelCase variables, PascalCase classes, and kebab-case filenames.
Enforce Python PEP 8 coding standards including snake_case variables, PascalCase classes, and snake_case filenames.
Recommends modularity, composition, and decoupling patterns for design challenges. Use when designing plugin architectures, reducing coupling, improving testability, or separating cross-cutting concerns.
| name | coding-standard-c |
| description | Enforce C coding standards including snake_case variables and functions, UPPER_SNAKE_CASE macros, and snake_case filenames. |
When reviewing or generating C code, follow these rules:
.c extension (e.g., user_service.c, data_parser.c).h extension (e.g., user_service.h, data_parser.h)_H suffixPROJECT_MODULE_FILE_H)#ifndef USER_SERVICE_H
#define USER_SERVICE_H
// content
#endif /* USER_SERVICE_H */
user_count, buffer_size, is_valid)g_ prefix (e.g., g_config, g_instance_count)s_ prefix (e.g., s_initialized, s_cache)p or ptr suffix when helpful (e.g., user_ptr, buffer_p)MAX_BUFFER_SIZE, DEFAULT_TIMEOUT)STATUS_OK, ERROR_INVALID_INPUT)#definecalculate_total(), parse_input())user_create(), user_destroy())_init() and _cleanup() or _create() and _destroy()_t suffix or PascalCase (e.g., user_data_t or UserData)_t suffix (e.g., user_id_t, callback_fn_t)_e suffix for type (e.g., status_e)