Add repository-level custom AI instruction files (Copilot, Agents, Claude)#835
Add repository-level custom AI instruction files (Copilot, Agents, Claude)#835tomvothecoder merged 4 commits intomainfrom
Conversation
…tions.md, CLAUDE.md) Co-authored-by: tomvothecoder <25624127+tomvothecoder@users.noreply.github.com>
This comment was marked as resolved.
This comment was marked as resolved.
…truth references Co-authored-by: tomvothecoder <25624127+tomvothecoder@users.noreply.github.com>
This comment was marked as resolved.
This comment was marked as resolved.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #835 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 18 18
Lines 1989 1989
=========================================
Hits 1989 1989 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@copilot Refactor the repository-level AI instruction system to eliminate unnecessary duplication across tool-specific files. Objective
Required Changes1. AGENTS.md (Canonical)
2. .github/copilot-instructions.md (Adapter Only)Reduce this file to:
This file should be minimal and enforce Copilot workflow behavior only. 3. .claude/CLAUDE.md (Adapter Only)Reduce this file to:
Anti-Duplication RuleTool-specific files must not restate:
They may reference Acceptance Criteria
Refactor the files accordingly and provide a summary of removed duplication and final file responsibilities. |
Co-authored-by: tomvothecoder <25624127+tomvothecoder@users.noreply.github.com>
... Refactored in Removed from both adapter files:
copilot-instructions.md (19 lines, 17% of AGENTS.md):
CLAUDE.md (26 lines, 23% of AGENTS.md):
AGENTS.md — unchanged, remains the comprehensive tool-agnostic canonical source (114 lines). |
Description
Adds three AI instruction files to standardize AI-assisted development across tools.
AGENTS.mdis the single canonical source of truth; tool-specific files are thin adapters that defer toAGENTS.mdand contain only tool-specific workflow behavior.All files are policy-focused and reference authoritative source files (
pyproject.toml,.pre-commit-config.yaml) instead of embedding volatile information such as version numbers, dependency constraints, or tool configuration values. This ensures the files remain correct when versions, dependencies, or configurations change.AGENTS.md(root, 114 lines) — Comprehensive, tool-agnostic canonical reference: coding standards (Ruff, MyPy, NumPy docstrings), architecture (xarray accessors, CF conventions), testing (pytest, xarray.testing assertions), dependency policy, build commands, workflow rules. Referencespyproject.tomland.pre-commit-config.yamlfor all configuration details..github/copilot-instructions.md(19 lines, ~17% of AGENTS.md) — Thin adapter. Points toAGENTS.mdas canonical. Contains only Copilot-specific behavioral constraints: grounding in repo context, no hallucination of files/modules, preferring established patterns..claude/CLAUDE.md(26 lines, ~23% of AGENTS.md) — Thin adapter. Points toAGENTS.mdas canonical. Contains only Claude-specific behavioral constraints plus a build command quick-reference.No architectural, testing, dependency, or coding standard content is duplicated across tool-specific files — all such rules live exclusively in
AGENTS.md.Checklist
If applicable:
Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.