Pareto Frontier Analysis logo

Pareto Frontier Analysis

Organization
cxcscmu
pareto-frontier-analysis

Identify Pareto-optimal solutions from multi-objective optimization results.

Overview

Publishercxcscmu
RepositorySkillLearnBench
Skill namepareto-frontier-analysis
Stars
91
Forks
7
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by cxcscmu on GitHub. Read the source before you install it.

Installation

Install the Pareto Frontier Analysis AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/cxcscmu/SkillLearnBench/tree/main/skills/b1-one-shot-claude-haiku-4-5/dbscan-parameter-tuning/pareto-frontier-analysis
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cxcscmu/SkillLearnBench.git /tmp/SkillLearnBench
mkdir -p .claude/skills
cp -r /tmp/SkillLearnBench/skills/b1-one-shot-claude-haiku-4-5/dbscan-parameter-tuning/pareto-frontier-analysis .claude/skills/pareto-frontier-analysis
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Pareto Frontier Analysis in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Pareto Frontier Analysis on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Pareto Frontier Analysis is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Pareto Frontier Analysis

Overview

The Pareto frontier identifies non-dominated solutions where you cannot improve one objective without worsening another. For this task: maximize F1 score and minimize delta distance.

Key Concepts

  • Dominated: A solution is dominated if another solution has both better F1 AND better (lower) delta
  • Pareto-optimal: A solution is not dominated by any other solution in the set
  • Pareto frontier: The set of all Pareto-optimal solutions

Implementation

python
import numpy as np
import pandas as pd

def compute_pareto_frontier(results_df):
    """
    Find Pareto-optimal solutions from results.

    Args:
        results_df: DataFrame with columns 'f1' and 'delta'

    Returns:
        pareto_indices: Boolean array marking Pareto-optimal solutions
    """
    f1_scores = results_df['f1'].values
    deltas = results_df['delta'].values

    n = len(results_df)
    is_pareto = np.ones(n, dtype=bool)

    for i in range(n):
        # Check if solution i is dominated
        for j in range(n):
            if i == j:
                continue

            # Solution j dominates solution i if:
            # - j has better F1 (higher) AND
            # - j has better delta (lower)
            if f1_scores[j] > f1_scores[i] and deltas[j] < deltas[i]:
                is_pareto[i] = False
                break

    return is_pareto

Alternative: Faster Implementation with NumPy

python
def compute_pareto_frontier_fast(f1_scores, deltas):
    """Fast vectorized computation of Pareto frontier."""
    n = len(f1_scores)
    is_pareto = np.ones(n, dtype=bool)

    # For each solution, check if any other solution dominates it
    for i in range(n):
        dominated = (f1_scores > f1_scores[i]) & (deltas < deltas[i])
        if np.any(dominated):
            is_pareto[i] = False

    return is_pareto

Visualization (Optional)

python
import matplotlib.pyplot as plt

def plot_pareto_frontier(results_df, pareto_mask):
    """Visualize the Pareto frontier."""
    plt.figure(figsize=(10, 6))

    # Plot all points
    plt.scatter(results_df[~pareto_mask]['delta'],
                results_df[~pareto_mask]['f1'],
                alpha=0.3, label='Dominated', s=30)

    # Plot Pareto points
    pareto_df = results_df[pareto_mask]
    plt.scatter(pareto_df['delta'], pareto_df['f1'],
                color='red', label='Pareto-optimal', s=100, marker='*')

    plt.xlabel('Delta (Average Distance)')
    plt.ylabel('F1 Score')
    plt.title('Pareto Frontier')
    plt.legend()
    plt.grid(True, alpha=0.3)
    plt.show()

Notes

  • Handle NaN values in delta carefully (exclude from comparison or handle explicitly)
  • The Pareto frontier typically forms a curved boundary in multi-objective space
  • Points on the frontier represent trade-off solutions

Frequently asked questions

What does the Pareto Frontier Analysis AI skill do?

Identify Pareto-optimal solutions from multi-objective optimization results.

Why use Pareto Frontier Analysis on TypingMind?

Because you install it once and use it with any model. Pareto Frontier Analysis is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Pareto Frontier Analysis in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/cxcscmu/SkillLearnBench/tree/main/skills/b1-one-shot-claude-haiku-4-5/dbscan-parameter-tuning/pareto-frontier-analysis. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Pareto Frontier Analysis?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Pareto Frontier Analysis?

As many as you like. As long as a model supports skills, you can use Pareto Frontier Analysis with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Pareto Frontier Analysis AI skill free?

Yes. It is published on GitHub by cxcscmu under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇