Repository navigation
Make the live skills-registry test resilient to catalog renames - #129
Merged
Merged
Conversation
`fetches_real_registry_and_a_skill` hard-coded the skill name `motoko`,
which the live registry reorganized into `writing-motoko` /
`migrating-motoko-actors` / `troubleshooting-motoko-migrations`. The
assertion (and the `get("motoko")` fetch) then fail against a perfectly
healthy registry, turning CI red on every branch.
Stop pinning one churny name: assert the catalog parses and is
non-empty, require at least one of a few CORE skills to be present
(tolerating any single rename), and fetch that one to check the
markdown path. Keeps the live coverage without the standing
false-failure.
Co-Authored-By: Claude Opus 5 <[email protected]>
There was a problem hiding this comment.
Pull request overview
Updates the live skills-registry test to tolerate catalog renames while preserving registry parsing and markdown-fetch validation.
Changes:
- Verifies the live catalog is non-empty.
- Selects any available core skill and fetches its non-empty markdown.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
MRmarioruci
approved these changes
Aug 12, 2026
aterga
pushed a commit
that referenced
this pull request
Aug 12, 2026
#129 landed the same repair on main from the other direction, so the two versions of `fetches_real_registry_and_a_skill` collided. Resolved wholly in main's favour — its test is now byte-identical here. Both dropped the pinned `motoko` name; main's requires one of a core set (`internet-identity`/`icp-cli`/`cycles-management`) to be present rather than fetching whichever entry sorts first, which checks something a little stronger. No reason to relitigate a design that is already reviewed and merged. What this branch still carries is the half #129 did not touch: the stale `motoko` references that are visible to MODELS and users, and that make `icp_get_skill("motoko")` fail against the live registry — * `icp_get_skill`, `icp_create_canister`, `icp_install_code` tool descriptions, and the server instructions; * the two schema doc comments in `src/skills.rs`; * the README tool table. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01ELxH7B4rYsEmrLf8tW4Uog
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.
Problem
skills::tests::fetches_real_registry_and_a_skillhard-codes the skill namemotoko. The live registry (skills.internetcomputer.org) reorganized its catalog and splitmotokointowriting-motoko,migrating-motoko-actors, andtroubleshooting-motoko-migrations— so the baremotokoname is gone.The registry itself is healthy (27 skills, valid JSON), but the hard-coded assertion and the
get("motoko")fetch both fail against it, turning CI red onmainand every branch cut from it. This is a false failure — nothing in the product is broken.Fix
Stop pinning one churny name. The test now:
internet-identity,icp-cli,cycles-management) to be present — resilient to any single future rename;SKILL.mdto keep the markdown-URL coverage.Verified against the live registry:
No behavior change — test-only.