跳到正文
cccskills
免费在 GitHub 公开中文介绍

cli-exercise-run

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

原文查看原文说明

Internal shared execution and recording flow for cli-exercise. Uses one Go owner and a thin Tuistory adapter for exact or exploratory cases.

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

实测评分 未实测

查看安装方法

适用场景

  • 记录 CLI 操作案例及结果
  • 按顺序执行准备、操作和验证
  • 保留操作失败时的部分证据

中文介绍

功能

此内部执行流程通过共享的 Go 运行时和 Tuistory 适配器运行并记录 CLI 操作。每个案例都需要已准备好的预检记录和完整的获批契约。流程按顺序执行准备、获批操作、紧接着的验证,以及获批的清理步骤。客户端先读取真实终端状态,再请求执行允许的操作,并记录实际输入、终端显示内容和失败情况。执行清单会保留实际顺序、开始和结束时间及最终状态。即使运行失败或中断,也会保留部分证据,并使用专门的证据记录流程。

适用场景

需要以可追溯的方式记录某项 CLI 行为的步骤和结果时,可以使用此流程。它按案例分别执行准备、操作和验证;如果操作中途停止,也会保留记录。这是内部共享执行流程,不能由用户直接调用。

使用示例

  • “请按获批案例执行 CLI 操作,并记录终端画面和结果。”
  • “请依次运行这个案例的准备、操作和验证步骤。”
  • “请保留并报告中断运行留下的部分证据。”

注意事项

运行需要 Go 辅助程序、Tuistory 客户端、预检记录和获批契约。禁止切换到普通 PATH 中的其他可执行文件,也禁止显示或保存真实凭据。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

文档检查

AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。

安全性发送数据、删除文件、执行命令等是否有说明
A良好操作受获批契约限制,并禁止显示或保存真实凭据。
安装难易度所需工具和 API 密钥是否少且有说明
B部分不足需要 Go 辅助程序、Tuistory、预检记录和获批契约。

不计入评分。 由 AI(OpenAI Codex)于 2026年10月26日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

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

包含的文件(1)

  • SKILL.md4.5 KB

SKILL.md(原文)

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

Shared execution

Read the runtime interface. Read the controller format only when authoring or running a controller. Require a ready preflight receipt and a complete approved contract before launching the subject. Use the session manifest and shared-state convention even for a single case. Each case covers one behavior: execute its setup runs, one exercise invocation, then its validation runs immediately, before the next case. Approved cleanup follows validation. Multiple setup or validation runs are allowed; a second exercise belongs to a separate behavior case, unless doing so would change an exact caller case, which requires clarification first. Honor explicitly narrower coverage without inventing missing phases.

Each invocation uses this same run/client path with its own capture directory. Run titles explain what preparation establishes or validation checks. Carry approved shared state forward, not a reused capture. Wait for each run to finish and close before starting the next; do not batch phases or overlap case runs. Keep actual execution order in the manifest. The assembler is not a way to repair history by rearranging clips.

Start an owned, isolated run

Use the receipt's tools and the contract's executable, arguments, and workspace. Verify the executable checksum immediately before launch. Never fall back to a different gh, shell, or executable found on the ordinary PATH.

Start the Go helper's run command with the skill root, contract, and preflight receipt. Keep the process attached to the current task. Do not use a global Tuistory daemon or start unrelated background agents. A bounded temporary host may remain alive while the current agent inspects and acts; it must be shut down at the end.

The Go runtime isolates configuration and passes only explicitly approved environment values. Never type, print, or persist real credentials. These controls do not make the host an OS sandbox for untrusted programs. Node only supplies the mechanical Tuistory boundary. It must not replace Go's contract checks, controller decisions, capture policy, or verdicts.

Observe, then act

Use the client to read the actual terminal state, then request an allowed action with that observation's revision and a concise reason.

Do not confuse a visible choice with the currently selected choice, or focus with a checked checkbox. A stale-observation rejection requires a fresh read, not an automatic replay of the same action.

Use condition-based waits for readiness and explicit timing for pacing when the case permits it. Record the actual typing, prompt redraws, spinners, editor transitions, and failures. Never assemble a fake terminal from selected stills.

Use semantic selector helpers only where their interpretation is supported. For other permitted UIs, inspect and use the caller's required raw keys or coordinates. Report unsupported interactions explicitly.

Controllers and handoffs

Controllers are bounded declarative data. Their actions pass through the same exact-step and effect checks as live AI actions. Go interprets their rules; they cannot execute arbitrary code or grant themselves broader authority.

An uncovered prompt may pause a controller while retaining the terminal. In exact mode, the next action still must match the supplied case. In explore mode, the AI can choose the next permitted action after inspecting the state.

Annotate meaningful steps and decisions while they happen. Keep annotations outside the product output and preserve their source timestamps.

Finish on every exit path

Capture the actual exit status and final state. Ask the runtime to finish and shut down. If the subject cannot finish normally, stop only the owned process tree and report interruption distinctly from the expected outcome.

Retain the runtime's startedAt and finishedAt metadata for chronology checks. Never fill in or rewrite timestamps to make a capture fit the intended order. Legacy captures without them require an explicit execution order unverified warning, not a claim of verified chronology.

Do not leave a host or recorder running while writing the report. Preserve partial evidence and use the evidence module even after a failure.

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

agentic-workflows

免费有简介

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

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

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.

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

  • Record specified CLI test cases
  • Demonstrate a command’s behavior
  • Validate an interactive terminal workflow
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 的全部技能

报告此技能的问题