← Back to list

patternscommand
by mgreenly
An AI Coding Agent
⭐ 1🍴 0📅 Jan 24, 2026
SKILL.md
name: patterns/command description: Command Pattern pattern for C development
Command Pattern
Encapsulate a request as an object, allowing parameterization, queuing, and undo. In C, a struct containing function pointer plus arguments.
ikigai Application
Slash commands: Each command (/clear, /mark, /rewind) is a discrete operation:
typedef struct {
const char *name;
res_t (*execute)(ik_repl_ctx_t *repl, const char *args);
const char *help;
} ik_command_t;
Input actions: Parser emits action structs that REPL executes.
Future uses:
- Undo/redo stack for input editing
- Queued tool executions
- Macro recording and playback
Benefit: Commands become first-class, can be logged, serialized, or replayed.
Score
Total Score
60/100
Based on repository quality metrics
✓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
Reviews
💬
Reviews coming soon