ct-ivt-looper

ct-ivt-looper is a skill for Claude Code, Codex from kryptobaseddev/cleo. It costs 169 tokens per session (3,146 once invoked), scanned A, original, MIT.

An automated loop that implements a software change, checks it against its specification, and runs tests until the requirements are satisfied.

In plain words
What is it for?
Use it to detect a project's test framework, connect requirements to tests, repeat validation, and record the final test results.
Why use it?
It catches gaps where tests pass but do not cover the actual requirements, and records whether the work converged.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to detect a project's test framework, connect requirements to tests, repeat validation, and record the final test results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kryptobaseddev/cleo/ct-ivt-looper
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kryptobaseddev/cleo --skill ct-ivt-looper
Clone the repo
git clone --depth 1 https://github.com/kryptobaseddev/cleo

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ct-ivt-looper

README.md
[![agentmods](https://agentmods.dev/badge/skills/kryptobaseddev/cleo/ct-ivt-looper/github.svg)](https://agentmods.dev/skills/kryptobaseddev/cleo/ct-ivt-looper)
Your own site
<a href="https://agentmods.dev/skills/kryptobaseddev/cleo/ct-ivt-looper"><img src="https://agentmods.dev/badge/skills/kryptobaseddev/cleo/ct-ivt-looper/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ct-ivt-looper

Your own site · 80×15
<a href="https://agentmods.dev/skills/kryptobaseddev/cleo/ct-ivt-looper"><img src="https://agentmods.dev/badge/skills/kryptobaseddev/cleo/ct-ivt-looper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 169 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,146 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00169 $0.03146
Opus 5.5 $0.00068 $0.01258
Sonnet 5.5 $0.00034 $0.00629
Haiku 4.5 $0.00017 $0.00315

Measured 18d ago against content hash 7dc183c3a681, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ct-ivt-looper scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/skills/skills/ct-ivt-looper/SKILL.md · 221 lines

How it starts

The opening of the file, as written. The whole thing — 221 lines — stays where its author put it; the contents beside it link to each section on GitHub.

IVT Looper

Overview

Runs an autonomous Implement-then-Validate-then-Test loop against any git worktree, detects the test framework in use, and iterates until the implementation converges on its specification. This skill is the autonomous compliance layer: no task ships, no release runs, and no PR opens until the loop has recorded a converged result to the manifest.

Core Principle

The loop converges on the spec, not on 'tests pass'. Passing tests that don't cover the spec is a failure.

Immutable Constraints

ID Rule Enforcement
IVT-001 Test framework MUST be detected or declared before the loop starts. validateTestingProtocol rejects entries without a framework; deducts 20 from score.
IVT-002 Loop MUST cap iterations at MAX_ITERATIONS (default 5). Hard counter in the loop; unreachable convergence forces HITL escalation.
IVT-003 Every MUST requirement in the spec MUST map to at least one passing test. Spec-to-test traceability matrix; gaps block convergence.
IVT-004 Final manifest entry MUST record framework, testsRun, testsPassed, testsFailed, ivtLoopConverged, ivtLoopIterations. validateTestingProtocol requires these fields; ivtLoopConverged: false fails validation.
IVT-005 Framework detection MUST NOT be hardcoded to one project's tooling. Detection walks the project tree; no vitest/jest-only code paths.
IVT-006 Loop MUST NOT run on the main branch. Check git branch --show-current; stop if on main/master/trunk.
IVT-007 Non-convergence after MAX_ITERATIONS MUST escalate to HITL (exit code 65). Agent stops, writes manifest with ivtLoopConverged: false, exits.
IVT-008 Final manifest entry MUST set agent_type: "testing". Validator rejects any other value.

The IVT Loop

load_spec(task_id)                         # read acceptance criteria from canon
detect_framework(worktree)                 # see references/frameworks.md
branch_check()                             # abort if on main/master/trunk
iteration = 0

while iteration < MAX_ITERATIONS:          # IVT-002
    iteration += 1

    # ----- I : Implement -----
    apply_patch(current_diff)              # patch generated by the implementer
    ensure_provenance_tags(new_code)       # IMPL-003 tags on new functions

    # ----- V : Validate -----
    lint_result = run_project_linter()
    type_result = run_type_checker()       # tsc / mypy / go vet / rustc
    if lint_result.failed or type_result.failed:
        regenerate_fix_for(lint_result, type_result)
        continue                           # back to top, same iteration count

    # ----- T : Test -----
    test_result = run_framework_tests()    # framework-specific command
    trace = spec_to_test_trace(spec)       # IVT-003: every MUST has a test
    if test_result.all_passed and trace.complete:
        write_manifest(
            framework=framework,
            iterations=iteration,
            converged=True,
            agent_type="testing",
        )
        return CONVERGED                   # exit loop, exit skill with code 0

    # ----- Analyze and regenerate fix -----
    failure = diagnose(test_result, trace)
    current_diff = regenerate_fix_for(failure)

# MAX_ITERATIONS reached without convergence
write_manifest(
    framework=framework,
    iterations=MAX_ITERATIONS,
    converged=False,
    agent_type="testing",
)
escalate_to_hitl()                         # IVT-007: exit code 65

Read the full file on GitHub · 221 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 18d ago Changed · +1 lines 7dc183c3a681
  2. 21d ago Changed · +1 lines 2f8eddea4d88
  3. 22d ago Changed · +5 lines 4597a0468fda
  4. 1mo ago First seen · 214 lines · 169 tokens per session scan A 5a2b610b2132

Subscribe to this mod's changes

ct-ivt-looper is a skill published in the GitHub repository kryptobaseddev/cleo (159 stars, last pushed yesterday), licensed MIT. It adds 169 tokens to every session and 3,146 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

eval-dataset-design

A guide to creating reliable test sets for AI agents. Each evaluation task includes the request, the simulated user's behaviour, a reset starting state, and a success check that can be independently verified.

bojieli/ai-agent-book · 138 tokens

tika-eval-compare

Compare extracts from two Tika builds over a corpus to detect regressions in content, encoding, exceptions, and embedded-document handling. Use for "compare before/after extracts", "eval this change against the corpus".

apache/tika · 50 tokens

cua-driver

Use Cua Driver for desktop or browser tasks that are awkward or unavailable through Bash/APIs, or when the user explicitly wants GUI interaction: app testing, visual bug reproduction, form filling, calendar entry, screenshots, and demo recording. Also covers Cua setup; not OpenAI Codex Computer Use or web research.

davidondrej/skills · 68 tokens

jetson-validate-image

Use after jetson-flash-image to run static BSP checks, on-target smoke/regression tests on a flashed DUT, or both. Not for build or flash steps. Triggers: validate bsp, on-target validation.

NVIDIA/skills · 50 tokens

atmos-validation

Validate Atmos projects, components, arbitrary JSON Schema inputs, EditorConfig, and GitHub Actions; use affected-file selection and native CI annotations.

cloudposse/atmos · 31 tokens