amber-lang

Installation
SKILL.md

This skill provides comprehensive knowledge of Amber (amber-lang.com), a modern programming language that compiles to Bash script. Use it to write, review, debug, convert, and explain Amber code.

Quick Reference

Amber compiles to Bash 3.2+ compatible scripts. It provides ECMAScript-inspired syntax, type safety, and mandatory error handling.

CLI: amber run <file.ab> | amber build <in.ab> <out.sh> | amber check <file.ab> | amber eval '<code>'

Shebang: #!/usr/bin/env amber | File extension: .ab

Types: Text, Int, Num (needs bc), Bool, Null, [T] (typed array, no nesting)

Key syntax patterns:

let x = 10                          // variable
const Y = 20                        // constant
fun add(a: Int, b: Int): Int { }    // typed function
fun risky(): Int? { fail 1 }        // failable function (? = can fail)
pub fun exported(): Null { }        // public/exportable
Related skills

More from aaronflorey/agent-skills

Installs
26
First Seen
Mar 9, 2026