Repository navigation
chore(evals): add context7 setup skill evals - #217
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
plugins/context7/skills/setup/shipped noevals/evals.json. Per the marketplace playbook's Evals — warrant policy and consumer-verify recipe, asetup/configureskill is warrantable — it makes interview and write-config (here, install/upgrade + routing) decisions — withcodebase-health/setupnamed as the model. This skill was unowned by prior sweeps: the wave-2 setup-action self-scan (#1462) didn't listcontext7, 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 againstplugins/skill-quality/reference/evals.schema.json), grounded entirely in context7 setup's actual documentedSKILL.mdbehavior — no invented behavior: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.happy-path-installs-and-verifies-outdated-cli— installs/upgrades vianpm install -g ctx7@latest, covers optionalCONTEXT7_API_KEYhandling and the WindowsMSYS_NO_PATHCONV=1gotcha, re-verifies before declaring done.refuses-to-write-api-key-into-tracked-files(refusal/guardrail) — declines to hardcode the API key into.mcp.jsonor any file; routes to the user's own shell profile/secret store.declines-ctx7-setup-and-skills-install(anti-pattern) — declinesctx7 setup/ctx7 skills installeven on explicit request, since these fragment/clobber the lookup surface this plugin owns.routes-to-mcp-docs-instead-of-editing-mcp-json(guardrail) — never edits the consumer's.mcp.jsondirectly; points to the reference doc since MCP config is the consumer's to curate.Verification
node -e "JSON.parse(...)"on the new file — valid JSONnpx ajv-cli validate --spec=draft2020 -s plugins/skill-quality/reference/evals.schema.json -d plugins/context7/skills/setup/evals/evals.json— validbash plugins/skill-quality/scripts/check-skill.sh setup(scoped toplugins/context7/skills) — PASS, 0 errorsnode scripts/validate-plugin-contracts.mjs— passed (16 setup skills detected, including this one)node scripts/generate-catalog.mjs --check— catalog in syncNo plugin manifest, schema, or skill behavior touched — additive evals only.
Refs melodic-software/medley#1537