Skip to content

Commit dfc3c3c

Browse files
Copilotmfranzke
andauthored
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>
1 parent bd3d6ff commit dfc3c3c

File tree

6 files changed

+60
-23
lines changed

6 files changed

+60
-23
lines changed

README.md

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,27 +43,44 @@ designers, and content authors build, maintain, and scale best-of-class digital
4343
## How to use
4444

4545
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`
5151

5252
2. **Include the CSS styles** as described in the "Styling Dependencies" section of each package's `README`.
5353

5454
> **💡 Note**: All framework packages automatically include the necessary foundation styles - you don't need to install `@db-ux/core-foundations` separately!
5555
5656
We even provide some [examples of integrations](https://github.com/db-ux-design-system/examples).
5757

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+
5874
## Creating Custom Components
5975

6076
For developers looking to create custom components that extend the design system in their applications, we provide comprehensive guidance:
6177

6278
📖 **[Creating Custom Components Guide](docs/creating-custom-components.md)** - Learn how to build your own components using design system foundations
6379

6480
This guide covers:
81+
6582
- **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
6784
- **Component Patterns**: Structured approaches to building consistent components
6885
- **Code Examples**: Practical implementations for cards, forms, navigation, and more
6986
- **Framework Support**: Specific guidance for React, Vue, Angular, and vanilla HTML/CSS

output/angular/README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,22 @@ There are 3 ways to use Events in Angular:
113113
></db-input>
114114
```
115115

116-
## Documentation for AI Agents
116+
## AI Agent Support
117117

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.
120119

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:
122123

123124
```shell
124125
npx @db-ux/agent-cli
125126
```
126127

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+
127132
## Deutsche Bahn brand
128133

129134
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.

output/react/README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,22 @@ import { DBButton } from '@db-ux/react-core-components';
5959
...
6060
```
6161

62-
## Documentation for AI Agents
62+
## AI Agent Support
6363

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.
6665

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:
6869

6970
```shell
7071
npx @db-ux/agent-cli
7172
```
7273

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+
7378
## Deutsche Bahn brand
7479

7580
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.

output/stencil/README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,22 @@ If you don't have it already, add a VS Code settings folder and file at the root
7474
}
7575
```
7676

77-
## Documentation for AI Agents
77+
## AI Agent Support
7878

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.
8180

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:
8384

8485
```shell
8586
npx @db-ux/agent-cli
8687
```
8788

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+
8893
## Deutsche Bahn brand
8994

9095
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.

output/vue/README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,22 @@ Both Inputs in this example do the same:
9595
</template>
9696
```
9797

98-
## Documentation for AI Agents
98+
## AI Agent Support
9999

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.
102101

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:
104105

105106
```shell
106107
npx @db-ux/agent-cli
107108
```
108109

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+
109114
## Deutsche Bahn brand
110115

111116
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.

packages/agent-cli/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ This is useful in monorepo setups where your DB UX packages might be installed i
3838

3939
### Best practices
4040

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:
4242

4343
- Agent mode works best for code generation and may also offer the best developer experience.
4444
- 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

Comments
 (0)