ck:autoresearch

Automate iterative code optimization loops with Git tracking and rollback.

Updated Apr 18, 2026
One-click install
npx skills add https://github.com/lengo0951/pms --skill ck-autoresearch-lengo0951
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ck:autoresearch
Source: https://github.com/lengo0951/pms/tree/main/.claude/skills/ck-autoresearch
Command: npx skills add https://github.com/lengo0951/pms --skill ck-autoresearch-lengo0951

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, jest, ts-node, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of iterative optimization loops to improve measurable code metrics such as test coverage, performance, and bundle size, saving developers time and ensuring code quality.

Core Features & Use Cases

  • Automated Optimization: Executes a series of code changes and verifies their impact on metrics.
  • Git Integration: Uses Git to track changes and allows for easy rollback in case of regression.
  • Use Case: If you want to increase test coverage in your codebase, you can use this Skill to automatically experiment with different code changes, verify the impact, and keep the improvements.

Quick Start

/ck:autoresearch Goal: Increase test coverage in src/utils from ~60% to 80% Scope: src/utils//*.ts, tests/utils//*.test.ts Verify: npx jest tests/utils --coverage --coverageReporters=json-summary 2>/dev/null | node -e "const d=require('./coverage-summary.json');console.log(d.total.lines.pct)" Guard: npx tsc --noEmit && npx jest --passWithNoTests Iterations: 15 Direction: higher

Frequently Asked Questions about ck:autoresearch

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

FAQPage Schema
How do I automate iterative code optimization for test coverage?

Automate iterative code optimization by executing targeted changes, verifying metric impact, and using Git for tracking. This Skill runs multiple iterations to increase test coverage or improve bundle size, automatically rolling back regressions to ensure code quality.

Can I use Git to automatically rollback code changes that regress performance metrics?

Yes, Git integration enables automatic rollback for code changes that regress performance metrics. The tool tracks each modification during the optimization loop, reverting iterations that fail verification checks or degrade measurable code metrics.

Do I need Jest and ts-node to automate code metrics improvement loops?

You need Jest and ts-node as dependencies to execute verification commands and run TypeScript scripts in your optimization loops. Git is also required to track changes and enable rollback for iterative code metrics improvement.

What is the best way to iteratively increase test coverage without manual code changes?

The best way to iteratively increase test coverage is defining a target metric, scope, and verification command. This Skill executes code changes automatically across multiple iterations, verifying impact and keeping only improvements that pass your guard checks.

What code metrics can I improve using an automated iterative optimization loop?

You can improve measurable code metrics such as test coverage, performance, and bundle size using automated iterative optimization loops. The process executes changes, verifies their impact using your specified commands, and preserves validated improvements.

Why does my automated test coverage optimization loop fail to keep improvements?

Automated optimization loops may fail if verification commands are inaccurate or guard checks are too strict. Ensure your verification command correctly parses coverage reports and your guard validates type safety and test integrity before keeping changes.