tailcallhq/forgecode/create-command
Claude Code and agent skill by tailcallhq/forgecode
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install tailcallhq/forgecode/create-commandSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as tailcallhq/forgecode/create-command.
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
Complete Sample Command
This sample demonstrates all three tag types:
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
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:
<test> Tag
For testing commands:
<shell> Tag
For general shell commands (not linting or testing):
Using Tags
Tags should be placed on their own line after the step description:
Command Types
Simple Commands
Single-step or instruction-only commands:
Multi-Step Commands
Commands with multiple sequential steps:
Automated Workflow Commands
Commands that include automated checks:
Command Templates
Simple Command Template
Automated Workflow Template
Multi-Step Workflow Template
Git Workflow Template
Best Practices
Naming
- Use lowercase letters
- Use hyphens to separate words
- Use verb-based names (imperative form)
- Keep names short but descriptive
Descriptions
- Be clear and concise
- Describe what the command does, not how
- Include the main purpose and key outcomes
- Avoid implementation details
Command Steps
- Use numbered lists for sequential steps
- Start each step with an action verb
- Be specific about what to do
- Include context for complex steps
- Use present tense
Special Tags
- Place tags on their own line after the step
- Only use
<lint>,<test>, and<shell>tags - Include complete commands that can be executed
- Use appropriate flags for your workflow
Common Patterns
Git Workflow Commands
Documentation Commands
Cleanup Commands
Build and Deploy Commands
Validation Checklist
Use this checklist to verify your command is complete and correct:
File Structure
- [ ] File is in the
<cwd>/.forge/commandsdirectory (CRITICAL) - [ ] Filename matches command name (e.g.,
check.mdforname: check) - [ ] File has
.mdextension - [ ] YAML frontmatter uses
---delimiters
Frontmatter
- [ ]
namefield is present - [ ]
nameuses lowercase letters - [ ]
nameuses hyphens for multi-word names - [ ]
nameis verb-based (imperative form) - [ ]
descriptionfield is present - [ ]
descriptionis clear and concise - [ ]
descriptiondescribes what, not how
Command Body
- [ ] At least one step is defined
- [ ] Steps use bullet points (
-) - [ ] Each step starts with action verb
- [ ] Steps are specific and actionable
- [ ] Complex steps include context
- [ ] Steps are in logical order
Special Tags
- [ ] Tags are on their own line after step description
- [ ] Only valid tags are used (
<lint>,<test>,<shell>) - [ ] Tag commands are complete and executable
- [ ] Tag commands use appropriate flags
- [ ] Tag commands are properly formatted
Content Quality
- [ ] Command name is descriptive
- [ ] Steps are clear and unambiguous
- [ ] No redundant or duplicate steps
- [ ] Steps follow logical sequence
- [ ] Special requirements are documented
- [ ] Error handling is considered
Testing
- [ ] Command can be executed successfully
- [ ] All steps complete as expected
- [ ] Special tags work correctly
- [ ] Output is as expected
- [ ] Edge cases are handled
- [ ] Command is recognized by forge: Run
forge list command --custom(orforge list cmd) and verify your command appears in the list
Common Mistakes to Avoid
Frontmatter Mistakes
Bad: Wrong delimiter:
(Missing closing ---)
Good: Correct:
Bad: Missing required field:
(Missing description)
Good: Correct:
Naming Mistakes
Bad: CamelCase name:
Good: Correct:
Bad: Noun instead of verb:
Good: Correct:
Step Mistakes
Bad: No action verb:
Good: Correct:
Bad: Vague steps:
Good: Correct:
Tag Mistakes
Bad: Tag on same line:
Good: Correct:
Bad: Invalid tag:
Good: Correct:
Bad: Incomplete command:
(Missing --all flag)
Good: Correct:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.forge/skills/create-command/SKILL.md
Popularity
- Repository stars
- 7,447
- Repository forks
- 1,451
- 7-day trend score
- 45
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 7 Jul 2026, 4 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tailcallhq/forgecode/create-command)