Analyze this codebase to generate or update .github/copilot-instructions.md for guiding…
- User
Analyze this codebase to generate or update
.github/copilot-instructions.mdfor guiding AI coding agents.Focus on discovering the essential knowledge that would help an AI agents be immediately productive in this codebase. Consider aspects like:
- The "big picture" architecture that requires reading multiple files to understand - major components, service boundaries, data flows, and the "why" behind structural decisions
- Critical developer workflows (builds, tests, debugging) especially commands that aren't obvious from file inspection alone
- Project-specific conventions and patterns that differ from common practices
- Integration points, external dependencies, and cross-component communication patterns
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}(do one glob search).Guidelines (read more at https://aka.ms/vscode-instructions-docs):
- If
.github/copilot-instructions.mdexists, merge intelligently - preserve valuable content while updating outdated sections - Write concise, actionable instructions (~20-50 lines) using markdown structure
- Include specific examples from the codebase when describing patterns
- Avoid generic advice ("write tests", "handle errors") - focus on THIS project's specific approaches
- Document only discoverable patterns, not aspirational practices
- Reference key files/directories that exemplify important patterns
Update
.github/copilot-instructions.mdfor the user, then ask for feedback on any unclear or incomplete sections to iterate. Assistant
I'll analyze your codebase to create comprehensive AI agent instructions. Let me start by searching for existing AI convention files and exploring the project structure.
Assistant
Let me explore the codebase manually to understand its structure.
Assistant
Now I'll create the
.github/copilot-instructions.mdfile based on my analysis of your codebase.Assistant
Perfect! I've created
.github/copilot-instructions.mdwith comprehensive AI agent guidance for your Octodeco project.What I Included
Architecture & Context:
- Next.js 16 App Router with React 19 and TypeScript 5
- Directory structure with key file locations
- Product catalog system using JSON data
Development Workflows:
- Standard npm commands (dev, build, lint)
- Note about lack of testing framework (for future additions)
Project-Specific Conventions:
- TypeScript patterns:
@/*path alias, type-only imports, function keyword preference
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.