ck-loop

Automate iterative optimization loops with git tracking and Python scripts.

1|Updated Jun 16, 2026
One-click install
npx skills add https://github.com/TNHoang2708/Gym_Ver2 --skill ck-loop-tnhoang2708
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ck-loop
Source: https://github.com/TNHoang2708/Gym_Ver2/tree/main/.claude/skills/ck-loop
Command: npx skills add https://github.com/TNHoang2708/Gym_Ver2 --skill ck-loop-tnhoang2708

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, numpy, gitpython, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates iterative optimization loops, allowing you to run multiple experiments against a mechanical metric and learn from git history, auto-keeping or discarding changes.

Core Features & Use Cases

  • Autonomous Optimization: Run N iterations against a metric without manual intervention.
  • Git Tracking: Track experiments in git for rollback on regression.
  • Use Case: Improve measurable metrics like test coverage, performance, or bundle size by running the loop to optimize your codebase.

Quick Start

Use the /ck:loop command to automate the optimization of your code metrics. Provide the necessary configuration, such as the goal, scope, and verification commands.

Frequently Asked Questions about ck-loop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate iterative code optimization loops against a specific metric?

Automating iterative code optimization loops involves running multiple experiments against a mechanical metric, tracking results in git history, and automatically keeping or discarding code changes based on performance. You configure the goal, scope, and verification commands to start the loop.

Can I use git history to automatically rollback code changes that cause metric regressions?

Yes, git integration tracks experiments and automatically rolls back code changes if a regression is detected in the mechanical metric. This ensures your codebase only retains modifications that demonstrably improve the targeted performance or quality measurements.

What is autonomous experimentation for improving metrics like test coverage or bundle size?

Autonomous experimentation runs N iterations against a mechanical metric without manual intervention, automatically testing code modifications to improve measurable targets like test coverage, performance, or bundle size. It discards failed experiments and retains successful optimizations.

Do I need specific Python scripts to run automated experimentation and verification?

Yes, you must provide user input for configuration and specific Python scripts for verification and guard commands. The loop relies on these dependencies, including pandas, numpy, and gitpython, to handle automated experimentation, code changes, and version control rollback.

How does the automated optimization loop handle code changes and version control?

The automated optimization loop handles code changes by running experiments, measuring metrics, and using gitpython for version control to auto-keep improvements or rollback regressions. It requires configuration input and specific verification scripts to validate each iteration's impact.

When should I not use an autonomous loop for codebase optimization?

You should not use an autonomous loop when your optimization goal lacks a strictly mechanical metric for verification, or when you cannot provide specific guard commands. The loop depends on measurable, automated verification to safely evaluate code changes and execute git rollbacks.