Skip to content

ci: add scheduled gh skill duplicate and compatibility checks - #1914

Merged
kdinev merged 4 commits into
dkalinov/gh-skill-metadatafrom
dkalinov/gh-skill-ci-guards
Dec 3, 2026
Merged

kdinev merged 4 commits into
dkalinov/gh-skill-metadatafrom
dkalinov/gh-skill-ci-guards

Conversation

@dkalinovInfra

Copy link
Copy Markdown
Contributor

Description

Part 3 of 3 of gh skill compatibility for ig ai-config. Stacked on the PR that writes the gh skill metadata; the base branch is that PR's branch, so this diff shows only this part.

gh skill is a preview command and can change the metadata it reads without notice. This adds a scheduled workflow (Mondays, and on demand) with two checks in scripts/check-gh-skill.mjs. Both need the network, so they are not part of npm test.

  • duplicates: fails when gh skill search lists one skill name in more than one IgniteUI repository.
  • compat: runs ig ai-config in temporary projects and fails when gh skill list or gh skill update --dry-run does 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's cli input) tests a published CLI instead of the build.

Related Issue

None.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring / code cleanup
  • Build / CI configuration 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

  • I have tested my changes locally (npm run test)
  • I have built the project successfully (npm run build)
  • I have run the linter (npm run lint)
  • I have added/updated tests as needed
  • My changes do not introduce new warnings or errors

Additional Context

Run locally on Windows 11, Node 24, gh 2.105.0:

  • compat passes: 21 checks.
  • compat --cli igniteui-cli@latest fails, as it should: the released CLI writes no metadata yet.
  • Negative tests: a wrong computed tree SHA and a wrong SHA in a bundled skills-source.json both make compat fail with exit code 1.
  • A bad --cli value is rejected and a missing gh is reported.

Not verified:

  • The workflow itself has not run. workflow_dispatch needs the file on the default branch. Both jobs use the workflow's github.token with contents: read; whether gh skill search and gh skill update work with that token is unknown until the first run.
  • duplicates fails today: master still publishes the 17 framework skill names, and IgniteUI/service-desk-mini-mcp also publishes the four Blazor names. It can pass only after part 1 is on master, the search index refreshes, and that repository is fixed.
  • The script was not run on Linux.

🤖 Generated with Claude Code

@dkalinovInfra
dkalinovInfra added this pull request to stack #1915 December 1, 2026 07:24
Comment thread scripts/check-gh-skill.mjs Fixed
@coveralls

coveralls commented Dec 1, 2026 •

Copy link
Copy Markdown

Coverage Status

Coverage is 95.709% — dkalinov/gh-skill-ci-guards into dkalinov/gh-skill-metadata. No base build found for dkalinov/gh-skill-metadata.

@dkalinovInfra
dkalinovInfra force-pushed the dkalinov/gh-skill-ci-guards branch from a398644 to 1e77b25 Compare December 1, 2026 08:32
Copilot AI balanced review requested due to automatic review settings December 1, 2026 08:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread scripts/check-gh-skill.mjs Resolved
Comment thread scripts/check-gh-skill.mjs Resolved
@Marina-L-Stoyanova

Copy link
Copy Markdown
Contributor

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:

  • In service-desk-mini-mcp (preferred): move the skills to .claude/skills/ or .agents/skills/. Those locations are ignored by gh skill search, while still allowing agents to discover and use the skills. Running ig ai-config --framework blazor would also generate the skills with tracking metadata that points back to igniteui-blazor.
  • In this PR: add service-desk-mini-mcp to an allowlist in scripts/check-gh-skill.mjs. This would make the job pass, but the outdated skill copies would still appear in search results.

@dkalinovInfra

dkalinovInfra commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor Author

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:

  • In service-desk-mini-mcp (preferred): move the skills to .claude/skills/ or .agents/skills/. Those locations are ignored by gh skill search, while still allowing agents to discover and use the skills. Running ig ai-config --framework blazor would also generate the skills with tracking metadata that points back to igniteui-blazor.
  • In this PR: add service-desk-mini-mcp to an allowlist in scripts/check-gh-skill.mjs. This would make the job pass, but the outdated skill copies would still appear in search results.

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.
gh skill search still returns the old paths at the moment, so the duplicates job will keep failing on those four names until the search index picks up the change. Your comment also made me check outside the organization: the same job now reports, as warnings only, repositories of other owners that publish our skill names.

@dkalinovInfra
dkalinovInfra force-pushed the dkalinov/gh-skill-ci-guards branch from 39f230c to 1ba4f93 Compare December 2, 2026 10:32
@Marina-L-Stoyanova Marina-L-Stoyanova self-assigned this Dec 2, 2026
dkalinovInfra and others added 4 commits December 2, 2026 16:22
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>
@kdinev
kdinev force-pushed the dkalinov/gh-skill-ci-guards branch from 1ba4f93 to 54fab1a Compare December 2, 2026 14:22
@kdinev
kdinev merged commit 64b7bb0 into master Dec 3, 2026
4 checks passed
@kdinev
kdinev deleted the dkalinov/gh-skill-ci-guards branch December 3, 2026 08:48
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.

6 participants