Skip to content

chore(evals): add context7 setup skill evals - #217

Merged
kyle-sexton merged 1 commit into
mainfrom
chore/evals-context7-setup
Jul 16, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
chore/evals-context7-setup

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Jul 16, 2026 •

Copy link
Copy Markdown
Member

Summary

plugins/context7/skills/setup/ shipped no evals/evals.json. Per the marketplace playbook's Evals — warrant policy and consumer-verify recipe, a setup/configure skill is warrantable — it makes interview and write-config (here, install/upgrade + routing) decisions — with codebase-health/setup named as the model. This skill was unowned by prior sweeps: the wave-2 setup-action self-scan (#1462) didn't list context7, no plugin-family batch covers it, and the evals-backfill emitter (#1396) is no longer active.

What changed

Added plugins/context7/skills/setup/evals/evals.json (5 cases, rich form, validated against plugins/skill-quality/reference/evals.schema.json), grounded entirely in context7 setup's actual documented SKILL.md behavior — no invented behavior:

  1. trigger-assesses-state-before-acting — reads pre-computed CLI version + MCP tool-list presence, reports both plainly, no-ops when at least one path is already current.
  2. happy-path-installs-and-verifies-outdated-cli — installs/upgrades via npm install -g ctx7@latest, covers optional CONTEXT7_API_KEY handling and the Windows MSYS_NO_PATHCONV=1 gotcha, re-verifies before declaring done.
  3. refuses-to-write-api-key-into-tracked-files (refusal/guardrail) — declines to hardcode the API key into .mcp.json or any file; routes to the user's own shell profile/secret store.
  4. declines-ctx7-setup-and-skills-install (anti-pattern) — declines ctx7 setup / ctx7 skills install even on explicit request, since these fragment/clobber the lookup surface this plugin owns.
  5. routes-to-mcp-docs-instead-of-editing-mcp-json (guardrail) — never edits the consumer's .mcp.json directly; points to the reference doc since MCP config is the consumer's to curate.

Verification

  • node -e "JSON.parse(...)" on the new file — valid JSON
  • npx ajv-cli validate --spec=draft2020 -s plugins/skill-quality/reference/evals.schema.json -d plugins/context7/skills/setup/evals/evals.json — valid
  • bash plugins/skill-quality/scripts/check-skill.sh setup (scoped to plugins/context7/skills) — PASS, 0 errors
  • node scripts/validate-plugin-contracts.mjs — passed (16 setup skills detected, including this one)
  • node scripts/generate-catalog.mjs --check — catalog in sync

No plugin manifest, schema, or skill behavior touched — additive evals only.

Refs melodic-software/medley#1537

context7/setup makes interview-free but decision-bearing environment
calls (install/upgrade the CLI, route API-key handling to the user's
own env, decline ctx7 setup / skills install, gate MCP config edits on
consent) with no evals/evals.json to pin that contract. Five cases
cover trigger/routing, the happy-path CLI install-and-reverify, two
refusal/guardrail cases (API key never written to a file; ctx7 setup
and skills install declined even on request), and the MCP-config
consent anti-pattern, mirroring codebase-health/setup's model per the
marketplace playbook's warrant policy.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@kyle-sexton
kyle-sexton merged commit 525d89c into main Jul 16, 2026
1 check passed
@kyle-sexton
kyle-sexton deleted the chore/evals-context7-setup branch July 16, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant