Skip to content
Back to skills

Authoring Commands

ASecurity

Use when writing, reviewing, merging, shortening, or distilling a slash command or a reusable prompt file. Triggers on `.claude/commands` files, other prompt or command files, '/command' invocations, saving a workflow as a reusable command, or turning a long command into a thin one that delegates to a skill, even when the user doesn't say 'slash command'.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 30, 2026
ai-agentsgoexpressrefactoringgit

Works with

  • claude code
  • cursor
  • cli

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned November 30, 2026

npx -y skills add xonovex/platform --skill authoring-commands --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Authoring Commands?

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

Security grade badge for Authoring Commands
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/xonovex-authoring-commands/badge)](https://www.skillsdirectory.com/skills/xonovex-authoring-commands)

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: authoring-commands
description: "Use when writing, reviewing, merging, shortening, or distilling a slash command or a reusable prompt file. Triggers on `.claude/commands` files, other prompt or command files, '/command' invocations, saving a workflow as a reusable command, or turning a long command into a thin one that delegates to a skill, even when the user doesn't say 'slash command'."
---

# Command Guidelines

Author, merge, simplify, and distill reusable user-invocable prompt files (sometimes called slash commands, custom commands, or user prompts depending on the agent harness).

## Core Principles

- **Generic by Default**: strip project-specific paths, domain terms, and tech names at author time so prompts reuse across projects
- **Match Style and Voice**: preserve the target's structure, voice, formatting when merging
- **Structure Integrity**: frontmatter, Arguments, and Delegation are the essential thin-command sections; the owning skill carries the procedure, output, and errors
- **Safe Modifications**: preview changes (`--dry-run`) before applying
- **Deletion-first editing**: a simplify or distill pass cuts at least as much as it adds, and reuses existing vocabulary rather than coining new terms; **authoring-skills** owns this rule
- **Bound the Body**: target 15-40 lines for a delegating command and <150 lines for a harness that cannot delegate
- **Delegate, Don't Duplicate**: a command owns its argument contract and delegates the procedure to a guideline skill via the `Skill` tool; the skill is the single source of truth, the command a thin, stable interface
- **Depend on Skills Two Ways**: depend **hard** (name the exact skill, and add it to the plugin's `dependencies` when the harness installs them) when one specific skill is always required, or **soft** (describe the capability and let the agent select an installed skill, degrading gracefully) when several interchangeable skills fit; if the harness distributes skills but not commands, publish and invoke the skill directly; either way load the selected skill at run time (install ≠ in-context), see [references/distill.md](references/distill.md)
- **Validate the public contract**: keep argument-hint and Arguments names identical; express optional supporting capabilities in delegation prose, not command metadata

## Gotchas

- A prompt that hardcodes one repo's paths/domain terms isn't reusable: generalize at author time, not later
- Argument shape is the prompt's public contract: merging different argument styles silently breaks callers
- "Auto-generated name" + an existing file is a silent overwrite risk, always check before write
- Generalizing too aggressively destroys the example's instructional value: keep enough specificity to learn from
- A command-capable plugin that delegates to a skill but omits a supported dependency declaration can't guarantee the skill at run time: wire the dependency and load via the `Skill` tool (install ≠ in-context)

## Operations

- **Create** a thin command contract that delegates to one owning skill, see [references/create.md](references/create.md)
- **Merge** elements from one prompt into another, see [references/merge.md](references/merge.md)
- **Simplify** a verbose prompt, see [references/simplify.md](references/simplify.md)
- **Distill** a fat command into a thin skill-delegating command, see [references/distill.md](references/distill.md)

## Progressive Disclosure

- Read [references/create.md](references/create.md) - Load when creating a thin user-invocable command, selecting its owner skill/plugin, or defining its arguments
- Read [references/merge.md](references/merge.md) - Load when porting elements from one prompt into another
- Read [references/simplify.md](references/simplify.md) - Load when condensing a verbose prompt
- Read [references/distill.md](references/distill.md) - Load when refactoring a self-contained command into a thin delegator that loads its guideline skill at run time
- Read [references/harness-formats.md](references/harness-formats.md) - Load when authoring for a specific agent harness, migrating a prompt between harnesses, or deciding which format to target (Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Continue, Aider, Cline, Roo Code, OpenCode, Pi)

Files in this skill

  • SKILL.md4.2 KB
  • eval-output.json6.7 KB
  • eval-trigger.json5.6 KB
  • moon.yml86 B
  • references/create.md3.2 KB
  • references/distill.md3 KB
  • references/harness-formats.md8.8 KB
  • references/merge.md2.5 KB
  • references/simplify.md2.3 KB
  • sources.json13.3 KB

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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