AGENT SKILL
ysh
Use this skill when the user wants a modern POSIX-compatible shell — OSH runs bash scripts as-is, YSH adds typed data, structured pipelines and clean syntax.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 57
- Forks
- 5
01 前言 Front Matter
- name
- ysh
- description
- Use this skill when the user wants a modern POSIX-compatible shell — OSH runs bash scripts as-is, YSH adds typed data, structured pipelines and clean syntax.
03 SKILL.md 正文
ysh Plugin
Oils for Unix is a single native binary with two shells: osh (bash/POSIX-compatible) and ysh (modern language with typed data and structured pipelines).
Commands
Shell
ysh shell exec "<code>"— Run YSH codeysh osh exec "<code>"— Run bash-compatible code with OSHysh script run <file>— Execute a .ysh scriptysh self version— Show versionysh _ _— Passthrough to ysh CLI
Usage Examples
- "Run my bash script under a stricter shell"
- "Write a script with real dicts and JSON output"
- "Syntax-check this shell file"
Installation
# tarball: https://www.oils.pub/release/latest/
./configure && _build/oils.sh && sudo ./install
# or: mise use ysh
Examples
ysh -c 'var x = {"k": [1,2]}; json write (x)'
ysh -c 'proc greet(name) { echo "hi $name" }; greet world'
osh -c 'for f in *.sh; do bash -n "$f"; done' # bash-compatible
ysh -n script.ysh # syntax check only
Key Features
- OSH runs most bash scripts unchanged, with better errors (
osh -nchecks) - YSH: expressions, Dict/List types,
json write/json readpipelines - Single static C++ binary — no dependencies, fast startup
- Egg expressions, procs vs funcs, honest error messages
04 同仓库更多 Skills
sc-machin-mcp
暂无简介
★ 57
supercli.quickstart
SuperCLI capability router — discover and execute CLI commands through namespace.resource.action interface
★ 57
zzdoc
Use this skill to compile scdoc manpages with a fast Zig-based compiler.
★ 57
zx
Use this skill when the user wants to a tool for writing better scripts using node.js.
★ 57
zvm
Use this skill when the user wants to manage multiple Zig compiler versions.
★ 57
quickstart
暂无简介
★ 57