functional-programming
Use when writing functional code - covers FP best practices (Lea differs from traditional FP languages)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when writing functional code - covers FP best practices (Lea differs from traditional FP languages)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use when configuring ESLint - covers flat config, TypeScript integration, and custom rules
Use when creating GitHub Actions workflows - covers CI/CD, matrix testing, and release automation
Use when writing Jest tests - covers testing patterns for interpreters, parsers, and async code
Use when designing language features - covers lexer, parser, AST, and interpreter patterns
Use when implementing Language Server Protocol features - covers completions, hover, diagnostics, and navigation
Use when creating Mermaid diagrams - covers flowcharts, sequence diagrams, and AST visualization
| name | functional-programming |
| description | Use when writing functional code - covers FP best practices (Lea differs from traditional FP languages) |
-- Prefer pure functions and immutable data
let double = (x) -> x * 2
[1, 2, 3] /> map(double) /> filter((x) -> x > 2)
let by default, maybe only when mutation is necessaryLea differs from traditional FP languages:
5 /> add(3, input)x /> fn(a) becomes fn(x, a)maybe allows mutation; avoid unless necessary#async decorator instead:: Type :> ReturnType, use #strict for enforcementlet over maybe/>) for left-to-right data flow(element, index)