Skip to content

Add GitHub Copilot instructions for repository-specific context#16

Draft
Claude wants to merge 2 commits intomainfrom
claude/create-copilot-documentation-file
Draft

Add GitHub Copilot instructions for repository-specific context#16
Claude wants to merge 2 commits intomainfrom
claude/create-copilot-documentation-file

Conversation

@Claude
Copy link
Contributor

@Claude Claude AI commented Feb 24, 2026

Provides coding guidelines and conventions to GitHub Copilot for better code generation aligned with this repository's patterns.

Added .github/copilot-instructions.md

Covers:

  • Technology stack: Express/EJS/Node test runner stack with ESLint flat config
  • Code patterns: Modern JS (destructuring, for...of, const by default), CommonJS modules, double quotes
  • Security: Escaped EJS output (<%= %>), centralized error middleware
  • Performance: Static asset caching, efficient iteration patterns (.entries() over C-style loops)
  • Testing: Supertest with Node.js built-in test runner conventions

Example pattern documented:

// Prefer this
for (const [i, { image, text }] of haikus.entries()) {
  // Single destructure per iteration
}

// Over this
for (let i = 0; i < haikus.length; i++) {
  const image = haikus[i].image;  // Repeated lookups
}

@Claude Claude AI assigned Claude and ni0520 Feb 24, 2026
@netlify
Copy link

netlify bot commented Feb 24, 2026

Deploy Preview for myapp-52980b ready!

Name Link
🔨 Latest commit 40b4bb2
🔍 Latest deploy log https://app.netlify.com/projects/myapp-52980b/deploys/699d99909a2e6c00080adf9d
😎 Deploy Preview https://deploy-preview-16--myapp-52980b.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Co-authored-by: ni0520 <178153319+ni0520@users.noreply.github.com>
@Claude Claude AI changed the title [WIP] Add customization guide for Copilot documentation Add GitHub Copilot instructions for repository-specific context Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants