スキル一覧に戻る
mgreenly

naming

by mgreenly

An AI Coding Agent

1🍴 0📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


name: naming description: Naming Conventions skill for the ikigai project

Naming Conventions

Description

Load naming conventions for ikigai C codebase.

Public Symbol Pattern

All public symbols follow: ik_MODULE_THING

  • ik_ - namespace prefix
  • MODULE - single word (config, protocol, openai, handler)
  • THING - descriptive name with approved abbreviations

Examples:

  • ik_cfg_load() - function
  • ik_protocol_msg_t - type
  • ik_httpd_shutdown - global variable

Module Organization: One subdirectory = One module. All symbols from a module use the same prefix regardless of file location.

Approved Abbreviations

MUST use these consistently (types, functions, fields, variables):

Full WordAbbrevDomain
configurationcfgUniversal
messagemsgUniversal
contextctxUniversal
connectionconnNetworking
requestreqHTTP
responserespHTTP
bufferbufUniversal
lengthlenUniversal
stringstrUniversal
pointerptrUniversal
temporarytmpUniversal
errorerrUniversal
resultresUniversal
WebSocketwsNetworking
sessionsessWeb
correlationcorrDistributed

Words That Must NOT Be Abbreviated

Always spell out completely:

  • handler, manager, server, client
  • function, parameter, shutdown, payload
  • protocol, openai, httpd

Special Conventions

Raw pointers into buffers use _ptr suffix:

bool *visible_ptr;         // Raw pointer to external storage
const char **text_ptr;     // Raw pointer to external string pointer

Global variables use g_ prefix:

extern volatile sig_atomic_t g_httpd_shutdown;

Internal static symbols don't need ik_ prefix.

External Library Wrappers

DO NOT use ik_ prefix - these are link seams for testing.

Library wrappers (talloc, yyjson) use trailing underscore:

talloc_zero_(ctx, size)           // wraps talloc_zero_size()
yyjson_read_file_(path, flg, ...)  // wraps yyjson_read_file()

POSIX wrappers use posix_ prefix + trailing underscore:

posix_open_(pathname, flags)      // wraps open()
posix_write_(fd, buf, count)      // wraps write()

Complete reference: See project/naming.md for full details, rationale, and examples.

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です