Skip to content

Commit fcfb4cc

Browse files
committed
Adding PostgreSQL DBA chatmode
Fixed updater script to handle whitespace filenames Fixed a previously added instruction file that was hand-updated in the readme
1 parent 9c91604 commit fcfb4cc

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Team and project-specific instructions to enhance GitHub Copilot's behavior for
2727
- [Bicep Code Best Practices](instructions/bicep-code-best-practices.md) - Infrastructure as Code with Bicep
2828
- [Blazor](instructions/blazor.md) - Blazor component and application patterns
2929
- [Cmake Vcpkg](instructions/cmake-vcpkg.md) - C++ project configuration and package management
30-
- [Copilot thought logging](instructions/copilot-thought-logging.instructions.md) see process Copilot is following where you can edit this to reshape the interaction or save when follow up may be needed
30+
- [Copilot Process tracking Instructions](instructions/copilot-thought-logging.instructions.md) - See process Copilot is following where you can edit this to reshape the interaction or save when follow up may be needed
3131
- [Genaiscript](instructions/genaiscript.md) - AI-powered script generation guidelines
3232
- [Generate Modern Terraform Code For Azure](instructions/generate-modern-terraform-code-for-azure.md) - Guidelines for generating modern Terraform code for Azure
3333
- [Markdown](instructions/markdown.md) - Documentation and content creation standards
@@ -67,6 +67,7 @@ Ready-to-use prompt templates for specific development scenarios and tasks. Thes
6767

6868
Custom chat modes define specific behaviors and tools for GitHub Copilot Chat, enabling enhanced context-aware assistance for particular tasks or workflows. These `.chatmode.md` files can be loaded by selecting "Chat with Custom Mode" from the Copilot menu.
6969

70+
- [Database Administrator Chat Mode](chatmodes/PostgreSQL%20DBA.chatmode.md) - Work with PostgreSQL databases using the PostgreSQL extension.
7071
- [Planning mode instructions](chatmodes/planner.chatmode.md) - Generate an implementation plan for new features or refactoring existing code.
7172

7273

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
description: 'Work with PostgreSQL databases using the PostgreSQL extension.'
3+
tools: ['codebase', 'editFiles', 'githubRepo', 'runCommands', 'database', 'pgsql_bulkLoadCsv', 'pgsql_connect', 'pgsql_describeCsv', 'pgsql_disconnect', 'pgsql_listDatabases', 'pgsql_listServers', 'pgsql_modifyDatabase', 'pgsql_open_script', 'pgsql_query', 'pgsql_visualizeSchema']
4+
---
5+
6+
# Database Administrator Chat Mode
7+
8+
You are a PostgreSQL Database Administrator (DBA) with expertise in managing and maintaining PostgreSQL database systems. You can perform tasks such as:
9+
- Creating and managing databases
10+
- Writing and optimizing SQL queries
11+
- Performing database backups and restores
12+
- Monitoring database performance
13+
- Implementing security measures
14+
15+
You have access to various tools that allow you to interact with databases, execute queries, and manage database configurations. **Always** use the tools to inspect the database, do not look into the codebase.

instructions/copilot-thought-logging.instructions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
applyTo: '**'
33
mode: "agent"
4+
description: 'See process Copilot is following where you can edit this to reshape the interaction or save when follow up may be needed'
45
---
56

67
# Copilot Process tracking Instructions

update-readme.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function generateReadme() {
177177
for (const file of instructionFiles) {
178178
const filePath = path.join(instructionsDir, file);
179179
const title = extractTitle(filePath);
180-
const link = `instructions/${file}`;
180+
const link = `instructions/${file}`.replace(/ /g, "%20");
181181

182182
// Check if there's a description in the frontmatter
183183
const customDescription = extractDescription(filePath);
@@ -237,7 +237,7 @@ function generateReadme() {
237237
const filePath = path.join(promptsDir, file);
238238
const title = extractTitle(filePath);
239239
const description = extractDescription(filePath);
240-
const link = `prompts/${file}`;
240+
const link = `prompts/${file}`.replace(/ /g, "%20");
241241

242242
if (description) {
243243
newPromptsContent += `- [${title}](${link}) - ${description}\n`;
@@ -359,7 +359,7 @@ function generateReadme() {
359359
for (const file of chatmodeFiles) {
360360
const filePath = path.join(chatmodesDir, file);
361361
const title = extractTitle(filePath);
362-
const link = `chatmodes/${file}`;
362+
const link = `chatmodes/${file}`.replace(/ /g, "%20");
363363

364364
// Check if there's a description in the frontmatter
365365
const customDescription = extractDescription(filePath);

0 commit comments

Comments
 (0)