К основному содержанию
плагин CX Codex GP ChatGPT официальный · OpenAI

plugin-eval · openai — плагин для Codex: оценка скиллов и плагинов

Считает локальный отчёт по скиллу или плагину: почему такая оценка, что править первым, сколько уходит токенов.

Открыть на GitHub

Что делает plugin-eval

plugin-eval существует в двух видах: локальный CLI на Node.js и плагин для Codex. Со стороны чата он принимает обычную просьбу и сам подбирает нужную команду, а со стороны терминала выполняет её явно — analyze, explain-budget, measurement-plan, benchmark, report, compare.

Три команды работают только с локальными файлами и пишут отчёты на диск: analyze, explain-budget и measurement-plan. Живые замеры делает benchmark — он запускает сессии codex exec в изолированном временном рабочем каталоге и складывает артефакты в .plugin-eval/runs/. Перед запуском стоит прочитать сгенерированный конфиг бенчмарка, особенно если проект или промпты пришли не от вас. Сгенерированные артефакты .plugin-eval/ и локальные node_modules/ лучше не коммитить.

Для CLI нужен Node.js версии >=20. Пакет помечен как private, поэтому ставится он из локальной копии, а не из публичного npm. Если не хотите глобальную ссылку, запускайте скрипт напрямую: node ./scripts/plugin-eval.js --help.

Какие задачи решает

  • понять, почему скилл получил такую оценку
  • выбрать, что править в первую очередь
  • посчитать расход токенов до живого прогона
  • замерить реальное потребление на сессиях Codex
  • сравнить результат до и после правок

Примеры запросов агенту

  • $plugin-eval Evaluate this skill.
  • $plugin-eval Why did this score that way?
  • $plugin-eval Help me benchmark this plugin.

Из того же набора304

Весь набор →
ngs-analysis Ведёт от BCL или FASTQ до готового пайплайна: проверяет инструменты, задаёт минимум вопросов и собирает отчёт о прогоне. CX Codex GP ChatGPT ★ 7 596звёзд репо airtable Подключает базы Airtable к чату: спрашивайте по данным, создавайте и правьте записи, не переключаясь на другой экран. CX Codex GP ChatGPT ★ 7 596звёзд репо datadog Плагин подключает телеметрию Datadog к ChatGPT и Codex: спрашиваешь о сервисах обычными словами, находишь проблемы и правишь их, не уходя из чата. CX Codex GP ChatGPT ★ 7 596звёзд репо codex-security Плагин от OpenAI добавляет в Codex рабочие сценарии по безопасности: сканирование, анализ и разбор инцидентов прямо в чате. CX Codex GP ChatGPT ★ 7 596звёзд репо expo Набор официальных скиллов Expo для Codex: сборка интерфейсов, деплой в сторы, обновление SDK и починка зависимостей. CX Codex GP ChatGPT ★ 7 596звёзд репо test-android-apps Плагин для Codex и ChatGPT, который прогоняет Android-приложение в эмуляторе: воспроизводит баг, снимает скриншоты, смотрит UI и логи. CX Codex GP ChatGPT ★ 7 596звёзд репо build-macos-apps Плагин для Codex с набором скиллов под разработку локальных macOS-приложений: сборка, запуск, тесты, подпись и логирование. CX Codex GP ChatGPT ★ 7 596звёзд репо cloudflare Скиллы и слэш-команды для разработки на Cloudflare: Workers, Wrangler, Agents SDK. Плюс официальный MCP-сервер Cloudflare API. CX Codex GP ChatGPT ★ 7 596звёзд репо

Другие версии plugin-eval

Похожие

eval-driven-dev официальный github Настраивает сквозную оценку Python-приложений с LLM: критерии, тестовые данные и проверку результатов. Нужен при QA, бенчмарках и поиске неверных ответов. 3 900установок eval Alireza Rezvani Скилл сравнивает результаты агентов в сессии AgentHub и выдаёт рейтинг: по метрике из вашей команды или по оценке LLM-судьи. Пригодится, когда несколько агентов решили одну задачу и пора выбрать победителя. 1 408установок agent-eval affaan-m Сравнивает кодинг-агентов на ваших задачах по точности, стоимости и времени. Помогает выбрать инструмент на реальных тестах без опоры на субъективные впечатления. CX Codex +1 4 500установок tooling-engineer VoltAgent Community Проектирует и пишет CLI-утилиты, генераторы кода, плагины для IDE и сборочные скрипты. Пригодится, когда нужно автоматизировать рутину разработчиков внутри команды. 257установок dbg theodo-group Скилл учит агента работать с CLI-отладчиком dbg: ставить брейкпоинты, шагать по коду, смотреть переменные и править JS/TS без перезапуска. CX Codex +1 620установок expo-skill-eval expo Оценивает скиллы Expo от срабатывания триггеров до сборки и скриншотов на эмуляторах iOS и Android в Expo Go. Пригодится авторам скиллов при тестировании генерации кода. CX Codex +1 21 800установок

Рядом в теме «Настройка агента: память, контекст, субагенты»

Все плагины по теме «Настройка агента: память, контекст, субагенты» →

Вопросы о plugin-eval

Как установить plugin-eval в Codex?

Сначала сделайте симлинк каталога плагина в ~/plugins: mkdir -p ~/plugins ~/.agents/plugins и ln -sfn /absolute/path/to/plugins/plugin-eval ~/plugins/plugin-eval. Затем добавьте запись plugin-eval в ~/.agents/plugins/marketplace.json и перезапустите Codex, чтобы он перечитал локальный маркетплейс.

Что делает plugin-eval?

Разбирает локальный скилл или плагин и показывает, из чего сложилась оценка, что исправить первым и как обстоят дела с бюджетом токенов. Живой бенчмарк запускает сессии codex exec в изолированном временном каталоге.

Что нужно для работы CLI?

Node.js версии >=20. Пакет помечен private, так что ставить его нужно из локальной копии репозитория, а не из npm. Глобальную команду plugin-eval даёт npm link из корня плагина.

Исходный текст

plugin-eval · MIT
# Plugin Eval

`plugin-eval` is both:

- a local Node.js CLI
- a Codex plugin bundle

It helps engineers evaluate a local skill or plugin, understand why it scored that way, see what to fix first, explain token budgets, measure real usage, and decide what to do next without having to memorize a command sequence first.

## What This Plugin Contains

- `scripts/plugin-eval.js`: the CLI entrypoint exposed as `plugin-eval`
- `.codex-plugin/plugin.json`: the Codex plugin manifest
- `skills/`: the plugin's chat-facing skills

The plugin is designed to feel chat-first in Codex, while still routing to explicit local commands you can run yourself.

## Install As A CLI Tool

### Requirements

- Node.js `>=20`

This package is currently marked `"private": true`, so the expected install path is from a local checkout rather than the public npm registry.

### Run It Without Installing Globally

From the plugin root (`plugins/plugin-eval` in this monorepo):

```bash
node ./scripts/plugin-eval.js --help
```

You can use that form for every command in this README.

Examples:

```bash
node ./scripts/plugin-eval.js analyze ./skills/plugin-eval --format markdown
node ./scripts/plugin-eval.js analyze . --format markdown
```

### Install A Global `plugin-eval` Command

From the plugin root (`plugins/plugin-eval` in this monorepo):

```bash
npm link
```

After that, `plugin-eval` should be available on your `PATH`:

```bash
plugin-eval --help
plugin-eval analyze ./skills/plugin-eval --format markdown
```

If you prefer not to create a global link, keep using `node ./scripts/plugin-eval.js ...` directly.

## CLI Usage

### Start From Chat

`start` is the chat-first router:

```bash
plugin-eval start <path> --request "<chat request>" --format markdown
```

Examples:

```bash
plugin-eval start ~/.codex/skills/game-dev --request "Evaluate this skill." --format markdown
plugin-eval start ~/.codex/skills/game-dev --request "Why did this score that way?" --format markdown
plugin-eval start ~/.codex/skills/game-dev --request "What should I fix first?" --format markdown
plugin-eval start ~/.codex/skills/game-dev --request "Measure the real token usage of this skill." --format markdown
plugin-eval start . --request "Help me benchmark this plugin." --format markdown
```

`plugin-eval start` keeps the workflow chat-first:

- it recognizes the beginner request
- it explains why that workflow fits
- it shows the first local command that will run
- it lists the full local sequence when there are multiple steps
- it highlights one recommended next step for skimming engineers

### Core Commands

```bash
plugin-eval analyze <path> --format markdown
plugin-eval explain-budget <path> --format markdown
plugin-eval measurement-plan <path> --format markdown
plugin-eval init-benchmark <path>
plugin-eval benchmark <path> --format markdown
plugin-eval report <result.json> --format markdown
plugin-eval compare <before.json> <after.json> --format markdown
```

Compatibility aliases still work:

- `plugin-eval guide` -> `plugin-eval start`
- `plugin-eval recommend-measures` -> `plugin-eval measurement-plan`

### Recommended Workflow

1. Start with `plugin-eval start <path> --request "<natural request>" --format markdown`.
2. Run `analyze` when you want the static local report.
3. Run `explain-budget` before live measurement if cost is the concern.
4. Run `init-benchmark`, review and edit the config, then run `benchmark` when you want a live Codex CLI benchmark.
5. Feed observed usage back into `analyze` or `measurement-plan`.

### Local-First Behavior

- `analyze`, `explain-budget`, and `measurement-plan` are deterministic local workflows.
- `benchmark` runs real `codex exec` sessions in isolated temp workspaces.
- Benchmark runs preserve rich artifacts under `.plugin-eval/runs/` and write observed usage when telemetry is available.

## Safety And Execution Notes

- `analyze`, `explain-budget`, and `measurement-plan` inspect local files and write local reports only.
- `init-benchmark` creates starter benchmark configuration under `.plugin-eval/` for the target you choose.
- `benchmark` runs a live local Codex CLI workflow in an isolated temp workspace and writes artifacts under `.plugin-eval/`.
- Review the generated benchmark configuration before running it, especially when the target project or prompts did not come from you.
- Keep generated `.plugin-eval/` artifacts and local `node_modules/` directories out of commits unless you explicitly want to version them.

## How It Works As A Codex Plugin

This directory is also a Codex plugin bundle. The plugin manifest lives at [`.codex-plugin/plugin.json`](./.codex-plugin/plugin.json), and it exposes the skills under [`skills/`](./skills).

That means you can use it from Codex chat with natural prompts once the plugin is installed, for example:

- `$plugin-eval Evaluate this skill.`
- `$plugin-eval Give me an analysis of the game dev skill.`
- `$plugin-eval Why did this score that way?`
- `$plugin-eval What should I fix first?`
- `$plugin-eval Help me benchmark this plugin.`

The plugin side is responsible for the chat UX and routing. The CLI side is responsible for the local commands and reports.

## Manual Plugin Installation

Codex plugin discovery is marketplace-based. The plugin itself lives in a folder with a `.codex-plugin/plugin.json`, and Codex discovers it through a `marketplace.json` file.

The key path rule is:

- in `~/.agents/plugins/marketplace.json`, `./plugins/plugin-eval` resolves to `~/plugins/plugin-eval`
- in `<workspace>/.agents/plugins/marketplace.json`, `./plugins/plugin-eval` resolves to `<workspace>/plugins/plugin-eval`

### Install For Your User Account

This makes the plugin available across workspaces.

1. Symlink this plugin directory into `~/plugins`:

```bash
mkdir -p ~/plugins ~/.agents/plugins
ln -sfn /absolute/path/to/plugins/plugin-eval ~/plugins/plugin-eval
```

2. Create or update `~/.agents/plugins/marketplace.json`:

```json
{
  "name": "local",
  "interface": {
    "displayName": "Local Plugins"
  },
  "plugins": [
    {
      "name": "plugin-eval",
      "source": {
        "source": "local",
        "path": "./plugins/plugin-eval"
      },
      "policy": {
        "installation": "AVAILABLE",
        "authentication": "ON_INSTALL"
      },
      "category": "Developer Tools"
    }
  ]
}
```

If you already have a marketplace file, append the `plugin-eval` entry instead of replacing the whole file.

3. Restart Codex so it reloads the local marketplace.

### Install For One Workspace Only

This keeps the plugin scoped to a single repo or workspace.

1. In the target workspace, symlink this plugin directory into `plugins/`:

```bash
mkdir -p /path/to/workspace/plugins /path/to/workspace/.agents/plugins
ln -sfn /absolute/path/to/plugins/plugin-eval /path/to/workspace/plugins/plugin-eval
```

2. Create or update `/path/to/workspace/.agents/plugins/marketplace.json`:

```json
{
  "name": "local-workspace",
  "interface": {
    "displayName": "Workspace Plugins"
  },
  "plugins": [
    {
      "name": "plugin-eval",
      "source": {
        "source": "local",
        "path": "./plugins/plugin-eval"
      },
      "policy": {
        "installation": "AVAILABLE",
        "authentication": "ON_INSTALL"
      },
      "category": "Developer Tools"
    }
  ]
}
```

3. Restart Codex in that workspace if the plugin does not appear immediately.

This repository already includes a workspace marketplace entry for `plugin-eval` in [`../../.agents/plugins/marketplace.json`](../../.agents/plugins/marketplace.json). If you reuse that file elsewhere, make sure `./plugins/plugin-eval` exists relative to the workspace root, or update the `source.path` accordingly.

## Use Cases

Use `plugin-eval` when you want to:

- evaluate a local skill directory or `SKILL.md`
- evaluate a local plugin root that contains `.codex-plugin/plugin.json`
- explain why a score came out the way it did
- rank what to fix first
- estimate budget before running live usage
- benchmark starter scenarios and compare before/after results

## References

- [Chat-first workflows](./references/chat-first-workflows.md)
- [Observed usage inputs](./references/observed-usage.md)
- [Technical design](./references/technical-design.md)

© OpenAI Codex · MIT · openai/plugins

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой