Skip to content

Commit f95b28e

Browse files
authored
docs: revamp mcp prompt library #https://github.com/telerik/blazor/is… (#3453)
* docs: revamp mcp prompt library #telerik/blazor#12900 * docs: add link to prompts #telerik/blazor#12900 * docs: add pr review suggestions #telerik/blazor#12900 * docs: add pr review suggestions part2 #telerik/blazor#12900
1 parent 9a2412e commit f95b28e

7 files changed

Lines changed: 172 additions & 42 deletions

File tree

ai/_meta.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
title: AI Tools
2+
category: ai
3+
tag: updated

ai/agentic-ui-generator/_meta.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
title: Agentic UI Generator
2+
tag: updated

ai/agentic-ui-generator/getting-started.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ slug: agentic-ui-generator-getting-started
66
position: 10
77
tags: telerik,blazor,ai,agentic,ui,generator,installation
88
published: True
9+
tag: updated
910
---
1011

1112
# Getting Started with the Agentic UI Generator

ai/agentic-ui-generator/prompt-library.md

Lines changed: 77 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,72 +6,107 @@ slug: agentic-ui-generator-prompt-library
66
position: 20
77
tags: telerik,blazor,ai,agentic,ui,generator,prompts
88
published: True
9+
tag: updated
910
---
1011

1112
# Agentic UI Generator Prompt Library
1213

1314
This article provides example prompts that demonstrate the capabilities of the Telerik UI for Blazor Agentic UI Generator. Use these as inspiration for building modern web applications with speed and precision.
1415

16+
>tip [Go straight to the prompts ⬇️](#general-prompts)
17+
1518
## How to Use the Prompts
1619

1720
All prompts in this library target the Agentic UI Generator. The `#telerik_ui_generator` handle explicitly calls the generator, but you can also use natural language descriptions and let your AI assistant automatically recognize when to use the UI Generator or one of the other specialized tools.
1821

19-
1. Browse the prompt library to find a prompt that suits your needs.
22+
1. Browse the [prompt library](#general-prompts) to find a prompt that suits your needs.
2023
2. Copy the prompt text (including the `#telerik_ui_generator` handle if present).
2124
3. (optional) Customize the prompt as needed for your specific use case. Make sure the changes comply with the [intended use](slug:agentic-ui-generator-getting-started#using-the-agentic-ui-generator) for the Agentic UI Generator.
2225
4. Run the prompt against your AI-powered IDE.
2326

2427
>warning Always double-check the code and solutions proposed by any AI-powered tool before applying them to your project.
2528
26-
## Sample Prompts
29+
## General Prompts
2730

28-
Here are some example prompts that demonstrate the capabilities of the Agentic UI Generator tools.
31+
This section provides examples of common UI creation tasks that demonstrate the capabilities of the Agentic UI Generator. The UI generator is the main tool for building full UI flows, which coordinates all other tools to deliver complete solutions.
2932

30-
### UI Generator Prompts
33+
```prompt Project Setup
34+
I have created an empty application that now needs a login screen and an admin dashboard. Add a login form with email/password fields and validation using Telerik UI for Blazor components. After a successful login, redirect to an admin dashboard page featuring a sidebar menu and a main content area displaying key metrics and recent activity.
35+
```
36+
```Razor
37+
```
3138

32-
The UI generator is the main tool for building full UI flows, which coordinates all other tools to deliver complete solutions.
39+
```prompt System Dashboard Section
40+
Create a new page using the existing top navigation and footer. In the middle, add 3 rows with 3 responsive columns each. The top row shows system health KPIs for CPU, memory, and error counts. The middle rows include a Log Stream panel, a Telerik LineChart of API response times, and a BarChart of requests per service. The bottom row contains a Deployment History table, an Alerts panel, and a list of open tickets.
41+
```
42+
```Razor
43+
```
3344

34-
<div style="display: grid; gap: 10px; grid-template-columns: 1fr 1fr;">
45+
```prompt Appointments Dashboard
46+
Create a responsive appointments dashboard in the Schedule.razor page using a 3x2 grid layout. The top row contains a Telerik dropdown to filter appointments by doctor and a list of today's upcoming appointments. The middle row displays a month-view scheduler showing the filtered appointments. The bottom row shows a bar chart visualizing doctor occupancy rates and a pie chart showing appointment status distribution (completed, pending, canceled).
47+
```
48+
```Razor
49+
```
3550

36-
````TEXT.skip-repl
37-
Create a new page using the existing top navigation and footer. In the middle, add 3 rows with 3 responsive columns each. The top row shows system health KPIs for CPU, memory, and error counts. The middle rows include a Log Stream panel, a Line Chart of API response times, and a Bar Chart of requests per service. The bottom row contains a Deployment History table, an Alerts panel, and a list of open tickets.
38-
````
51+
```prompt Responsive Page
52+
Create a product catalog page with a responsive CSS layout that uses Telerik components. The layout should display product cards. Add a Telerik toolbar with filtering options, and expandable detail view for each product that work seamlessly on mobile, tablet, and desktop.
53+
```
54+
```Razor
55+
```
3956

40-
````TEXT.skip-repl
41-
Build a landing page similar to the automotive industry template with a hero section, feature highlights, statistics, and a call-to-action section.
42-
````
57+
```prompt Landing Page
58+
Build a landing page similar to the "Automotive Industry" Telerik page ui template with a hero section, feature highlights, statistics, and a call-to-action section.
59+
```
60+
```Razor
61+
```
4362

44-
</div>
63+
## Tool-Specific Prompts
64+
65+
This section provides prompt examples for directly calling individual specialized tools for more granular control.
4566

4667
### Layout Assistant Prompts
4768

48-
The Layout Assistant tool applies suitable CSS utility classes from the Progress Design System for styling and positioning elements. You can use it, when you need help with spacing, typography, colors, layout structure, or transforms.
69+
The Layout Assistant tool applies suitable CSS utility classes from the [Progress Design System](https://www.telerik.com/design-system/docs/) for styling and positioning elements. You can use it, when you need help with spacing, typography, colors, layout structure, or transforms.
4970

50-
````TEXT.skip-repl
51-
Update the existing page layout by adding a new section in the middle of the page. In that added section, a Dashboard Card displays summary KPIs (revenue, active users, growth rate), next to a Compact Card showing a recent alert or message. Make the page responsive with proper spacing and typography.
52-
````
71+
```prompt Responsive Layout
72+
#telerik_layout_assistant Update the existing page layout by adding a new section in the middle of the page. In that added section, a Dashboard Card displays summary KPIs (revenue, active users, growth rate), next to a Compact Card showing a recent alert or message. Make the page responsive with proper spacing and typography.
73+
```
74+
```Razor
75+
```
5376

5477
### Component Assistant Prompts
5578

5679
The Component Assistant tool answers questions and generates code related to Telerik UI for Blazor components. Use this tool when you need to implement or configure specific UI for Blazor components like Grid, Charts, Forms, etc.
5780

58-
````TEXT.skip-repl
59-
Create a Grid component with paging, sorting, and filtering. Include column configuration for a product catalog with name, price, category, and actions. Ensure the Grid is properly integrated into a card layout with responsive design and consistent spacing.
60-
````
81+
```prompt Interactive Data Page
82+
#telerik_component_assistant Create a Grid component with paging, sorting, and filtering. Include column configuration for a product catalog with name, price, category, and actions. Ensure the Grid is properly integrated into a card layout with responsive design and consistent spacing.
83+
```
84+
```Razor
85+
```
86+
87+
```prompt Multi-Component Data View
88+
#telerik_component_assistant Insert a new section with a Grid on the left to filter and sort product data. On the right, add a Chart and DateRangePicker to visualize product sales over time. Both components should be data-bound to the same source.
89+
```
90+
```Razor
91+
```
6192

6293
### Style Assistant Prompts
6394

6495
The Style Assistant tool generates custom styles and theme configurations for your application. Use this tool when you need to apply brand-specific colors, create custom themes, or modify the overall visual design of your UI.
6596

6697
<div style="display: grid; gap: 10px; grid-template-columns: 1fr 1fr;">
6798

68-
````TEXT.skip-repl
69-
Generate a custom theme for a corporate blue and green color scheme with high contrast accessibility requirements.
70-
````
99+
```prompt Accessible Color Theme
100+
#telerik_style_assistant Generate a custom theme for a corporate blue and green color scheme with high contrast accessibility requirements.
101+
```
102+
```Razor
103+
```
71104

72-
````TEXT.skip-repl
73-
Create a comprehensive dark mode theme with a dark background, light text, subtle border radius on cards and buttons, and increased spacing between the UI components.
74-
````
105+
```prompt Dark Mode Theme
106+
#telerik_style_assistant Create a comprehensive dark mode theme with a dark background, light text, subtle border radius on cards and buttons, and increased spacing between the UI components.
107+
```
108+
```Razor
109+
```
75110

76111
</div>
77112

@@ -81,13 +116,17 @@ The Icon Assistant tool searches and retrieves icons from the Progress Design Sy
81116

82117
<div style="display: grid; gap: 10px; grid-template-columns: 1fr 1fr;">
83118

84-
````TEXT.skip-repl
85-
Add icons suitable for the Home, Settings, and User Profile buttons in my navigation bar.
86-
````
119+
```prompt Navigation Icons
120+
#telerik_icon_assistant Add icons suitable for the Home, Settings, and User Profile buttons in my navigation bar.
121+
```
122+
```Razor
123+
```
87124

88-
````TEXT.skip-repl
89-
Find appropriate icons for data visualization actions like export, print, refresh, and search in a dashboard toolbar.
90-
````
125+
```prompt Toolbar Action Icons
126+
#telerik_icon_assistant Find appropriate icons for data visualization actions like export, print, refresh, and search in a dashboard toolbar.
127+
```
128+
```Razor
129+
```
91130

92131
</div>
93132

@@ -96,3 +135,9 @@ Find appropriate icons for data visualization actions like export, print, refres
96135
* [Telerik MCP Server Overview](slug:ai-overview)
97136
* [Getting Started with the Agentic UI Generator](slug:agentic-ui-generator-getting-started)
98137
* [Telerik Design System](https://www.telerik.com/design-system/docs/)
138+
139+
<style>
140+
.d-print-none button:nth-child(2) {
141+
display: none !important;
142+
}
143+
</style>

ai/ai-coding-assistant/_meta.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
title: AI Coding Assistant
2+
tag: updated

ai/ai-coding-assistant/mcp-server.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ tags: telerik,blazor,ai
77
published: True
88
position: 1
99
previous_url: /ai/mcp-server
10+
tag: updated
1011
---
1112

1213
# Getting Started with the Telerik UI for Blazor AI Coding Assistant

ai/ai-coding-assistant/prompt-library.md

Lines changed: 86 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,94 @@ tags: telerik,blazor,ai
77
published: True
88
position: 2
99
previous_url: /ai/prompt-library
10+
tag: updated
1011
---
1112

1213
# AI Coding Assistant Prompt Library
1314

1415
This article provides a list of sample prompts for use with the [Telerik Blazor MCP Server](slug:ai-mcp-server). They can help you get a better idea what the Telerik AI Coding Assistant can do and how to compose your prompts. This collection is not exhaustive and you can prompt the Telerik AI Coding Assistant about other scenarios and components as well.
1516

17+
>tip [Go straight to the prompts ⬇️](#general-prompts)
18+
1619
## How to Use the Prompts
1720

1821
All prompts in this library target the [Telerik Blazor MCP Server](slug:ai-mcp-server). The [`#telerik_blazor_assistant` handle](slug:ai-mcp-server#usage) assumes that this is the server name you have [entered in the `mcp.json` file during installation](slug:ai-mcp-server#installation).
1922

20-
1. Browse the prompt library to find a prompt that suits your needs.
23+
1. Browse the [prompt library](#general-prompts) to find a prompt that suits your needs.
2124
2. Copy the prompt text including the `#telerik_blazor_assistant` handle.
2225
3. (optional) Customize the prompt as needed for your specific use case.
2326
4. Run the prompt against the MCP server.
2427

2528
>warning Always double-check the code and solutions proposed by any AI-powered tool before applying them to your project.
2629
27-
## Grid
30+
## General Prompts
31+
32+
This section provides examples of general questions related to Telerik UI for Blazor.
33+
34+
<div style="display: grid; gap: 10px; grid-template-columns: 1fr 1fr;">
35+
36+
```prompt Setup Components
37+
#telerik_blazor_assistant in the current Blazor project, use the existing model classes and data and help me visualize the data by configuring a Grid, a Chart, and a DatePicker. The Grid should display Product details, the Chart should show Sales figures per Category, and the DatePicker should allow filtering Products by date range.
38+
39+
```
40+
```Razor
41+
```
42+
43+
```prompt Component Overview
44+
#telerik_blazor_assistant What are the primary use cases of the Telerik UI for Blazor Grid vs TreeList vs ListView? Provide examples of their usage.
45+
```
46+
```Razor
47+
```
48+
49+
</div>
50+
51+
## Tool-Specific Prompts
52+
53+
This section provides prompt examples for directly calling individual specialized tools for more granular control.
54+
55+
### Component Tool
56+
57+
Use the `#telerik_component_assistant` handle for specific implementations that need the UI for Blazor components:
58+
59+
<div style="display: grid; gap: 10px; grid-template-columns: 1fr 1fr;">
60+
61+
```prompt Grid Configuration
62+
#telerik_component_assistant Create a Grid component that uses the Product model and has paging (50 records per page), sorting, and filtering enabled.
63+
```
64+
```Razor
65+
```
66+
67+
```prompt Grid with Virtual Scrolling
68+
#telerik_component_assistant Show me sample code for a Telerik UI for Blazor Grid with virtual scrolling. The page size must be 20 records, the height of the Grid must be 450px, and the rows must be 40px high.
69+
```
70+
```Razor
71+
```
72+
73+
</div>
74+
75+
### Icon Tool
76+
77+
Use the `#telerik_icon_assistant` handle for finding and implementing suitable icons based on your scenario:
78+
79+
<div style="display: grid; gap: 10px; grid-template-columns: 1fr 1fr;">
80+
81+
```prompt Navigation Icons
82+
#telerik_icon_assistant Add icons suitable for the Home, Settings, and User Profile buttons in my navigation bar.
83+
```
84+
```Razor
85+
```
86+
87+
```prompt Toolbar Action Icons
88+
#telerik_icon_assistant Find appropriate icons for data visualization actions like export, print, refresh, and search in a dashboard toolbar.
89+
```
90+
```Razor
91+
```
92+
93+
</div>
94+
95+
## Component-Specific Prompts
96+
97+
### Grid
2898

2999
<div style="display: grid; gap: 10px; grid-template-columns: 1fr 1fr;">
30100

@@ -66,7 +136,7 @@ All prompts in this library target the [Telerik Blazor MCP Server](slug:ai-mcp-s
66136

67137
</div>
68138

69-
## Scheduler
139+
### Scheduler
70140

71141
<div style="display: grid; gap: 10px; grid-template-columns: 1fr 1fr;">
72142

@@ -92,7 +162,7 @@ All prompts in this library target the [Telerik Blazor MCP Server](slug:ai-mcp-s
92162

93163
</div>
94164

95-
## Chart
165+
### Chart
96166

97167
<div style="display: grid; gap: 10px; grid-template-columns: 1fr 1fr;">
98168

@@ -106,7 +176,7 @@ All prompts in this library target the [Telerik Blazor MCP Server](slug:ai-mcp-s
106176

107177
</div>
108178

109-
## Form
179+
### Form
110180

111181
<div style="display: grid; gap: 10px; grid-template-columns: 1fr 1fr;">
112182

@@ -120,7 +190,7 @@ All prompts in this library target the [Telerik Blazor MCP Server](slug:ai-mcp-s
120190

121191
</div>
122192

123-
## Upload
193+
### Upload
124194

125195
<div style="display: grid; gap: 10px; grid-template-columns: 1fr 1fr;">
126196

@@ -134,7 +204,7 @@ All prompts in this library target the [Telerik Blazor MCP Server](slug:ai-mcp-s
134204

135205
</div>
136206

137-
## DropDownList
207+
### DropDownList
138208

139209
<div style="display: grid; gap: 10px; grid-template-columns: 1fr 1fr;">
140210

@@ -148,7 +218,7 @@ All prompts in this library target the [Telerik Blazor MCP Server](slug:ai-mcp-s
148218

149219
</div>
150220

151-
## DatePicker
221+
### DatePicker
152222

153223
<div style="display: grid; gap: 10px; grid-template-columns: 1fr 1fr;">
154224

@@ -174,7 +244,7 @@ All prompts in this library target the [Telerik Blazor MCP Server](slug:ai-mcp-s
174244

175245
</div>
176246

177-
## Calendar
247+
### Calendar
178248

179249
<div style="display: grid; gap: 10px; grid-template-columns: 1fr 1fr;">
180250

@@ -192,7 +262,7 @@ All prompts in this library target the [Telerik Blazor MCP Server](slug:ai-mcp-s
192262

193263
</div>
194264

195-
## MultiSelect
265+
### MultiSelect
196266

197267
<div style="display: grid; gap: 10px; grid-template-columns: 1fr 1fr;">
198268

@@ -209,3 +279,9 @@ All prompts in this library target the [Telerik Blazor MCP Server](slug:ai-mcp-s
209279
## See Also
210280

211281
* [Telerik Blazor MCP Server](slug:ai-mcp-server)
282+
283+
<style>
284+
.d-print-none button:nth-child(2) {
285+
display: none !important;
286+
}
287+
</style>

0 commit comments

Comments
 (0)