Skip to content
Back to skills

Lea

ASecurity

Use when writing or modifying Lea code - pipe-oriented functional language with tree-walk interpreter

  • 666 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added February 9, 2026
developmentbash

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill lea --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Lea?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Lea
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-lea/badge)](https://www.skillsdirectory.com/skills/majiayu000-lea)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: lea
# prettier-ignore
description: Use when writing or modifying Lea code - pipe-oriented functional language with tree-walk interpreter
---

# Lea Language

## Quick Start

```lea
let numbers = [1, 2, 3, 4, 5]

let result = numbers
  /> filter((x) -> x > 2)
  /> map((x) -> x * x)
  /> reduce(0, (acc, x) -> acc + x)

result /> print
```

## Core Principles

- **Pipes**: `value /> fn` passes value as first arg; use `input` placeholder to control position
- **Functions**: `let double = (x) -> x * 2` (no fn keyword)
- **Multi-statement bodies**: Indentation-based or brace-delimited `{ }`
- **Decorators**: Trailing `#log #memo #time #retry(3)` etc. after function body
- **Bindings**: `let x = 10` immutable, `maybe x = 0` mutable
- **Records**: `{ name: "Max", age: 99 }` with member access `record.field`
- **Contexts**: `context Name = default` + `provide Name value` + `@Name` attachments

## Builtins

- Math: `sqrt`, `abs`, `floor`, `ceil`, `round`, `min`, `max`
- Lists: `length`, `head`, `tail`, `push`, `concat`, `map`, `filter`, `reduce`, `range`
- IO: `print` (returns first arg for chaining)
- Async: `delay(ms)` — promise that resolves after ms

## Running

```bash
npm run repl            # Interactive REPL
npm run lea file.lea    # Run a file
```

## Reference Files

- [references/syntax.md](references/syntax.md) - Full syntax reference
- [references/architecture.md](references/architecture.md) - Interpreter internals

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.