feat(ai-config): Add skills for Blazor through ai-config command#1688
Conversation
… it to update-skills build
There was a problem hiding this comment.
Pull request overview
Adds first-class Blazor support to the CLI’s ai-config flow by introducing a hidden Blazor framework template and wiring skill-file updates/detection so Blazor projects can copy bundled AI skills/instructions and keep them up to date.
Changes:
- Added Blazor template scaffolding (hidden framework +
igbproject library) with anai-configpartial template containing AGENTS + skills. - Added Blazor detection via
*.csprojscanning and extended AI skills copying logic/tests accordingly. - Extended
update-skillsscript and repo submodules to include Blazor skills source.
Reviewed changes
Copilot reviewed 41 out of 41 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| spec/unit/detect-framework-spec.ts | Adds unit tests for Blazor .csproj detection. |
| spec/unit/ai-skills-spec.ts | Adds tests ensuring Blazor skills are copied from template files and can be detected without local config. |
| scripts/update-skills.ts | Adds Blazor mapping so skills can be synced from the Blazor doc repo into the Blazor ai-config template. |
| packages/core/util/detect-framework.ts | Introduces detectBlazorFromCsproj() helper. |
| packages/core/util/ai-skills.ts | Integrates Blazor detection and template-based skills/instructions resolution. |
| packages/core/types/Framework.ts | Adds optional hidden?: boolean to allow hiding frameworks from prompts/choices. |
| packages/core/templates/BaseTemplateManager.ts | Updates framework listing APIs to optionally exclude hidden frameworks by default. |
| packages/cli/templates/blazor/.editorconfig | Adds Blazor template-local EditorConfig settings. |
| packages/cli/templates/blazor/index.ts | Registers a hidden Blazor framework entry for the CLI template manager. |
| packages/cli/templates/blazor/igb/index.ts | Adds the Blazor igb project library wrapper. |
| packages/cli/templates/blazor/igb/projects/ai-config/index.ts | Adds a hidden Blazor ai-config partial template exposing templatePaths for copying files. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/AGENTS.md | Adds Blazor AGENTS instructions file (template root). |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/AGENTS.md | Adds Blazor AGENTS instructions file (skills folder copy). |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/README.md | Documents available Blazor skills and where to place instruction files per AI tool. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-components/SKILL.md | Adds Blazor components skill hub (routing/protocol + references). |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-components/references/setup.md | Adds Blazor setup/registration reference for components skill. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-components/references/mcp-setup.md | Adds MCP setup reference for igniteui-cli in components skill. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-components/references/layout.md | Adds layout/navigation reference for components skill. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-components/references/layout-manager.md | Adds Dock/Tile manager reference for components skill. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-components/references/form-controls.md | Adds form controls reference for components skill. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-components/references/feedback.md | Adds dialogs/snackbar/toast/banner reference for components skill. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-components/references/data-display.md | Adds data-display reference for components skill. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-components/references/charts.md | Adds charts/DV reference for components skill. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-grids/SKILL.md | Adds Blazor grids skill hub (routing/protocol + references). |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-grids/references/structure.md | Adds grid structure/setup/sorting/filtering/selection reference. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-grids/references/features.md | Adds grid features reference (grouping/export/toolbar/etc.). |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-grids/references/types.md | (Not shown in diff excerpt) Adds grid types reference if included in PR. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-grids/references/data-operations.md | Adds programmatic sort/filter/group reference. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-grids/references/editing.md | Adds editing/validation reference. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-grids/references/paging-remote.md | Adds paging/remote ops/virtualization reference. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-grids/references/state.md | Adds state persistence reference. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-grids/references/sizing.md | Adds sizing/cell spacing reference. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-grids/references/mcp-setup.md | Adds MCP setup reference for grids skill. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-theming/SKILL.md | Adds Blazor theming skill hub + MCP-driven workflow. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-theming/references/mcp-setup.md | Adds theming MCP setup reference. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-theming/references/common-patterns.md | Adds common theming patterns reference. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-generate-from-image-design/SKILL.md | Adds image-to-view generation skill hub for Blazor. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-generate-from-image-design/references/gotchas.md | Adds Blazor gotchas/pitfalls reference for image-driven generation. |
| packages/cli/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-generate-from-image-design/references/component-mapping.md | Adds component mapping reference for image-driven generation. |
| .gitmodules | Adds Blazor igniteui-blazor submodule under igniteui-doc-mcp. |
Comments suppressed due to low confidence (1)
packages/core/util/ai-skills.ts:224
resolveAgentsContent()prefers Blazor whenever a*.csprojis present, even ifpackage.jsonclearly indicates an Angular/React project. This can cause the wrongAGENTS.mdtemplate to be copied in mixed repos. It would be safer to reuse the same framework resolution logic asresolveSkillsRoots()(or factor out a shared resolver) so AGENTS selection and skills selection stay consistent and only pick Blazor as a fallback when other frameworks cannot be determined.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
damyanpetev
left a comment
There was a problem hiding this comment.
- Changelong + Readme updates :)
There was a problem hiding this comment.
Since this is being refactored anyway, can you please drop the blazor detection tests in this spec entirely.
Instead, please add tests for the blazor project partial like the other frameworks have that guarantees we have the expected structure :)
- Created a new markdown file detailing common issues and solutions when using Ignite UI Angular components, including Sass conflicts, chart properties, theming pitfalls, and dark theme specifics. Update Ignite UI Angular grids documentation - Added a reference to grid sizing in the SKILL.md file. - Increased the height of the hierarchical grid example from 600px to 800px. - Set the height of the sorting example grid to 500px. Create sizing reference for Ignite UI Angular grids - Introduced a new markdown file covering grid width, height, column sizing, and cell spacing control, including key rules for effective grid sizing. Refactor Ignite UI Angular theming documentation - Removed outdated contributing guidelines from the SKILL.md file. - Deleted the contributing reference file as it was no longer needed.
Description
Adding ai-config template for Blazor. This will enable copy of skill files for Blazor through ai-config command. Also add Blazor to update-skills build , so we can get latest skill files.
Related Issue
Closes #
Type of Change
Affected Packages
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