Dev swarm slash commands

From X-School-Academy/skill-pilot · View interactive version

Dev swarm slash commands is an AI agent skill from the GitHub repository X-School-Academy/skill-pilot. Create custom slash commands for popular AI agents (Claude Code, Codex, Gemini CLI). Use when user asks to create slash commands, custom commands, or reusable prompts for AI agent CLIs.

How to use this skill

Skill file

AI Builder - Create Slash Commands for AI Agents

Create short, reusable slash command templates for a specific AI agent the user requests (Claude Code, Codex, or Gemini CLI).

When to Use This Skill

Your Roles in This Skill

Role Communication

As an expert in your assigned roles, you must announce your actions before performing them using the following format:

As a {Role} [and {Role}, ...], I will {action description}

This communication pattern ensures transparency and allows for human-in-the-loop oversight at key decision points.

Instructions

Follow these steps:

Step 1: Confirm Inputs

Ask:

  1. Target agent(s): Claude Code, Codex, Gemini CLI
  2. Command purpose (1 sentence)
  3. Arguments/parameters
  4. Scope: project or user

Understanding scopes:

Step 2: Choose the Target Agent

Only implement the command for the agent the user asked for. Do not create cross-agent commands unless explicitly requested.

For Claude Code

Location:

File format: Markdown (.md)

Naming:

Parameter substitution:

For Codex

Location:

Codex does not support project level commands

File format: Markdown (.md)

---
description: Prep a branch, commit, and open a draft PR
argument-hint: [FILES=<paths>] [PR_TITLE="<title>"]
---

Create a branch named `dev/<feature_name>` for this work.
If files are specified, stage them first: $FILES.
Commit the staged changes with a clear message.
Open a draft PR on the same branch. Use $PR_TITLE when supplied; otherwise write a concise summary yourself.
Add metadata and arguments

Codex reads prompt metadata and resolves placeholders the next time the session starts.

Naming:

Parameter types:

  1. Positional arguments: $1 through $9
  1. All arguments: $ARGUMENTS
  1. Named placeholders: $FILE, $TICKET_ID (uppercase)

For Gemini CLI

Location:

File format: TOML (.toml)

# In: <project>/.gemini/commands/review.toml
# Invoked via: /review FileCommandLoader.ts

description = "Reviews the provided context using a best practice guide."
prompt = """
You are an expert code reviewer.

Your task is to review {{args}}.

Use the following best practices when providing your review:

@{docs/best-practices.md}

When you run /review FileCommandLoader.ts, the @{docs/best-practices.md} placeholder is replaced by the content of that file, and {{args}} is replaced by the text you provided, before the final prompt is sent to the model.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.