Repository navigation
Add the check-lockfile skill; version 0.2.0 - #6
Merged
Merged
Conversation
check-lockfile checks every dependency of a composer.lock or package-lock.json against the registry with check_dependencies, also through a group. jq filters extract the pinned versions with the rules of oa check (path packages, links, bundled packages, workspace folders and git or file dependencies are left out), the list goes to the tool in calls of at most 1000, and the answer is reported by status: held with its reason, not_found, and unknown as "not cached yet", not as blocked. Servers without the tool get a check of the direct dependencies through check_availability. Co-Authored-By: Claude Fable 5.2 <[email protected]>
orcamedia
added a commit
that referenced
this pull request
Nov 13, 2026
) An eval suite for the skills (`claude plugin eval`), stacked on #6 because one case covers `check-lockfile`. ## What it is Four prompts that run in a real Claude Code session against **mocked** OpenArtifact tools, so no server is needed. The tool schemas were saved from a server built from `main`, and the answers are shaped like the server's own, including its untrusted-data notice. Each case is scored by free checks (which tool was called, a pattern in the answer or in the files) and a few judged criteria. | Case | Checks | |---|---| | `blocked-version` | a curation-blocked version is refused with the reason and never worked around | | `lockfile-unknown-is-not-blocked` | one `check_dependencies` call; `unknown` is reported as "not cached yet", not as blocked | | `blocked-repository-403` | a 403 from a blocked repository isn't blamed on missing access | | `configure-keeps-the-token-out` | setup never writes the token into a file or repeats it in a command | ## It already found something On its first run, `configure-keeps-the-token-out` failed. The agent kept the token out of `composer.json`, but repeated the full token in the command it told the user to run. `configure-project` now says never to repeat a token the user pasted: write `<TOKEN>` and suggest replacing it. After that change the case passed twice. ## Results All four cases pass (score 1.00), single-arm, 1 to 2 runs each. Cost is about $0.10 per run at list price. ## Not in CI Runs use the caller's Claude credentials and cost money, so CI doesn't run them. The README says how to run one case or the whole suite, and asks for a run before a release and after changing a skill. `evals/results/` is git-ignored, and `evals/**` is covered in `REUSE.toml`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Areef <[email protected]> Co-authored-by: Claude Fable 5.2 <[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.
Version 0.2.0: the
check-lockfileskill, using thecheck_dependenciestool that landed in openartifact/openartifact#473.What the skill tells the agent
/repos/<name>in its package manager config. A group is fine, sincecheck_dependenciesanswers for one.jq, not by reading the lockfile into context. The filters apply the rules ofoa check(feat(cli): oa check, the dependencies of a lockfile against a repository openartifact#476): path packages, links, bundled packages, workspace folders, and git or file dependencies are left out. There are instructions for whenjqis missing, and for lockfileVersion 1.check_dependencieswith at most 1000 entries per call.held, with the reason, rule id oruntiltime, and the deciding repository;not_found;unknown, explained as "the proxy hasn't cached this package yet", not as a block.check-dependencyfor an available version.Servers without the tool (any release before #473) get a check of the direct dependencies through
check_availability, and the agent says the whole lockfile couldn't be checked.Checked
jqcommands exactly as written in the skill against the parser fixtures of #476. They return the same lists as the Go parser (4 and 5 dependencies).main: the extracted list from acomposer.lockwent tocheck_dependencieson a Composer group. Guzzle 6.5.8 came back held ("EOL, use 7.x"), 7.8.1 available, and two uncached packages unknown.scripts/check-plugin.pypasses andreuse lintreports compliance. CI's Agent Skills job validates the new skill.Not tested: a full agent session using the skill. The tool is on
mainbut not in a server release yet.🤖 Generated with Claude Code