Agent skill
east-ui
Install this agent skill to your Project
npx add-skill https://github.com/elaraai/east-plugin/tree/main/skills/east-ui
SKILL.md
East UI
UI component definitions for the East language. Components return data structures describing UI layouts rather than rendering directly, enabling portability across different rendering environments.
Quick Start
import { East, ArrayType } from "@elaraai/east";
import { Stack, Text, Button, UIComponentType } from "@elaraai/east-ui";
// Define a UI component
const MyComponent = East.function(
[],
UIComponentType,
$ => {
return Stack.Root([
Text.Root("Hello, World!", { fontSize: "xl", fontWeight: "bold" }),
Button.Root("Click Me", { variant: "solid", colorPalette: "blue" }),
], { gap: "4", direction: "column" });
}
);
// Convert to IR for serialization or rendering
const ir = MyComponent.toIR();
Decision Tree: Which Component to Use
Task -> What do you need?
|
+-- Layout (containers)
| +-- Box -> Generic container with flexbox styling
| +-- Stack -> Vertical or horizontal stack (.Root, .HStack, .VStack)
| +-- Grid -> CSS Grid layout (.Root, .Item)
| +-- Splitter -> Resizable split panels
| +-- Separator -> Visual divider
|
+-- Typography
| +-- Text -> Basic text display
| +-- Code -> Inline code
| +-- Heading -> Section headings
| +-- Link -> Hyperlinks
| +-- List -> Ordered/unordered lists
| +-- CodeBlock -> Multi-line code blocks
|
+-- Buttons
| +-- Button -> Standard button with variants
| +-- IconButton -> Icon-only button
|
+-- Forms
| +-- Input -> Text, Integer, Float, DateTime inputs
| +-- Select -> Dropdown selection (.Root, .Item)
| +-- Checkbox -> Boolean checkbox
| +-- Switch -> Toggle switch
| +-- Slider -> Range slider
| +-- Textarea -> Multi-line text
| +-- TagsInput -> Tag/chip input
| +-- FileUpload -> File upload
| +-- Field -> Form field wrapper with label
|
+-- Collections
| +-- Table -> Data tables (.Root, .Row, .Cell)
| +-- DataList -> Key-value list (.Root, .Item)
| +-- TreeView -> Hierarchical tree
| +-- Gantt -> Gantt chart timeline
|
+-- Charts
| +-- Chart.Area, Chart.Bar, Chart.Line, Chart.Pie
| +-- Chart.Radar, Chart.Scatter
| +-- Chart.BarList, Chart.BarSegment
| +-- Sparkline -> Inline mini charts
|
+-- Display
| +-- Badge -> Status indicators
| +-- Tag -> Labels/tags
| +-- Avatar -> User avatars
| +-- Stat -> Statistics display
| +-- Icon -> Icons
|
+-- Feedback
| +-- Alert -> Alert messages
| +-- Progress -> Progress indicators
|
+-- Disclosure
| +-- Accordion -> Collapsible sections (.Root, .Item)
| +-- Tabs -> Tabbed content
| +-- Carousel -> Image/content carousel
|
+-- Overlays
| +-- Dialog -> Modal dialogs
| +-- Drawer -> Side drawers
| +-- Popover -> Popovers
| +-- Tooltip -> Tooltips
| +-- Menu -> Context menus
| +-- HoverCard -> Hover cards
|
+-- Container
+-- Card -> Content card with header/body
Component Pattern
All components follow a consistent namespace pattern:
import { Badge, Stack, Button } from "@elaraai/east-ui";
// Create component using .Root()
const badge = Badge.Root("New", { variant: "solid", colorPalette: "green" });
// Compound components have sub-factories
const stack = Stack.Root([
Text.Root("Item 1"),
Text.Root("Item 2"),
], { gap: "4" });
// Access East types via .Types
const badgeType = Badge.Types.Badge;
const styleType = Badge.Types.Style;
Styling
Components accept style options with Chakra UI tokens:
Button.Root("Click", {
variant: "solid", // solid, outline, subtle, ghost
colorPalette: "blue", // gray, red, orange, yellow, green, teal, blue, purple, pink
size: "md", // xs, sm, md, lg
});
Text.Root("Hello", {
fontSize: "xl",
fontWeight: "bold", // normal, medium, semibold, bold
color: "gray.600",
});
Stack.Root([...], {
gap: "4", // Chakra spacing tokens
direction: "row", // row, column
align: "center", // flex alignment
});
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
east-node-io
I/O platform functions for the East language on Node.js. Use when writing East programs that need SQL databases (SQLite, PostgreSQL, MySQL), NoSQL databases (Redis, MongoDB), S3 storage, file transfers (FTP, SFTP), file format parsing (XLSX, XML), or compression (Gzip, Zip, Tar). Triggers for: (1) Writing East programs with @elaraai/east-node-io, (2) Database operations with SQL.SQLite, SQL.Postgres, SQL.MySQL, NoSQL.Redis, NoSQL.MongoDB, (3) Cloud storage with Storage.S3, (4) File transfers with Transfer.FTP, Transfer.SFTP, (5) Format parsing with Format.XLSX, Format.XML, (6) Compression with Compression.Gzip, Compression.Zip, Compression.Tar.
east-py-datascience
Data science and machine learning platform functions for the East language (TypeScript types). Use when writing East programs that need optimization (MADS, Optuna, SimAnneal, Scipy, Optimization, GoogleOr), machine learning (XGBoost, LightGBM, NGBoost, Torch MLP, Lightning, GP), Bayesian inference (PyMC), simulation (Simulation DES), ML utilities (Sklearn preprocessing, metrics, splits), conformal prediction (MAPIE), or model explainability (SHAP). Triggers for: (1) Writing East programs with @elaraai/east-py-datascience, (2) Derivative-free optimization with MADS, (3) Bayesian optimization with Optuna, (4) Discrete/combinatorial optimization with SimAnneal, (5) Gradient boosting with XGBoost or LightGBM, (6) Probabilistic predictions with NGBoost or GP, (7) Neural networks with Torch MLP or Lightning, (8) Data preprocessing and metrics with Sklearn, (9) Conformal prediction intervals with MAPIE, (10) Model explainability with Shap, (11) Iterative coordinate descent with Optimization, (12) Constraint programming, vehicle routing, LP/MIP, or graph algorithms with GoogleOr, (13) Bayesian regression, hierarchical models, and multi-layer estimation with PyMC, (14) Economic ontology simulation via discrete event simulation with Simulation.
east-node-std
Node.js platform functions for the East language. Use when writing East programs that need Console I/O, FileSystem operations, HTTP Fetch requests, Cryptography, Time operations, Path manipulation, Random number generation, or Testing. Triggers for: (1) Writing East programs with @elaraai/east-node-std, (2) Using platform functions like Console.log, FileSystem.readFile, Fetch.get, Crypto.uuid, Time.now, Path.join, Random.normal, (3) Testing East code with describeEast and Assert.
e3
East Execution Engine (e3) - durable dataflow execution for East programs. Use when: (1) Authoring e3 packages with @elaraai/e3 (e3.input, e3.task, e3.package, e3.export), (2) Running e3 CLI commands (e3 repo create, e3 start, e3 watch, e3 get, e3 set), (3) Working with workspaces and packages, (4) Content-addressable caching and dataflow execution.
east
East programming language - a statically typed, expression-based language embedded in TypeScript. Use when writing East programs with @elaraai/east. Triggers for: (1) Writing East functions with East.function() or East.asyncFunction(), (2) Defining types (IntegerType, StringType, ArrayType, StructType, VariantType, etc.), (3) Using platform functions with East.platform() or East.asyncPlatform(), (4) Compiling East programs with East.compile(), (5) Working with East expressions (arithmetic, collections, control flow), (6) Serializing East IR with .toIR() and EastIR.fromJSON(), (7) Standard library operations (formatting, rounding, generation).
east-py-datascience
Data science and machine learning platform functions for the East language (TypeScript types). Use when writing East programs that need optimization (MADS, Optuna, SimAnneal, Scipy, Optimization, GoogleOr), machine learning (XGBoost, LightGBM, NGBoost, Torch MLP, Lightning, GP), Bayesian inference (PyMC), simulation (Simulation DES), ML utilities (Sklearn preprocessing, metrics, splits), conformal prediction (MAPIE), or model explainability (SHAP). Triggers for: (1) Writing East programs with @elaraai/east-py-datascience, (2) Derivative-free optimization with MADS, (3) Bayesian optimization with Optuna, (4) Discrete/combinatorial optimization with SimAnneal, (5) Gradient boosting with XGBoost or LightGBM, (6) Probabilistic predictions with NGBoost or GP, (7) Neural networks with Torch MLP or Lightning, (8) Data preprocessing and metrics with Sklearn, (9) Conformal prediction intervals with MAPIE, (10) Model explainability with Shap, (11) Iterative coordinate descent with Optimization, (12) Constraint programming, vehicle routing, LP/MIP, or graph algorithms with GoogleOr, (13) Bayesian regression, hierarchical models, and multi-layer estimation with PyMC, (14) Economic ontology simulation via discrete event simulation with Simulation.
Didn't find tool you were looking for?