feat(commands): reference command with argument placeholders + guard fixtures
commands/az-hilfe.md: slash-command counterpart to the az-hilfe skill — description frontmatter, template body using $ARGUMENTS and $1 topic placeholder, kebab-case name → /az-hilfe after fleet delivery. Four invalid command fixtures under tests/fixtures/commands/invalid/ covering all README-documented failure modes: missing frontmatter, missing description, empty description value, umlaut filename. Closes az-agent-defaults-gj1
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
---
|
||||
description:
|
||||
---
|
||||
|
||||
Arbeite das Ticket $ARGUMENTS ab.
|
||||
|
||||
(Testgegenstand: das `description`-Feld existiert, ist aber leer. Der Guard muss
|
||||
rot abbrechen.)
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
agent: build
|
||||
---
|
||||
|
||||
Arbeite das Ticket $ARGUMENTS ab.
|
||||
|
||||
(Testgegenstand: Frontmatter vorhanden, aber das Pflichtfeld `description` fehlt.
|
||||
Der Guard muss rot abbrechen.)
|
||||
@@ -0,0 +1,5 @@
|
||||
Arbeite das Ticket $ARGUMENTS ab: zeige es mir, claime es, setze es um und
|
||||
schließ es nach meiner Freigabe.
|
||||
|
||||
(Testgegenstand: dieser Command hat kein YAML-Frontmatter — die Pflicht-`description`
|
||||
fehlt damit zwangsläufig. Der Guard muss rot abbrechen.)
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
---
|
||||
description: Testgegenstand — Dateiname mit Umlaut, der später zum /slash-Namen würde.
|
||||
---
|
||||
|
||||
Dieser Command-Inhalt ist formal in Ordnung: Frontmatter mit `description`,
|
||||
Template-Body mit $ARGUMENTS.
|
||||
|
||||
(Testgegenstand: der Dateiname enthält einen Umlaut — aus `prüfung.md` würde der
|
||||
/slash-Befehl `/prüfung`, was den Namensregeln widerspricht. Der Guard muss am
|
||||
Dateinamen rot abbrechen.)
|
||||
Reference in New Issue
Block a user