command-authoring

Author slash commands with YAML frontmatter and cross-CLI constraints.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/terrene-foundation/kailash-coc-claude-rb --skill command-authoring-terrene-foundation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: command-authoring
Source: https://github.com/terrene-foundation/kailash-coc-claude-rb/tree/main/.claude/skills/command-authoring
Command: npx skills add https://github.com/terrene-foundation/kailash-coc-claude-rb --skill command-authoring-terrene-foundation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of inconsistent or fragile slash command prompts that drift across Claude Code, Codex, and Gemini, causing broken behavior, duplicated logic, or commands that crowd out the user’s intent.

Core Features & Use Cases

  • Command frontmatter discipline: Enforces required name and description semantics (including listing-budget constraints) and optional argument-hint and allowed-tools.
  • Body constraints and quality hygiene: Keeps command bodies within a strict line cap to avoid prompt-context crowding, and promotes neutral phrasing for cross-CLI compatibility.
  • Single-source authoring with deterministic emissions: Clarifies how one canonical .claude/commands/<name>.md source generates Codex and Gemini artifacts while preserving the core body.

Quick Start

Use the command-authoring skill to author a new slash command called "implement" with a short failure-mode description and a neutral, ≤150-line body suitable for Claude Code, 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 a slash command that works across Claude Code, Codex, and Gemini?

To write cross-CLI slash commands, you author a single canonical `.claude/commands/<name>.md` source with YAML frontmatter and a neutral body. This standard generates deterministic Codex and Gemini artifacts while preserving the core prompt logic.

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

The slash command body must stay within a strict line cap, specifically under 150 lines, to avoid prompt-context crowding. Enforcing this body constraint ensures safe execution and prevents the command from crowding out the user's intent.

Does the command-authoring standard require specific YAML frontmatter fields?

Yes, cross-CLI command frontmatter requires `name` and `description` semantics, including listing-budget constraints. Optional fields like `argument-hint` and `allowed-tools` are also supported to define safe command behavior.

When should I use a slash command versus an agent or skill for workflow logic?

You should use a slash command for direct, neutral prompt actions and use an agent or skill for complex logic. The command-authoring standard clarifies this separation to prevent duplicated logic and broken behavior across CLI platforms.

Can I use native-primitive carve-outs and variant overlay slots in my prompts?

Yes, the command-authoring standard supports native-primitive carve-outs and variant overlay slot semantics. These features allow you to maintain cross-CLI hygiene while accommodating specific platform behaviors within your deterministic command emissions.

Why does my slash command prompt drift or break when used in different CLI environments?

Slash command prompts break across CLIs due to inconsistent phrasing and lack of cross-CLI hygiene. Applying a single-source authoring standard with neutral phrasing and sync-manifest wiring prevents this drift and ensures deterministic behavior.