cli-exercise
A skill kept in the GitHub CLI repository for running real command-line programs from exact test cases, a broad goal or both, recording the terminal and reporting what happened.
What the skill teaches
A skill kept in the GitHub CLI repository for running real command-line programs from exact test cases, a broad goal or both, recording the terminal and reporting what happened. Exact cases keep the caller's commands, inputs and checks as written, while explore cases let the agent choose checks within an agreed scope. It first checks dependencies, asking before any install, records the program's path, version and checksum, and gets approval for what the run may change. Cases run one by one through a bundled Go helper and a Node adapter for a pseudo-terminal, and results become one chaptered video, MP4 or GIF, with an HTML report on request. It needs Go, Node, ffmpeg and a monospaced font.
Capabilities
- Run exact or exploratory CLI test cases
- Check dependencies and ask before installing
- Record terminal sessions as chaptered video
- Report case, capture and render failures separately
About
- Publisher
- GitHub CLI
- Tool
- Testing
Install
The project doesn't document install steps that we could confirm. See the project's own instructions
What's inside
- .gitignore
- references/controllers.md
- references/examples.md
- references/maintenance.md
- references/prerequisites.md
- references/recording-sessions.md
- references/run-contract.md
- references/runtime-interface.md
- scripts/package-lock.json
- scripts/package.json
- scripts/terminal.mjs
- tests/skill-evaluations.json
- tool/go.mod
- tool/go.sum
- tool/internal/cliutil/environment.go
- tool/internal/cliutil/environment_test.go
- tool/internal/cliutil/files.go
- tool/internal/cliutil/io.go
- tool/internal/cliutil/io_test.go
- tool/internal/cliutil/process_other.go
- tool/internal/cliutil/process_unix.go
- tool/internal/engine/actions.go
- tool/internal/engine/actions_test.go
- tool/internal/engine/assertions.go
- tool/internal/engine/assertions_test.go
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
This skill includes scripts that your agent may run.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Testing | |
| Publisher | GitHub CLI | source |
| Official status | Not stated in its documentation | |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | Yes | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | MIT | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 10, 202646,962 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository Website |
More from GitHub CLI
6 skills
- agentic-workflows (Skill)
- cli-exercise-evidence (Skill)
- cli-exercise-exact (Skill)
- cli-exercise-explore (Skill)
- cli-exercise-preflight (Skill)
Also listed under: Testing
Sources
- Skill file (SKILL.md)github.com/cli/cliNov 10, 2026
- GitHub repositorygithub.com/cli/cli · Backs: Publisher, Activity, LicenceNov 11, 2026
- GitHub API recordgithub.com/cli/cli · Backs: Includes scriptsNov 16, 2026
- Folder in the repository (cli-exercise)github.com/cli/cli · Backs: Includes scriptsNov 10, 2026