Przejdź do treści
Biblioteka skilli
AI i agenci · Budowanie i kod

create-command

/create-command

Prowadzi przez stworzenie komendy ukośnej w repozytorium: szkielet z pnpm new, frontmatter, obsługa argumentów, treść promptu i odświeżenie rejestru.

Repozytorium
dotclaude ↗
Licencja
MIT
Ostatnia zmiana repozytorium
25.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 25.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Prowadzi przez stworzenie komendy ukośnej w repozytorium: szkielet z pnpm new, frontmatter, obsługa argumentów, treść promptu i odświeżenie rejestru.

Argumenty

/create-command (optional) the command's purpose, proposed name, or category
Oryginalny opis (EN)

Author a new slash command for this repository end to end by scaffolding it with pnpm new, writing the frontmatter and argument handling, drafting the prompt body, then regenerating the registry. Use when creating, scaffolding, or reviewing a slash command in this repo.

Jak działa

  1. Hard rules: never break these
  2. Step 1: Define the command
  3. Step 2: Scaffold it
  4. Step 3: Write the frontmatter
  5. Step 4: Write the body with arguments
  6. Step 5: Regenerate and validate
  7. Step 6: Review against the bar
Sekcje z nagłówków SKILL.md, w oryginale · 72 linii, 620 słów
Podgląd SKILL.md
---
name: create-command
description: Author a new slash command for this repository end to end by scaffolding it with pnpm new, writing the frontmatter and argument handling, drafting the prompt body, then regenerating the registry. Use when creating, scaffolding, or reviewing a slash command in this repo.
argument-hint: "(optional) the command's purpose, proposed name, or category"
---

Create a slash command: a prompt the user invokes by typing `/<name>`. Make it do one well-scoped action, accept its arguments cleanly, and read like a tight instruction set. Then regenerate the derived files and validate.

Source layout is `commands/<category>/<name>/COMMAND.md`. Commands are **file-layout**: the folder must contain only `COMMAND.md`, because it installs as the single file `.claude/commands/<name>.md`. The `/<name>` the user types comes from that filename. The **category is the folder**; `registry.json` and the README catalog are *generated* by `pnpm gen`. Never hand-edit generated files.

## Hard rules: never break these

- **One command, one action.** A command is something the user deliberately triggers (`/write-tests`, `/deploy`). Keep it to a single, well-scoped job.
- **File layout: only `COMMAND.md`.** No companion files; `pnpm gen` rejects extras because the command installs as one file.
- **Gate side effects.** If the command commits, pushes, deploys, deletes, or sends anything, state exactly what will happen and confirm before doing it. Consider `disable-model-invocation: true` so only the user can fire it.
- **`name` is globally unique and equals the folder name**, kebab-case.
- **Never hand-write `registry.json` or the README catalog.** Run `pnpm gen`.
- **No AI/co-author mentions** anywhere in the command or its output.

## Step 1: Define the command

- **The one action** it performs, in a sentence.
- **The arguments** it takes, if any, and what each means.
- **Who invokes it.** User-only (set `disable-model-invocation: true`) for anything with side effects or timing you want to control; both you and Claude for safe, read-only helpers.

## Step 2: Scaffold it

From the repo root:

```
pnpm new --type command --category <category> --name <name> --description "<what it does>"
```

Current command categories: `academic`, `documentation`, `engineering`, `productivity`, `review`, `security`, `testing`, `version-control` (run `ls commands` for the live list). Reuse one or add a new folder if a different family is justified. The scaffolder enforces kebab-case and global name uniqueness and regenerates the registry.

## Step 3: Write the frontmatter

Required: `name`, `description`. Useful optional fields:

| Field                      | Purpose                                                                                          |
| -------------------------- | ------------------------------------------------------------------------------------------------ |
| `argument-hint`            | Autocomplete hint for expected args, e.g. `[file]` or `[issue-number] [format]`. Omit if none.   |
| `allowed-tools`            | Tools the command may use without a permission prompt while active. Space/comma string or list.  |
| `disable-model-invocation` | `true` so only the user can run it (Claude won't auto-trigger). Use for side-effecting commands.  |
| `model`                    | Pin a model for this command. Defaults to the session model.                                     |

Write `description` third person, leading with the action; avoid a `: ` (it is YAML).

## Step 4: Write the body with arguments

The markdown body is the prompt that runs when the command is invoked. Address the agent, imperative. Wire in input:

- **`$ARGUMENTS`** expands to everything the user typed after the command.
- **`$1`, `$2`, …** expand to positional arguments.
- A leading **`!`** line runs a shell command and inlines its output (needs `allowed-tools`), e.g. ``!`git diff --stat` `` to ground the prompt in live state.
- **`@path/to/file`** pulls a file's contents into the prompt.

If the command takes arguments but the body omits `$ARGUMENTS`, Claude Code appends what the user typed automatically, but referencing it explicitly reads better.

## Step 5: Regenerate and validate

```
pnpm gen
pnpm validate
```

Fix the source `COMMAND.md` if validation complains; never patch generated output.

## Step 6: Review against the bar

- Invoking `/<name>` does the one action cleanly, with arguments handled.
- Side effects are gated and, where appropriate, `disable-model-invocation: true` is set.
- The folder contains only `COMMAND.md`.
- `pnpm validate` passes and the README catalog shows the new row.

Report the command's path, category, how it's invoked, and the validation result. Leave committing to the user.
Pliki w paczce (2)
  • SKILL.md 5 KB
  • registry.json 1 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · khaledsaeed18/dotclaude100MIT
evolution-foundation/evo-nexus100Apache-2.0
tailcallhq/forgecode95Apache-2.0

Migawka bazy z 13.11.2026 · wersja paczki 0f3ddabe3e85 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100create-agent
    Prowadzi przez stworzenie subagenta w repozytorium: szkielet z pnpm new, lista dozwolonych narzędzi, model, kolor, pamięć, prompt systemowy i odświeżenie rejestru.
  • 100create-hook
    Prowadzi przez stworzenie hooka Claude Code w repozytorium: szkielet z pnpm new, skrypt i wpis w settings.json, dokumentacja aktywacji w HOOK.md i odświeżenie rejestru.
  • 100writing-commands
    Pomaga tworzyć, edytować i oceniać komendy slash: nowe komendy, naprawa niedziałających i przegląd jakości.
  • 95meta-command-development
    Pomaga tworzyć własne komendy slash dla Claude Code.
  • 95command-dev
    Pomaga tworzyć i dopracowywać własne komendy slash Claude Code: składnia, argumenty, odwołania do plików, wykonywanie bash i konfiguracja frontmatter.
  • 100claude-commands
    Prowadzi przez tworzenie własnych komend slash Claude Code: podstawienia $ARGUMENTS i $N, pola frontmatter, wstrzykiwanie wyjścia powłoki i migracja plików .claude/commands/ do skilli.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.