بنقرة واحدة
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.