You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add agent-cli package documentation and Amazon Q mention (#5359)
* Initial plan
* docs: add agent-cli package documentation and Amazon Q mention
* Apply suggestions from code review
* Update README.md
* Revise README for AI Agent Support and CLI Tool
Updated documentation to include AI agent support and CLI tool usage.
* Update README.md
* Revise README for AI Agent Support and CLI Tool
Updated documentation to include AI agent support and usage instructions for the @db-ux/agent-cli tool.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Maximilian Franzke <787658+mfranzke@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+23-6Lines changed: 23 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,27 +43,44 @@ designers, and content authors build, maintain, and scale best-of-class digital
43
43
## How to use
44
44
45
45
1.**Install your preferred package** via npm or yarn:
46
-
- For React: `npm i @db-ux/react-core-components`
47
-
- For Angular: `npm i @db-ux/ngx-core-components`
48
-
- For Vue: `npm i @db-ux/v-core-components`
49
-
- For Web Components: `npm i @db-ux/wc-core-components`
50
-
- For styling only: `npm i @db-ux/core-components`
46
+
- For React: `npm i @db-ux/react-core-components`
47
+
- For Angular: `npm i @db-ux/ngx-core-components`
48
+
- For Vue: `npm i @db-ux/v-core-components`
49
+
- For Web Components: `npm i @db-ux/wc-core-components`
50
+
- For styling only: `npm i @db-ux/core-components`
51
51
52
52
2.**Include the CSS styles** as described in the "Styling Dependencies" section of each package's `README`.
53
53
54
54
> **💡 Note**: All framework packages automatically include the necessary foundation styles - you don't need to install `@db-ux/core-foundations` separately!
55
55
56
56
We even provide some [examples of integrations](https://github.com/db-ux-design-system/examples).
57
57
58
+
## AI Agent Support
59
+
60
+
For developers using AI coding assistants like GitHub Copilot or Amazon Q, we provide the [`@db-ux/agent-cli`](https://www.npmjs.com/package/@db-ux/agent-cli) tool that automatically adds DB UX Design System documentation to your repository.
61
+
62
+
### Quick Start
63
+
64
+
Run this command in your repository:
65
+
66
+
```shell
67
+
npx @db-ux/agent-cli
68
+
```
69
+
70
+
This will create or update `.github/copilot-instructions.md` with component documentation based on your installed `@db-ux` packages, helping AI agents provide better suggestions.
71
+
72
+
📖 **[Learn more about `@db-ux/agent-cli` node package](packages/agent-cli/README.md)**
73
+
58
74
## Creating Custom Components
59
75
60
76
For developers looking to create custom components that extend the design system in their applications, we provide comprehensive guidance:
61
77
62
78
📖 **[Creating Custom Components Guide](docs/creating-custom-components.md)** - Learn how to build your own components using design system foundations
63
79
64
80
This guide covers:
81
+
65
82
-**Setup and Configuration**: Getting started with the design system packages
66
-
-**Design Principles**: Following DB UX Design System guidelines and best practices
83
+
-**Design Principles**: Following DB UX Design System guidelines and best practices
67
84
-**Component Patterns**: Structured approaches to building consistent components
68
85
-**Code Examples**: Practical implementations for cards, forms, navigation, and more
69
86
-**Framework Support**: Specific guidance for React, Vue, Angular, and vanilla HTML/CSS
Copy file name to clipboardExpand all lines: output/angular/README.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,17 +113,22 @@ There are 3 ways to use Events in Angular:
113
113
></db-input>
114
114
```
115
115
116
-
## Documentation for AI Agents
116
+
## AI Agent Support
117
117
118
-
We provide a documentation for every component in the DB UX Design System via `docs` folder.
119
-
To consume those documentation for AI Agents (currently GitHub Copilot) the best way is to copy the `docs` folder into your project.
118
+
For developers using AI coding assistants like GitHub Copilot or Amazon Q, we provide the [`@db-ux/agent-cli`](https://www.npmjs.com/package/@db-ux/agent-cli) tool that automatically adds DB UX Design System documentation to your repository.
120
119
121
-
We provide a [CLI tool (`@db-ux/agent-cli`)](https://www.npmjs.com/package/@db-ux/agent-cli) to do this automatically, which you can run with:
120
+
### Quick Start
121
+
122
+
Run this command in your repository:
122
123
123
124
```shell
124
125
npx @db-ux/agent-cli
125
126
```
126
127
128
+
This will create or update `.github/copilot-instructions.md` with component documentation based on your installed `@db-ux` packages, helping AI agents provide better suggestions.
129
+
130
+
📖 **[Learn more about `@db-ux/agent-cli` node package](packages/agent-cli/README.md)**
131
+
127
132
## Deutsche Bahn brand
128
133
129
134
As we'd like to perfectly support our users and customers on their digital journey, the usage of Deutsche Bahn brand and trademarks are bound of clear guidelines and restrictions even if being used with the code that we're providing with this product; Deutsche Bahn fully reserves all rights regarding the Deutsche Bahn brand, even though that we're providing the code of DB UX Design System products free to use and release it under the Apache 2.0 license.
Copy file name to clipboardExpand all lines: output/react/README.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,17 +59,22 @@ import { DBButton } from '@db-ux/react-core-components';
59
59
...
60
60
```
61
61
62
-
## Documentation for AI Agents
62
+
## AI Agent Support
63
63
64
-
We provide a documentation for every component in the DB UX Design System via `docs` folder.
65
-
To consume those documentation for AI Agents (currently GitHub Copilot) the best way is to copy the `docs` folder into your project.
64
+
For developers using AI coding assistants like GitHub Copilot or Amazon Q, we provide the [`@db-ux/agent-cli`](https://www.npmjs.com/package/@db-ux/agent-cli) tool that automatically adds DB UX Design System documentation to your repository.
66
65
67
-
We provide a [CLI tool (`@db-ux/agent-cli`)](https://www.npmjs.com/package/@db-ux/agent-cli) to do this automatically, which you can run with:
66
+
### Quick Start
67
+
68
+
Run this command in your repository:
68
69
69
70
```shell
70
71
npx @db-ux/agent-cli
71
72
```
72
73
74
+
This will create or update `.github/copilot-instructions.md` with component documentation based on your installed `@db-ux` packages, helping AI agents provide better suggestions.
75
+
76
+
📖 **[Learn more about `@db-ux/agent-cli` node package](packages/agent-cli/README.md)**
77
+
73
78
## Deutsche Bahn brand
74
79
75
80
As we'd like to perfectly support our users and customers on their digital journey, the usage of Deutsche Bahn brand and trademarks are bound of clear guidelines and restrictions even if being used with the code that we're providing with this product; Deutsche Bahn fully reserves all rights regarding the Deutsche Bahn brand, even though that we're providing the code of DB UX Design System products free to use and release it under the Apache 2.0 license.
Copy file name to clipboardExpand all lines: output/stencil/README.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,17 +74,22 @@ If you don't have it already, add a VS Code settings folder and file at the root
74
74
}
75
75
```
76
76
77
-
## Documentation for AI Agents
77
+
## AI Agent Support
78
78
79
-
We provide a documentation for every component in the DB UX Design System via `docs` folder.
80
-
To consume those documentation for AI Agents (currently GitHub Copilot) the best way is to copy the `docs` folder into your project.
79
+
For developers using AI coding assistants like GitHub Copilot or Amazon Q, we provide the [`@db-ux/agent-cli`](https://www.npmjs.com/package/@db-ux/agent-cli) tool that automatically adds DB UX Design System documentation to your repository.
81
80
82
-
We provide a [CLI tool (`@db-ux/agent-cli`)](https://www.npmjs.com/package/@db-ux/agent-cli) to do this automatically, which you can run with:
81
+
### Quick Start
82
+
83
+
Run this command in your repository:
83
84
84
85
```shell
85
86
npx @db-ux/agent-cli
86
87
```
87
88
89
+
This will create or update `.github/copilot-instructions.md` with component documentation based on your installed `@db-ux` packages, helping AI agents provide better suggestions.
90
+
91
+
📖 **[Learn more about `@db-ux/agent-cli` node package](packages/agent-cli/README.md)**
92
+
88
93
## Deutsche Bahn brand
89
94
90
95
As we'd like to perfectly support our users and customers on their digital journey, the usage of Deutsche Bahn brand and trademarks are bound of clear guidelines and restrictions even if being used with the code that we're providing with this product; Deutsche Bahn fully reserves all rights regarding the Deutsche Bahn brand, even though that we're providing the code of DB UX Design System products free to use and release it under the Apache 2.0 license.
Copy file name to clipboardExpand all lines: output/vue/README.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,17 +95,22 @@ Both Inputs in this example do the same:
95
95
</template>
96
96
```
97
97
98
-
## Documentation for AI Agents
98
+
## AI Agent Support
99
99
100
-
We provide a documentation for every component in the DB UX Design System via `docs` folder.
101
-
To consume those documentation for AI Agents (currently GitHub Copilot) the best way is to copy the `docs` folder into your project.
100
+
For developers using AI coding assistants like GitHub Copilot or Amazon Q, we provide the [`@db-ux/agent-cli`](https://www.npmjs.com/package/@db-ux/agent-cli) tool that automatically adds DB UX Design System documentation to your repository.
102
101
103
-
We provide a [CLI tool (`@db-ux/agent-cli`)](https://www.npmjs.com/package/@db-ux/agent-cli) to do this automatically, which you can run with:
102
+
### Quick Start
103
+
104
+
Run this command in your repository:
104
105
105
106
```shell
106
107
npx @db-ux/agent-cli
107
108
```
108
109
110
+
This will create or update `.github/copilot-instructions.md` with component documentation based on your installed `@db-ux` packages, helping AI agents provide better suggestions.
111
+
112
+
📖 **[Learn more about `@db-ux/agent-cli` node package](packages/agent-cli/README.md)**
113
+
109
114
## Deutsche Bahn brand
110
115
111
116
As we'd like to perfectly support our users and customers on their digital journey, the usage of Deutsche Bahn brand and trademarks are bound of clear guidelines and restrictions even if being used with the code that we're providing with this product; Deutsche Bahn fully reserves all rights regarding the Deutsche Bahn brand, even though that we're providing the code of DB UX Design System products free to use and release it under the Apache 2.0 license.
Copy file name to clipboardExpand all lines: packages/agent-cli/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ This is useful in monorepo setups where your DB UX packages might be installed i
38
38
39
39
### Best practices
40
40
41
-
We've had the best experience with GitHub Copilot when using the following settings:
41
+
We've had the best experience with GitHub Copilot and Amazon Q when using the following settings:
42
42
43
43
- Agent mode works best for code generation and may also offer the best developer experience.
44
44
- Regarding the provided models, GPT-4o seemed to strike the best balance between "used tokens" and performance, although "Claude Sonnet 4" is still better. However, you run out of tokens quite quickly with this model.
0 commit comments