slang

Reference SLang syntax for defining Sutro backends with entities, actions, and triggers.

1|Updated May 11, 2026
One-click install
npx skills add https://github.com/adrianjonmiller/sutro-mcp-server --skill slang-adrianjonmiller
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: slang
Source: https://github.com/adrianjonmiller/sutro-mcp-server/tree/main/.agents/skills/slang
Command: npx skills add https://github.com/adrianjonmiller/sutro-mcp-server --skill slang-adrianjonmiller

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates confusion and slow iteration when writing SLang files by providing a single, agent-friendly reference for Sutro backend syntax, constructs, and rules.

Core Features & Use Cases

  • Syntax and language fundamentals: Quickly confirm indentation, comments, identifiers, literals, and assignment rules.
  • Backend building blocks: Reference definitions for entities, schemas, relations, actions, triggers, queues, permissions, constants, imports, namespaces, and deployments.
  • Operational patterns for agents: Use examples for AI module calls, file handling (FILE/BYTE_STREAM), and common control-flow statements in actions.

Quick Start

Ask your AI to generate a complete SLang backend file that defines a user entity, a document entity with a FILE attachment, an action that uploads documents using store, and an HTTP trigger that calls the upload action with proper @request mapping.

Frequently Asked Questions about slang

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define entities and schemas when building a Sutro backend?

To define Sutro backend entities and schemas, you use SLang syntax to specify primitive types, enums, and optional or default fields. This reference provides the exact keyword coverage and indentation-significant grammar needed to correctly structure your backend models.

How does file handling work for uploading and storing files in Sutro?

File handling in Sutro uses FILE and BYTE_STREAM types within actions to manage uploads and storage. The SLang reference provides examples for defining document entities with FILE attachments and using store actions to execute file upload workflows.

Can I integrate AI module calls into Sutro backend actions and triggers?

Yes, you can integrate AI module calls into Sutro backend actions. The SLang reference includes operational patterns and examples for invoking AI modules within action logic, alongside common control-flow statements and HTTP trigger mappings.

What are the syntax rules for indentation and identifiers in SLang files?

SLang syntax is indentation-significant, requiring precise spacing for correct compilation into SCode. The reference covers fundamental rules for identifiers, literals, comments, and assignments to prevent syntax errors during backend modeling.

How do I configure permissions and triggers for Sutro backend deployments?

Configuring permissions and triggers in Sutro involves defining HTTP triggers and access controls using specific SLang keywords. The reference details how to map @request parameters to actions and apply permissions across namespaces and deployments.

When should I use constants, imports, and namespaces in SLang backend modeling?

Use constants, imports, and namespaces in SLang backend modeling to organize dependencies and scope definitions effectively. The reference explains how to declare these constructs to maintain clean compilation into SCode and support structured deployments.