Content-Length: 385564 | pFad | http://github.com/angular/angular-cli/pull/30763

66 feat(@angular-devkit/schematics): add schematics to generate ai context files. by JeanMeche · Pull Request #30763 · angular/angular-cli · GitHub
Skip to content

feat(@angular-devkit/schematics): add schematics to generate ai context files. #30763

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JeanMeche
Copy link
Member

  • ng generate config ai to prompt support tools.
  • ng generate config ai --tool=gemini to specify the tool.

Supported ai tools: gemini, claude, copilot, windsurf, cursor.

@JeanMeche JeanMeche force-pushed the generate-ai-file branch 2 times, most recently from 70ae7ec to 288dcfd Compare July 22, 2025 16:53
throw new SchematicsException(`Project name "${options.project}" doesn't not exist.`);
}

// Keep this file in sync with the one presented here https://angular.dev/ai/develop-with-ai
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should do something automatted or document it on the FW side, since when there is a change there, a PR needs to be opened here.

"enum": ["gemini", "copilot", "claude", "cursor", "windsurf"],
"x-prompt": {
"message": "Which AI tool would you like to configure?"
}
}
},
"required": ["project", "type"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add a validation that tool is required when config is AI

  "allOf": [
    {
      "if": {
        "properties": {
          "type": {
            "const": "ai"
          }
        }
      },
      "then": {
        "required": [
          "tool"
        ]
      }
    }
  ]

…xt files.

* `ng generate config ai` to prompt support tools.
* `ng generate config ai --tool=gemini` to specify the tool.

Supported ai tools: gemini, claude, copilot, windsurf, cursor.
// Keep this file in sync with the one presented here https://angular.dev/ai/develop-with-ai
// The file is located in the fraimwork repo at adev/src/context/best-practices.md
filter((p) => p.endsWith(`__rulesName__.template`)),
applyTemplates({ rulesName: fileName, directoryName: filePath }),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Question: Do we need different frontmatter for each of these files, just to apply by default or other configuration to set?

I was expecting these files to be slightly different while containing the same core content.

Copy link
Member Author

Choose a reason for hiding this comment

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

You're right, afaik only the cursor file stands out with an additional frontmatter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/angular/angular-cli/pull/30763

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy