> ## Documentation Index
> Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Different Ways to Create Recipes

> Explore all methods for creating PraisonAI recipes

## How to Create Recipes Using CLI

<Steps>
  <Step title="Initialize New Recipe">
    ```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
    praisonai recipe init my-recipe
    ```
  </Step>

  <Step title="Navigate to Recipe">
    ```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
    cd my-recipe
    ```
  </Step>

  <Step title="Customize Generated Files">
    Edit `agents.yaml` to match your requirements.
  </Step>
</Steps>

## How to Create Recipes Manually

<Steps>
  <Step title="Create Directory Structure">
    ```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
    mkdir my-recipe
    cd my-recipe
    touch agents.yaml
    ```
  </Step>

  <Step title="Write agents.yaml">
    ```yaml theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
    framework: praisonai
    topic: "{{task}}"

    roles:
      agent:
        role: Assistant
        goal: Complete the task
        tasks:
          main:
            description: "{{task}}"
            expected_output: "Task result"
    ```
  </Step>

  <Step title="Run Recipe">
    ```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
    praisonai recipe run ./my-recipe --var task="Your task"
    ```
  </Step>
</Steps>

## How to Create Recipes from Existing Agents

<Steps>
  <Step title="Define Agent in Python">
    ```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
    from praisonaiagents import Agent

    agent = Agent(
        name="researcher",
        role="Research Specialist",
        goal="Research topics thoroughly",
        tools=["internet_search"]
    )
    ```
  </Step>

  <Step title="Convert to YAML">
    Create `agents.yaml` based on your agent:

    ```yaml theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
    framework: praisonai
    topic: "{{task}}"

    roles:
      researcher:
        role: Research Specialist
        goal: Research topics thoroughly
        tools:
          - internet_search
        tasks:
          research:
            description: "Research {{task}}"
    ```
  </Step>
</Steps>

## How to Create Recipes from GitHub

<Steps>
  <Step title="Fork Repository">
    Fork the Agent-Recipes repository on GitHub.
  </Step>

  <Step title="Clone Your Fork">
    ```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
    git clone https://github.com/YOUR_USERNAME/Agent-Recipes
    cd Agent-Recipes
    ```
  </Step>

  <Step title="Create New Recipe Directory">
    ```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
    mkdir my-new-recipe
    # Create agents.yaml
    ```
  </Step>

  <Step title="Customize and Push">
    ```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
    # Edit files
    git add .
    git commit -m "Add my-new-recipe"
    git push
    ```
  </Step>
</Steps>

## Recipe Creation Methods Comparison

| Method      | Best For                  | Complexity |
| ----------- | ------------------------- | ---------- |
| CLI `init`  | Quick start               | Low        |
| Manual      | Full control              | Medium     |
| From Agent  | Converting existing code  | Medium     |
| GitHub Fork | Contributing to community | Medium     |
