Skip to content

Update AGENTS.md with corrections and missing info#398

Open
kraftbj wants to merge 1 commit intotrunkfrom
update-agents-md
Open

Update AGENTS.md with corrections and missing info#398
kraftbj wants to merge 1 commit intotrunkfrom
update-agents-md

Conversation

@kraftbj
Copy link
Copy Markdown
Contributor

@kraftbj kraftbj commented Mar 26, 2026

Closes

Reviewed the AGENTS.md file and found several issues and gaps:

  • Added repository info section explicitly noting trunk as the default branch (AI agents often receive incorrect system prompt info saying main)
  • Added JavaScript unit test commands (npm run test:unit, test:unit:watch) which were missing
  • Replaced direct vendor/bin/phpcs / vendor/bin/phpcbf references with composer lint:php / composer format:php as the primary commands, keeping vendor/bin/ only for targeting specific files
  • Added vendor/bin/phpcs for checking specific files (only phpcbf was listed)
  • Added PR instructions to always target trunk and use the PR template

Use of AI Tools

This PR was authored with Claude Code after interactive review of the original file and changes were reviewed by Kraft before push.

- Add repository info section noting trunk as the default branch
- Add JavaScript unit test commands (npm run test:unit)
- Use composer lint:php / format:php instead of direct vendor/bin paths
- Add vendor/bin/phpcs for checking specific files
- Add PR instructions to target trunk and use the PR template
@github-actions
Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props kraftbj.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.59%. Comparing base (c548ea1) to head (a668403).

Additional details and impacted files
@@             Coverage Diff              @@
##              trunk     #398      +/-   ##
============================================
- Coverage     54.00%   52.59%   -1.41%     
  Complexity     4423     4423              
============================================
  Files           298      298              
  Lines         39468    39468              
============================================
- Hits          21314    20759     -555     
- Misses        18154    18709     +555     
Flag Coverage Δ
e2e-js 45.84% <ø> (-0.02%) ⬇️
e2e-php 40.48% <ø> (-2.19%) ⬇️
javascript 15.07% <ø> (ø)
phpunit 29.95% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant