一键导入
is-coding-rules-c
C/blk coding rules for the Intersec codebase. Load before writing or reviewing C or blk code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
C/blk coding rules for the Intersec codebase. Load before writing or reviewing C or blk code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Commit message formatting rules. Apply whenever creating or amending a git commit.
Deep code review of a commit covering correctness, commit message quality, and English usage.
Fetch Gerrit review comments on the current commit or a range of commits, interactively apply or reject each one, then post draft replies and update the local commit(s). Use when the user wants to apply review comments from Gerrit.
| name | is-coding-rules-c |
| description | C/blk coding rules for the Intersec codebase. Load before writing or reviewing C or blk code. |
core/macros.h)RETHROW(e) /* if (e < 0) return e; */
RETHROW_P(e) /* if (e == NULL) return NULL; */
THROW_ERR_UNLESS(cond) /* if (!(cond)) return -1; */
THROW_FALSE_IF(cond) /* if (cond) return false; */
RETHROW / RETHROW_P are expressions that evaluate to e on success, so
use them inline: x = RETHROW(foo());.
Use these instead of explicit if checks when no cleanup is needed before
returning. When cleanup is required, use explicit if + goto cleanup,
or the defer macro (see core/macros.h).
malloc, free, realloc, calloc, alloca — use
p_new/p_delete/p_realloc (heap) or the mp_* pool
equivalents.strncpy, strcpy, strcat, sprintf, gets, strtok
— no single replacement; pick per context: sb_t builder
(sb_add*, sb_addf), pstream_t reader, or snprintf for
bounded writes into a plain buffer.