Repository navigation
ci: add scheduled gh skill duplicate and compatibility checks - #1914
Conversation
a398644 to
1e77b25
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Compatibility checks can falsely pass because pin matching accepts version prefixes and bundled refs are validated against generated output rather than the tested CLI’s independent source record.
2 open issues
What changed in this PR
Adds scheduled and on-demand checks for ig ai-config compatibility with the preview gh skill command, keeping network-dependent validation separate from npm test.
Changes:
- Detects skill names published by multiple IgniteUI repositories.
- Checks skill tracking, pinning, refs, and tree SHAs for bundled and package-provided skills.
- Supports testing either the locally built CLI or a specified published CLI package.
| File | Description |
|---|---|
scripts/check-gh-skill.mjs |
Implements duplicate-source and compatibility checks using temporary projects. |
.github/workflows/gh-skill-check.yml |
Runs both checks weekly and on demand, with an optional published CLI input. |
Review effort: Balanced
e1f2d33 to
8e22aab
Compare
|
The weekly duplicates job will fail from its very first run, even after #1912 is merged. IgniteUI/service-desk-mini-mcp is a public Blazor sample application that contains a top-level skills/ directory with copies of the four igniteui-blazor-* skills. Because gh skill search treats any public repository containing skills//SKILL.md as a skill source, the duplicate check finds each skill name in both repositories and fails. That copy is also stale. The skills were added in the repository's initial application commit (2026-06-09) and have not been updated since. None of the tree SHAs match igniteui-blazor 1.0.1, so users installing from that repository receive outdated versions. In addition, gh skill update will compare against the sample repository rather than the canonical igniteui-blazor source. Possible fixes:
|
I went with your preferred fix: the skills in service-desk-mini-mcp are moved to .agents/skills/ in IgniteUI/service-desk-mini-mcp#3, which is now merged. I only moved the files and did not update them to the latest igniteui-blazor versions. That repository shows the result of a benchmark run, so the skills stay the ones the run used. Its README now says they are a snapshot and links to igniteui-blazor for the current skills. |
39f230c to
1ba4f93
Compare
scripts/check-gh-skill.mjs has two modes, run weekly and on demand by the new gh-skill-check workflow: - duplicates: fails when gh skill search lists one skill name in more than one IgniteUI repository, or when the result list may be cut. - compat: runs ig ai-config in temporary projects and fails when gh skill list and gh skill update do not track the written skills, or when an installed package version has no matching tag and trees. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…he gh skill check The compat check now writes the bundled skills of all four frameworks and fails when a recorded ref or tree SHA differs from the repository. A check prints ok only when it added no failure. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- The gh skill update output is matched as plain text instead of through regular expressions built from the skill name and version, which CodeQL reported as incomplete escaping. The whole pinned notice is matched, so a longer version (22.3.10 for 22.3.1) no longer passes, and github-pinned in each written SKILL.md must equal the installed version. - Bundled skills are compared with the ref in the skills-source.json of this checkout instead of with each other. For a published CLI (--cli) the record is not at hand, so the ref must be a release tag. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…UI skill names Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
1ba4f93 to
54fab1a
Compare

Description
Part 3 of 3 of
gh skillcompatibility forig ai-config. Stacked on the PR that writes thegh skillmetadata; the base branch is that PR's branch, so this diff shows only this part.gh skillis a preview command and can change the metadata it reads without notice. This adds a scheduled workflow (Mondays, and on demand) with two checks inscripts/check-gh-skill.mjs. Both need the network, so they are not part ofnpm test.duplicates: fails whengh skill searchlists one skill name in more than one IgniteUI repository.compat: runsig ai-configin temporary projects and fails whengh skill listorgh skill update --dry-rundoes not track the written skills, or when their ref and tree SHAs differ from the framework repository. It covers the bundled copies of all four frameworks and the latest package of Angular, React and Web Components.--cli <npm spec>(the workflow'scliinput) tests a published CLI instead of the build.Related Issue
None.
Type of Change
Affected Packages
None: the change is in
scripts/and.github/workflows/.igniteui-cli(packages/cli)@igniteui/cli-core(packages/core)@igniteui/angular-templates(packages/igx-templates)@igniteui/angular-schematics(packages/ng-schematics)@igniteui/mcp-server(packages/igniteui-mcp)Checklist
npm run test)npm run build)npm run lint)Additional Context
Run locally on Windows 11, Node 24,
gh2.105.0:compatpasses: 21 checks.compat --cli igniteui-cli@latestfails, as it should: the released CLI writes no metadata yet.skills-source.jsonboth makecompatfail with exit code 1.--clivalue is rejected and a missingghis reported.Not verified:
workflow_dispatchneeds the file on the default branch. Both jobs use the workflow'sgithub.tokenwithcontents: read; whethergh skill searchandgh skill updatework with that token is unknown until the first run.duplicatesfails today:masterstill publishes the 17 framework skill names, andIgniteUI/service-desk-mini-mcpalso publishes the four Blazor names. It can pass only after part 1 is onmaster, the search index refreshes, and that repository is fixed.🤖 Generated with Claude Code