मुख्य सामग्री पर जाएँ
Skillpedia
एजेंट7.6k · #13109

create-command

यह क्या करती है

यह स्किल बताती है कि Forge कोडिंग ऐप के लिए कस्टम कमांड कैसे लिखें। हर कमांड एक markdown फ़ाइल है, जिसमें नाम, विवरण और चरणों की सूची होती है। यह उन लोगों के लिए है जिन्हें Forge में दोहराए जाने वाले वर्कफ़्लो चाहिए।

कब इस्तेमाल करें

  • ✓जब आप कमिट से पहले कोड जाँचने जैसे दोहराए जाने वाले वर्कफ़्लो को Forge कमांड के रूप में सहेजना चाहते हैं।
  • ✓जब आप मौजूदा Forge कमांड बदलना चाहते हैं।
  • ✓जब आपको Forge कमांड फ़ाइल की संरचना समझनी है।

Skill का लिंक

https://github.com/tailcallhq/forgecode/blob/main/.forge/skills/create-command/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/tailcallhq/forgecode/blob/main/.forge/skills/create-command/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या आप ऐसा Forge कमांड बना सकते हैं जो मेरे कमिट से पहले linter और टेस्ट चलाए?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट एक छोटे हेडर और चरणों की सूची वाली markdown फ़ाइल लिखता है। विशेष टैग lint और टेस्ट के चरणों को चिह्नित करते हैं, ताकि Forge उन्हें अपने-आप चला सके।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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:

  1. YAML Frontmatter (required):

    • name: Command identifier (use hyphens for multi-word names)
    • description: What the command does
  2. 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:
अक्सर पूछे जाने वाले सवाल

कमांड कहां सहेजे जाते हैं?

वे प्रोजेक्ट के forge फ़ोल्डर के भीतर commands फ़ोल्डर में सहेजे जाते हैं।

विशेष टैग क्या है?

lint या test जैसा टैग एक चरण को चिह्नित करता है, जिसे Forge प्रोजेक्ट में कमांड के रूप में चलाता है।

क्या कमांड का नाम ज़रूरी है?

हां। हेडर में नाम चाहिए, और कई शब्दों वाले नामों में हाइफ़न लगते हैं।

जानकारी

लेखक का मूल विवरण

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

लोकप्रियता

GitHub स्टार
7.6k
रैंकिंग में स्थान
#13109
लाइसेंस
Apache-2.0
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

create-agent

7.6k

यह आपके एजेंट को Forge कोडिंग ऐप के लिए कस्टम एजेंट बनाने या बदलने में मदद करती है, जो markdown फ़ाइलों में ऊपर सेटिंग के साथ रखे जाते हैं।

AI और एजेंटएजेंट

create-github-issue

7.6k

यह आपके एजेंट को GitHub इश्यू बनाने में मदद करती है, जो रिपॉज़िटरी के अपने issue टेम्पलेट का पालन करे, सही फ़ील्ड और लेबल के साथ।

कोडिंगसामान्य कोडिंग

create-plan

7.6k

यह आपके एजेंट को किसी जटिल काम के लिए चरणों, जोखिमों और विकल्पों वाली विस्तृत योजना लिखने में मदद करती है, कोड बदलने से पहले।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

github-pr-comments

7.6k

यह आपके एजेंट को GitHub pull request की हर इनलाइन टिप्पणी पर काम करने में मदद करती है, हर मांगा गया बदलाव एक-एक करके करते हुए।

कोडिंगसामान्य कोडिंग

मिलती-जुलती skills