create-command

Create Forge command files with YAML frontmatter and Markdown bodies.

7.5k|1.4k|Updated Dec 8, 2024
One-click install
npx skills add https://github.com/tailcallhq/forgecode --skill create-command-tailcallhq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-command
Source: https://github.com/tailcallhq/forgecode/tree/main/.forge/skills/create-command
Command: npx skills add https://github.com/tailcallhq/forgecode --skill create-command-tailcallhq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create new commands for the Forge code-forge application by standardizing command files with YAML frontmatter and a Markdown body, enabling consistent discovery and execution.

Core Features & Use Cases

  • Enforces a consistent file structure for Forge commands stored in <cwd>/.forge/commands
  • Provides a clear frontmatter contract (name, description) and a Markdown body with actionable steps
  • Supports optional scripts/, references/, and assets/ directories to extend command functionality

Quick Start

Create a new command in your project under .forge/commands using the template and guidelines described above.

Frequently Asked Questions about create-command

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a new Forge command for my project setup?

To create a Forge command, you generate a Markdown command file with YAML frontmatter containing a name and description, then store it in the .forge/commands directory to enable consistent discovery and execution within your dev workflow.

What is the required file structure for Forge commands?

The required file structure for Forge commands involves a Markdown body outlining actionable steps and a SKILL.md frontmatter specifying the name and description, ensuring consistent filename-to-name mapping for project setup and discovery.

Can I add scripts and references to a Forge command file?

Yes, you can extend Forge command functionality by adding optional scripts, references, and assets directories alongside the main Markdown command file, allowing you to include supporting scripts and reference materials directly in the command structure.

How do I ensure my Forge commands are discoverable in the code-forge application?

Forge commands are discoverable by maintaining consistent filename-to-name mapping between the Markdown command file and the YAML frontmatter name property, ensuring the code-forge application can automatically locate and execute commands stored in .forge/commands.

Do I need YAML frontmatter to define a Forge command?

Yes, YAML frontmatter is required to define a Forge command because it provides the essential name and description metadata that standardizes command files, enabling the Forge system to properly identify and execute project setup workflows.

What limitations exist when modifying commands in the .forge/commands directory?

When modifying commands in the .forge/commands directory, limitations include the strict requirement for YAML frontmatter and consistent filename-to-name mapping; deviating from this Markdown structure will prevent the Forge system from discovering and executing the command.