promptl

PromptL syntax guide for writing prompts in the Latitude platform. This skill should be used when writing, reviewing, or editing PromptL prompts. Triggers on tasks involving creating prompts, configuring LLM parameters, using variables, conditionals, loops, chains, tools, agents, or any prompt engineering in Latitude.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "promptl" with this command: npx skills add latitude-dev/promptl-skill/latitude-dev-promptl-skill-promptl

PromptL Syntax Guide

Comprehensive guide for writing PromptL prompts in the Latitude platform. PromptL is a versatile, human-readable language that simplifies defining and managing dynamic prompts for LLMs.

When to Apply

Reference these guidelines when:

  • Writing new PromptL prompts for Latitude
  • Configuring LLM models and parameters
  • Using variables, conditionals, or loops in prompts
  • Creating multi-step chains or agentic workflows
  • Defining tools for function calling
  • Referencing other prompts (snippets)
  • Working with structured JSON output schemas

Syntax Categories

CategoryPurposeKey Syntax
ConfigurationDefine model, provider, and parameters--- YAML block
MessagesStructure conversations<system>, <user>, <assistant>, <tool>
VariablesDynamic content{{ variable }}
ConditionalsDynamic flow control{{ if }}, {{ else }}, {{ endif }}
LoopsIterate over lists{{ for item in list }}, {{ endfor }}
ChainsMulti-step prompts<step>
ToolsFunction callingtools: in config
AgentsAutonomous workflowstype: agent
SnippetsReusable prompts<prompt path="..." />
ContentMulti-modal content<content-image>, <content-file>

Quick Reference

Configuration Block

---
provider: OpenAI
model: gpt-4o
temperature: 0.7
top_p: 0.9
maxSteps: 20
---

Message Tags

  • <system> - System instructions
  • <user> - User messages
  • <assistant> - Assistant responses
  • <tool> - Tool interaction results
  • <message role="..."> - Generic message tag

Variables

{{ variable_name }}
{{ variable || "default" }}
{{ set myVar = "value" }}

Conditionals

{{ if condition }}
  content
{{ else }}
  alternative
{{ endif }}

Loops

{{ for item, index in items }}
  {{ index }}: {{ item }}
{{ else }}
  No items
{{ endfor }}

Chains (Multi-step)

<step as="result">
  First step content
</step>

<step>
  Use {{ result }} from previous step
</step>

Tools Configuration

tools:
  - tool_name:
      description: What the tool does
      parameters:
        type: object
        properties:
          param_name:
            type: string
            description: Parameter description
        required:
          - param_name

Agents

---
type: agent
provider: OpenAI
model: gpt-4o
tools:
  - latitude/search
agents:
  - agents/sub-agent-path
maxSteps: 40
---

Structured Output

schema:
  type: object
  properties:
    field_name:
      type: string
      description: Field description
  required:
    - field_name

Prompt References (Snippets)

<prompt path="relative/path/to/prompt" />
<prompt path="shared/policies" variable={{ value }} />

Content Types

<content-text>Plain text</content-text>
<content-image>{{ image_url }}</content-image>
<content-file mime="application/pdf">{{ file_data }}</content-file>

How to Use

Read the AGENTS.md file for the complete detailed guide with all syntax explanations, examples, and best practices.

Each section contains:

  • Detailed explanation of the feature
  • Correct usage examples
  • Common mistakes to avoid
  • Best practices and tips

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

latitude-telemetry

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

china-sportswear-outdoor-sourcing

Comprehensive sportswear and outdoor equipment sourcing guide for international buyers – provides detailed information about China's athletic apparel, footwear, outdoor gear, and accessories manufacturing clusters, supply chain structure, regional specializations, and industry trends (2026 updated).

Archived SourceRecently Updated
Web3

china-lighting-sourcing

Comprehensive lighting industry sourcing guide for international buyers – provides detailed information about China's LED, smart, outdoor, automotive, and specialty lighting manufacturing clusters, supply chain structure, regional specializations, and industry trends (2026 updated).

Archived SourceRecently Updated
Web3

china-furniture-sourcing

Comprehensive furniture industry sourcing guide for international buyers – provides detailed information about China's residential, office, hotel, outdoor, and custom furniture manufacturing clusters, supply chain structure, regional specializations, and industry trends (2026 updated).

Archived SourceRecently Updated