# Markdown Scripts

> Learn how to write GenAIScript templates using Markdown syntax

GenAIScript supports writing scripts using Markdown syntax with YAML frontmatter, providing a more accessible way to create AI prompts without needing to know JavaScript or TypeScript.

## File Extension

[Section titled “File Extension”](#file-extension)

Markdown scripts use the `.genai.md` file extension and are automatically detected and processed by GenAIScript.

* genaisrc/

  * **summarize.genai.md**
  * **analyze.genai.md**
  * translate.genai.mts

## Basic Structure

[Section titled “Basic Structure”](#basic-structure)

A markdown script consists of two parts:

1. **YAML frontmatter** (optional) - contains script configuration
2. **Markdown content** - the actual prompt text

summarize.genai.md

```markdown
---
title: "Summarize Text"
description: "Creates a concise summary of the input text"
model: "small"
temperature: 0.3
---