Run Validation Until No Failureのロゴ

Run Validation Until No Failure

組織
HLND2T
run-validation-until-no-failure

Use when the user wants to run the IDA validation pipeline (`uv run ida_analyze_bin.py -debug`) repeatedly until it reports zero failures. For each failing skill, diagnose the failure, ask the user how to proceed, and offer several viable solutions. Only when the user explicitly says the failure cannot be solved now and asks to temporarily disable the skill, comment it out in configs/<GAMEVER>.yaml and record it in docs/ida_validation_failure-<GAMEVER>.md. Use after a game-version bump or a large batch of new skills when several skills may fail and you want a guided triage-and-quarantine pass. Triggers: run validation until no failure, validate until green, get validation passing, disable failing skills, quarantine failing skills, loop ida_analyze_bin until no failures

概要

公開者HLND2T
リポジトリCS2_VibeSignatures
スキル名run-validation-until-no-failure
スター
67
フォーク
11
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    HLND2TがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Run Validation Until No Failure」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/HLND2T/CS2_VibeSignatures/tree/main/.claude/skills/run-validation-until-no-failure
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/HLND2T/CS2_VibeSignatures.git /tmp/CS2_VibeSignatures
mkdir -p .claude/skills
cp -r /tmp/CS2_VibeSignatures/.claude/skills/run-validation-until-no-failure .claude/skills/run-validation-until-no-failure
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでRun Validation Until No Failureを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にRun Validation Until No Failureを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Run Validation Until No Failureは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Run Validation Until No Failure

Loop the analysis/validation pipeline until it reports Failed: 0. Each iteration: run ida_analyze_bin.py -debug; if a skill failed (the pipeline is fail-fast, so it's exactly one), diagnose why, present several concrete resolution options, and ask the user which option to take. Do not disable or record the skill before the user answers. If the user explicitly answers that it cannot be solved now and asks to temporarily disable the skill, append the failure to docs/ida_validation_failure-<GAMEVER>.md, comment that skill out of configs/<GAMEVER>.yaml, and run the unit and repository-contract unittest suites before resuming validation. If the config dependency test reports consumers whose expected_input can no longer be produced, apply the same ask-before-action rule to each dependent skill. Environment / infrastructure failures are not skill bugs — STOP and surface those instead of quarantining a skill.

Resolve GAMEVER from the user's explicit request or CS2VIBE_GAMEVER; use only configs/$GAMEVER.yaml for the validation run and all quarantine edits.

When to Use

  • The user asks to "run validation until it passes / until no failures", "get validation green", or "disable the failing skills and keep going".
  • After bumping to a new game version or landing many new skills, to triage a wave of failures — each gets quarantined with its reason for later fixing.

Why the loop works (pipeline facts)

  • uv run ida_analyze_bin.py -debug ends with a summary and exits non-zero when Failed > 0:
    ============================================================
    Summary
    ============================================================
      Successful: N
      Failed: N
      Skipped: N
  • It is fully fail-fast: the first failing skill aborts the remaining skills, the remaining platforms, and the remaining modules. So each run surfaces exactly one actionable failing skill — handle at most one validation-failing skill per iteration.
  • Skills whose expected_output YAML already exist on disk are skipped on re-runs, so each iteration advances quickly to the next unresolved skill.

Safety Rules — STOP conditions (never loop forever)

For every STOP condition, stop the automatic loop, report the evidence, offer concrete next-step options, and ask the user how to proceed. Do not resume until the user answers.

  • Infra / environment failure → STOP and ask. If the failure is not attributable to a specific skill's logic, do not comment out a skill. Signals:
    • Failed: IDB lock file detected (...)
    • Failed: opened binary verification failed / Aborting current binary after opened binary verification failure
    • Failed to restore MCP connection ...
    • Error: Binary file not found or any idalib-mcp startup error These mean the toolchain / binary / IDB is broken, not the skill. Offer relevant recovery options such as clearing a confirmed stale lock, correcting the binary path, or restarting the MCP/IDA session, then ask the user which action to take.
  • -gamever required error → STOP and ask. The command relies on $CS2VIBE_GAMEVER. If the run errors, offer to use the user's explicit version, read CS2VIBE_GAMEVER from .env, or inspect available configs/*.yaml files with the user; do not guess the game version.
  • No progress → STOP and ask. If a run's failing skill is the same one you just commented (the config edit didn't take), or the Failed count did not go down, report the evidence and offer investigation options. Never re-comment the same block or force past it.
  • Unrelated unittest failure → STOP and ask. Only dependency gaps reported by TestConfigSkillDependencyGraph.test_config_module_skills_have_no_expected_input_order_gaps may lead to asking whether to quarantine more skills. Do not hide failures from any other test, exception, import error, or test infrastructure problem by commenting out config entries. Offer repair or investigation options and ask the user how to proceed.
  • User decision is required before skill edits. Present several viable, failure-specific repair options and wait for the user's answer. If the user selects a repair, make only the edits authorized by that choice and run the relevant tests before resuming validation. Quarantine only after an explicit answer such as 解决不了,先屏蔽该skill (or an unambiguous equivalent); do not interpret silence, a generic approval, or uncertainty as permission to quarantine.
  • Quarantine edits are comment-only. After explicit quarantine approval, append to docs/ida_validation_failure-<GAMEVER>.md and comment (prefix #) the validation-failing skill or dependency-broken descendant's block in configs/<GAMEVER>.yaml. Comment one skill block at a time, re-run the relevant gate, do not delete config entries, do not touch unrelated skills, and do not uncomment anything unless the user separately requests it.

Method

Step 1 — Run validation; capture full log + summary

bash
uv run ida_analyze_bin.py -gamever "$GAMEVER" -configyaml "configs/$GAMEVER.yaml" -debug > /tmp/ida_validation_output.txt 2>&1; tail -15 /tmp/ida_validation_output.txt

The full log goes to /tmp/ida_validation_output.txt; tail -15 is only for the pass/fail verdict.

Step 2 — Read the verdict from the summary

From the tail output, read Failed: N.

  • Failed: 0 → DONE. Report success and stop the loop.
  • Failed: N (N ≥ 1) → continue. (Fail-fast means one actionable skill; N counts the pending work items that one failure aborted.)

Step 3 — Identify the failing skill + its module + platform (from the FULL log)

The per-skill failure detail is not reliably in the last 15 lines — parse the whole file. Find the last real failure signal (the pattern excludes the Failed: N summary line):

bash
grep -nE "^  (Failed: [^0-9]|Pre-processed but missing expected_output:|Preprocess failed:)" /tmp/ida_validation_output.txt | tail -5

The failing skill is named on that line (or, on the agent-fallback path, on the last Processing skill: <skill> immediately followed by a bare Failed). Then read upward for context:

  • Module = nearest preceding Module: <module_name> header.
  • Platform = nearest preceding Platform: <platform> line.
  • Reason = the indented lines of that skill's block (e.g. missing expected_input: ..., Skill file not found: ..., preprocess diagnostics).

Now apply the Safety Rules: if this is an infra failure, stop the loop, offer recovery options, and ask the user how to proceed. Do not continue to the skill-quarantine steps.

Step 4 — Ask the user how to resolve the failure

Report the skill name, module, platform, verbatim failure block, and a one-line diagnosis. Then offer 2-4 concrete, viable options tailored to the failure and ask the user which one to take. Prefer specific options such as:

  1. Fix the failing skill or preprocessor logic, then run its targeted tests and validation again.
  2. Repair a missing or invalid dependency, config entry, or generated artifact, then re-run the dependency test and validation.
  3. Investigate ambiguous environment or toolchain evidence before changing any skill.
  4. If it cannot be solved now, temporarily disable the failing skill.

Do not present irrelevant boilerplate options. Stop and wait for the user's answer. Then:

  • If the user selects a repair or investigation option, carry it out within the user's chosen scope, run the relevant tests, and return to Step 1. Do not write a quarantine record.
  • If the user explicitly answers 解决不了,先屏蔽该skill or gives an unambiguous equivalent that both defers the fix and requests temporary disabling, continue to Step 5.
  • If the answer is ambiguous, ask a concise follow-up. Do not quarantine by inference.

Step 5 — Record the approved quarantine in the game-version doc

File: docs/ida_validation_failure-<GAMEVER>.md, using the resolved GAMEVER verbatim in the filename. Create it if missing; otherwise append a new section. Record: skill name, module, platform, the verbatim failure block from the log, a one-line diagnosis, and that the user chose to temporarily disable the skill.

markdown
## find-ConnectInterfaces  (module: engine2, platform: windows/linux)

Failure (from `ida_analyze_bin.py -debug`):

    Start skill: find-ConnectInterfaces
      Preprocess: no old YAML for ConnectInterfaces.windows.yaml
      Preprocess: trying func_xrefs fallback for ConnectInterfaces
      Preprocess: exclude_func YAML missing or invalid: CNetSupportImpl_Connect.windows.yaml
      Preprocess: failed to locate ConnectInterfaces
    Preprocess failed: find-ConnectInterfaces; falling back to AGENT SKILL
    Processing skill: find-ConnectInterfaces
      Falling back to: .claude\skills\find-ConnectInterfaces\SKILL.md
      Error: Skill file not found: .claude\skills\find-ConnectInterfaces\SKILL.md
      Failed

Diagnosis: preprocessor could not locate ConnectInterfaces and no agent SKILL.md exists to fall back
to. Needs a preprocessor fix or a find-ConnectInterfaces SKILL.md.

Decision: user chose to temporarily disable this skill because it could not be resolved now.

Step 6 — Comment the failing skill out of configs/.yaml

Comment the skill's entire list-item block under the correct module, and add one Awaiting fix line above it that points at the game-version failure doc. The rule: insert a # right after the 6-space base indent on every line of the block, keeping {platform} placeholders verbatim (this disables it for all platforms).

Before:

yaml
      - name: find-ConnectInterfaces
        expected_output:
          - ConnectInterfaces.{platform}.yaml
        expected_input:
          - CNetSupportImpl_Connect.{platform}.yaml

After:

yaml
      #  Awaiting fix, failure reason has been written into "docs/ida_validation_failure-13990.md"
      #- name: find-ConnectInterfaces
      #  expected_output:
      #    - ConnectInterfaces.{platform}.yaml
      #  expected_input:
      #    - CNetSupportImpl_Connect.{platform}.yaml

The block runs from its - name: line (6-space indent) through every more-indented line until the next - name: at the same level, or a dedent.

Disambiguation (important): the same skill name can appear under several modules (e.g. find-ConnectInterfaces exists in 3 modules). Comment only the one under the Module: you found in Step 3. Use the Edit tool with an old_string that includes the preceding sibling skill entry (which differs per module) so the match is unique — a bare block match would silently hit the wrong module.

Step 7 — Run unit and repository-contract tests after every configs/.yaml quarantine

Immediately after commenting out any skill block, run both explicit unittest suites:

bash
uv run python tests/run_test_suite.py unit -b --durations 30
uv run python tests/run_test_suite.py repository-contract -b --durations 30

The suite runner audits that every discovered test is assigned exactly once. The unit suite covers the implementation-level analysis, config, snapshot, and candidate behavior; the repository-contract suite covers checked-in configuration and dependency-graph invariants. Redis and release integration suites are outside this quarantine gate.

  • Both suites pass → the active configs/<GAMEVER>.yaml dependency chain is intact; continue to Step 8.

  • Only TestConfigSkillDependencyGraph.test_config_module_skills_have_no_expected_input_order_gaps fails → inspect its dependency-gap list. Each entry identifies a consumer whose expected_input is no longer produced, for example:

    text
    windows module[2] server/find-ChildSkill missing: _artifacts/server/Parent.windows.yaml

    Here server/find-ChildSkill is the affected child skill. Report the gap, provide viable options such as repairing/restoring the producer, changing the consumer dependency when semantically correct, or temporarily disabling the child, and ask the user how to proceed. Stop and wait for the answer. If the user selects a repair, implement it and re-run both unittest suites. Only if the user explicitly says it cannot be solved now and asks to temporarily disable that child, append its unittest failure, dependency diagnosis, and decision to docs/ida_validation_failure-<GAMEVER>.md; then comment that child's full block under the named module using the Step 6 rules and re-run both unittest suites immediately.

  • Any other unittest failure → STOP and ask. It is not evidence that another skill should be quarantined.

Handle one unique child skill per unittest iteration. A child may be listed once per platform; comment its all-platform {platform} block only once after explicit approval. Ask again for each newly exposed descendant; a previous quarantine decision does not authorize later descendants. Keep re-running both suites until they pass. Do not return to IDA validation while either suite is red.

Step 8 — Resume the validation loop

Go back to Step 1. The just-disabled skill is now skipped, and previously-successful skills are skipped (their outputs exist), so the next run reaches the next failure quickly. Repeat until Failed: 0 (DONE) or a STOP condition trips.

Cascading is expected and must be resolved before validation resumes. Disabling a producer can break a consumer whose expected_input names the disabled output. The unittest dependency graph catches this immediately, even when stale YAML artifacts would otherwise let the validation run skip past the broken config chain. Ask the user how to resolve each descendant, apply the selected repair or explicitly approved quarantine, and call the full dependency chain out in the report.

Quick reference — failure signal lines

Log line (2-space indent)MeaningAction
Failed: <skill> (missing expected_input: ...)dependency YAML absentdiagnose, offer solutions, ask user
Failed: <skill> (invalid expected_input ...)dependency YAML malformeddiagnose, offer solutions, ask user
Pre-processed but missing expected_output: <skill> (...)preprocess ran, output not writtendiagnose, offer solutions, ask user
Preprocess failed: <skill>; falling back to AGENT SKILL → Failedpreprocess AND agent fallback faileddiagnose, offer solutions, ask user
Failed: <skill> (<exception>)skill raiseddiagnose, offer solutions, ask user
Failed: IDB lock file detected ...stale lock / another IDA instanceSTOP (infra)
Failed: opened binary verification failedwrong/broken binary openSTOP (infra)
Failed to restore MCP connection ...idalib-mcp diedSTOP (infra)
unittest dependency gap: <module>/<skill> missing: <artifact>active consumer has no active produceroffer repair/quarantine options, ask user
any other unittest failureunrelated code/test/infrastructure failureSTOP

Notes

  • tail -15 is only for the verdict; always parse the full /tmp/ida_validation_output.txt to identify the failing skill and its reason.
  • IDA validation surfaces one actionable skill per iteration (fail-fast). The mandatory unit and repository-contract loop may surface several dependency descendants; ask about and handle one block per unittest iteration.
  • Never run the next IDA validation iteration until both suite-runner commands above pass with zero failures.
  • On the quarantine path, edit configs/<GAMEVER>.yaml by commenting only. Re-enabling a skill once it's fixed is a separate manual step — the commented blocks plus docs/ida_validation_failure-<GAMEVER>.md are the resulting to-do list.
  • This skill does not git commit; leave staging/committing to the user unless they ask.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Run Validation Until No Failure」では何ができますか?

Use when the user wants to run the IDA validation pipeline (`uv run ida_analyze_bin.py -debug`) repeatedly until it reports zero failures. For each failing skill, diagnose the failure, ask the user how to proceed, and offer several viable solutions. Only when the user explicitly says the failure cannot be solved now and asks to temporarily disable the skill, comment it out in configs/<GAMEVER>.yaml and record it in docs/ida_validation_failure-<GAMEVER>.md. Use after a game-version bump or a large batch of new skills when several skills may fail and you want a guided triage-and-quarantine pa...

TypingMindでRun Validation Until No Failureを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Run Validation Until No Failureはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにRun Validation Until No Failureをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/HLND2T/CS2_VibeSignatures/tree/main/.claude/skills/run-validation-until-no-failureを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Run Validation Until No Failureを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Run Validation Until No Failureで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもRun Validation Until No Failureを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Run Validation Until No Failure」は無料ですか?

はい。HLND2TがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇