Agent skill
loongflow
PEES (Plan-Execute-Evaluate-Summary) iterative problem-solving methodology with LoongFlow engine for complex tasks. Use when tasks need structured iteration, optimization, evolution, or when user mentions loongflow/PEES/PES.
Install this agent skill to your Project
npx add-skill https://github.com/baidu-baige/LoongFlow/tree/main/.claude/skills/loongflow
SKILL.md
LoongFlow — PEES Iterative Problem Solving
Use this skill when the user wants to iteratively improve a solution — optimization, evolution, structured retries with learning, or any task that benefits from multiple rounds of refinement rather than a one-shot attempt.
Step 1: Analyze and Advise
Before starting, analyze the task and advise the user on which mode to use. Present both options clearly:
Native PEES (recommended for simple tasks):
- Best for: single-file fixes, small features, bug fixes, focused improvements
- How it works: You run Plan-Execute-Evaluate-Summary iterations yourself within this conversation
- Pros: Fast, no setup, no external dependencies, transparent workspace with full history
- Cons: Limited to ~5 iterations, single-threaded, no population-based evolution
LoongFlow Engine (recommended for complex tasks):
- Best for: optimization problems, multi-file projects, tasks needing many iterations (50+), population-based evolution with diversity preservation
- How it works: Downloads the LoongFlow framework, creates a
general_agenttask, runs evolutionary optimization in the background, monitors via cron - Pros: Powerful evolutionary engine with multi-island model, Boltzmann selection, MAP-Elites diversity, checkpointing, cost tracking
- Cons: Requires
ANTHROPIC_API_KEYandANTHROPIC_BASE_URL, setup time, runs as background process - Source: https://github.com/baidu-baige/LoongFlow
Ask the user which mode they prefer before proceeding.
Step 2: Follow the Mode Guide
Once the user chooses, read the corresponding reference file for detailed instructions:
- Native PEES → Read
references/native-pees.mdand follow it - LoongFlow Engine → Read
references/engine-mode.mdand follow it
Architecture Reference
LoongFlow supports three tiers for agent projects:
| Tier | Description | Best For |
|---|---|---|
| Simple | ReAct loop + persistent memory | Chatbots, tool calling, format conversion |
| Standard | ReAct + self-evaluation + iterative improvement | Code review, document generation, data analysis |
| Advanced | PEES evolution loop with loongflow-memory | Math optimization, algorithm design, NP-hard problems |
Complexity Assessment
Task Analysis
├── Only needs conversation + simple tools? → SIMPLE
├── Needs file operations or code generation?
│ ├── Has numerical evaluation metric? → ADVANCED
│ └── No numerical metric? → STANDARD
└── Needs iterative optimization?
├── Has clear scoring function? → ADVANCED
└── Qualitative improvement? → STANDARD
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
code-analysis
Code review and debugging assistant. Identifies bugs, performance issues, security vulnerabilities, and suggests optimizations.
file-processing
Data file processing utilities for CSV, JSON, and text files. Provides helpers for reading, transforming, and validating structured data.
ubiquitous-language
Extract a DDD-style ubiquitous language glossary from the current conversation, flagging ambiguities and proposing canonical terms. Saves to UBIQUITOUS_LANGUAGE.md. Use when user wants to define domain terms, build a glossary, harden terminology, create a ubiquitous language, or mentions "domain model" or "DDD".
every-style-editor
This skill should be used when reviewing or editing copy to ensure adherence to Every's style guide. It provides a systematic line-by-line review process for grammar, punctuation, mechanics, and style guide compliance.
manage-codex
Autonomous Codex batch orchestrator. Use for "/manage-codex", "manage codex", "use codex", "dispatch to codex", or long-running Codex work.
Didn't find tool you were looking for?