Skip to content
Back to skills

Command

ASecurity

Command Pattern pattern for C development

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 8, 2026
tools

Security analysis

A100/100

Scanned February 10, 2026

npx -y skills add majiayu000/claude-skill-registry --skill command --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Command?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Command
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-command/badge)](https://www.skillsdirectory.com/skills/majiayu000-command)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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:
```c
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.