site-kit-wp
AGENTS.md1.4k starsChanged 5 months agoApache-2.0View on GitHub
Trending
Quiet since July.about the whole repository
Who's talking about google/site-kit-wp
- WordPress/plugin-check“Prefix Composer dependencies”GitHub · Nov 30, 2023 · 2 reactions
- Automattic/woocommerce-payments“Fix initial isLoading for deposits overviews data.”GitHub · Mar 22, 2023 · 2 reactions
- GoogleForCreators/web-stories-wp“Monetization: AdSense Site Kit detection”GitHub · Feb 1, 2021 · 2 reactions
- qtranslate/qtranslate-xt“Ensure compatibility with Google Site Kit”GitHub · Jan 5, 2021 · 2 reactions
- WordPress/gutenberg“Revert conditional selects from #47243”GitHub · Apr 20, 2023 · 1 reactions
The biggest 5 of 29 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 29
Talked about on GitHub (29 times).
On GitHub · 29
- Nov 30, 2023Prefix Composer dependencies — WordPress/plugin-check2 reactions · 4 comments
- Mar 22, 2023Fix initial isLoading for deposits overviews data. — Automattic/woocommerce-payments2 reactions · 3 comments
- Feb 1, 2021Monetization: AdSense Site Kit detection — GoogleForCreators/web-stories-wp2 reactions · 15 comments
- Jan 5, 2021Ensure compatibility with Google Site Kit — qtranslate/qtranslate-xt2 reactions · 7 comments
- Apr 20, 2023Revert conditional selects from #47243 — WordPress/gutenberg1 reaction · 7 comments
24 more on GitHub
- Jan 5, 2021Ensure compatibility with Google Site Kit — phpzio/translatepress1 reaction · 3 comments
- Aug 1, 2019Oxygen / Google Kit Incompatibility — soflyy/oxygen-bugs-and-features1 reaction · 1 comment
- Jul 11, 2026[Feature] Add read-only Google Site Kit integration abilities — DanielBoring/webmastery-site-toolkit-for-mcp0 reactions
- Jan 24, 2026Implement Google Site Kit integration for base plugin — nvdigitalsolutions/mcp-ai-wpoos0 reactions · 7 comments
- Aug 11, 2025ActivityPub Handle Format Issue with Google Login — Automattic/wordpress-activitypub0 reactions · 1 comment
- May 7, 2025Infra/10709 fix user input questions test — techanvil/site-kit-wp0 reactions
- Apr 16, 2025Infra/10109/fix analytics setup with account with tag test timeouts — techanvil/site-kit-wp0 reactions
- Apr 2, 2025Infra/10570 fix e2e test timeout — techanvil/site-kit-wp0 reactions
- Feb 23, 2025share-image.com — mypdns/matrix0 reactions
- Jan 10, 2025Dashboard: Add banner to suggest enabling auto-updates — GoogleForCreators/web-stories-wp0 reactions
- Nov 21, 2024Integrate Web Worker Offloading with Google Site Kit — WordPress/performance0 reactions · 8 comments
- Aug 26, 2024Allow supporting gtag `set` command arguments — GoogleChromeLabs/third-party-capital0 reactions · 1 comment
- Jun 29, 2023Deprecate googleanalytics (UA) vendor type in favor of gtag (GA4) — ampproject/amp-wp0 reactions · 2 comments
- May 31, 2023Stats: Fix ICU error in Safari when invoking Intl — Automattic/wp-calypso0 reactions · 3 comments
- Feb 2, 2023WIP: Fix Safari 14 error in stats on macOS Mojave — Automattic/wp-calypso0 reactions · 4 comments
- Jan 5, 2023Resource is a other reserved keyword — googleapis/google-api-php-client-services0 reactions · 1 comment
- Dec 22, 2022Periodic `403: rate limit exceeded` when setting up `composer` — shivammathur/setup-php0 reactions · 2 comments
- Oct 13, 2022Investigating use of PHP-Scoper — pronamic/wp-pronamic-pay0 reactions · 1 comment
- Apr 7, 2022User does not have sufficient permissions for this account — matomo-org/plugin-GoogleAnalyticsImporter0 reactions · 7 comments
- Feb 10, 2022Use composer to install WordPress for unit tests — GoogleForCreators/web-stories-wp0 reactions · 3 comments
- Dec 8, 2020Prefix all our vendor libs — matomo-org/matomo0 reactions · 24 comments
- Apr 16, 2020Facilitate marking script/style dependencies as being covered by AMP dev mode — ampproject/amp-wp0 reactions · 1 comment
- Feb 27, 2020Prevent vendor conflicts with other WordPress plugins — matomo-org/matomo-for-wordpress0 reactions · 16 comments
- Dec 18, 2019Fetch Google Site Kit capabilities — JoryHogeveen/view-admin-as0 reactions
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,773 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 repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- implement-issueSkill
- review-prSkill
- write-implementation-briefSkill
- write-issue-requirementsSkill
- implement-issueSkill
- review-prSkill
- write-implementation-briefSkill
- write-issue-requirementsSkill
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
When asked to create, draft, or write a GitHub issue from a design doc, from a bug report or from requirements in the message, to break an …
- Very specific: line 20
When asked to write, draft, adjust, update, or fill in the Implementation Brief and Test Coverage sections of an issue, follow …
- Distinctive: line 26
When asked to implement, build, or work on a GitHub issue by number, follow
- Very specific: line 32
When asked to review a pull request by number, follow docs/context/workflow/review-pr.md and grade against …
- Distinctive: line 73
One component per file: never define more than one React component in a single file.
- Distinctive: line 87
JS: Create datastore + components following existing patterns
- Distinctive: line 138
When in doubt: Check existing similar modules, refer to config files, or search the codebase for patterns.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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.
Files
Code Assistant Context - Site Kit by Google
Project Overview
WordPress plugin providing Google services integration. PHP backend (includes/) + React frontend (assets/js/) with modular architecture for each Google service (Analytics, AdSense, Search Console, etc.).
Workflow playbooks
Each workflow below has a shared, tool-agnostic playbook in docs/context/workflow/ that is its
single source of truth: read that playbook and follow it exactly. Claude Code exposes each one as
a skill of the same name; Antigravity as a workflow in .agents/workflows/.
Writing an issue
When asked to create, draft, or write a GitHub issue from a design doc, from a bug report or from
requirements in the message, to break an epic's design doc into issues, or to write Acceptance
criteria for an existing issue, follow docs/context/workflow/write-issue-requirements.md. Establish the
type first — a feature request (.github/ISSUE_TEMPLATE/feature_request.md) or a bug
report (.github/ISSUE_TEMPLATE/bug_report.md) — and ask the user which one when the request
doesn't make it clear. Do not create or edit a GitHub issue unless explicitly asked.
Writing an implementation brief
When asked to write, draft, adjust, update, or fill in the Implementation Brief and Test
Coverage sections of an issue, follow docs/context/workflow/write-implementation-brief.md.
Touch only those two sections, and do not edit the GitHub issue or post a comment unless
explicitly asked.
Implementing a GitHub issue
When asked to implement, build, or work on a GitHub issue by number, follow
docs/context/workflow/implement-issue.md and review against
docs/context/workflow/review-checklist.md. Never commit, push, or open a PR unless
explicitly asked.
Reviewing a pull request
When asked to review a pull request by number, follow docs/context/workflow/review-pr.md and
grade against docs/context/workflow/review-checklist.md. Stay read-only — do not post
comments, approve, or change the PR state unless explicitly asked.
Architecture Essentials
PHP Structure
- Namespace:
Google\Site_Kit\(PSR-4 autoloaded) - Core:
includes/Core/- authentication, modules, storage, REST API - Modules:
includes/Modules/- each Google service as separate module - Entry:
google-site-kit.php→includes/loader.php→includes/Plugin.php
JavaScript Structure
- Data: WordPress data stores in
assets/js/googlesitekit/data/ - Modules:
assets/js/modules/{module}/withcomponents/,datastore/,utils/ - Build: Webpack multi-entry with code splitting
Development Commands
Essential Scripts
npm run build/npm run dev- Asset buildsnpm run lint/composer run lint- Code qualitynpm run test/composer run test- Run testsnpm run watch- Development auto-rebuild
Key Config Files
- Build:
assets/webpack.config.js - Quality:
.eslintrc.json,phpcs.xml,.prettierrc.js - Tests:
tests/js/jest.config.js,phpunit.xml.dist
Development Standards
PHP Conventions
- WordPress Coding Standards + PSR-4
- Text domain:
google-site-kit - snake_case methods, PascalCase classes with underscores
- Details: See
phpcs.xmlfor complete ruleset
JavaScript Conventions
- WordPress ESLint preset + custom rules
- Function components, React Hooks patterns
- One component per file: never define more than one React component in a single file. Extract each additional component (including small sub-components) into its own file and import it. Shared, non-component code (styles, constants, helpers) may live in a separate non-component module (e.g.
pdfStyles.ts). - Details: See
.eslintrc.jsonand custom ESLint plugin
Testing Strategy
Comprehensive multi-layer testing:
- PHP: PHPUnit with WordPress test suite (
tests/phpunit/) - JS: Jest with React Testing Library (
tests/js/) - E2E: Puppeteer browser automation (
tests/e2e/) - Visual: Backstop.js for regression (
tests/backstop/)
Key test utilities: tests/js/test-utils.js (JS), tests/phpunit/includes/TestCase.php (PHP)
Module Development
- PHP: Extend
Core\Modules\Module, implement required interfaces - JS: Create datastore + components following existing patterns
- Integration: Register in
includes/Core/Modules/Modules.php
Study existing modules in includes/Modules/ and assets/js/modules/ for patterns.
Module Pattern
Each module follows consistent structure:
includes/Modules/ModuleName.php # Main PHP class
includes/Modules/ModuleName/ # PHP subclasses
assets/js/modules/module-slug/ # JS implementation
├── components/ # React components
├── datastore/ # WordPress data store
└── utils/ # UtilitiesImportant Patterns
- Feature Flags:
feature-flags.json+Core\Util\Feature_Flags - Assets: Module-based registration via traits/interfaces
- Data Flow: WordPress data stores → React components
- Authentication: Google OAuth via proxy service
Visual Regression Testing & Storybook
Storybook Stories
Component documentation and testing via interactive stories:
- Stories:
**/*.stories.js- React component stories for UI development - Config:
storybook/main.js- Storybook configuration - Setup:
storybook/{package.json,webpack.config.js}- Storybook build setup - Commands:
npm run storybook(dev),npm run build:storybook(build)
Story structure follows CSF (Component Story Format):
ComponentName.stories.js
├── export default { title, component } # Story metadata
├── export const StoryName = () => <...> # Individual stories
└── StoryName.parameters = { ... } # Story-specific configVisual Regression Testing (VRT)
Automated visual testing via BackstopJS + Storybook:
- Reference Images:
tests/backstop/reference/- Golden master screenshots - Config:
tests/backstop/config.js+scenarios.js- BackstopJS setup - VRT Styles:
storybook/preview-head-vrt.html- Animation/transition disabling
VRT workflow:
npm run test:visualtest- Run VRT tests (compare vs reference)npm run test:visualapprove- Accept new screenshots as reference- Auto-generated: Scenarios created from all
*.stories.jsfiles - Special classes:
.googlesitekit-vrt-animation-none,.googlesitekit-vrt-animation-paused
When in doubt: Check existing similar modules, refer to config files, or search the codebase for patterns.
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
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.

