跳到正文
cccskills
免费在 GitHub 公开

cli-exercise

Exercise a real command-line program with specified cases or a stated goal, then capture and verify the observed behavior. It produces local media evidence such as a session video, helping reviewers see what the command did without treating the recording as proof of general correctness.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Exercises real command-line programs from explicit cases or a goal, with faithful terminal recordings and observed results. Use when asked to record CLI test cases, demonstrate command behavior, validate an interactive workflow, or explore a command against a goal; not for ordinary unit-test execution or skill authoring.

cli/cli星标 46,748(GitHub 46,748 + cccskills 0)

实测评分 未实测

查看安装方法

适用场景

  • Record specified CLI test cases
  • Demonstrate a command’s behavior
  • Validate an interactive terminal workflow
  • Explore a command against a goal

包含的文件(77)

  • SKILL.md8.2 KB
  • .gitignore67 B
  • internal/cli-exercise-evidence/SKILL.md7.8 KB
  • internal/cli-exercise-exact/SKILL.md3.2 KB
  • internal/cli-exercise-explore/SKILL.md3.3 KB
  • internal/cli-exercise-preflight/SKILL.md3.4 KB
  • internal/cli-exercise-run/SKILL.md4.5 KB
  • references/controllers.md3.9 KB
  • references/examples.md5.7 KB
  • references/maintenance.md6.4 KB
  • references/prerequisites.md9.4 KB
  • references/recording-sessions.md13.6 KB
  • references/run-contract.md9.9 KB
  • references/runtime-interface.md21.8 KB
  • scripts/package-lock.json32.5 KB
  • scripts/package.json205 B
  • scripts/terminal.mjs7.9 KB
  • tests/skill-evaluations.json17.4 KB
  • tool/go.mod275 B
  • tool/go.sum950 B
  • tool/internal/cliutil/environment_test.go1.3 KB
  • tool/internal/cliutil/environment.go1.5 KB
  • tool/internal/cliutil/files.go2.5 KB
  • tool/internal/cliutil/io_test.go1.6 KB
  • tool/internal/cliutil/io.go4.1 KB
  • tool/internal/cliutil/process_other.go922 B
  • tool/internal/cliutil/process_unix.go2.0 KB
  • tool/internal/engine/actions_test.go10.7 KB
  • tool/internal/engine/actions.go22.6 KB
  • tool/internal/engine/assertions_test.go3.4 KB
  • tool/internal/engine/assertions.go2.5 KB
  • tool/internal/engine/contract.go22.3 KB
  • tool/internal/engine/options.go476 B
  • tool/internal/engine/runtime_test.go31.3 KB
  • tool/internal/engine/runtime.go19.3 KB
  • tool/internal/engine/screen.go8.7 KB
  • tool/internal/evidence/evidence_test.go22.4 KB
  • tool/internal/evidence/fonts_test.go10.7 KB
  • tool/internal/evidence/inspection.go2.0 KB
  • tool/internal/evidence/main.go17.1 KB
  • tool/internal/evidence/model.go8.9 KB
  • tool/internal/evidence/overview.go8.9 KB
  • tool/internal/evidence/presentation_test.go19.7 KB
  • tool/internal/evidence/raster.go10.6 KB
  • tool/internal/evidence/render.go19.3 KB
  • tool/internal/evidence/session_inspection_native_test.go9.1 KB
  • tool/internal/evidence/session_inspection_test.go5.5 KB
  • tool/internal/evidence/session_inspection.go4.5 KB
  • tool/internal/evidence/session_media_test.go28.0 KB
  • tool/internal/evidence/session_media.go19.7 KB
  • tool/internal/evidence/session_model.go2.9 KB
  • tool/internal/evidence/session_order_test.go15.1 KB
  • tool/internal/evidence/session_order.go3.1 KB
  • tool/internal/evidence/session_test.go7.6 KB
  • tool/internal/evidence/session.go13.5 KB
  • tool/internal/execution/cli_test.go13.4 KB
  • tool/internal/execution/cli.go14.2 KB
  • tool/internal/execution/fixture_test.go3.1 KB
  • tool/internal/fontutil/font_test.go3.0 KB
  • tool/internal/fontutil/font.go9.9 KB
  • tool/internal/preflight/check.go12.3 KB
  • tool/internal/preflight/main.go4.6 KB
  • tool/internal/preflight/preflight_test.go9.7 KB
  • tool/internal/preflight/probe_test.go3.0 KB
  • tool/internal/preflight/probe.go5.3 KB
  • tool/internal/recording/models_test.go3.0 KB
  • tool/internal/recording/models.go4.8 KB
  • tool/internal/terminal/adapter_test.go9.2 KB
  • tool/internal/terminal/adapter.go11.0 KB
  • tool/internal/terminal/cleanup_other_test.go470 B
  • tool/internal/terminal/cleanup_unix_test.go6.8 KB
  • tool/internal/terminal/fixture_test.go3.3 KB
  • tool/internal/terminal/output_unix_test.go7.1 KB
  • tool/internal/terminal/session.go1.1 KB
  • tool/main_test.go2.4 KB
  • tool/main.go2.3 KB
  • tool/skill_test.go3.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

CLI Exercise

Exercise the caller's selected executable and return local evidence. Accept precise cases, a broad goal, or a mixture. Preserve explicit requirements while letting the agent choose useful investigations where the caller left room.

By default, produce one chaptered session video, even for one case. Each case covers one behavior and has a very short natural-language behavior/outcome title. Actually execute and record that case's preparation, one exercise invocation, then validation before starting the next case. Approved cleanup can follow validation. Never batch all setups or validations or reorder historical clips to imply that execution order. Exact supplied steps and narrower coverage remain authoritative: ask about conflicts rather than silently adding, splitting, or reordering a caller's case.

Deliver media only by default. Infer clear output intent: a video exercising a PR calls for an MP4, while a request for an interactive review report calls for media plus HTML. Ask only when the requested deliverable is ambiguous. Generate HTML with --html only when wanted; do not create or open it for video-only requests. Keep raw captures and JSON results as internal evidence.

The internal SKILL.md files below are bundled instruction modules. Read the needed module from this package and follow it in the current agent context. They do not require new agents, sessions, or separately installed sibling skills.

Load only what is needed

This entry file is the routing overview. Load the selected flow, not every internal module. Execute the Go helper as a tool; read its source only when diagnosing a problem or reviewing the implementation.

Go owns prerequisite checks, execution policy, controllers, capture, verification, and rendering. Node is only a mechanical adapter to Tuistory's PTY API. The skill does not require another scripting-language environment.

NeedResource to read
Check readiness or request installationPreflight flow
Preserve supplied casesExact-case flow
Decide how to pursue a goalExploration flow
Start or drive the terminalRun flow
Verify, render, or clean upEvidence flow
Normalize the caller's casesRun-contract reference
Call the bundled helpersRuntime interface
Coordinate cases and assemble one videoRecording sessions
Author a deterministic controllerController reference
Resolve missing prerequisitesPrerequisite reference
Inspect representative routing behaviorInput examples
Maintain or evaluate the packageMaintenance reference
Run an authoring evaluationAgent-behavior rubrics

These direct links keep resources one hop from the entry point. For an exact request, do not load the exploration flow unless the caller also supplied an exploratory case. Do not load controller details for a live-only run.

1. Preserve the request and choose the fidelity policy

Classify each case, not just the entire request:

  • Exact: the caller supplied cases or required steps. Preserve commands, arguments, input values, order, assertions, and timing/output constraints. Do not add exploratory steps or silently substitute an equivalent-looking operation for a specified key sequence.
  • Explore: the caller supplied a goal or expected outcome. Choose checks and interactions within the agreed context and permitted effects. Separate supplied expectations from your hypotheses.

Input fidelity is independent of execution strategy. Either policy can use a bounded controller, live observation/action calls, or both. Switching strategy never grants permission to change an exact case.

Resolve only missing details that affect correctness or authority:

  • The executable or build to exercise, with its actual path and identity.
  • Cases or goal, supplied context, expected outcomes, and initial state.
  • Permitted files, hosts, accounts, repositories, and other effects.
  • Desired media format and constraints. Honor an explicit format; use GIF for an unspecified terminal animation and MP4 when the caller requests video.

Default to condensed presentation, with static pauses shortened. Honor explicit real-time requests and retain the original capture timestamps. Keep timing adjustments in the recording metadata, not repeated on-screen labels.

A request such as "upload an attachment" is not permission to choose an arbitrary account or publish to the current repository. Ask for the missing target/authorization before performing a write. Prefer synthetic data and isolated configuration.

Command discovery is a separate case property. A case may provide the command and test its use, or explicitly require finding it. Do not silently turn a known-command case into a discoverability test.

Preserve the non-secret original request alongside normalized cases. Never copy credentials into the contract or recording; use approved secret references or report blocked if the requested literal recording would disclose them. Use the run contract; unsupported or ambiguous requirements must be clarified or marked blocked, not discarded.

2. Establish readiness and authorization

Read the preflight module. It checks dependencies. If setup is needed, propose commands using the pinned requirements, obtain caller approval, and recheck afterward.

Installation approval and permission to modify test resources are independent. Record the executable path, version/revision, checksum, accepted case contract, and approved effect scope before starting the subject.

Use a secure private workspace outside the repository. Do not put recordings, credentials, runtime caches, or operator configuration in this skill directory. No secret values belong in the contract or a tool request.

3. Load the appropriate internal flow

Both use the shared run module. It provides real terminal observation, input, controller execution, recording, and bounded process ownership. Read only the internal modules needed. Use a recording session to keep case and phase order, carry approved state between related commands, and assemble their actual recordings with evidence --session, not the per-invocation --run-dir path. Keep validation commands in that recording. The session overview uses the task-specific title, derived fidelity, and case results, with 10 seconds per readable page. Progress spans the entire final video.

4. Verify, render, and clean up

Always finish through the evidence module, including when the case is blocked or the subject fails.

Return the case outcome, meaningful observed behavior, requested media paths, executable identity, inspection coverage, and limitations. Keep case failure, capture failure, and render failure distinct. A video is evidence of an observed flow, not proof of general correctness or a replacement for tests.

Include a report link only when the caller requested the report. Do not leave a host, terminal, recorder, or playback server running. Publishing the evidence is a separate, explicit action.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

agentic-workflows

免费有简介

此技能识别 GitHub Agentic Workflows 相关请求的类型,并引导代理读取对应提示或技能文件,涵盖设计、创建、配置、更新、调试和升级。

  • 设计或创建新工作流
  • 更新现有工作流
  • 调查工作流错误
cli/cli4.7万2026年10月25日 更新

cli-exercise-evidence

免费有简介

将命令行练习的预期与记录证据逐项核对,按需渲染并检查媒体,返回各案例结果和本地成果文件路径;默认不发布证据。

  • 核验命令行练习的预期
  • 从录制内容生成视频证据
  • 检查视频或屏幕内容
cli/cli4.7万2026年10月25日 更新

cli-exercise-exact

免费有简介

此技能按原样执行指定的命令行测试,保留命令、输入、顺序和预期条件;逐项准备、操作并验证,再依据实际证据标记通过、失败、受阻或仅作观察。

  • 按原样执行命令行测试
  • 保留输入值和案例顺序
  • 对照预期与实际输出
cli/cli4.7万2026年10月25日 更新

cli-exercise-explore

免费有简介

此技能根据目标和已批准的范围选择可观察的命令行检查,逐项完成准备、操作和即时验证,并整理证据、尚未达到的行为及检查结果。

  • 按目标检查命令行操作
  • 明确上传完成的判断条件
  • 逐项准备并验证操作
cli/cli4.7万2026年10月25日 更新

cli-exercise-preflight

免费有简介

这是供 `cli-exercise` 内部使用的准备检查模块,用于核验构建、终端和媒体工具是否可用;缺少依赖时先征得安装同意,安装后重新检查。

  • 录制前检查所需工具
  • 检查视频或 GIF 输出能力
  • 查看缺失依赖的安装步骤
cli/cli4.7万2026年10月25日 更新

cli-exercise-run

免费有简介

通过共享的 Go 运行时和 Tuistory 适配器执行并记录 CLI 案例,按获批流程完成准备、操作、验证和清理,保留终端表现、执行顺序及失败时的部分证据。

  • 记录 CLI 操作案例及结果
  • 按顺序执行准备、操作和验证
  • 保留操作失败时的部分证据
cli/cli4.7万2026年10月25日 更新

查看 cli 的全部技能

报告此技能的问题