Skip to content

Comments

feat(schematics): add AI coding skills prompt to ng-add schematic#16945

Draft
Copilot wants to merge 3 commits intomasterfrom
copilot/add-ai-coding-skills-prompt
Draft

feat(schematics): add AI coding skills prompt to ng-add schematic#16945
Copilot wants to merge 3 commits intomasterfrom
copilot/add-ai-coding-skills-prompt

Conversation

Copy link
Contributor

Copilot AI commented Feb 23, 2026

Extends ng add igniteui-angular to optionally scaffold AI coding assistant instruction files into the user's project during installation.

Schema prompts

  • addAISkills — boolean, default true. Asks: "Would you like to add AI coding skills for your IDE?"
  • aiSkillsAgent — list selection: GitHub Copilot, Claude, Cursor, or custom path
  • customSkillsPath — string, no prompt (CLI-only --customSkillsPath=... for custom agent)

Agent → target path mapping

Agent Target path
copilot .github/copilot-instructions.md
claude CLAUDE.md
cursor .cursor/skills/igniteui-angular.md
custom user-provided path

Changes

  • projects/igniteui-angular/skills/igniteui-angular.md — source skills file shipped with the package (content mirrors .github/copilot-instructions.md)
  • schematics/ng-add/add-ai-skills.ts — reads source from ../../skills/igniteui-angular.md relative to __dirname, writes to agent-specific path, skips if target exists
  • schematics/ng-add/schema.json — three new properties with prompts
  • schematics/interfaces/options.ts — added addAISkills, aiSkillsAgent, customSkillsPath
  • schematics/ng-add/index.ts — chains addAISkills rule between addDependencies and installPackageJsonDependencies
  • gulpfile.jscopySchematics task now also copies skills/ directory to dist
  • index.spec.ts — 10 new tests: per-agent file creation, opt-out, no-overwrite for each agent, default fallback, empty custom path handling
Original prompt

This section details on the original issue you should resolve

<issue_title>Add AI coding skills prompt to cli-config schematic [testing the implementation in the library directly]</issue_title>
<issue_description>### Overview

Extend the ng add igniteui-angular schematic to optionally scaffold AI coding assistant instruction files into the user's project. During installation, the schematic should prompt the user: "Would you like to add AI coding skills for your IDE?" and upon confirmation, write the appropriate instruction files to the project root. This leverages the natural Angular ng add workflow to give new users zero-friction access to AI-assisted development with Ignite UI for Angular.

Background

  • The igniteui-angular package already has an ng-add schematic that currently handles dependency installation, CSS reset setup, and optional HammerJS configuration via schema.json prompts.

Requirements

  1. Add a new prompt to the ng-add schema:
    Add an addAISkills (or similar) boolean property with an x-prompt in schema.json:

    "Would you like to add AI coding skills for your IDE? (writes .github/copilot-instructions.md and/or CLAUDE.md)"

  2. Write AI instruction files to the user's project when confirmed:

    • .github/copilot-instructions.md — for GitHub Copilot
    • CLAUDE.md — for Anthropic Claude / Claude Code
    • .cursor/skills/ - for Cursor
  3. Do not overwrite existing files:

  • Cover only Copy->Paste of the Skills from, node_modules/igniteui-angular/skills into your_project_root/skills based on your Agent based:
    • Copilot
    • Claude
    • Cursor
  • If .github/copilot-instructions.md or CLAUDE.md already exist in the target project, skip writing (or merge/append) and log an informational message.
  1. Unit tests:

    • Test that the prompt default is handled correctly (both opt-in and opt-out paths).
    • Test that files are created with expected content when the user opts in.
    • Test that existing files are not overwritten.
    • Follow the existing test patterns (e.g., index.spec.ts using SchematicTestRunner, UnitTestTree).
  2. More info for Copilot:

  • Default value for the prompt: addAISkills should default to true

Acceptance Criteria

  • Running ng add igniteui-angular prompts the user: "Would you like to add AI coding skills for your IDE?"
  • On confirmation, you are asked to pick an Agent that will use the skill - Copilot, Clause, Cursor and a 4th option "add custom path"
  • Upon picking an agent add/update the corresponding folder that the agent uses for SKILL files. IF the custom path option is picked, use the manually typed in path.
  • The files are committed to the developers project as part of the normal project setup — no extra manual steps required.
  • From that point forward, AI coding agents (Copilot, Claude, etc.) automatically pick up the instructions.
  • Existing instruction files in the project are not overwritten.
  • The feature is covered by unit tests.
  • The prompt defaults to true to encourage adoption (or false if the team prefers opt-in).

References

<agent_instructions>implement this feature based on the description</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 23, 2026 12:24
Add addAISkills boolean prompt (default true) to ng-add schema that
allows users to scaffold AI instruction files for their IDE during
ng add igniteui-angular. Users can choose between Copilot, Claude,
Cursor, or a custom path. Existing files are not overwritten.

Includes unit tests covering all agent types, opt-out, no-overwrite,
default agent, and custom path scenarios.

Co-authored-by: zdrawku <11193764+zdrawku@users.noreply.github.com>
Co-authored-by: zdrawku <11193764+zdrawku@users.noreply.github.com>
Copilot AI changed the title [WIP] Add AI coding skills prompt to cli-config schematic feat(schematics): add AI coding skills prompt to ng-add schematic Feb 23, 2026
Copilot AI requested a review from zdrawku February 23, 2026 12:26
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.

Add AI coding skills prompt to cli-config schematic [testing the implementation in the library directly]

2 participants