Saltar al contenido principal

Biblioteca de comandos de barra

Intermedio

Copia estos en .claude/commands/<name>.md (proyecto) o ~/.claude/commands/<name>.md (personal). El nombre del archivo se convierte en el comando. Consulta Comandos de barra personalizados para conocer su funcionamiento.

/commit — Conventional Commit a partir del diff en stage

---
description: Write a Conventional Commit message from the staged changes
---
Run `git diff --cached`. Write ONE Conventional Commit message (feat/fix/docs/
refactor/test/chore) describing the change. Output only the message.

/review — revisar un archivo o diff

---
description: Review code for bugs, edge cases, and clarity
---
Review the target for correctness bugs, missing edge cases, and clarity issues.
Report only real, high-confidence findings as a checklist. Target: $ARGUMENTS

/pr — redactar una descripción de PR

---
description: Draft a pull request description from the branch diff
---
Compare against the default branch (`git diff main...HEAD`). Write a PR
description: what changed, why, and how it was verified. Use short sections.

/explain — explicar código en lenguaje claro

---
description: Explain how something works
---
Explain $ARGUMENTS in plain language: what it does, how it flows, and any gotchas.
Read the relevant files first.

/scaffold — nuevo componente/módulo

---
description: Scaffold a new component following project conventions
---
Create a new $ARGUMENTS following this repo's existing patterns (structure,
naming, tests). Show a plan first, then create the files.

/changelog — resumir cambios recientes

---
description: Summarize recent commits into a changelog entry
---
Run `git log --oneline -20`. Group the changes into Added / Changed / Fixed in
Keep a Changelog style.

:::tip Compártelos como un plugin Agrupa los comandos favoritos de tu equipo (además de hooks y skills) en un plugin para que todos los instalen en un solo paso. :::

Siguiente