RTFS Grammar

Define pure functional RTFS programs with explicit host calls and optional typing schemas.

12|Updated May 23, 2025
One-click install
npx skills add https://github.com/mandubian/ccos --skill rtfs-grammar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: RTFS Grammar
Source: https://github.com/mandubian/ccos/tree/main/.claude/skills/rtfs-grammar
Command: npx skills add https://github.com/mandubian/ccos --skill rtfs-grammar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

RTFS Grammar provides a precise reference for the pure functional RTFS language used to model and reason about CCOS agents, enabling safe plan formulation and reproducible governance decisions.

Core Features & Use Cases

  • Pure functional syntax and data structures (S-expressions, literals, vectors, maps) for RTFS programs.
  • Clear host boundary via (call ...) to perform side effects, enabling deterministic planning.
  • Use cases include designing, validating, and teaching RTFS-based workflows for autonomous agents.

Quick Start

Show a minimal RTFS expression that adds two numbers.

Frequently Asked Questions about RTFS Grammar

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

FAQPage Schema
What is RTFS grammar used for in CCOS agents?

RTFS grammar is a pure functional language used to model and reason about CCOS agents, enabling safe plan formulation and reproducible governance decisions. It provides precise syntax for deterministic planning and validation.

How do I perform side effects in RTFS functional programs?

Side effects in RTFS functional programs are performed through a clear host boundary using the (call ...) expression. This mechanism enables deterministic planning by isolating side effects from pure functional logic.

What data structures and literals does the RTFS grammar support?

RTFS grammar supports pure functional syntax and data structures including S-expressions, literals, vectors, and maps. It also provides optional typing schemas for structuring RTFS programs.

How do I write a minimal RTFS expression to add two numbers?

A minimal RTFS expression to add two numbers uses pure functional syntax with S-expressions. The Quick Start guide shows how to construct basic arithmetic operations using the RTFS grammar format.

Can I use RTFS grammar for validating autonomous agent workflows?

Yes, RTFS grammar can be used for designing, validating, and teaching RTFS-based workflows for autonomous agents. It enables developers to debug and validate CCOS governance and plan execution scenarios.

Do I need optional typing schemas for RTFS programs?

Optional typing schemas are available for RTFS programs but are not required. They provide additional structure and validation for RTFS programs when needed for governance and plan execution scenarios.