book-prompt-optimizer

Optimizes AI remaster prompts via score-and-iterate loop with linter and critic agent.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/shuff57/agent-evo --skill book-prompt-optimizer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: book-prompt-optimizer
Source: https://github.com/shuff57/agent-evo/tree/main/skills/.archive/book-prompt-optimizer
Command: npx skills add https://github.com/shuff57/agent-evo --skill book-prompt-optimizer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires scripts/workflows/lint_remaster.py, scripts/workflows/optimize_prompt.py, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses systematic failures in AI remaster outputs by automatically optimizing the remaster prompt using a linter as the scorer and a critic agent to patch failing rules.

Core Features & Use Cases

  • Automated Prompt Optimization: Runs a score-and-iterate loop using a linter and critic agent.
  • Quality Checks: Ensures remaster outputs meet quality standards.
  • Use Case: Ideal for batches of remastered sections where multiple sections are failing linter rules.

Quick Start

Run the optimization process with the command: python3 scripts/workflows/optimize_prompt.py --prompt prompts/remaster-chapter.md --target 95 --iterations 6 --provider ollama --model kimi-k2.5:cloud

Frequently Asked Questions about book-prompt-optimizer

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

FAQPage Schema
How do I automatically optimize AI remaster prompts to fix linter failures?

Automatically optimize AI remaster prompts by running them through a score-and-iterate loop with a linter and critic agent. This process systematically patches failing rules to ensure remaster outputs meet quality standards.

What is the best way to process batches of AI-generated content sections failing quality checks?

Batch processing of remastered sections is handled by running an automated optimization loop targeting linter rules. This iteratively scores and patches prompt instructions until the desired quality threshold is met.

How do I run the prompt optimization loop using a local model provider?

Run the optimization process by executing the optimize_prompt.py script with arguments for your target score, iteration limit, provider, and model. For example, use the ollama provider flag with a specified model to start the loop.

Do I need a critic agent to patch failing linter rules in my remaster workflow?

A critic agent is required to patch failing linter rules during the prompt optimization process. The skill relies on both the linter and critic agent to execute the score-and-iterate loop for quality assurance.

Can I set specific quality score targets and iteration limits for prompt optimization?

You can set specific quality score targets and iteration limits by passing the target and iterations arguments to the optimization script. The loop runs until the target score is reached or the iteration limit is hit.

Why do my AI-generated content sections systematically fail linter rules during remastering?

Systematic failures in AI remaster outputs often stem from poorly structured remaster prompts. This skill addresses these failures by automatically optimizing the prompt instructions using a linter as the scorer and a critic agent to patch rules.