Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/schematics/angular/ai-config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ import {
import { Schema as ConfigOptions, Tool } from './schema';

const AI_TOOLS: { [key in Exclude<Tool, Tool.None>]: ContextFileInfo } = {
agents: {
rulesName: 'AGENTS.md',
directory: '.',
},
gemini: {
rulesName: 'GEMINI.md',
directory: '.gemini',
Expand Down
5 changes: 5 additions & 0 deletions packages/schematics/angular/ai-config/index_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ describe('Ai Config Schematic', () => {
workspaceTree = await schematicRunner.runSchematic('workspace', workspaceOptions);
});

it('should create an AGENTS.md file', async () => {
const tree = await runConfigSchematic([ConfigTool.Agents]);
expect(tree.exists('AGENTS.md')).toBeTruthy();
});

it('should create a GEMINI.MD file', async () => {
const tree = await runConfigSchematic([ConfigTool.Gemini]);
expect(tree.exists('.gemini/GEMINI.md')).toBeTruthy();
Expand Down
6 changes: 5 additions & 1 deletion packages/schematics/angular/ai-config/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"value": "none",
"label": "None"
},
{
"value": "agents",
"label": "Agents.md [ https://agents.md/ ]"
},
{
"value": "claude",
"label": "Claude [ https://docs.anthropic.com/en/docs/claude-code/memory ]"
Expand Down Expand Up @@ -47,7 +51,7 @@
"description": "Specifies which AI tools to generate configuration files for. These file are used to improve the outputs of AI tools by following the best practices.",
"items": {
"type": "string",
"enum": ["none", "gemini", "copilot", "claude", "cursor", "jetbrains", "windsurf"]
"enum": ["none", "gemini", "copilot", "claude", "cursor", "jetbrains", "windsurf", "agents"]
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/schematics/angular/ng-new/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
"description": "Specifies which AI tools to generate configuration files for. These file are used to improve the outputs of AI tools by following the best practices.",
"items": {
"type": "string",
"enum": ["none", "gemini", "copilot", "claude", "cursor", "jetbrains", "windsurf"]
"enum": ["none", "gemini", "copilot", "claude", "cursor", "jetbrains", "windsurf", "agents"]
}
},
"fileNameStyleGuide": {
Expand Down