ck:loop

Automate iterative code optimization loops against measurable metrics like coverage or bundle size.

1|Updated May 4, 2026
One-click install
npx skills add https://github.com/auxi-wardrobe/auxi-all-in --skill ck-loop-auxi-wardrobe
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ck:loop
Source: https://github.com/auxi-wardrobe/auxi-all-in/tree/main/.agents/skills/ck-loop
Command: npx skills add https://github.com/auxi-wardrobe/auxi-all-in --skill ck-loop-auxi-wardrobe

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the iterative optimization of measurable metrics such as test coverage, bundle size, or ESLint errors, streamlining the process of improving code quality and performance.

Core Features & Use Cases

  • Automated Optimization: Runs N iterations against a mechanical metric with no manual intervention.
  • Git-Tracking: Keeps experiments organized with rollback capabilities for regressions.
  • Use Case: Ideal for optimizing a project's test coverage by running a loop that iteratively adds tests, verifies coverage, and decides whether to keep or discard changes.

Quick Start

Run the ck:loop skill with the goal of increasing test coverage in the 'src/utils' directory.

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 optimization for code metrics like test coverage and bundle size?

Automating iterative optimization for code metrics requires executing code changes, verifying a numeric output, and keeping or discarding the results. This Skill runs N iterations automatically to improve measurable metrics like test coverage and bundle size.

What do I need to set up before running automated code optimization loops?

Before running automated code optimization loops, you need a git repository with a completely clean working tree. You also need a verify command that outputs a single numeric value to evaluate the optimization results.

How does the rollback mechanism work when an optimization iteration fails?

The rollback mechanism works by using git tracking to evaluate each iteration's results against the baseline metric. If a code change fails to improve the metric, the Skill discards the changes and reverts to the previous state.

Can I use this to automatically increase test coverage in a specific directory?

Yes, you can use this to automatically increase test coverage in a specific directory. You point the loop at your target directory and provide a coverage command that outputs a numeric value for the iterations to track.

What are the limitations of using automated loops for performance optimization?

A key limitation is that the verify command must output a single numeric value, meaning complex, multi-variable performance metrics are difficult to evaluate. Additionally, the working git tree must be clean before starting.

Is automated metric optimization better than manual code refactoring?

Automated metric optimization surpasses manual code refactoring for measurable targets like ESLint errors or bundle size by removing human intervention. It systematically tests iterations and automatically discards regressions using git tracking.