Skip to content

Workflows agénticos — Maestría5 / 8

Custom Slash Commands as Team Workflows

A custom slash command is a reusable prompt you commit to the repo — so the whole team runs the same high-quality instruction instead of re-typing it.

Custom Slash Commands as Team Workflows

The best prompt your team ever wrote is worthless if everyone retypes a worse version of it. A custom slash command fixes that: it is a Markdown file whose body is a prompt, committed to the repo and run with /its-name.

The whole mechanism

Drop a file in .claude/commands/ (shared via git) or ~/.claude/commands/ (personal). The filename becomes the command:

<!-- .claude/commands/changelog.md -->
Summarize the staged git changes as a concise changelog entry,
grouped by Added / Changed / Fixed.

Now /changelog runs that prompt for everyone on the team.

Three features that make it powerful

Arguments$ARGUMENTS for everything, or $1, $2 for positional:

Fix issue #$1 with priority $2. Find the failing test, propose a patch,
explain the root cause.

Invoke: /fix-issue 4242 high.

Frontmatter configures the command:

---
description: Conventional-commit message from staged changes
argument-hint: [scope]
allowed-tools: Bash(git diff:*), Bash(git log:*)
model: claude-haiku-4-5
---

Inline context pulls live data in: prefix a line with ! to run a shell command and embed its output, or reference a file with @src/app.ts.

Why this is a team multiplier

Commands package intent; hooks enforce rules; MCP provides tools. The last building block is delegation — handing focused work to subagents.

Compartir este artículo

#Productivity #DevTools #AgenticAI

LinkedInX / TwitterBlueskyThreadsRedditHacker NewsWhatsAppCorreo

Serie — Workflows agénticos — Maestría

  1. Parte 01La mentalidad del flujo de trabajo agénticoLa mayoría de los desarrolladores tratan la IA como un autocompletado más inteligente. Los que avanzan la tratan como un compañero que actúa. Aquí está el modelo mental.
  2. Parte 02MCP Servers 101 — Dale herramientas reales a tu agenteEl Model Context Protocol es cómo tu agente deja de adivinar y comienza a consultar tu base de datos, tus issues, tu navegador. Aquí está el modelo mental y la primera conexión.
  3. Parte 03Construye tu primer servidor MCP personalizadoLos servidores predefinidos cubren GitHub y Postgres. El de alto impacto es el servidor que solo tú puedes escribir — el puente hacia tu propio sistema.
  4. Parte 04Hooks — Make the Agent Obey Your RulesA prompt asks the model to remember. A hook makes it happen — deterministically, every time, outside the model's control.
  5. Parte 05Custom Slash Commands as Team Workflowsestás aquíA custom slash command is a reusable prompt you commit to the repo — so the whole team runs the same high-quality instruction instead of re-typing it.
  6. Parte 06Subagentes — Delegando Trabajo que EscalaUn contexto gigante se vuelve lento y vago. Los subagentes permiten que el agente principal delegue trabajo enfocado a especialistas con su propio contexto y herramientas — y ejecutarlos en paralelo.
  7. Parte 07The Daily-Driver Setup — Settings, Permissions, Status LineLa diferencia entre luchar contra el agente y fluir con él es veinte minutos de configuración que haces una sola vez. Aquí está la configuración.
  8. Parte 08Multi-Tool Pipelines — Ticket to Reviewed BranchThe payoff: chain MCP, hooks, commands and subagents into one flow that takes a ticket to a reviewed branch — with you in the loop only where it counts.

Sigue aprendiendo

PDF — de por vida

Comandos de barra

Todos los comandos de barra integrados, y cómo crear los tuyos.

Ver el PDF →

Curso

El curso Claude Mastery

12 módulos · 5 idiomas · certificado · prueba de 3 días gratis.

Ver planes →
LinkedInX / TwitterBlueskyThreads