command-authoring

Enforce formatting and emission rules for slash commands across CC, Codex, and Gemini.

Updated Oct 10, 2025
One-click install
npx skills add https://github.com/FFOO6866/lead2cash --skill command-authoring-ffoo6866
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: command-authoring
Source: https://github.com/FFOO6866/lead2cash/tree/main/.claude/skills/command-authoring
Command: npx skills add https://github.com/FFOO6866/lead2cash --skill command-authoring-ffoo6866

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you author or audit slash command definitions so they render correctly and behave consistently across CC, Codex, and Gemini while staying within strict formatting and safety constraints.

Core Features & Use Cases

  • Cross-CLI command authoring: Defines the expected frontmatter shapes and emission paths for CC, Codex, and Gemini from a single source body.
  • Command-body discipline: Enforces a maximum command-body length and neutral phrasing so commands don’t crowd out user intent or break downstream parsers.
  • Variant overlays & exclusions: Supports slot-based variant overlays for per-CLI deltas and explains when to carve out native-primitive commands to avoid shadowing.
  • Sync-manifest wiring: Ensures new commands are actually shipped by adding them to the correct tier and handling CLI emit exclusions.

Quick Start

Write a new command definition in the authoritative CC source path and keep the body neutral and under the line cap so it safely emits to Codex and Gemini.

Frequently Asked Questions about command-authoring

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

FAQPage Schema
How do I write slash commands that work across different CLI tools?

Cross-CLI slash command authoring requires defining expected frontmatter shapes and emission paths for CC, Codex, and Gemini from a single source body. You write the command definition in the authoritative CC source path, keeping the body neutral so it safely emits to all target CLIs.

What is a sync manifest for slash commands?

A sync manifest ensures new slash commands are actually shipped by adding them to the correct tier and handling CLI-specific emit exclusions. It registers commands during authoring to maintain cross-CLI compatibility and proper deployment wiring.

What is the maximum line limit for a slash command body?

The slash command body guidance enforces a maximum length of 150 lines to prevent crowding out user intent and breaking downstream parsers. Command-body discipline also requires neutral phrasing to maintain compatibility across CC, Codex, and Gemini.

How do I handle CLI-specific variants when authoring slash commands?

You handle CLI-specific variants using slot-based variant overlays for per-CLI deltas. This approach allows you to manage differences between CC, Codex, and Gemini without rewriting the entire command body for each environment.

When should I carve out native-primitive commands from cross-CLI syncing?

You carve out native-primitive commands to avoid shadowing built-in CLI functionalities. Excluding these native primitives from the sync manifest prevents conflicts and ensures custom slash commands do not override existing tool behaviors.

What frontmatter fields are required for a new slash command definition?

Mandatory YAML or TOML frontmatter fields are required for slash command definitions to satisfy cross-CLI compatibility rules. The specific shapes vary by target CLI, but frontmatter must be present to ensure correct rendering and behavior across CC, Codex, and Gemini.