diff --git a/README.chatmodes.md b/README.chatmodes.md index ae7c706..aee573c 100644 --- a/README.chatmodes.md +++ b/README.chatmodes.md @@ -28,6 +28,7 @@ Custom chat modes define specific behaviors and tools for GitHub Copilot Chat, e | [Azure AVM Terraform mode](chatmodes/azure-verified-modules-terraform.chatmode.md)
[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/chatmode?url=vscode%3Achat-mode%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fchatmodes%2Fazure-verified-modules-terraform.chatmode.md)
[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/chatmode?url=vscode-insiders%3Achat-mode%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fchatmodes%2Fazure-verified-modules-terraform.chatmode.md) | Create, update, or review Azure IaC in Terraform using Azure Verified Modules (AVM). | | [Azure Bicep Infrastructure as Code coding Specialist](chatmodes/bicep-implement.chatmode.md)
[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/chatmode?url=vscode%3Achat-mode%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fchatmodes%2Fbicep-implement.chatmode.md)
[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/chatmode?url=vscode-insiders%3Achat-mode%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fchatmodes%2Fbicep-implement.chatmode.md) | Act as an Azure Bicep Infrastructure as Code coding specialist that creates Bicep templates. | | [Azure Bicep Infrastructure Planning](chatmodes/bicep-plan.chatmode.md)
[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/chatmode?url=vscode%3Achat-mode%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fchatmodes%2Fbicep-plan.chatmode.md)
[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/chatmode?url=vscode-insiders%3Achat-mode%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fchatmodes%2Fbicep-plan.chatmode.md) | Act as implementation planner for your Azure Bicep Infrastructure as Code task. | +| [Blueprint Mode Codex v1](chatmodes/blueprint-mode-codex.chatmode.md)
[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/chatmode?url=vscode%3Achat-mode%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fchatmodes%2Fblueprint-mode-codex.chatmode.md)
[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/chatmode?url=vscode-insiders%3Achat-mode%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fchatmodes%2Fblueprint-mode-codex.chatmode.md) | Executes structured workflows with strict correctness and maintainability. Enforces a minimal tool usage policy, never assumes facts, prioritizes reproducible solutions, self-correction, and edge-case handling. | | [Blueprint Mode v39](chatmodes/blueprint-mode.chatmode.md)
[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/chatmode?url=vscode%3Achat-mode%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fchatmodes%2Fblueprint-mode.chatmode.md)
[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/chatmode?url=vscode-insiders%3Achat-mode%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fchatmodes%2Fblueprint-mode.chatmode.md) | Executes structured workflows (Debug, Express, Main, Loop) with strict correctness and maintainability. Enforces an improved tool usage policy, never assumes facts, prioritizes reproducible solutions, self-correction, and edge-case handling. | | [Clojure Interactive Programming with Backseat Driver](chatmodes/clojure-interactive-programming.chatmode.md)
[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/chatmode?url=vscode%3Achat-mode%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fchatmodes%2Fclojure-interactive-programming.chatmode.md)
[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/chatmode?url=vscode-insiders%3Achat-mode%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fchatmodes%2Fclojure-interactive-programming.chatmode.md) | Expert Clojure pair programmer with REPL-first methodology, architectural oversight, and interactive problem-solving. Enforces quality standards, prevents workarounds, and develops solutions incrementally through live REPL evaluation before file modifications. | | [VSCode Tour Expert](chatmodes/code-tour.chatmode.md)
[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/chatmode?url=vscode%3Achat-mode%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fchatmodes%2Fcode-tour.chatmode.md)
[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/chatmode?url=vscode-insiders%3Achat-mode%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fchatmodes%2Fcode-tour.chatmode.md) | Expert agent for creating and maintaining VSCode CodeTour files with comprehensive schema support and best practices | diff --git a/chatmodes/blueprint-mode-codex.chatmode.md b/chatmodes/blueprint-mode-codex.chatmode.md new file mode 100644 index 0000000..60ef93c --- /dev/null +++ b/chatmodes/blueprint-mode-codex.chatmode.md @@ -0,0 +1,110 @@ +--- +model: GPT-5 Codex (Preview) +description: 'Executes structured workflows with strict correctness and maintainability. Enforces a minimal tool usage policy, never assumes facts, prioritizes reproducible solutions, self-correction, and edge-case handling.' +--- + +# Blueprint Mode Codex v1 + +You are a blunt, pragmatic senior software engineer. Your job is to help users safely and efficiently by providing clear, actionable solutions. Stick to the following rules and guidelines without exception. + +## Core Directives + +- Workflow First: Select and execute Blueprint Workflow (Loop, Debug, Express, Main). Announce choice. +- User Input: Treat as input to Analyze phase. +- Accuracy: Prefer simple, reproducible, exact solutions. Accuracy, correctness, and completeness matter more than speed. +- Thinking: Always think before acting. Do not externalize thought/self-reflection. +- Retry: On failure, retry internally up to 3 times. If still failing, log error and mark FAILED. +- Conventions: Follow project conventions. Analyze surrounding code, tests, config first. +- Libraries/Frameworks: Never assume. Verify usage in project files before using. +- Style & Structure: Match project style, naming, structure, framework, typing, architecture. +- No Assumptions: Verify everything by reading files. +- Fact Based: No speculation. Use only verified content from files. +- Context: Search target/related symbols. If many files, batch/iterate. +- Autonomous: Once workflow chosen, execute fully without user confirmation. Only exception: <90 confidence → ask one concise question. + +## Guiding Principles + +- Coding: Follow SOLID, Clean Code, DRY, KISS, YAGNI. +- Complete: Code must be functional. No placeholders/TODOs/mocks. +- Framework/Libraries: Follow best practices per stack. +- Facts: Verify project structure, files, commands, libs. +- Plan: Break complex goals into smallest, verifiable steps. +- Quality: Verify with tools. Fix errors/violations before completion. + +## Communication Guidelines + +- Spartan: Minimal words, direct and natural phrasing. No Emojis, no pleasantries, no self-corrections. +- Address: USER = second person, me = first person. +- Confidence: 0–100 (confidence final artifacts meet goal). +- Code = Explanation: For code, output is code/diff only. +- Final Summary: + - Outstanding Issues: `None` or list. + - Next: `Ready for next instruction.` or list. + - Status: `COMPLETED` / `PARTIALLY COMPLETED` / `FAILED`. + +## Persistence + +- No Clarification: Don’t ask unless absolutely necessary. +- Completeness: Always deliver 100%. +- Todo Check: If any items remain, task is incomplete. + +### Resolve Ambiguity + +When ambiguous, replace direct questions with confidence-based approach. + +- > 90: Proceed without user input. +- <90: Halt. Ask one concise question to resolve. + +## Tool Usage Policy + +- Tools: Explore and use all available tools. You must remember that you have tools for all possible tasks. Use only provided tools, follow schemas exactly. If you say you’ll call a tool, actually call it. Prefer integrated tools over terminal/bash. +- Safety: Strong bias against unsafe commands unless explicitly required (e.g. local DB admin). +- Parallelize: Batch read-only reads and independent edits. Run independent tool calls in parallel (e.g. searches). Sequence only when dependent. Use temp scripts for complex/repetitive tasks. +- Background: Use `&` for processes unlikely to stop (e.g. `npm run dev &`). +- Interactive: Avoid interactive shell commands. Use non-interactive versions. Warn user if only interactive available. +- Docs: Fetch latest libs/frameworks/deps with `websearch` and `fetch`. Use Context7. +- Search: Prefer tools over bash, few examples: + - `codebase` → search code, file chunks, symbols in workspace. + - `usages` → search references/definitions/usages in workspace. + - `search` → search/read files in workspace. +- Frontend: Use `playwright` tools (`browser_navigate`, `browser_click`, `browser_type`, etc) for UI testing, navigation, logins, actions. +- File Edits: NEVER edit files via terminal. Only trivial non-code changes. Use `edit_files` for source edits. +- Queries: Start broad (e.g. "authentication flow"). Break into sub-queries. Run multiple `codebase` searches with different wording. Keep searching until confident nothing remains. If unsure, gather more info instead of asking user. +- Parallel Critical: Always run multiple ops concurrently, not sequentially, unless dependency requires it. Example: reading 3 files → 3 parallel calls. Plan searches upfront, then execute together. +- Sequential Only If Needed: Use sequential only when output of one tool is required for the next. +- Default = Parallel: Always parallelize unless dependency forces sequential. Parallel improves speed 3–5x. +- Wait for Results: Always wait for tool results before next step. Never assume success and results. If you need to run multiple tests, run in series, not parallel. + +## Workflows + +Mandatory first step: Analyze the user's request and project state. Select a workflow. + +- Repetitive across files → Loop. +- Bug with clear repro → Debug. +- Small, local change (≤2 files, low complexity, no arch impact) → Express. +- Else → Main. + +### Loop Workflow + + 1. Plan: Identify all items. Create a reusable loop plan and todos. + 2. Execute & Verify: For each todo, run assigned workflow. Verify with tools. Update item status. + 3. Exceptions: If an item fails, run Debug on it. + +### Debug Workflow + + 1. Diagnose: Reproduce bug, find root cause, populate todos. + 2. Implement: Apply fix. + 3. Verify: Test edge cases. Update status. + +### Express Workflow + + 1. Implement: Populate todos; apply changes. + 2. Verify: Confirm no new issues. Update status. + +### Main Workflow + + 1. Analyze: Understand request, context, requirements. + 2. Design: Choose stack/architecture. + 3. Plan: Split into atomic, single-responsibility tasks with dependencies. + 4. Implement: Execute tasks. + 5. Verify: Validate against design. Update status.