add-command

Scaffold Redis command implementations with dispatch, handler, ACL, and test stubs.

2|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/pilotspace/moon --skill add-command-pilotspace
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-command
Source: https://github.com/pilotspace/moon/tree/main/.claude/skills/add-command
Command: npx skills add https://github.com/pilotspace/moon --skill add-command-pilotspace

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured scaffold for adding a new Redis command, including a dispatch entry, command handler, ACL category annotations, test scaffolding, and consistency test hooks, reducing boilerplate and ensuring standardization.

Core Features & Use Cases

  • Generates a complete implementation scaffold for a new Redis command, including dispatch wiring, handler skeleton, and ACL metadata.
  • Adds unit test stubs and a consistency-test entry to verify correctness and integration with the command registry.
  • Use Case: A developer wants to introduce COMMAND_NAME support in Moon; this Skill creates the needed files and references to start implementation quickly.

Quick Start

Provide a new command name to generate its scaffold and integrate it into the registry.

Frequently Asked Questions about add-command

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a new Redis command with dispatch and tests?

Scaffolding a new Redis command generates a dispatch entry, handler skeleton, ACL annotations, and test stubs simultaneously. This standardizes boilerplate creation by wiring the command handler into the dispatch table and updating the command registry for immediate integration.

What is needed when scaffolding a Redis command for code generation?

Scaffolding a Redis command requires providing a command name to trigger code generation. The process produces a complete implementation structure with dispatch wiring, ACL metadata, and consistency test hooks, reducing manual boilerplate and enforcing repository conventions.

Does scaffolding a Redis command include ACL category annotations?

Yes, scaffolding a Redis command includes ACL category annotations within the generated handler. It ensures the new command integrates properly with access control lists, alongside producing the required dispatch entry and unit test stubs.

How do I generate test stubs for a new Redis command?

Generating test stubs for a new Redis command happens automatically during the scaffolding process. The Skill adds unit test stubs and a consistency-test entry to verify correctness and validate the command's integration within the registry.

Can I use this scaffolding for adding Redis commands across different categories?

Yes, you can use this scaffolding for adding Redis commands across different categories. It applies to software engineering workflows by generating standardized handler skeletons, updating the command registry, and providing consistency hooks regardless of command type.

What is the best way to ensure consistency when adding multiple Redis commands?

The best way to ensure consistency is using a structured scaffold that automatically updates the command registry and generates consistency test hooks. This enforces repository conventions across all newly added commands by standardizing dispatch entries and test stubs.