You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constquery=`Analyze this workspace and create or update \`.github/copilot-instructions.md\`. The file guides future AI coding agents here.
831
+
constquery=`Analyze this codebase to generate or update \`.github/copilot-instructions.md\` for guiding AI coding agents.
832
832
833
-
Add:
834
-
- Core commands, especially build, lint, test (incl. single-test run), docs, migrations, etc.
835
-
- High-level architecture, including major packages, services, data stores, external APIs, etc.
836
-
- Repo-specific style rules, including formatting, imports, typing, naming, error handling, etc.
837
-
- Relevant agent rules detected in \`.cursor/**\`, \`.cursorrules\`, \`AGENTS.md\`, \`AGENT.md\`, \`CLAUDE.md\`, \`.windsurfrules\`, existing Copilot file, etc.
838
-
- Summarize important parts of README or other docs instead of copying them.
833
+
Focus on discovering the essential knowledge that would help an AI agents be immediately productive in this codebase. Consider aspects like:
834
+
- The "big picture" architecture that requires reading multiple files to understand - major components, service boundaries, data flows, and the "why" behind structural decisions
835
+
- Critical developer workflows (builds, tests, debugging) especially commands that aren't obvious from file inspection alone
836
+
- Project-specific conventions and patterns that differ from common practices
837
+
- Integration points, external dependencies, and cross-component communication patterns
838
+
839
+
Source existing AI conventions from: \`**/{.github/copilot-instructions.md,AGENT.md,AGENTS.md,CLAUDE.md,.cursorrules,.windsurfrules,.clinerules,.cursor/rules/**,.windsurf/rules/**,.clinerules/**,README.md}\`.
839
840
840
841
Guidelines (read more at https://aka.ms/vscode-instructions-docs):
841
-
- If \`.github/copilot-instructions.md\` exists, patch/merge. Never overwrite blindly.
842
-
- Be concise; skip boilerplate, generic advice, or exhaustive file listings.
843
-
- Use Markdown headings + bullets; keep prose minimal and non-repetitive.
844
-
- Cite only facts found in the repo (don't invent information).`;
842
+
- If \`.github/copilot-instructions.md\` exists, merge intelligently - preserve valuable content while updating outdated sections
843
+
- Write concise, actionable instructions (~20-50 lines) using markdown structure
844
+
- Include specific examples from the codebase when describing patterns
845
+
- Avoid generic advice ("write tests", "handle errors") - focus on THIS project's specific approaches
846
+
- Document only discoverable patterns, not aspirational practices
847
+
- Reference key files/directories that exemplify important patterns
848
+
849
+
After generating the initial instructions (in less than 20 tool calls, count down after each tool call), ask for feedback on any unclear or incomplete sections and iterate on the instructions based on their input.`;
0 commit comments