create-command
Was er macht
Dieser Skill erklärt, wie man eigene Befehle für die Coding-App Forge schreibt. Jeder Befehl ist eine Markdown-Datei mit Name, Beschreibung und einer Liste von Schritten. Er richtet sich an Menschen, die wiederholbare Abläufe in Forge wollen.
Wann du ihn nutzt
- ✓Wenn du einen wiederholbaren Ablauf, etwa eine Code-Prüfung vor einem Commit, als Forge-Befehl speichern willst.
- ✓Wenn du einen bestehenden Forge-Befehl ändern willst.
- ✓Wenn du den Aufbau einer Forge-Befehlsdatei verstehen musst.
Link zum Skill
https://github.com/tailcallhq/forgecode/blob/main/.forge/skills/create-command/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Kannst du einen Forge-Befehl erstellen, der vor einem Commit den Linter und die Tests ausführt?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent schreibt eine Markdown-Datei mit einem kurzen Kopfbereich und einer Liste von Schritten. Spezielle Markierungen kennzeichnen die Lint- und Test-Schritte, damit Forge sie automatisch ausführen kann.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Create Commands
Create and manage commands for the code-forge application. Commands are modular workflows that can be invoked to perform specific tasks.
File Location
CRITICAL: All command files must be created in the <cwd>/.forge/commands directory, where <cwd> is the current working directory of your code-forge project.
- Directory:
<cwd>/.forge/commands - File format:
{command-name}.md - Example: If your project is at
/home/user/my-project, commands go in/home/user/my-project/.forge/commands/
This is the only location where forge will discover and load custom commands.
Command File Structure
Every command file must have:
YAML Frontmatter (required):
name: Command identifier (use hyphens for multi-word names)description: What the command does
Command Body (required):
- List of steps to execute
- Special tags for automated workflows
- Clear instructions for each step
Example Command File
---
name: check
description: Checks if the code is ready to be committed
---
- Run the `lint` and `test` commands and verify if everything is fine.
<lint>cargo +nightly fmt --all; cargo +nightly clippy --fix --allow-staged --allow-dirty --workspace</lint>
<test>cargo insta test --accept --unreferenced=delete</test>
- Fix every issue found in the process
Complete Sample Command
This sample demonstrates all three tag types:
---
name: sample-command
description: Sample command demonstrating the command file structure
---
This is a sample command that demonstrates the structure of command files.
- First step: Perform an initial action
<lint>echo "Running linting..."</lint>
- Second step: Execute tests
<test>echo "Running tests..."</test>
- Third step: Complete the workflow
<shell>echo "Workflow complete!"</shell>
- Final step: Verify everything worked correctly
Creating a New Command
Step 1: Determine Command Purpose
Identify what the command should accomplish:
- What task will it perform?
- What steps are involved?
- Are there automated checks or tests needed?
- What should the user do with the results?
Step 2: Choose Command Name
Use verb-based names with hyphens for multi-word commands:
- Good:
check,fixme,pr-description,run-tests - Bad:
checker,fixing,PRdescription
Step 3: Write the Command File
Create the file in the <cwd>/.forge/commands directory with the format: {command-name}.md
IMPORTANT: The file MUST be in <cwd>/.forge/commands where <cwd> is your current working directory. Commands placed anywhere else will not be discovered by forge.
Frontmatter
---
name: your-command-name
description: Clear, concise description of what this command does
---
Command Body
Use markdown lists for steps. Each step should:
- Start with a clear action verb
- Be specific and actionable
- Include context about what to do
Special Command Tags
Use these tags for automated workflows:
<lint> Tag
For linting/formatting commands:
<lint>cargo +nightly fmt --all; cargo +nightly clippy --fix --allow-staged --allow-dirty --workspace</lint>
<test> Tag
For testing commands:
<test>cargo insta test --accept --unreferenced=delete</test>
<shell> Tag
For general shell commands (not linting or testing):
<shell>rm -rf target/debug</shell>
Using Tags
Tags should be placed on their own line after the step description:
- Run linting and testing
<lint>your-lint-command</lint>
<test>your-test-command</test>
Command Types
Simple Commands
Single-step or instruction-only commands:
---
name: fixme
description: Looks for all the fixme comments in the code and attempts to fix them
---
Find all the FIXME comments in source-code files and attempt to fix them.
Multi-Step Commands
Commands with multiple sequential steps:
---
name: pr-description
description: Updates the description of the PR
---
- I have created a Pull Request with all the accepted changes
- Understand the current PR deeply using the GH CLI and update the PR title and description
- Make sure the title follows conventional commits standard
- Top-level summary should contain 2-3 lines about the core functionality improvements
Automated Workflow Commands
Commands that include automated checks:
---
name: check
description:
Häufige Fragen
Wo werden Befehle gespeichert?
Sie werden in einem Ordner commands im forge-Ordner des Projekts abgelegt.
Was ist eine spezielle Markierung?
Eine Markierung wie lint oder test kennzeichnet einen Schritt, den Forge als Befehl im Projekt ausführt.
Brauchen Befehle einen Namen?
Ja. Der Kopfbereich braucht einen Namen, und mehrteilige Namen werden mit Bindestrichen geschrieben.
Details
Originalbeschreibung des Autors
Create new commands for the code-forge application. Commands are stored as .md files in the <cwd>/.forge/commands directory with YAML frontmatter (name, description) and markdown body containing command steps. Use when users need to add new commands, modify existing commands, or understand the command file structure. Supports special command tags like <lint> and <test> for automated workflows.
repo: tailcallhq/forgecode
Beliebtheit
- GitHub-Sterne
- 7.6k
- Platz im Ranking
- #13109
- Lizenz
- Apache-2.0
- Aktualisiert
- 1.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
create-agent
7.6kLehrt deinen Agenten, eigene Agenten für die Coding-App Forge zu erstellen oder zu ändern, gespeichert als Markdown-Dateien mit Einstellungen oben.
create-github-issue
7.6kHilft deinem Agenten, ein GitHub-Issue nach der eigenen Issue-Vorlage des Repositorys anzulegen, mit den richtigen Feldern und Labels.
create-plan
7.6kHilft deinem Agenten, bei einer komplexen Aufgabe vor jeder Codeänderung einen ausführlichen Umsetzungsplan mit Schritten, Risiken und Alternativen zu schreiben.
github-pr-comments
7.6kHilft deinem Agenten, jeden Inline-Kommentar an einem GitHub-Pull-Request abzuarbeiten und jede gewünschte Änderung nacheinander umzusetzen.
Ähnliche Skills
add-model-provider
394kLässt deinen Agenten einen neuen KI-Modellanbieter mit sicheren Befehlen an OpenClaw anbinden, API-Schlüssel nicht im Klartext speichern und einen Live-Test starten.
acp-router
394kHilft deinem Agenten, eine Aufgabe über OpenClaw an einen Coding-Assistenten wie Claude Code oder Cursor zu senden, damit die Arbeit in diesem Tool läuft.
browser-automation
394kBringt deinem Agenten bei, Webseiten Schritt für Schritt zu steuern, einschließlich Anmeldungen, Tabs und Wiederherstellung, wenn eine Seite nicht mehr reagiert.