# Agent Plugin Eval

> Audit, score, and compare portable Agent Plugin repositories against the official specification. Evidence-cited 0–100 scorecard, conformance gate, release blockers, and optional TypeSafe Jev integration.

- Category: Quality
- License: Apache-2.0
- Install: `npx skills add fabricioctelles/skills -s agent-plugin-eval`
- SKILL.md: https://skilldev.pro/.well-known/agent-skills/agent-plugin-eval/SKILL.md

URL: https://skilldev.pro/en/skills/agent-plugin-eval/

## Overview

Audits repositories containing portable Agent Plugins against the [official Agent Plugins specification](https://agent-plugins.org). Produces a 0–100 scorecard with evidence cited by `file:line` or JSON pointer, a conformance gate (PASS/PARTIAL/FAIL), and the list of blockers standing between the plugin and a release.

It evaluates **portable conformance**, not one client's features. A client-native manifest — `.codex-plugin/plugin.json`, `.claude/settings.json`, `.cursor/mcp.json` — does not replace the required root `plugin.json`. A plugin that is excellent for one client can still fail the portable standard, and the skill reports both facts without averaging them away.

## When to Use

- Audit a plugin repository before publishing
- Check `plugin.json` or `mcp.json` conformance
- Validate the Agent Skills bundled in the package
- Assess MCP server configuration for portability and safety
- Identify release blockers
- Compare two agent plugins side by side

## Installation

```bash
npx skills add https://github.com/fabricioctelles/skills -s agent-plugin-eval
```

## Safety boundary

The audit is **static only**. The skill does not run plugin code, hooks, install scripts, package managers, MCP servers, or networked tests without explicit user authorization. Suspected credential values are redacted and labeled *suspected* — a heuristic hit lowers the security score and demands remediation review, but on its own it does not become a confirmed-credential `FAIL` gate.

## 18 criteria across 4 axes

| Axis | Criteria | Focus |
|------|---------:|-------|
| **1 — Portable conformance** | 4 | Exactly one root `plugin.json`, canonical schema, closed metadata model, fixed discovery locations, version coherence |
| **2 — Components and integration** | 6 | Agent Skills conformance and quality, `mcp.json` validity, stdio server portability, remote transport, extension isolation |
| **3 — Safety and resilience** | 4 | Path containment after symlink resolution, least secret exposure, component independence, install without hidden side effects |
| **4 — Product quality** | 4 | Cohesion, documentation, practical utility, release readiness |

Criteria carry 1x, 2x, or 3x weight, and the ones that do not apply are recorded as `NA` rather than penalized. Scoring is deterministic, via `scripts/score.py`:

```bash
python3 scripts/score.py --gate partial 1:90:3 2:80:3 3:NA:2
```

## Conformance gates

| Gate | When | Score cap |
|------|------|----------:|
| `PASS` | No normative violation found | none |
| `PARTIAL` | Non-fatal manifest deviation, or an invalid/skipped component | 59 |
| `FAIL` | Fatal manifest or package-root failure, root escape, or confirmed embedded credential | 39 |

The uncapped score stays visible next to the final one, so design quality is never confused with a release-blocking conformance failure.

## How It Works

```text
1. resolve the plugin root (local path, or shallow clone of a Git URL)
2. load the governing rules (1.0.0 snapshot, or the published spec)
3. inventory every package path  <-- dotfiles, symlinks, Git-ignored files
4. deterministic scan (inspect_plugin.py) as leads, not verdict
5. review every skill and every mcpServers entry
6. score with score.py and apply the gate
```

Every scan finding is confirmed in the source before it reaches the report. A client happening to accept a construct never weakens a normative finding.

## Gotchas it handles

- The v1 portable core is exactly Agent Skills and MCP servers. Hooks, commands, agents, apps, and marketplaces are client-specific unless placed in a valid extension namespace
- A missing `skills/` or `mcp.json` is not an error. A present path of the wrong filesystem kind is an invalid component
- One invalid skill must not be reported as if every independent component were invalid
- `${PLUGIN_ROOT}` and `${PLUGIN_DATA}` expand only in MCP `args`, `env` values, and `cwd` — never in `command`, URLs, or headers

## Sources

- [Agent Plugins — official specification](https://agent-plugins.org)
- [Agent Skills — specification](https://agentskills.io/specification.md)

📄 [Full documentation on GitHub](https://github.com/fabricioctelles/skills/blob/main/skills/agent-plugin-eval/SKILL.md)

---

## TypeSafe Jev Integration

This skill supports optional integration with [TypeSafe Jev](https://typesafe.ai) — a judgment engine providing calibrated probability assessments for subjective quality criteria.

### When to Use Jev

| Evaluation | Use Jev? | Method |
|------------|----------|--------|
| Axes 1-3 conformance | No | Deterministic (`inspect_plugin.py`) |
| Axis 4 product quality | **Yes** | Score (UX, docs, errors) |
| Axis 2 design quality | **Yes** | Score (schema, naming, API) |
| Gate classification | **Yes** | Noul (pass/fail) |
| Secret detection | **Yes** | Noul (suspected/not_suspected) |
| Quality checklist | **Yes** | Noul (present/missing) |

### Available Questions

- **7 Score questions**: UX coherence, documentation clarity, error handling quality, validation robustness, schema design, naming consistency, API elegance
- **19 Noul questions**: gates G1-G4, secret detection (4), quality checklist (7), component validity (4)

### Discovery Protocol

```python
from typesafe import jev_available

if jev_available():
    from typesafe import Score, Noul
    # Use Jev for subjective criteria
else:
    # Fall back to heuristic scoring
```

When Jev is unavailable, the skill uses:
- **Quality scoring**: heuristic checks (file existence, size, pattern matching)
- **Gate classification**: deterministic JSON/schema validation
- **Secret detection**: regex pattern matching (higher false positive rate)

📄 [See jev_questions.json](https://github.com/fabricioctelles/skills/blob/main/skills/agent-plugin-eval/scripts/jev_questions.json) | [See jev-integration.md](https://github.com/fabricioctelles/skills/blob/main/skills/agent-plugin-eval/references/jev-integration.md)
