my-optimization

Generate candidate pull requests in isolated worktrees and select the best via CI/CD and review rewards.

2|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/LinXueyuanStdio/viben --skill my-optimization
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: my-optimization
Source: https://github.com/LinXueyuanStdio/viben/tree/main/packages/core/templates/codex/skills/FileEvo
Command: npx skills add https://github.com/LinXueyuanStdio/viben --skill my-optimization

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you iteratively improve a codebase by exploring multiple candidate changes and selecting the best one, instead of relying on a single-shot manual refactor or one-off optimization attempt.

Core Features & Use Cases

  • Multi-idea sampling and parallel rollouts: generates multiple optimization ideas, promotes them to tasks, and runs them in isolated worktrees to avoid cross-contamination.
  • Reward-based selection (PPO-like): computes multi-objective rewards from CI results and reviews, penalizes overly risky diffs, and selects the best-performing PR.
  • Convergent continuous evolution loop: repeats sampling, execution, reward computation, selection, and merge/cleanup until convergence criteria or limits are reached.

Quick Start

Use the skill to optimize performance by generating ideas and running selection until the best PR is merged: assign a FileEvo target in your task context and then start the loop by promoting generated ideas to worktree tasks and running reward selection with your threshold.

Frequently Asked Questions about my-optimization

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

FAQPage Schema
How do I automate continuous code quality improvement across multiple pull requests?

To automate continuous code quality improvement, this skill generates multiple candidate pull requests, runs them in isolated worktrees to avoid cross-contamination, and uses CI/CD and review-based multi-objective rewards to select the best change. It repeats this sampling and selection loop until convergence criteria are met.

What is the best way to evaluate pull request diffs with change penalties and acceptance thresholds?

Evaluating pull request diffs with change penalties and acceptance thresholds is handled through a PPO-like reward selection process. It computes multi-objective rewards from CI results and reviews, penalizes overly risky diffs using configurable KL/change sensitivity, and safely merges the best-performing PR.

How does worktree isolation prevent cross-contamination when running parallel code optimizations?

Worktree isolation prevents cross-contamination by promoting generated optimization ideas into separate tasks that execute in isolated Git worktrees. This allows parallel rollouts of multiple candidate changes without affecting the main codebase until reward-based selection identifies the best PR for a safe merge.

Does this code evolution workflow support security hardening and performance optimization?

Yes, this code evolution workflow supports security hardening and performance optimization by iteratively exploring multiple candidate changes. It applies a convergent evolution loop that samples ideas, executes them in isolated worktrees, computes rewards, and merges the best change under change penalties and acceptance thresholds.

How do I configure multi-objective reward weighting for CI-based pull request selection?

You configure multi-objective reward weighting for CI-based pull request selection by setting your acceptance thresholds and KL/change sensitivity in the task context. The skill uses this PPO-like configuration to penalize risky diffs and compute rewards from CI results and reviews to select the best PR.

What happens to rejected worktrees after the reward selection process completes?

After the reward selection process completes, rejected worktrees undergo safe cleanup. The skill ensures that only the best-performing pull request is merged, while the isolated environments for rejected candidate changes are cleaned up to maintain repository hygiene during the continuous evolution loop.