chore: improve AGENTS.md to enforce upstream workflow and project scripts#577
chore: improve AGENTS.md to enforce upstream workflow and project scripts#577alexander-akait merged 1 commit intomainfrom
Conversation
…ipts Make AI agents fetch and read the upstream webpack/webpack AGENTS.md before starting work, and use project-specific scripts from package.json instead of running tools via npx.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #577 +/- ##
==========================================
+ Coverage 96.54% 96.56% +0.01%
==========================================
Files 50 50
Lines 2927 2937 +10
Branches 922 928 +6
==========================================
+ Hits 2826 2836 +10
Misses 85 85
Partials 16 16
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Merging this PR will improve performance by ×55
Performance Changes
Comparing |
Summary
The previous AGENTS.md passively pointed to the upstream webpack AGENTS.md ("see ..."), which AI agents tended to skip — missing key rules like test-first for bug fixes and commit identity for CLA. It also said "refer to
scriptsinpackage.json" without being explicit enough, leading agents to usenpxinstead of project scripts.This change makes the instructions actionable:
package.json, nevernpxThis file is designed to be copied across all webpack sub-repos.
What kind of change does this PR introduce?
chore
Did you add tests for your changes?
N/A — documentation only.
Does this PR introduce a breaking change?
No.
Use of AI
This PR was authored with the assistance of Claude Code (Claude Opus 4.6), based on workflow issues identified during a prior bug-fix session.