Merge pull request #11 from github/digitarald/vicarious-junglefowl
Update usage instructions
This commit is contained in:
commit
eff3d8defd
14
README.md
14
README.md
@ -6,8 +6,8 @@ Enhance your GitHub Copilot experience with community-contributed instructions,
|
|||||||
|
|
||||||
GitHub Copilot provides three main ways to customize AI responses and tailor assistance to your specific workflows, team guidelines, and project requirements:
|
GitHub Copilot provides three main ways to customize AI responses and tailor assistance to your specific workflows, team guidelines, and project requirements:
|
||||||
|
|
||||||
| **🔧 Custom Instructions** | **📝 Reusable Prompts** | **🎭 Custom Chat Modes** |
|
| **🔧 Custom Instructions** | **📝 Reusable Prompts** | **🎭 Custom Chat Modes** |
|
||||||
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| --- | --- | --- |
|
||||||
| Define common guidelines for tasks like code generation, reviews, and commit messages. Describe *how* tasks should be performed<br><br>**Benefits:**<br>• Automatic inclusion in every chat request<br>• Repository-wide consistency<br>• Multiple implementation options | Create reusable, standalone prompts for specific tasks. Describe *what* should be done with optional task-specific guidelines<br><br>**Benefits:**<br>• Eliminate repetitive prompt writing<br>• Shareable across teams<br>• Support for variables and dependencies | Define chat behavior, available tools, and codebase interaction patterns within specific boundaries for each request<br><br>**Benefits:**<br>• Context-aware assistance<br>• Tool configuration<br>• Role-specific workflows |
|
| Define common guidelines for tasks like code generation, reviews, and commit messages. Describe *how* tasks should be performed<br><br>**Benefits:**<br>• Automatic inclusion in every chat request<br>• Repository-wide consistency<br>• Multiple implementation options | Create reusable, standalone prompts for specific tasks. Describe *what* should be done with optional task-specific guidelines<br><br>**Benefits:**<br>• Eliminate repetitive prompt writing<br>• Shareable across teams<br>• Support for variables and dependencies | Define chat behavior, available tools, and codebase interaction patterns within specific boundaries for each request<br><br>**Benefits:**<br>• Context-aware assistance<br>• Tool configuration<br>• Role-specific workflows |
|
||||||
|
|
||||||
> **💡 Pro Tip:** Custom instructions only affect Copilot Chat (not inline code completions). You can combine all three customization types - use custom instructions for general guidelines, prompt files for specific tasks, and chat modes to control the interaction context.
|
> **💡 Pro Tip:** Custom instructions only affect Copilot Chat (not inline code completions). You can combine all three customization types - use custom instructions for general guidelines, prompt files for specific tasks, and chat modes to control the interaction context.
|
||||||
@ -35,11 +35,11 @@ Team and project-specific instructions to enhance GitHub Copilot's behavior for
|
|||||||
- [Python Coding Conventions](instructions/python.md) - Python coding conventions and guidelines
|
- [Python Coding Conventions](instructions/python.md) - Python coding conventions and guidelines
|
||||||
|
|
||||||
|
|
||||||
> 💡 **Usage**: Copy these instructions to your `.github/copilot-instructions.md` file or create task-specific `.instructions.md` files in your workspace.
|
> 💡 **Usage**: Copy these instructions to your `.github/copilot-instructions.md` file or create task-specific `.github/.instructions.md` files in your workspace's `.github/instructions` folder.
|
||||||
|
|
||||||
## 🎯 Reusable Prompts
|
## 🎯 Reusable Prompts
|
||||||
|
|
||||||
Ready-to-use prompt templates for specific development scenarios and tasks. These `.prompt.md` files can be executed directly in VS Code chat as slash commands or through the `Chat: Run Prompt` command.
|
Ready-to-use prompt templates for specific development scenarios and tasks, defining prompt text with a specific mode, model, and available set of tools.
|
||||||
|
|
||||||
### Backend Development
|
### Backend Development
|
||||||
- [ASP.NET Minimal API with OpenAPI](prompts/aspnet-minimal-api-openapi.prompt.md) - Generate API endpoints with proper documentation
|
- [ASP.NET Minimal API with OpenAPI](prompts/aspnet-minimal-api-openapi.prompt.md) - Generate API endpoints with proper documentation
|
||||||
@ -61,17 +61,17 @@ Ready-to-use prompt templates for specific development scenarios and tasks. Thes
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
> 💡 **Usage**: Use `/prompt-name` in VS Code chat or run `Chat: Run Prompt` command. Prompt files support variables like `${input:name}` for dynamic content.
|
> 💡 **Usage**: Use `/prompt-name` in VS Code chat, run `Chat: Run Prompt` command, or hit the run button while you have a prompt open.
|
||||||
|
|
||||||
## 🧩 Custom Chat Modes
|
## 🧩 Custom Chat Modes
|
||||||
|
|
||||||
You can define your own chat modes for specific scenarios, such as planning a new feature or getting the AI to behave a certain way when in a particular mode. Custom chat modes are defined in Markdown files with the `.chatmode.md` suffix and can be stored in the `.github` folder of your workspace or placed in your user profile. They should up in the "Ask/Edit/Agent" dropdown in the chat view.
|
Custom chat modes define specific behaviors and tools for GitHub Copilot Chat, enabling enhanced context-aware assistance for particular tasks or workflows.
|
||||||
|
|
||||||
- [Database Administrator Chat Mode](chatmodes/PostgreSQL%20DBA.chatmode.md) - Work with PostgreSQL databases using the PostgreSQL extension.
|
- [Database Administrator Chat Mode](chatmodes/PostgreSQL%20DBA.chatmode.md) - Work with PostgreSQL databases using the PostgreSQL extension.
|
||||||
- [Planning mode instructions](chatmodes/planner.chatmode.md) - Generate an implementation plan for new features or refactoring existing code.
|
- [Planning mode instructions](chatmodes/planner.chatmode.md) - Generate an implementation plan for new features or refactoring existing code.
|
||||||
- [4.1 Beast Mode](chatmodes/4.1-Beast.chatmode.md) - A custom prompt to get GPT 4.1 to behave like a top-notch coding agent.
|
- [4.1 Beast Mode](chatmodes/4.1-Beast.chatmode.md) - A custom prompt to get GPT 4.1 to behave like a top-notch coding agent.
|
||||||
|
|
||||||
Use `Chat > Configure Chat Modes` from the Command Palette to add/edit custom modes.
|
> 💡 **Usage**: Create new chat modes using the command `Chat: Configure Chat Modes...`, then switch your chat mode in the Chat input from _Agent_ or _Ask_ to your own mode.
|
||||||
|
|
||||||
## 📚 Additional Resources
|
## 📚 Additional Resources
|
||||||
|
|
||||||
|
|||||||
@ -161,9 +161,9 @@ function generateReadme() {
|
|||||||
// Get all chat mode files - we'll use this to update the chat modes section
|
// Get all chat mode files - we'll use this to update the chat modes section
|
||||||
const chatmodeFiles = fs.existsSync(chatmodesDir)
|
const chatmodeFiles = fs.existsSync(chatmodesDir)
|
||||||
? fs
|
? fs
|
||||||
.readdirSync(chatmodesDir)
|
.readdirSync(chatmodesDir)
|
||||||
.filter((file) => file.endsWith(".chatmode.md"))
|
.filter((file) => file.endsWith(".chatmode.md"))
|
||||||
.sort()
|
.sort()
|
||||||
: [];
|
: [];
|
||||||
|
|
||||||
// Update instructions section - rebuild the whole list
|
// Update instructions section - rebuild the whole list
|
||||||
@ -375,7 +375,7 @@ function generateReadme() {
|
|||||||
|
|
||||||
// Replace the current chat modes section with the updated one
|
// Replace the current chat modes section with the updated one
|
||||||
const newChatmodesSection =
|
const newChatmodesSection =
|
||||||
'## 🎭 Custom Chat Modes\n\nCustom 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.' +
|
"## 🎭 Custom Chat Modes\n\nCustom chat modes define specific behaviors and tools for GitHub Copilot Chat, enabling enhanced context-aware assistance for particular tasks or workflows." +
|
||||||
chatmodesListContent;
|
chatmodesListContent;
|
||||||
|
|
||||||
currentReadme = currentReadme.replace(
|
currentReadme = currentReadme.replace(
|
||||||
@ -401,9 +401,9 @@ function generateReadme() {
|
|||||||
|
|
||||||
const newChatmodesSection =
|
const newChatmodesSection =
|
||||||
"## 🎭 Custom Chat Modes\n\n" +
|
"## 🎭 Custom Chat Modes\n\n" +
|
||||||
'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.\n\n' +
|
"Custom chat modes define specific behaviors and tools for GitHub Copilot Chat, enabling enhanced context-aware assistance for particular tasks or workflows.\n\n" +
|
||||||
chatmodesListContent +
|
chatmodesListContent +
|
||||||
'\n\n> 💡 **Usage**: Create a `.chatmode.md` file in your workspace or repository, then select "Chat with Custom Mode" from the Copilot Chat menu and select your chat mode file.\n';
|
'\n\n> 💡 **Usage**: Create new chat modes using the command `Chat: Configure Chat Modes...`, then switch your chat mode in the Chat input from _Agent_ or _Ask_ to your own mode.\n';
|
||||||
|
|
||||||
// Insert before Additional Resources section
|
// Insert before Additional Resources section
|
||||||
const additionalResourcesPos = currentReadme.indexOf(
|
const additionalResourcesPos = currentReadme.indexOf(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user