agentleFS
Zulut30Zulut30/Wordpress-skills/AGENTS.md

Wordpress-skills

AGENTS.md28 starsChanged 7 months agoMITView on GitHub

Use skills/wordpress-plugin-dev/SKILL.md as the canonical entry point. Before making WordPress-version-sensitive recommendations, load references/source-map.md and verify the current official docs for the relevant tool or API. For local checks: Do not edit generated install target copies directly. Edit the canonical skill folder, then run: Treat audit-plugin.mjs findings as triage signals, not proof of security. Verify release-sensitive Codex, Cursor, Claude Code, WordPress.org, Plugin Check, WP-CLI, npm, and Composer behavior against current official documentation before publishing.

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository4 other files it gives its agents.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

33 rules. About 0 are common, 27 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈27

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Use skills/wordpress-plugin-dev/SKILL.md as the canonical entry point.

    line 3
  2. Very specific:

    Before making WordPress-version-sensitive recommendations, load references/source-map.md and verify the current official docs for the …

    line 5
  3. Distinctive:

    Do not edit generated install target copies directly.

    line 23
  4. Very specific:

    Treat audit-plugin.mjs findings as triage signals, not proof of security.

    line 29
  5. Distinctive:

    Never remove security checks for speed.

    line 34
  6. Distinctive:

    Avoid expensive work on every request.

    line 35
  7. Very specific:

    Use no_found_rows when pagination totals are not needed.

    line 38
  8. Very specific:

    Use fields => ids when only IDs are required.

    line 39
  9. Distinctive:

    Avoid remote HTTP calls during render without cache/fallback.

    line 41
  10. Distinctive:

    Avoid large autoloaded options.

    line 42
  11. Very specific:

    Do not call flush_rewrite_rules() on normal requests.

    line 43
  12. Distinctive:

    Treat static scanner output as heuristic.

    line 44
  13. Distinctive:

    Prefer WordPress-native UI in wp-admin.

    line 48
  14. Distinctive:

    Do not add heavy UI frameworks by default.

    line 49
  15. Distinctive:

    Use clear labels and accessible form structure.

    line 50
  16. Distinctive:

    Do not use placeholder text as a label.

    line 51
  17. Distinctive:

    Keep one clear primary action per screen/section.

    line 53
  18. Distinctive:

    Use progressive disclosure for advanced settings.

    line 54
  19. Distinctive:

    Never remove security checks or escaping for visual polish.

    line 57
  20. Distinctive:

    Consider keyboard navigation, focus, contrast, RTL, and text expansion.

    line 59
  21. Distinctive:

    Treat design scanner output as heuristic.

    line 60
  22. Distinctive:

    Prefer WordPress core APIs before third-party plugin/theme APIs.

    line 64
  23. Distinctive:

    Use feature detection for optional integrations.

    line 65
  24. Distinctive:

    Never fatal if an optional plugin, theme, or builder is missing.

    line 66
  25. Distinctive:

    Do not use third-party private internals unless there is no alternative and the risk is documented.

    line 68
  26. Distinctive:

    Do not output duplicate SEO meta, schema, canonical, robots, Open Graph, or Twitter tags.

    line 69
  27. Distinctive:

    Do not cache private/user-specific output publicly.

    line 70
  28. Distinctive:

    Avoid purge-all cache behavior except explicit admin actions.

    line 71
  29. Distinctive:

    Do not globally override theme CSS.

    line 72
  30. Distinctive:

    Keep Classic Editor and Block Editor flows scoped.

    line 73
  31. Distinctive:

    Do not load builder/theme-specific assets globally.

    line 74
  32. Distinctive:

    Treat static compatibility scanner output as heuristic.

    line 76
  33. Distinctive:

    Verify current third-party docs before release-sensitive work.

    line 77

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Agent Notes

Use skills/wordpress-plugin-dev/SKILL.md as the canonical entry point.

Before making WordPress-version-sensitive recommendations, load references/source-map.md and verify the current official docs for the relevant tool or API.

For local checks:

npm run validate:skill
npm run check:sources
npm run test:audit
npm run audit:fixture
npm run performance:audit
npm run performance:audit:json
npm run design:audit
npm run design:audit:json
npm run compatibility:audit
npm run compatibility:audit:json
npm run smoke

Do not edit generated install target copies directly. Edit the canonical skill folder, then run:

npm run sync

Treat audit-plugin.mjs findings as triage signals, not proof of security. Verify release-sensitive Codex, Cursor, Claude Code, WordPress.org, Plugin Check, WP-CLI, npm, and Composer behavior against current official documentation before publishing.

Performance Defaults

  • Identify hot paths before optimizing.
  • Never remove security checks for speed.
  • Avoid expensive work on every request.
  • Scope assets by frontend/admin/editor/screen/block.
  • Bound queries and paginate collections.
  • Use no_found_rows when pagination totals are not needed.
  • Use fields => ids when only IDs are required.
  • Cache expensive safe operations with TTL and invalidation.
  • Avoid remote HTTP calls during render without cache/fallback.
  • Avoid large autoloaded options.
  • Do not call flush_rewrite_rules() on normal requests.
  • Treat static scanner output as heuristic.

Design Defaults

  • Prefer WordPress-native UI in wp-admin.
  • Do not add heavy UI frameworks by default.
  • Use clear labels and accessible form structure.
  • Do not use placeholder text as a label.
  • Design empty, loading, success, error, and edge states.
  • Keep one clear primary action per screen/section.
  • Use progressive disclosure for advanced settings.
  • Scope admin and frontend CSS.
  • Frontend output should inherit theme styles where practical.
  • Never remove security checks or escaping for visual polish.
  • UI text must be i18n-ready.
  • Consider keyboard navigation, focus, contrast, RTL, and text expansion.
  • Treat design scanner output as heuristic.

Integration / Compatibility Defaults

  • Prefer WordPress core APIs before third-party plugin/theme APIs.
  • Use feature detection for optional integrations.
  • Never fatal if an optional plugin, theme, or builder is missing.
  • Isolate integration adapters.
  • Do not use third-party private internals unless there is no alternative and the risk is documented.
  • Do not output duplicate SEO meta, schema, canonical, robots, Open Graph, or Twitter tags.
  • Do not cache private/user-specific output publicly.
  • Avoid purge-all cache behavior except explicit admin actions.
  • Do not globally override theme CSS.
  • Keep Classic Editor and Block Editor flows scoped.
  • Do not load builder/theme-specific assets globally.
  • Maintain a compatibility matrix for claimed integrations.
  • Treat static compatibility scanner output as heuristic.
  • Verify current third-party docs before release-sensitive work.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.