ck:loop

Automate iterative code metric optimization using Git history and shell commands.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/snake-dev-team/snake-backlink-forge --skill ck-loop-snake-dev-team
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ck:loop
Source: https://github.com/snake-dev-team/snake-backlink-forge/tree/main/.claude/skills/ck-loop
Command: npx skills add https://github.com/snake-dev-team/snake-backlink-forge --skill ck-loop-snake-dev-team

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the process of iterative code optimization, enabling developers to improve measurable metrics like test coverage, performance, and bundle size without manual intervention.

Core Features & Use Cases

  • Automated Optimization Loop: Automatically runs a specified number of iterations against a mechanical metric, learning from git history to make informed decisions.
  • Git Integration: Tracks changes and provides rollback capabilities, ensuring that only improvements are committed.
  • Use Case: For instance, it can be used to increase test coverage in a codebase, reducing bundle size, or eliminating ESLint errors, by systematically experimenting and verifying changes.

Quick Start

/ck:loop Goal: Improve test coverage in src/utils from 60% to 80% Scope: src/utils/**/*.ts Verify: npx jest --coverage --json | jq '.coverageMap | .. | .s? | to_entries | map(.value) | (map(select(.>0)) | length) / length * 100' | tail -1

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 for my continuous integration pipeline?

Automate iterative code optimization by running specified iterations against mechanical metrics, leveraging Git history to learn and verify changes. It systematically experiments and commits only verified improvements to prevent regressions in your codebase.

What is the best way to increase test coverage automatically without manual intervention?

Automatically increase test coverage by specifying a target metric and verification command. The optimization loop runs iterations, checks the metric, and uses Git history to roll back failed attempts, committing only changes that demonstrably improve coverage.

How does Git history tracking guard against regressions during automated code optimization?

Git history tracking guards against regressions by providing rollback capabilities. If an optimization attempt fails to improve the specified metric, the change is rolled back, ensuring only verified improvements are committed to the repository.

Can I use specific shell commands to verify code metrics like bundle size or ESLint errors?

Yes, you can use specific shell commands to verify code metrics. The optimization loop requires a verification command to check metrics like bundle size, ESLint errors, or test coverage, ensuring changes meet your specific criteria before committing.

Do I need a Git repository to run automated optimization loops?

Yes, a Git repository is required to run automated optimization loops. Git integration is essential for tracking changes, learning from history, and providing rollback capabilities to guard against regressions during the iterative process.