[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69B89R72XJT8JP8JZRGCV0C":3,"skill-same:01M69B89R72XJT8JP8JZRGCV0C":80},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":61,"ownerHtmlUrl":62,"ownerBlogUrl":63,"ownerDescription":64,"updatedAt":65,"install":66,"resources":79},"01M69B89R72XJT8JP8JZRGCV0C","hex1b","终端应用自动化操作","CLI tool for automating any terminal application — TUI apps, shells, CLI tools, REPLs, and more. Use when you need to launch a process in a virtual terminal, capture its screen output, inject keystrokes or mouse input, take screenshots, record sessions, or assert on what's visible.","用于自动化任何终端应用程序的 CLI 工具——TUI 应用、shell、CLI 工具、REPL 等。当需要在虚拟终端中启动进程、捕获其屏幕输出、注入键盘或鼠标输入、截取屏幕截图、录制会话或对可见内容进行断言时使用。","microsoft\u002Faspire.dev","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69B7HZWV2YNDYYCP5G712FG",206,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire.dev\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhex1b\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH2SFTXSGVVGVBMDTMWK","桌面自动化与界面操作","SCENARIO","使用场景",[5,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"take","when","for","more","you","output","cli tool","input","screen","apps","record","screenshots","use","virtual","tool","Tools","sessions","launch","terminal","cli","2026-11-10 10:12:30",false,"---\nname: hex1b\ndescription: CLI tool for automating any terminal application — TUI apps, shells, CLI tools, REPLs, and more. Use when you need to launch a process in a virtual terminal, capture its screen output, inject keystrokes or mouse input, take screenshots, record sessions, or assert on what's visible.\n---\n\n# Hex1b CLI Skill\n\nThe `dotnet hex1b` CLI tool lets you automate **any terminal application** — TUI apps,\ninteractive CLIs, shells, REPLs, curses programs, or anything else that runs in a terminal.\nIt wraps arbitrary processes in a headless virtual terminal, giving you programmatic control\nover screen capture, input injection, and content assertions.\n\n## Installation\n\n```bash\n# Install as a global tool\ndotnet tool install -g Hex1b.Tool\n\n# Or as a local tool (requires a tool manifest)\ndotnet new tool-manifest   # if no manifest exists yet\ndotnet tool install --local Hex1b.Tool\ndotnet tool restore        # to restore from an existing manifest\n```\n\n## Concepts\n\nA **terminal** is a headless virtual terminal managed by Hex1b. Any process that runs in a\nterminal emulator can be launched inside one. Terminals are identified by a short numeric ID\n(the process ID). Use a prefix if unambiguous.\n\nAll commands support `--json` for machine-readable output.\n\n---\n\n## How to Launch a Process in a Virtual Terminal\n\nStart any command in a headless terminal. This is the entry point for all automation.\n\n```bash\n# Start a shell\ndotnet hex1b terminal start -- bash\n\n# Start a specific program with custom terminal size\ndotnet hex1b terminal start --width 120 --height 40 -- htop\n\n# Start with a working directory\ndotnet hex1b terminal start --cwd \u002Fpath\u002Fto\u002Fproject -- vim myfile.txt\n\n# Start a .NET project\ndotnet hex1b terminal start -- dotnet run --project src\u002FMyApp\n\n# Start and immediately attach (interactive mirror)\ndotnet hex1b terminal start --attach -- bash\n```\n\nTo get the terminal ID for subsequent commands:\n\n```bash\n# List all running terminals\ndotnet hex1b terminal list\n\n# Get the ID as JSON (useful for scripting)\nID=$(dotnet hex1b terminal start --json -- dotnet run --project src\u002FMyApp | jq -r .id)\n```\n\n## How to See What's on Screen\n\nCapture the terminal's visible content at any point.\n\n```bash\n# Plain text (default) — good for reading content and assertions\ndotnet hex1b capture screenshot \u003Cid>\n\n# ANSI — preserves colors and formatting\ndotnet hex1b capture screenshot \u003Cid> --format ansi\n\n# SVG — rendered terminal screenshot as vector image\ndotnet hex1b capture screenshot \u003Cid> --format svg --output screenshot.svg\n\n# PNG — rendered terminal screenshot as raster image (requires --output)\ndotnet hex1b capture screenshot \u003Cid> --format png --output screenshot.png\n\n# HTML — rendered terminal screenshot as HTML\ndotnet hex1b capture screenshot \u003Cid> --format html --output screenshot.html\n\n# Include scrollback history\ndotnet hex1b capture screenshot \u003Cid> --scrollback 100\n\n# Wait for specific content to appear before capturing\ndotnet hex1b capture screenshot \u003Cid> --format png --output ready.png --wait \"Ready\" --timeout 30\n```\n\nThe `--wait` option polls until the specified text is visible, then captures. Useful when\nthe application takes time to render its initial state.\n\n## How to Wait for Something to Appear\n\nUse assertions to block until content is visible (or confirm it's absent). This is essential\nfor reliable automation — never assume timing.\n\n```bash\n# Wait up to 30 seconds for text to appear\ndotnet hex1b assert \u003Cid> --text-present \"Welcome\" --timeout 30\n\n# Confirm error text is NOT showing (waits up to 10s to be sure)\ndotnet hex1b assert \u003Cid> --text-absent \"Error\" --timeout 10\n```\n\nExit code 0 means the assertion passed; non-zero means it failed (timed out).\n\n## How to Send Keyboard Input\n\nType text or send individual keys to the terminal.\n\n```bash\n# Type text (each character sent as a keystroke)\ndotnet hex1b keys \u003Cid> --text \"hello world\"\n\n# Send a named key\ndotnet hex1b keys \u003Cid> --key Enter\ndotnet hex1b keys \u003Cid> --key Tab\ndotnet hex1b keys \u003Cid> --key Escape\ndotnet hex1b keys \u003Cid> --key UpArrow\n\n# Send key with modifiers\ndotnet hex1b keys \u003Cid> --key C --ctrl          # Ctrl+C\ndotnet hex1b keys \u003Cid> --key S --ctrl           # Ctrl+S\ndotnet hex1b keys \u003Cid> --key Tab --shift        # Shift+Tab\ndotnet hex1b keys \u003Cid> --key F --ctrl --shift   # Ctrl+Shift+F\n```\n\nAvailable key names (from the `Hex1bKey` enum, case-insensitive):\n\n- **Letters:** `A`–`Z`\n- **Digits:** `D0`–`D9`\n- **Function keys:** `F1`–`F12`\n- **Navigation:** `UpArrow`, `DownArrow`, `LeftArrow`, `RightArrow`, `Home`, `End`, `PageUp`, `PageDown`\n- **Editing:** `Backspace`, `Delete`, `Insert`\n- **Whitespace:** `Tab`, `Enter`, `Spacebar`\n- **Other:** `Escape`\n- **Punctuation:** `OemComma`, `OemPeriod`, `OemMinus`, `OemPlus`, `OemQuestion`, `Oem1`, `Oem4`, `Oem5`, `Oem6`, `Oem7`, `OemTilde`\n- **Numpad:** `NumPad0`–`NumPad9`, `Multiply`, `Add`, `Subtract`, `Decimal`, `Divide`\n\n## How to Send Mouse Input\n\nClick or drag at specific terminal coordinates (0-based column, row).\n\n```bash\n# Left click at column 10, row 5\ndotnet hex1b mouse click \u003Cid> 10 5\n\n# Right click\ndotnet hex1b mouse click \u003Cid> 10 5 --button right\n\n# Drag from (5,3) to (20,3)\ndotnet hex1b mouse drag \u003Cid> 5 3 20 3\n```\n\n## How to Start a Recording After a Terminal Has Launched\n\nIf the terminal is already running, start recording its session to an asciinema `.cast` file.\n\n```bash\n# Start the terminal first\ndotnet hex1b terminal start -- dotnet run --project src\u002FMyApp\n# ... get the \u003Cid> from terminal list ...\n\n# Begin recording to a file\ndotnet hex1b capture recording start \u003Cid> --output session.cast\n\n# Optionally set a title and idle time limit\ndotnet hex1b capture recording start \u003Cid> --output session.cast --title \"Demo session\" --idle-limit 2.0\n\n# Do your interactions...\ndotnet hex1b keys \u003Cid> --text \"hello\"\ndotnet hex1b keys \u003Cid> --key Enter\n\n# Stop recording when done\ndotnet hex1b capture recording stop \u003Cid>\n```\n\n## How to Record a Session from the Moment It Starts\n\nUse `--record` on `terminal start` to begin recording immediately when the process launches.\n\n```bash\n# Start terminal with recording enabled from the start\ndotnet hex1b terminal start --record session.cast -- dotnet run --project src\u002FMyApp\n\n# The recording is already in progress — interact normally\ndotnet hex1b assert \u003Cid> --text-present \"Ready\" --timeout 15\ndotnet hex1b keys \u003Cid> --key Enter\ndotnet hex1b capture screenshot \u003Cid> --format text\n\n# Stop recording when done\ndotnet hex1b capture recording stop \u003Cid>\n```\n\n## How to Stop a Recording\n\n```bash\n# Stop the active recording\ndotnet hex1b capture recording stop \u003Cid>\n\n# Check if a terminal is currently recording\ndotnet hex1b capture recording status \u003Cid>\n```\n\nThe `.cast` file is written incrementally, so the file will contain all events up to the\npoint you stop.\n\n## How to Play Back a Recording\n\n```bash\n# Simple playback in the terminal\ndotnet hex1b capture recording playback --file session.cast\n\n# Play at 2x speed\ndotnet hex1b capture recording playback --file session.cast --speed 2.0\n\n# Interactive TUI player with pause\u002Fseek controls\ndotnet hex1b capture recording playback --file session.cast --player\n```\n\n## How to Inspect a Hex1b TUI App's Widget Tree\n\nIf the terminal is running a Hex1b application with `.WithDiagnostics()` enabled, you can\ninspect its internal widget\u002Fnode tree.\n\n```bash\n# Show the full widget tree with geometry\ndotnet hex1b app tree \u003Cid>\n\n# Include focus state\ndotnet hex1b app tree \u003Cid> --focus\n\n# Include popup stack\ndotnet hex1b app tree \u003Cid> --popups\n\n# Limit tree depth\ndotnet hex1b app tree \u003Cid> --depth 3\n\n# Get as JSON for programmatic inspection\ndotnet hex1b app tree \u003Cid> --json\n```\n\n## How to Stop and Clean Up Terminals\n\n```bash\n# Stop a specific terminal\ndotnet hex1b terminal stop \u003Cid>\n\n# Get terminal details (PID, dimensions, uptime)\ndotnet hex1b terminal info \u003Cid>\n\n# Resize a running terminal\ndotnet hex1b terminal resize \u003Cid> --width 160 --height 50\n\n# Clean up stale sockets from exited processes\ndotnet hex1b terminal clean\n```\n\n## How to Attach Interactively\n\nAttach to a terminal for interactive use — you see what the process sees and can type directly.\n\n```bash\n# Attach to a terminal (Ctrl+] to detach)\ndotnet hex1b terminal attach \u003Cid>\n```\n\n## How to Set Up the Agent Skill File\n\nGenerate this skill file for a repository so AI agents know how to use the CLI.\n\n```bash\n# Write skill file to .agents\u002Fskills\u002Fhex1b\u002FSKILL.md\ndotnet hex1b agent init\n\n# Specify a different repo root\ndotnet hex1b agent init --path \u002Fpath\u002Fto\u002Frepo\n\n# Overwrite an existing skill file\ndotnet hex1b agent init --force\n\n# Print to stdout instead of writing to disk\ndotnet hex1b agent init --stdout\n```\n\n## Common Workflow: End-to-End Scripted Test\n\n```bash\n# Launch the app\nID=$(dotnet hex1b terminal start --json -- dotnet run --project src\u002FMyApp | jq -r .id)\n\n# Wait for it to be ready\ndotnet hex1b assert $ID --text-present \"Main Menu\" --timeout 15\n\n# Navigate and interact\ndotnet hex1b keys $ID --key Enter\ndotnet hex1b assert $ID --text-present \"Settings\"\ndotnet hex1b keys $ID --text \"new value\"\ndotnet hex1b keys $ID --key Enter\n\n# Capture final state\ndotnet hex1b capture screenshot $ID --format png --output result.png\ndotnet hex1b capture screenshot $ID --format text\n\n# Clean up\ndotnet hex1b terminal stop $ID\n```\n\n## Common Workflow: Record a Demo\n\n```bash\n# Start with recording\nID=$(dotnet hex1b terminal start --json --record demo.cast -- dotnet run --project samples\u002FMyApp | jq -r .id)\n\n# Wait and interact\ndotnet hex1b assert $ID --text-present \"Ready\" --timeout 15\ndotnet hex1b keys $ID --key Tab\ndotnet hex1b keys $ID --key Enter\n\n# Take a screenshot at a key moment\ndotnet hex1b capture screenshot $ID --format png --output highlight.png\n\n# Stop recording and terminal\ndotnet hex1b capture recording stop $ID\ndotnet hex1b terminal stop $ID\n\n# Play it back\ndotnet hex1b capture recording playback --file demo.cast --player\n```\n\n## Tips\n\n- Use `--json` with `jq` for scriptable output: `dotnet hex1b terminal list --json | jq '.[] | .id'`\n- Terminal IDs are PIDs — use a unique prefix instead of the full number\n- `terminal list` automatically cleans up stale sockets from exited processes\n- `capture screenshot --wait` is useful for waiting for async rendering before capturing\n- Always use `assert` before interacting — never assume the app has rendered\n- For PNG screenshots, `--output` is required since PNG is a binary format\n- Recordings use the asciinema v2 `.cast` format and can be played with any compatible player","# Hex1b CLI Skill\n\nThe `dotnet hex1b` CLI tool lets you automate **any terminal application** — TUI apps,\ninteractive CLIs, shells, REPLs, curses programs, or anything else that runs in a terminal.\nIt wraps arbitrary processes in a headless virtual terminal, giving you programmatic control\nover screen capture, input injection, and content assertions.\n\n## Installation\n\n```bash\n# Install as a global tool\ndotnet tool install -g Hex1b.Tool\n\n# Or as a local tool (requires a tool manifest)\ndotnet new tool-manifest   # if no manifest exists yet\ndotnet tool install --local Hex1b.Tool\ndotnet tool restore        # to restore from an existing manifest\n```\n\n## Concepts\n\nA **terminal** is a headless virtual terminal managed by Hex1b. Any process that runs in a\nterminal emulator can be launched inside one. Terminals are identified by a short numeric ID\n(the process ID). Use a prefix if unambiguous.\n\nAll commands support `--json` for machine-readable output.\n\n---\n\n## How to Launch a Process in a Virtual Terminal\n\nStart any command in a headless terminal. This is the entry point for all automation.\n\n```bash\n# Start a shell\ndotnet hex1b terminal start -- bash\n\n# Start a specific program with custom terminal size\ndotnet hex1b terminal start --width 120 --height 40 -- htop\n\n# Start with a working directory\ndotnet hex1b terminal start --cwd \u002Fpath\u002Fto\u002Fproject -- vim myfile.txt\n\n# Start a .NET project\ndotnet hex1b terminal start -- dotnet run --project src\u002FMyApp\n\n# Start and immediately attach (interactive mirror)\ndotnet hex1b terminal start --attach -- bash\n```\n\nTo get the terminal ID for subsequent commands:\n\n```bash\n# List all running terminals\ndotnet hex1b terminal list\n\n# Get the ID as JSON (useful for scripting)\nID=$(dotnet hex1b terminal start --json -- dotnet run --project src\u002FMyApp | jq -r .id)\n```\n\n## How to See What's on Screen\n\nCapture the terminal's visible content at any point.\n\n```bash\n# Plain text (default) — good for reading content and assertions\ndotnet hex1b capture screenshot \u003Cid>\n\n# ANSI — preserves colors and formatting\ndotnet hex1b capture screenshot \u003Cid> --format ansi\n\n# SVG — rendered terminal screenshot as vector image\ndotnet hex1b capture screenshot \u003Cid> --format svg --output screenshot.svg\n\n# PNG — rendered terminal screenshot as raster image (requires --output)\ndotnet hex1b capture screenshot \u003Cid> --format png --output screenshot.png\n\n# HTML — rendered terminal screenshot as HTML\ndotnet hex1b capture screenshot \u003Cid> --format html --output screenshot.html\n\n# Include scrollback history\ndotnet hex1b capture screenshot \u003Cid> --scrollback 100\n\n# Wait for specific content to appear before capturing\ndotnet hex1b capture screenshot \u003Cid> --format png --output ready.png --wait \"Ready\" --timeout 30\n```\n\nThe `--wait` option polls until the specified text is visible, then captures. Useful when\nthe application takes time to render its initial state.\n\n## How to Wait for Something to Appear\n\nUse assertions to block until content is visible (or confirm it's absent). This is essential\nfor reliable automation — never assume timing.\n\n```bash\n# Wait up to 30 seconds for text to appear\ndotnet hex1b assert \u003Cid> --text-present \"Welcome\" --timeout 30\n\n# Confirm error text is NOT showing (waits up to 10s to be sure)\ndotnet hex1b assert \u003Cid> --text-absent \"Error\" --timeout 10\n```\n\nExit code 0 means the assertion passed; non-zero means it failed (timed out).\n\n## How to Send Keyboard Input\n\nType text or send individual keys to the terminal.\n\n```bash\n# Type text (each character sent as a keystroke)\ndotnet hex1b keys \u003Cid> --text \"hello world\"\n\n# Send a named key\ndotnet hex1b keys \u003Cid> --key Enter\ndotnet hex1b keys \u003Cid> --key Tab\ndotnet hex1b keys \u003Cid> --key Escape\ndotnet hex1b keys \u003Cid> --key UpArrow\n\n# Send key with modifiers\ndotnet hex1b keys \u003Cid> --key C --ctrl          # Ctrl+C\ndotnet hex1b keys \u003Cid> --key S --ctrl           # Ctrl+S\ndotnet hex1b keys \u003Cid> --key Tab --shift        # Shift+Tab\ndotnet hex1b keys \u003Cid> --key F --ctrl --shift   # Ctrl+Shift+F\n```\n\nAvailable key names (from the `Hex1bKey` enum, case-insensitive):\n\n- **Letters:** `A`–`Z`\n- **Digits:** `D0`–`D9`\n- **Function keys:** `F1`–`F12`\n- **Navigation:** `UpArrow`, `DownArrow`, `LeftArrow`, `RightArrow`, `Home`, `End`, `PageUp`, `PageDown`\n- **Editing:** `Backspace`, `Delete`, `Insert`\n- **Whitespace:** `Tab`, `Enter`, `Spacebar`\n- **Other:** `Escape`\n- **Punctuation:** `OemComma`, `OemPeriod`, `OemMinus`, `OemPlus`, `OemQuestion`, `Oem1`, `Oem4`, `Oem5`, `Oem6`, `Oem7`, `OemTilde`\n- **Numpad:** `NumPad0`–`NumPad9`, `Multiply`, `Add`, `Subtract`, `Decimal`, `Divide`\n\n## How to Send Mouse Input\n\nClick or drag at specific terminal coordinates (0-based column, row).\n\n```bash\n# Left click at column 10, row 5\ndotnet hex1b mouse click \u003Cid> 10 5\n\n# Right click\ndotnet hex1b mouse click \u003Cid> 10 5 --button right\n\n# Drag from (5,3) to (20,3)\ndotnet hex1b mouse drag \u003Cid> 5 3 20 3\n```\n\n## How to Start a Recording After a Terminal Has Launched\n\nIf the terminal is already running, start recording its session to an asciinema `.cast` file.\n\n```bash\n# Start the terminal first\ndotnet hex1b terminal start -- dotnet run --project src\u002FMyApp\n# ... get the \u003Cid> from terminal list ...\n\n# Begin recording to a file\ndotnet hex1b capture recording start \u003Cid> --output session.cast\n\n# Optionally set a title and idle time limit\ndotnet hex1b capture recording start \u003Cid> --output session.cast --title \"Demo session\" --idle-limit 2.0\n\n# Do your interactions...\ndotnet hex1b keys \u003Cid> --text \"hello\"\ndotnet hex1b keys \u003Cid> --key Enter\n\n# Stop recording when done\ndotnet hex1b capture recording stop \u003Cid>\n```\n\n## How to Record a Session from the Moment It Starts\n\nUse `--record` on `terminal start` to begin recording immediately when the process launches.\n\n```bash\n# Start terminal with recording enabled from the start\ndotnet hex1b terminal start --record session.cast -- dotnet run --project src\u002FMyApp\n\n# The recording is already in progress — interact normally\ndotnet hex1b assert \u003Cid> --text-present \"Ready\" --timeout 15\ndotnet hex1b keys \u003Cid> --key Enter\ndotnet hex1b capture screenshot \u003Cid> --format text\n\n# Stop recording when done\ndotnet hex1b capture recording stop \u003Cid>\n```\n\n## How to Stop a Recording\n\n```bash\n# Stop the active recording\ndotnet hex1b capture recording stop \u003Cid>\n\n# Check if a terminal is currently recording\ndotnet hex1b capture recording status \u003Cid>\n```\n\nThe `.cast` file is written incrementally, so the file will contain all events up to the\npoint you stop.\n\n## How to Play Back a Recording\n\n```bash\n# Simple playback in the terminal\ndotnet hex1b capture recording playback --file session.cast\n\n# Play at 2x speed\ndotnet hex1b capture recording playback --file session.cast --speed 2.0\n\n# Interactive TUI player with pause\u002Fseek controls\ndotnet hex1b capture recording playback --file session.cast --player\n```\n\n## How to Inspect a Hex1b TUI App's Widget Tree\n\nIf the terminal is running a Hex1b application with `.WithDiagnostics()` enabled, you can\ninspect its internal widget\u002Fnode tree.\n\n```bash\n# Show the full widget tree with geometry\ndotnet hex1b app tree \u003Cid>\n\n# Include focus state\ndotnet hex1b app tree \u003Cid> --focus\n\n# Include popup stack\ndotnet hex1b app tree \u003Cid> --popups\n\n# Limit tree depth\ndotnet hex1b app tree \u003Cid> --depth 3\n\n# Get as JSON for programmatic inspection\ndotnet hex1b app tree \u003Cid> --json\n```\n\n## How to Stop and Clean Up Terminals\n\n```bash\n# Stop a specific terminal\ndotnet hex1b terminal stop \u003Cid>\n\n# Get terminal details (PID, dimensions, uptime)\ndotnet hex1b terminal info \u003Cid>\n\n# Resize a running terminal\ndotnet hex1b terminal resize \u003Cid> --width 160 --height 50\n\n# Clean up stale sockets from exited processes\ndotnet hex1b terminal clean\n```\n\n## How to Attach Interactively\n\nAttach to a terminal for interactive use — you see what the process sees and can type directly.\n\n```bash\n# Attach to a terminal (Ctrl+] to detach)\ndotnet hex1b terminal attach \u003Cid>\n```\n\n## How to Set Up the Agent Skill File\n\nGenerate this skill file for a repository so AI agents know how to use the CLI.\n\n```bash\n# Write skill file to .agents\u002Fskills\u002Fhex1b\u002FSKILL.md\ndotnet hex1b agent init\n\n# Specify a different repo root\ndotnet hex1b agent init --path \u002Fpath\u002Fto\u002Frepo\n\n# Overwrite an existing skill file\ndotnet hex1b agent init --force\n\n# Print to stdout instead of writing to disk\ndotnet hex1b agent init --stdout\n```\n\n## Common Workflow: End-to-End Scripted Test\n\n```bash\n# Launch the app\nID=$(dotnet hex1b terminal start --json -- dotnet run --project src\u002FMyApp | jq -r .id)\n\n# Wait for it to be ready\ndotnet hex1b assert $ID --text-present \"Main Menu\" --timeout 15\n\n# Navigate and interact\ndotnet hex1b keys $ID --key Enter\ndotnet hex1b assert $ID --text-present \"Settings\"\ndotnet hex1b keys $ID --text \"new value\"\ndotnet hex1b keys $ID --key Enter\n\n# Capture final state\ndotnet hex1b capture screenshot $ID --format png --output result.png\ndotnet hex1b capture screenshot $ID --format text\n\n# Clean up\ndotnet hex1b terminal stop $ID\n```\n\n## Common Workflow: Record a Demo\n\n```bash\n# Start with recording\nID=$(dotnet hex1b terminal start --json --record demo.cast -- dotnet run --project samples\u002FMyApp | jq -r .id)\n\n# Wait and interact\ndotnet hex1b assert $ID --text-present \"Ready\" --timeout 15\ndotnet hex1b keys $ID --key Tab\ndotnet hex1b keys $ID --key Enter\n\n# Take a screenshot at a key moment\ndotnet hex1b capture screenshot $ID --format png --output highlight.png\n\n# Stop recording and terminal\ndotnet hex1b capture recording stop $ID\ndotnet hex1b terminal stop $ID\n\n# Play it back\ndotnet hex1b capture recording playback --file demo.cast --player\n```\n\n## Tips\n\n- Use `--json` with `jq` for scriptable output: `dotnet hex1b terminal list --json | jq '.[] | .id'`\n- Terminal IDs are PIDs — use a unique prefix instead of the full number\n- `terminal list` automatically cleans up stale sockets from exited processes\n- `capture screenshot --wait` is useful for waiting for async rendering before capturing\n- Always use `assert` before interacting — never assume the app has rendered\n- For PNG screenshots, `--output` is required since PNG is a binary format\n- Recordings use the asciinema v2 `.cast` format and can be played with any compatible player",{"name":5,"description":7},"main","f05f5561b1b858344124cd848ff06469627d7e6e",".agents\u002Fskills\u002Fhex1b",99,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire.dev","https:\u002F\u002Faspire.dev","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-15 03:12:15",{"source":9,"skillName":5,"commands":67,"prompt":77,"zipAvailable":78},[68,71,74],{"tool":69,"command":70},"npx","npx skills add microsoft\u002Faspire.dev --skill hex1b",{"tool":72,"command":73},"bunx","bunx skills add microsoft\u002Faspire.dev --skill hex1b",{"tool":75,"command":76},"pnpm","pnpm dlx skills add microsoft\u002Faspire.dev --skill hex1b","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire.dev\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fhex1b\u002FSKILL.md",true,[],[81,113,148,171,190,214],{"skillNo":82,"name":83,"nameZh":84,"description":85,"descriptionZh":86,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":87,"categories":88,"keywords":93,"publishedAt":51},"01M69B8W7K62DJP002TEBRZDTC","getting-started-with-aspire","Aspire 入门指南","Use this skill when a developer asks how to begin using Aspire — installing the Aspire CLI, creating a new Aspire app, running it locally, or finding the authoritative docs, integration catalog, or API reference on aspire.dev. Use it for questions like \"how do I install aspire?\", \"how do I create a new aspire app?\", \"how do I run my aspire app?\", or \"where is the documentation for aspire?\". Do not use it for operating an existing Aspire AppHost (use the official `aspire` skill at github.com\u002Fmicrosoft\u002Faspire\u002Ftree\u002Fmain\u002F.agents\u002Fskills\u002Faspire), authoring AppHost code, or adding integrations to an existing app.","当开发者询问如何开始使用 Aspire 时使用本技能——包括安装 Aspire CLI、创建新的 Aspire 应用、在本地运行，或在 aspire.dev 上查找权威文档、集成目录或 API 参考。适用于“如何安装 aspire？”“如何创建新的 aspire 应用？”“如何运行我的 aspire 应用？”“aspire 的文档在哪里？”等问题。不适用于：操作现有的 Aspire AppHost（使用 github.com\u002Fmicrosoft\u002Faspire\u002Ftree\u002Fmain\u002F.agents\u002Fskills\u002Faspire 上的官方 `aspire` 技能）、编写 AppHost 代码，或向现有应用添加集成。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire.dev\u002Fblob\u002Fmain\u002Fsrc\u002Ffrontend\u002Fpublic\u002F.well-known\u002Fagent-skills\u002Fgetting-started-with-aspire\u002FSKILL.md",[89,92],{"categoryNo":90,"categoryName":91,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TM27KFNXBV69GEXBTVN","学习引导",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[94,95,96,97,50,98,99,10,100,101,102,103,104,105,106,107,56,108,109,110,111,32,112],"aspire","getting started with aspire","getting started","with","docs","github","official","documentation","create","run","code","api","how","install","app","how to","operating","at","new",{"skillNo":114,"name":115,"nameZh":116,"description":117,"descriptionZh":118,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":119,"categories":120,"keywords":127,"publishedAt":51},"01M69B8R4MPE6HAYDV46VBB40J","whatsnew","Aspire 新特性发布说明编写","Step-argument skill that formalizes writing an Aspire \"What's new in N.N\" release-notes page (src\u002Ffrontend\u002Fsrc\u002Fcontent\u002Fdocs\u002Fwhats-new\u002Faspire-N-N.mdx) as a repeatable lifecycle. Invoke as `\u002Fwhatsnew {modality}` where modality is one of: draft\u002Fscaffold (init), research, critique, validate, polish, review. USE FOR: start\u002Fscaffold a new what's-new page for a release, research a release's changes into a dossier and author the draft prose, critique a draft, fact-check\u002Fvalidate the diff, polish and run data ingestion, or sign off the PR. DO NOT USE FOR: general docs pages (use doc-writer), reviewing an arbitrary docs PR (use doc-pr-reviewer), or product-repo changes. ORCHESTRATES: doc-writer, doc-pr-reviewer, doc-tester, twoslash-validator, update-integrations, update-samples, container-images.","这是一个带步骤参数的技能，将编写 Aspire “What's new in N.N” 发布说明页面（src\u002Ffrontend\u002Fsrc\u002Fcontent\u002Fdocs\u002Fwhats-new\u002Faspire-N-N.mdx）规范为一套可重复的生命周期流程。以 `\u002Fwhatsnew {modality}` 形式调用，其中 modality 为以下之一：draft\u002Fscaffold（init，初始化）、research（研究）、critique（评审）、validate（验证）、polish（润色）、review（审查）。适用于：为某个版本启动\u002F搭建新的“新特性”页面，将版本变更研究整理成资料档案并撰写草稿正文，评审草稿，对差异进行事实核查\u002F验证，润色并执行数据导入，或对 PR 做最终签核。不适用于：通用文档页面（使用 doc-writer）、审查任意文档 PR（使用 doc-pr-reviewer），或产品仓库的改动。编排的技能包括：doc-writer、doc-pr-reviewer、doc-tester、twoslash-validator、update-integrations、update-samples、container-images。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire.dev\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwhatsnew\u002FSKILL.md",[121,124],{"categoryNo":122,"categoryName":123,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BVB0FJ0RR8KXYVFTKEA3XX","技术文档工程师",{"categoryNo":125,"categoryName":126,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C5C7NGT4DWWBE15R6QGEX5","技术文档编写",[115,128,129,130,98,131,132,133,134,94,135,136,103,137,138,139,140,141,142,143,144,145,146,147,112],"frontend","writing","review","research","init","validate","scaffold","notes","pr","update","release-notes","product","critique","reviewer","ingestion","images","writer","argument","validator","invoke",{"skillNo":149,"name":150,"nameZh":151,"description":152,"descriptionZh":153,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":154,"categories":155,"keywords":160,"publishedAt":51},"01M69B8ND3PR8M9EEKC2TQ94G2","update-samples","Aspire 示例数据同步","Update the samples data file by fetching sample metadata from the microsoft\u002Faspire-samples GitHub repository. Use when adding new samples, refreshing sample data, or ensuring samples.json stays in sync with the upstream repo.","通过从 microsoft\u002Faspire-samples GitHub 仓库获取示例元数据来更新示例数据文件。在添加新示例、刷新示例数据，或确保 samples.json 与上游仓库保持同步时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire.dev\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fupdate-samples\u002FSKILL.md",[156,157],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":158,"categoryName":159,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSYDSNXQT2W2GMZGF0ZHH4","示例与演示技能",[161,137,99,10,162,94,163,164,165,166,167,168,43,169,170,97,32,112],"update samples","sync","metadata","file","repository","data","json","repo","upstream","sample",{"skillNo":172,"name":173,"nameZh":174,"description":175,"descriptionZh":176,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":177,"categories":178,"keywords":181,"publishedAt":51},"01M69B8JC3YJKYZFC0BX9N47SC","update-integrations","集成文档与 API 参考同步","Update integration documentation links and API reference data by synchronizing NuGet package names with their documentation URLs and generating per-package API schemas. Use when adding new integrations, refreshing package data, ensuring integration-docs.json stays in sync with aspire-integrations.json, or regenerating API reference JSON files.","通过将 NuGet 包名与其文档 URL 同步，并生成每个包的 API schema，来更新集成文档链接和 API 参考数据。在添加新集成、刷新包数据、确保 integration-docs.json 与 aspire-integrations.json 保持同步，或重新生成 API 参考 JSON 文件时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire.dev\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fupdate-integrations\u002FSKILL.md",[179,180],{"categoryNo":122,"categoryName":123,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":125,"categoryName":126,"taxonomyType":28,"taxonomyTypeDesc":29},[182,137,183,98,162,94,101,184,185,186,166,105,167,43,187,188,97,189,32,112],"update integrations","integrations","nuget","package","integration","reference","files","links",{"skillNo":191,"name":192,"nameZh":193,"description":194,"descriptionZh":195,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":196,"categories":197,"keywords":202,"publishedAt":51},"01M69B8F4MQJEG381FDZZ32AW4","twoslash-validator","Twoslash 示例校验与修复","Validate and fix two-slash TypeScript examples for aspire.dev. Use when adding or editing `twoslash` code fences, TypeScript AppHost samples, generated TypeScript API data, or failures from `bun run test:unit:twoslash-blocks`.","为 aspire.dev 校验并修复双斜杠（twoslash）TypeScript 示例。在添加或编辑 `twoslash` 代码块、TypeScript AppHost 示例、生成的 TypeScript API 数据，或处理 `bun run test:unit:twoslash-blocks` 的失败时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire.dev\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftwoslash-validator\u002FSKILL.md",[198,199],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":200,"categoryName":201,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QVANT4709358VEJK53E","代码实现",[203,146,204,205,133,94,103,104,206,207,105,208,209,210,43,211,212,213,33,32],"twoslash validator","typescript","test","dev","examples","editing","generated","fix","bun","unit","blocks",{"skillNo":215,"name":216,"nameZh":217,"description":218,"descriptionZh":219,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":220,"categories":221,"keywords":228,"publishedAt":51},"01M69B8CEPDW2FFXZ89YE4F4T3","playwright-cli","Playwright 浏览器自动化测试","Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.","自动化浏览器交互，用于 Web 测试、表单填写、截图和数据提取。当用户需要浏览网站、与网页交互、填写表单、截取截图、测试 Web 应用或从网页提取信息时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Faspire.dev\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fplaywright-cli\u002FSKILL.md",[222,225],{"categoryNo":223,"categoryName":224,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":226,"categoryName":227,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[50,229,230,231,42,205,232,233,166,234,43,31,235,236,237,238,239,97,33,240,32],"playwright","playwright cli","testing","web","browser","applications","test web","forms","pages","form","information","navigate"]