本文へ移動
cccskills
無料GitHub で公開日本語紹介

cli-exercise

実際のCLIコマンドをケースや目標に沿って実行・記録し、観察した動作を確認できる動画などの証拠にまとめます。

原文原文の説明を見る

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,747(GitHub 46,747 + cccskills 0)

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • CLIの指定ケースを記録したいとき
  • コマンドの動作を動画で示したいとき
  • 対話型の操作を検証したいとき
  • 目標に沿ってCLIを調べたいとき

日本語での紹介

できること

指定されたケースや達成したい目標に沿って、選ばれた実際のコマンドラインプログラムを操作し、実行前の準備から操作、結果の検証までを順に記録します。ケースごとの順序や入力、期待値が指定されている場合はそれを保ち、目標だけが示された場合は許可された範囲で調査方法を選びます。観察した結果を確認し、通常はケースを章に分けたセッション動画としてまとめます。HTMLレポートは依頼された場合に作成します。

こんなときに便利

CLIの使い方を画面で示したいときや、対話形式の操作を確認したいときに向いています。コマンドの動作をレビュー担当者に見せる証拠が必要な場合や、明確な手順の記録と、広い目標に沿った探索のどちらにも使えます。一般的なユニットテストの実行や、スキル自体の作成を目的とするものではありません。

使い方の例

  • 「このCLIで指定した手順を実行し、各ケースを章に分けて動画にしてください」
  • 「対話形式のログイン操作を記録し、画面に表示された結果を確認してください」
  • 「このコマンドで目標の状態に到達できるか調べ、動画で示してください」

注意点

ヘルパーのビルドにはGo 1.27以降が必要です。NodeとTuistory、ffmpeg/ffprobe、インストール済みの等幅フォントも使います。不足する依存関係のダウンロードやインストールには、事前の確認が必要です。通常のテスト実行とは目的が異なり、記録は観察した一連の操作を示すもので、一般的な正しさを証明するものではありません。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(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(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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操作の記録や実行結果を期待値と照合し、動画などの証拠をローカルで作成・確認して、ケースごとの結果と成果物を返します。

  • CLI演習の期待値を検証したいとき
  • 記録から動画証拠を作成したいとき
  • 動画や画面の内容を点検したいとき
cli/cli4.7万2026年10月25日 更新

cli-exercise-exact

無料概要あり

指定されたCLIテストのコマンド、入力、順序、期待条件を保ったまま実行し、観察結果に照らして各ケースを判定するスキルです。

  • 指定どおりのCLIテストを実行したいとき
  • 入力やケースの順序を保って確認したいとき
  • 期待結果を実際の出力と照合したいとき
cli/cli4.7万2026年10月25日 更新

cli-exercise-explore

無料概要あり

指定された目標と許可範囲に沿ってCLIの確認項目を選び、各操作の準備・実行・検証を順に進めて結果を整理するスキルです。

  • CLI操作を目標に沿って確かめたいとき
  • アップロードの完了条件を整理したいとき
  • 操作ごとに準備と検証を行いたいとき
cli/cli4.7万2026年10月25日 更新

cli-exercise-preflight

無料概要あり

cli-exerciseの実行前にGoや録画関連ツールの利用可否を調べ、不足時は導入手順への同意を得て再確認する内部モジュールです。

  • 記録前に必要なツールを確認したいとき
  • 動画やGIFの出力可否を調べたいとき
  • 不足依存関係の導入手順を知りたいとき
cli/cli4.7万2026年10月25日 更新

cli-exercise-run

無料概要あり

CLI操作をケースごとに実行・記録し、承認済みの手順や状態を守りながら、実際の画面と結果を証拠として残します。

  • CLIの操作ケースを記録したいとき
  • 準備から検証まで順番に実行したいとき
  • 失敗時の実行記録を残したいとき
cli/cli4.7万2026年10月25日 更新

cli のスキルをすべて見る

このスキルの問題を報告する