From 2f3264bfc6335bd61dd12ca595f6d46b4b234e3f Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 14 Aug 2025 12:09:33 +1000 Subject: [PATCH] Add missing `mode` field to all prompt files with 'agent' as default (#180) * Initial plan * Add mode: 'agent' to all 14 prompt files missing the field, fix BOM character Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com> * Revert description field format changes while keeping mode field additions Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com> --- prompts/ai-prompt-engineering-safety-review.prompt.md | 1 + prompts/architecture-blueprint-generator.prompt.md | 1 + prompts/code-exemplars-blueprint-generator.prompt.md | 1 + prompts/comment-code-generate-a-tutorial.prompt.md | 1 + prompts/copilot-instructions-blueprint-generator.prompt.md | 1 + prompts/csharp-tunit.prompt.md | 2 +- prompts/editorconfig.prompt.md | 1 + prompts/folder-structure-blueprint-generator.prompt.md | 1 + prompts/gen-specs-as-issues.prompt.md | 1 + prompts/generate-custom-instructions-from-codebase.prompt.md | 1 + prompts/git-flow-branch-creator.prompt.md | 1 + prompts/javascript-typescript-jest.prompt.md | 1 + prompts/project-workflow-analysis-blueprint-generator.prompt.md | 1 + prompts/readme-blueprint-generator.prompt.md | 1 + prompts/technology-stack-blueprint-generator.prompt.md | 1 + 15 files changed, 15 insertions(+), 1 deletion(-) diff --git a/prompts/ai-prompt-engineering-safety-review.prompt.md b/prompts/ai-prompt-engineering-safety-review.prompt.md index 18a6be5..645d4fb 100644 --- a/prompts/ai-prompt-engineering-safety-review.prompt.md +++ b/prompts/ai-prompt-engineering-safety-review.prompt.md @@ -1,5 +1,6 @@ --- description: "Comprehensive AI prompt engineering safety review and improvement prompt. Analyzes prompts for safety, bias, security vulnerabilities, and effectiveness while providing detailed improvement recommendations with extensive frameworks, testing methodologies, and educational content." +mode: 'agent' --- # AI Prompt Engineering Safety Review & Improvement diff --git a/prompts/architecture-blueprint-generator.prompt.md b/prompts/architecture-blueprint-generator.prompt.md index 452fe87..a82f09c 100644 --- a/prompts/architecture-blueprint-generator.prompt.md +++ b/prompts/architecture-blueprint-generator.prompt.md @@ -1,5 +1,6 @@ --- description: 'Comprehensive project architecture blueprint generator that analyzes codebases to create detailed architectural documentation. Automatically detects technology stacks and architectural patterns, generates visual diagrams, documents implementation patterns, and provides extensible blueprints for maintaining architectural consistency and guiding new development.' +mode: 'agent' --- # Comprehensive Project Architecture Blueprint Generator diff --git a/prompts/code-exemplars-blueprint-generator.prompt.md b/prompts/code-exemplars-blueprint-generator.prompt.md index 460cf18..dfa044f 100644 --- a/prompts/code-exemplars-blueprint-generator.prompt.md +++ b/prompts/code-exemplars-blueprint-generator.prompt.md @@ -1,5 +1,6 @@ --- description: 'Technology-agnostic prompt generator that creates customizable AI prompts for scanning codebases and identifying high-quality code exemplars. Supports multiple programming languages (.NET, Java, JavaScript, TypeScript, React, Angular, Python) with configurable analysis depth, categorization methods, and documentation formats to establish coding standards and maintain consistency across development teams.' +mode: 'agent' --- # Code Exemplars Blueprint Generator diff --git a/prompts/comment-code-generate-a-tutorial.prompt.md b/prompts/comment-code-generate-a-tutorial.prompt.md index 0d949c2..70f3c71 100644 --- a/prompts/comment-code-generate-a-tutorial.prompt.md +++ b/prompts/comment-code-generate-a-tutorial.prompt.md @@ -1,5 +1,6 @@ --- description: 'Transform this Python script into a polished, beginner-friendly project by refactoring the code, adding clear instructional comments, and generating a complete markdown tutorial.' +mode: 'agent' --- Transform this Python script into a polished, beginner-friendly project by refactoring the code, adding clear instructional comments, and generating a complete markdown tutorial. diff --git a/prompts/copilot-instructions-blueprint-generator.prompt.md b/prompts/copilot-instructions-blueprint-generator.prompt.md index e5fc8c3..cc91c42 100644 --- a/prompts/copilot-instructions-blueprint-generator.prompt.md +++ b/prompts/copilot-instructions-blueprint-generator.prompt.md @@ -1,5 +1,6 @@ --- description: 'Technology-agnostic blueprint generator for creating comprehensive copilot-instructions.md files that guide GitHub Copilot to produce code consistent with project standards, architecture patterns, and exact technology versions by analyzing existing codebase patterns and avoiding assumptions.' +mode: 'agent' --- # Copilot Instructions Blueprint Generator diff --git a/prompts/csharp-tunit.prompt.md b/prompts/csharp-tunit.prompt.md index 9d1190b..e3c6b74 100644 --- a/prompts/csharp-tunit.prompt.md +++ b/prompts/csharp-tunit.prompt.md @@ -1,4 +1,4 @@ ---- +--- mode: 'agent' tools: ['changes', 'codebase', 'editFiles', 'problems', 'search'] description: 'Get best practices for TUnit unit testing, including data-driven tests' diff --git a/prompts/editorconfig.prompt.md b/prompts/editorconfig.prompt.md index f548986..397f983 100644 --- a/prompts/editorconfig.prompt.md +++ b/prompts/editorconfig.prompt.md @@ -1,6 +1,7 @@ --- title: 'EditorConfig Expert' description: 'Generates a comprehensive and best-practice-oriented .editorconfig file based on project analysis and user preferences.' +mode: 'agent' --- ## 📜 MISSION diff --git a/prompts/folder-structure-blueprint-generator.prompt.md b/prompts/folder-structure-blueprint-generator.prompt.md index cd6b3e9..bb015f1 100644 --- a/prompts/folder-structure-blueprint-generator.prompt.md +++ b/prompts/folder-structure-blueprint-generator.prompt.md @@ -1,5 +1,6 @@ --- description: 'Comprehensive technology-agnostic prompt for analyzing and documenting project folder structures. Auto-detects project types (.NET, Java, React, Angular, Python, Node.js, Flutter), generates detailed blueprints with visualization options, naming conventions, file placement patterns, and extension templates for maintaining consistent code organization across diverse technology stacks.' +mode: 'agent' --- # Project Folder Structure Blueprint Generator diff --git a/prompts/gen-specs-as-issues.prompt.md b/prompts/gen-specs-as-issues.prompt.md index 772b42f..5a3018d 100644 --- a/prompts/gen-specs-as-issues.prompt.md +++ b/prompts/gen-specs-as-issues.prompt.md @@ -1,5 +1,6 @@ --- description: 'This workflow guides you through a systematic approach to identify missing features, prioritize them, and create detailed specifications for implementation.' +mode: 'agent' --- # Product Manager Assistant: Feature Identification and Specification diff --git a/prompts/generate-custom-instructions-from-codebase.prompt.md b/prompts/generate-custom-instructions-from-codebase.prompt.md index ddb40c7..99ef2e1 100644 --- a/prompts/generate-custom-instructions-from-codebase.prompt.md +++ b/prompts/generate-custom-instructions-from-codebase.prompt.md @@ -1,5 +1,6 @@ --- description: 'Migration and code evolution instructions generator for GitHub Copilot. Analyzes differences between two project versions (branches, commits, or releases) to create precise instructions allowing Copilot to maintain consistency during technology migrations, major refactoring, or framework version upgrades.' +mode: 'agent' --- # Migration and Code Evolution Instructions Generator diff --git a/prompts/git-flow-branch-creator.prompt.md b/prompts/git-flow-branch-creator.prompt.md index f0a67ec..d3da709 100644 --- a/prompts/git-flow-branch-creator.prompt.md +++ b/prompts/git-flow-branch-creator.prompt.md @@ -1,6 +1,7 @@ --- description: 'Intelligent Git Flow branch creator that analyzes git status/diff and creates appropriate branches following the nvie Git Flow branching model.' tools: ['run_in_terminal', 'get_terminal_output'] +mode: 'agent' --- ### Instructions diff --git a/prompts/javascript-typescript-jest.prompt.md b/prompts/javascript-typescript-jest.prompt.md index 5aa8ce1..af7d29e 100644 --- a/prompts/javascript-typescript-jest.prompt.md +++ b/prompts/javascript-typescript-jest.prompt.md @@ -1,5 +1,6 @@ --- description: 'Best practices for writing JavaScript/TypeScript tests using Jest, including mocking strategies, test structure, and common patterns.' +mode: 'agent' --- ### Test Structure diff --git a/prompts/project-workflow-analysis-blueprint-generator.prompt.md b/prompts/project-workflow-analysis-blueprint-generator.prompt.md index 6f0f0ba..83768bc 100644 --- a/prompts/project-workflow-analysis-blueprint-generator.prompt.md +++ b/prompts/project-workflow-analysis-blueprint-generator.prompt.md @@ -2,6 +2,7 @@ description: 'Comprehensive technology-agnostic prompt generator for documenting end-to-end application workflows. Automatically detects project architecture patterns, technology stacks, and data flow patterns to generate detailed implementation blueprints covering entry points, service layers, data access, error handling, and testing approaches across multiple technologies including .NET, Java/Spring, React, and microservices architectures.' +mode: 'agent' --- # Project Workflow Documentation Generator diff --git a/prompts/readme-blueprint-generator.prompt.md b/prompts/readme-blueprint-generator.prompt.md index a702108..d127cc1 100644 --- a/prompts/readme-blueprint-generator.prompt.md +++ b/prompts/readme-blueprint-generator.prompt.md @@ -1,6 +1,7 @@ --- description: 'Intelligent README.md generation prompt that analyzes project documentation structure and creates comprehensive repository documentation. Scans .github/copilot directory files and copilot-instructions.md to extract project information, technology stack, architecture, development workflow, coding standards, and testing approaches while generating well-structured markdown documentation with proper formatting, cross-references, and developer-focused content.' +mode: 'agent' --- # README Generator Prompt diff --git a/prompts/technology-stack-blueprint-generator.prompt.md b/prompts/technology-stack-blueprint-generator.prompt.md index 2038038..4160859 100644 --- a/prompts/technology-stack-blueprint-generator.prompt.md +++ b/prompts/technology-stack-blueprint-generator.prompt.md @@ -1,5 +1,6 @@ --- description: 'Comprehensive technology stack blueprint generator that analyzes codebases to create detailed architectural documentation. Automatically detects technology stacks, programming languages, and implementation patterns across multiple platforms (.NET, Java, JavaScript, React, Python). Generates configurable blueprints with version information, licensing details, usage patterns, coding conventions, and visual diagrams. Provides implementation-ready templates and maintains architectural consistency for guided development.' +mode: 'agent' --- # Comprehensive Technology Stack Blueprint Generator