Skip to content

Narrow .github/copilot-instructions.md and add user-level globals section#57

Merged
jamditis merged 2 commits into
masterfrom
chore/narrow-copilot-instructions
May 2, 2026
Merged

Narrow .github/copilot-instructions.md and add user-level globals section#57
jamditis merged 2 commits into
masterfrom
chore/narrow-copilot-instructions

Conversation

@jamditis
Copy link
Copy Markdown
Owner

@jamditis jamditis commented May 2, 2026

Two changes vs the original 38-line file

1. Remove duplication with CLAUDE.md. Project description, Amditis V2 theme palette restatement, deployment notes, and architecture details are already in CLAUDE.md, which Copilot's PR review bot also reads (cap ~4,000 chars per file). Duplicating here is drift surface with no leverage — when one drifts the other goes stale.

2. Add a 'Global rules to flag' section. Restates Joe's user-level conventions (no emojis, no AI attribution, sentence case, banned words, filler phrases, HTML favicon + OG tags). Copilot's PR review bot does NOT read ~/.claude/CLAUDE.md, so the bot can only enforce these rules if they're present in this file.

What stays

Project-specific bug classes: no hardcoded API keys, event-listener scope gotcha (sidebar/modal outside #llm-tool-advisor-container), generic class names in SVG <style> tags, transition: all, defer'd library load-order assumptions, build-step regressions, outdated model names, theme drift, rel="noopener noreferrer" on external links, inline event handlers.

Pattern reference

Same pattern shipped in stash#36 and reroute-nj#25.

Verification

  • wc -c .github/copilot-instructions.md returns 3219 (well under 4000)
  • No emojis in the file
  • No banned words in the prose (only quoted as examples in the banned-words list)
  • No real credentials

Two changes vs the original 38-line file:

1. Remove project description / Framer setup / font loading / deployment
   restatement — those are in CLAUDE.md, which Copilot's PR review bot
   also reads (cap ~4,000 chars per file). Duplicating here is drift
   surface with no leverage.

2. Add a "Global rules to flag" section restating Joe's user-level
   conventions (no emojis, no AI attribution, sentence case, banned
   words). Copilot does NOT read ~/.claude/CLAUDE.md, so the bot can
   only enforce these rules if they're present in this file.

What stays: project-specific bug classes (no hardcoded API keys,
Airtable whitelist validation, plus any others kept from the original).
Copilot AI review requested due to automatic review settings May 2, 2026 23:02
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR streamlines .github/copilot-instructions.md by removing duplicated project context (now referenced in CLAUDE.md) and by adding a dedicated section for user-level global conventions so Copilot’s PR review can consistently flag them.

Changes:

  • Replaces repeated project/theme/deploy details with a pointer to CLAUDE.md.
  • Adds a “Global rules to flag” section covering sentence case, emoji/attribution bans, banned words, filler phrases, and required HTML meta/favicon tags.
  • Keeps and consolidates repo-specific “bug classes to flag” (event listener scope, SVG <style> leakage, transition: all, no build step, model name staleness, etc.).

Comment thread .github/copilot-instructions.md Outdated
- Flag these banned words: "comprehensive", "robust", "leveraging", "seamlessly", "innovative", "cutting-edge", "holistic", "synergy", "ecosystem", "paradigm", "empower", "transformative", "sophisticated", "state-of-the-art".
- Flag filler phrases: "it's worth noting", "in order to" (use "to"), "at the end of the day", "moving forward".
- Never include AI attribution ("Generated with Claude Code", etc.) in PRs, commits, code, or docs.
- **Sentence case** in headings, UI text, and identifiers. Title Case is a regression.
Comment thread .github/copilot-instructions.md Outdated
- Never include AI attribution ("Generated with Claude Code", etc.) in PRs, commits, code, or docs.
- **Sentence case** in headings, UI text, and identifiers. Title Case is a regression.
- **No emojis** in source code, log messages, comments, commits, PR bodies, or any output. Plain text only.
- **No AI attribution.** Never include "Generated with Claude Code", `Co-Authored-By: Claude` trailers, or any AI/model/company attribution in PRs, commits, code, or any committed file.
Comment thread .github/copilot-instructions.md Outdated
- **No AI attribution.** Never include "Generated with Claude Code", `Co-Authored-By: Claude` trailers, or any AI/model/company attribution in PRs, commits, code, or any committed file.
- **Banned words** (delete or replace): *comprehensive, sophisticated, robust, transformative, leveraging, seamlessly, innovative, cutting-edge, state-of-the-art, holistic, synergy, ecosystem, paradigm, empower*.
- **Filler phrases** (delete or rewrite): *it's worth noting, in order to (use "to"), at the end of the day, moving forward*.
- **Every HTML page must have an SVG favicon and full OG/Twitter meta tags.** Required tags: `og:title`, `og:description`, `og:type`, `og:url`, `og:image` (1200x630), `og:image:width`, `og:image:height`, `twitter:card` (`summary_large_image`), `twitter:title`, `twitter:description`, `twitter:image`.
…irements

- Sentence-case rule scoped to prose/UI/comments; identifiers follow language conventions
- AI-attribution rule narrowed to authorship credits, not model/company mentions
- Favicon and OG/Twitter rule names the exact <link> tag and meta keys
  so the bot can pattern-match them on review
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