wordpress-agent-kit 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/wp-bootstrap/SKILL.md +314 -0
- package/.agents/skills/wp-bootstrap/references/composer-setup.md +275 -0
- package/.agents/skills/wp-bootstrap/references/monorepo-patterns.md +184 -0
- package/.agents/skills/wp-bootstrap/scripts/bootstrap.sh +151 -0
- package/.agents/skills/wp-bootstrap/scripts/detect-structure.mjs +466 -0
- package/.agents/skills/wp-bootstrap/scripts/package-wp.sh +173 -0
- package/.agents/skills/wp-bootstrap/scripts/playground-start.sh +148 -0
- package/.agents/skills/wp-bootstrap/scripts/playground-verify.sh +165 -0
- package/.agents/skills/wp-bootstrap/scripts/setup-github.sh +417 -0
- package/.agents/skills/wp-wpengine/SKILL.md +76 -12
- package/.agents/skills/wp-wpengine/references/github-actions-deploy.md +16 -9
- package/README.md +1 -1
- package/dist/cli.js +2 -0
- package/dist/commands/bootstrap.js +105 -0
- package/dist/lib/api.js +1 -0
- package/dist/lib/bootstrap.js +352 -0
- package/extensions/wp-agent-kit/index.ts +143 -3
- package/package.json +1 -1
- package/skills-custom/wp-bootstrap/SKILL.md +314 -0
- package/skills-custom/wp-bootstrap/references/composer-setup.md +275 -0
- package/skills-custom/wp-bootstrap/references/monorepo-patterns.md +184 -0
- package/skills-custom/wp-bootstrap/scripts/bootstrap.sh +151 -0
- package/skills-custom/wp-bootstrap/scripts/detect-structure.mjs +466 -0
- package/skills-custom/wp-bootstrap/scripts/package-wp.sh +173 -0
- package/skills-custom/wp-bootstrap/scripts/playground-start.sh +148 -0
- package/skills-custom/wp-bootstrap/scripts/playground-verify.sh +165 -0
- package/skills-custom/wp-bootstrap/scripts/setup-github.sh +417 -0
- package/skills-custom/wp-wpengine/SKILL.md +76 -12
- package/skills-custom/wp-wpengine/references/github-actions-deploy.md +16 -9
- package/.github/skills/blueprint/SKILL.md +0 -418
- package/.github/skills/wordpress-router/SKILL.md +0 -52
- package/.github/skills/wordpress-router/references/decision-tree.md +0 -55
- package/.github/skills/wp-abilities-api/SKILL.md +0 -108
- package/.github/skills/wp-abilities-api/references/delegate-helper-pattern.md +0 -241
- package/.github/skills/wp-abilities-api/references/domain-vs-projection.md +0 -113
- package/.github/skills/wp-abilities-api/references/error-code-vocabulary.md +0 -123
- package/.github/skills/wp-abilities-api/references/grouping-heuristic.md +0 -89
- package/.github/skills/wp-abilities-api/references/input-schema-gotchas.md +0 -265
- package/.github/skills/wp-abilities-api/references/php-registration.md +0 -94
- package/.github/skills/wp-abilities-api/references/plugin-family-patterns.md +0 -233
- package/.github/skills/wp-abilities-api/references/rest-api.md +0 -13
- package/.github/skills/wp-abilities-api/references/shared-core-service.md +0 -184
- package/.github/skills/wp-abilities-audit/SKILL.md +0 -199
- package/.github/skills/wp-abilities-audit/references/audit-schema.md +0 -300
- package/.github/skills/wp-abilities-audit/references/capability-gate-tracing.md +0 -197
- package/.github/skills/wp-abilities-audit/references/controller-enumeration.md +0 -116
- package/.github/skills/wp-abilities-verify/SKILL.md +0 -215
- package/.github/skills/wp-abilities-verify/references/annotation-correctness.md +0 -154
- package/.github/skills/wp-abilities-verify/references/audit-schema-validation.md +0 -131
- package/.github/skills/wp-abilities-verify/references/permission-roundtrip.md +0 -190
- package/.github/skills/wp-abilities-verify/references/runtime-harness.md +0 -462
- package/.github/skills/wp-abilities-verify/references/schema-lints.md +0 -118
- package/.github/skills/wp-abilities-verify/references/static-enumeration.md +0 -126
- package/.github/skills/wp-block-development/SKILL.md +0 -175
- package/.github/skills/wp-block-development/references/attributes-and-serialization.md +0 -22
- package/.github/skills/wp-block-development/references/block-json.md +0 -49
- package/.github/skills/wp-block-development/references/creating-new-blocks.md +0 -46
- package/.github/skills/wp-block-development/references/debugging.md +0 -36
- package/.github/skills/wp-block-development/references/deprecations.md +0 -24
- package/.github/skills/wp-block-development/references/dynamic-rendering.md +0 -23
- package/.github/skills/wp-block-development/references/inner-blocks.md +0 -25
- package/.github/skills/wp-block-development/references/registration.md +0 -30
- package/.github/skills/wp-block-development/references/supports-and-wrappers.md +0 -18
- package/.github/skills/wp-block-development/references/tooling-and-testing.md +0 -21
- package/.github/skills/wp-block-development/scripts/list_blocks.mjs +0 -121
- package/.github/skills/wp-block-themes/SKILL.md +0 -117
- package/.github/skills/wp-block-themes/references/creating-new-block-theme.md +0 -37
- package/.github/skills/wp-block-themes/references/debugging.md +0 -24
- package/.github/skills/wp-block-themes/references/patterns.md +0 -18
- package/.github/skills/wp-block-themes/references/style-variations.md +0 -14
- package/.github/skills/wp-block-themes/references/templates-and-parts.md +0 -16
- package/.github/skills/wp-block-themes/references/theme-json.md +0 -59
- package/.github/skills/wp-block-themes/scripts/detect_block_themes.mjs +0 -117
- package/.github/skills/wp-interactivity-api/SKILL.md +0 -180
- package/.github/skills/wp-interactivity-api/references/debugging.md +0 -29
- package/.github/skills/wp-interactivity-api/references/directives-quickref.md +0 -30
- package/.github/skills/wp-interactivity-api/references/server-side-rendering.md +0 -310
- package/.github/skills/wp-performance/SKILL.md +0 -147
- package/.github/skills/wp-performance/references/autoload-options.md +0 -24
- package/.github/skills/wp-performance/references/cron.md +0 -20
- package/.github/skills/wp-performance/references/database.md +0 -20
- package/.github/skills/wp-performance/references/http-api.md +0 -15
- package/.github/skills/wp-performance/references/measurement.md +0 -21
- package/.github/skills/wp-performance/references/object-cache.md +0 -24
- package/.github/skills/wp-performance/references/query-monitor-headless.md +0 -38
- package/.github/skills/wp-performance/references/server-timing.md +0 -22
- package/.github/skills/wp-performance/references/wp-cli-doctor.md +0 -24
- package/.github/skills/wp-performance/references/wp-cli-profile.md +0 -32
- package/.github/skills/wp-performance/scripts/perf_inspect.mjs +0 -128
- package/.github/skills/wp-phpstan/SKILL.md +0 -98
- package/.github/skills/wp-phpstan/references/configuration.md +0 -52
- package/.github/skills/wp-phpstan/references/third-party-classes.md +0 -76
- package/.github/skills/wp-phpstan/references/wordpress-annotations.md +0 -124
- package/.github/skills/wp-phpstan/scripts/phpstan_inspect.mjs +0 -263
- package/.github/skills/wp-playground/SKILL.md +0 -233
- package/.github/skills/wp-playground/references/blueprints.md +0 -36
- package/.github/skills/wp-playground/references/cli-commands.md +0 -39
- package/.github/skills/wp-playground/references/debugging.md +0 -16
- package/.github/skills/wp-playground/references/e2e-playwright.md +0 -115
- package/.github/skills/wp-plugin-development/SKILL.md +0 -113
- package/.github/skills/wp-plugin-development/references/data-and-cron.md +0 -19
- package/.github/skills/wp-plugin-development/references/debugging.md +0 -19
- package/.github/skills/wp-plugin-development/references/lifecycle.md +0 -33
- package/.github/skills/wp-plugin-development/references/security.md +0 -29
- package/.github/skills/wp-plugin-development/references/settings-api.md +0 -22
- package/.github/skills/wp-plugin-development/references/structure.md +0 -16
- package/.github/skills/wp-plugin-development/scripts/detect_plugins.mjs +0 -122
- package/.github/skills/wp-plugin-directory-guidelines/SKILL.md +0 -133
- package/.github/skills/wp-plugin-directory-guidelines/references/gpl-compliance.md +0 -217
- package/.github/skills/wp-plugin-directory-guidelines/references/guideline-review-checklist.md +0 -592
- package/.github/skills/wp-plugin-directory-guidelines/references/naming-rules.md +0 -121
- package/.github/skills/wp-project-triage/SKILL.md +0 -39
- package/.github/skills/wp-project-triage/references/triage.schema.json +0 -143
- package/.github/skills/wp-project-triage/scripts/detect_wp_project.mjs +0 -610
- package/.github/skills/wp-rest-api/SKILL.md +0 -115
- package/.github/skills/wp-rest-api/references/authentication.md +0 -18
- package/.github/skills/wp-rest-api/references/custom-content-types.md +0 -20
- package/.github/skills/wp-rest-api/references/discovery-and-params.md +0 -20
- package/.github/skills/wp-rest-api/references/responses-and-fields.md +0 -30
- package/.github/skills/wp-rest-api/references/routes-and-endpoints.md +0 -36
- package/.github/skills/wp-rest-api/references/schema.md +0 -22
- package/.github/skills/wp-wpcli-and-ops/SKILL.md +0 -124
- package/.github/skills/wp-wpcli-and-ops/references/automation.md +0 -30
- package/.github/skills/wp-wpcli-and-ops/references/cron-and-cache.md +0 -23
- package/.github/skills/wp-wpcli-and-ops/references/debugging.md +0 -17
- package/.github/skills/wp-wpcli-and-ops/references/multisite.md +0 -22
- package/.github/skills/wp-wpcli-and-ops/references/packages-and-updates.md +0 -22
- package/.github/skills/wp-wpcli-and-ops/references/safety.md +0 -30
- package/.github/skills/wp-wpcli-and-ops/references/search-replace.md +0 -40
- package/.github/skills/wp-wpcli-and-ops/scripts/wpcli_inspect.mjs +0 -90
- package/.github/skills/wp-wpengine/SKILL.md +0 -127
- package/.github/skills/wpds/SKILL.md +0 -59
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: wp-wpengine
|
|
3
|
-
description: "Optional: Use for WP Engine hosting workflows — SSH-based git push to WP Engine environments, managing installs/domains/cache/backups via the wpe-labs Claude Code skills, and WP Engine API access. Requires WPE_USERNAME and WPE_PASSWORD env vars."
|
|
4
|
-
license: GPL-2.0-or-later
|
|
5
|
-
optional: true
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# WP Engine
|
|
9
|
-
|
|
10
|
-
## When to use
|
|
11
|
-
|
|
12
|
-
- Deploy WordPress code to a WP Engine environment via `git push`.
|
|
13
|
-
- Manage WP Engine installs, domains, cache, backups, or users through natural language.
|
|
14
|
-
- Generate monthly usage/bandwidth reports across WP Engine accounts.
|
|
15
|
-
- Manage LargeFS media offload configuration.
|
|
16
|
-
|
|
17
|
-
## Prerequisites
|
|
18
|
-
|
|
19
|
-
- SSH key for WP Engine git push stored in 1Password (`Employee` vault, item `wpengine_ed25519`).
|
|
20
|
-
- WP Engine API credentials in 1Password (`Employee` vault, item `WP Engine API`).
|
|
21
|
-
- `op` CLI authenticated (`op whoami` works).
|
|
22
|
-
- The `wpe-labs` Claude Code skills installed (`~/.claude/skills/wpe-labs:*`).
|
|
23
|
-
|
|
24
|
-
## Procedure
|
|
25
|
-
|
|
26
|
-
### 1) First-time SSH setup on a new machine
|
|
27
|
-
|
|
28
|
-
Pull the private key from 1Password and configure SSH:
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
op read "op://Employee/wpengine_ed25519/private key" > ~/.ssh/wpengine_ed25519
|
|
32
|
-
chmod 600 ~/.ssh/wpengine_ed25519
|
|
33
|
-
ssh-keyscan git.wpengine.com >> ~/.ssh/known_hosts
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
Add to `~/.ssh/config` (before any `Host *` block):
|
|
37
|
-
```
|
|
38
|
-
Host git.wpengine.com
|
|
39
|
-
User git
|
|
40
|
-
IdentityFile ~/.ssh/wpengine_ed25519
|
|
41
|
-
IdentitiesOnly yes
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
Verify:
|
|
45
|
-
```bash
|
|
46
|
-
ssh git@git.wpengine.com info
|
|
47
|
-
# Expected: hello <username> / R W <install-name>
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
The public key is already registered on WP Engine — no portal action needed on new machines.
|
|
51
|
-
|
|
52
|
-
### 2) Add a WP Engine git remote
|
|
53
|
-
|
|
54
|
-
Find the remote URL on the WP Engine portal: `https://my.wpengine.com/installs/<ENV>/git_push`
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
git remote add wpengine git@git.wpengine.com:<install-name>.git
|
|
58
|
-
# Example for staging:
|
|
59
|
-
git remote add wpengine-staging git@git.wpengine.com:<install-name>stg.git
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
### 3) Deploy via git push
|
|
63
|
-
|
|
64
|
-
```bash
|
|
65
|
-
git push wpengine main
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
- WP Engine deploys the pushed branch automatically.
|
|
69
|
-
- Only the WordPress files are pushed (not `node_modules`, build artifacts, etc.).
|
|
70
|
-
- After push, WP Engine may take 1–2 min to propagate the deploy.
|
|
71
|
-
|
|
72
|
-
### 4) wpe-labs skills (natural language management)
|
|
73
|
-
|
|
74
|
-
Load API credentials, then use any `/wpe-labs:*` skill:
|
|
75
|
-
|
|
76
|
-
```bash
|
|
77
|
-
# Load credentials from 1Password for the session
|
|
78
|
-
eval $(op run --env-file ~/.config/op-ssh/.env.1pass -- env | grep ^WPE | sed 's/^/export /')
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
Available skills:
|
|
82
|
-
|
|
83
|
-
| Skill | What it does | Risk |
|
|
84
|
-
|---|---|---|
|
|
85
|
-
| `/wpe-labs:account-usage` | Bandwidth, visits, storage across accounts | 🟢 Read-only |
|
|
86
|
-
| `/wpe-labs:monthly-report` | Client-ready monthly usage report | 🟢 Read-only |
|
|
87
|
-
| `/wpe-labs:backups` | On-demand backups + progress monitoring | 🟡 Write |
|
|
88
|
-
| `/wpe-labs:cache` | Purge object/page/CDN cache | 🟡 Write |
|
|
89
|
-
| `/wpe-labs:users` | List, invite, update roles, remove users | 🟡/🔴 |
|
|
90
|
-
| `/wpe-labs:domains` | Manage domains, DNS, SSL | 🟡/🔴 |
|
|
91
|
-
| `/wpe-labs:installs` | List, create, copy WordPress installs | 🟡/🔴 |
|
|
92
|
-
| `/wpe-labs:offload` | LargeFS media offload config | 🟡 Write |
|
|
93
|
-
|
|
94
|
-
Example prompts:
|
|
95
|
-
```
|
|
96
|
-
/wpe-labs:account-usage which accounts are closest to their bandwidth limit?
|
|
97
|
-
/wpe-labs:cache purge all cache for uofdev production
|
|
98
|
-
/wpe-labs:backups back up uofdev production before deployment
|
|
99
|
-
/wpe-labs:installs copy uofdev production to staging
|
|
100
|
-
/wpe-labs:monthly-report last month
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
### 5) Re-installing wpe-labs skills
|
|
104
|
-
|
|
105
|
-
```bash
|
|
106
|
-
curl -fsSL https://raw.githubusercontent.com/wpengine/wpe-labs-platform-skills/main/install.sh | bash
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
## Verification
|
|
110
|
-
|
|
111
|
-
- SSH: `ssh git@git.wpengine.com info` — should return `hello <username> / R W <install>`
|
|
112
|
-
- API: `op run --env-file ~/.config/op-ssh/.env.1pass -- bash -c 'curl -s -u "$WPE_USERNAME:$WPE_PASSWORD" https://api.wpengineapi.com/v1/user | jq .email'`
|
|
113
|
-
|
|
114
|
-
## Failure modes
|
|
115
|
-
|
|
116
|
-
- **SSH: Host key verification failed** — re-run `ssh-keyscan git.wpengine.com >> ~/.ssh/known_hosts`
|
|
117
|
-
- **SSH: Permission denied** — confirm the key is at `~/.ssh/wpengine_ed25519` with `chmod 600`
|
|
118
|
-
- **git push rejected** — verify the remote URL matches the install name exactly
|
|
119
|
-
- **wpe-labs: 401 Unauthorized** — regenerate API credentials at `https://my.wpengine.com/api_access` and update the `WP Engine API` item in 1Password
|
|
120
|
-
- **wpe-labs: storage shows zero** — ask Claude to "refresh storage" (async recalculation, ~30–60s)
|
|
121
|
-
|
|
122
|
-
## References
|
|
123
|
-
|
|
124
|
-
- WP Engine git push portal: `https://my.wpengine.com/installs/<ENV>/git_push`
|
|
125
|
-
- WP Engine API access: `https://my.wpengine.com/api_access`
|
|
126
|
-
- wpe-labs skills source: `https://github.com/wpengine/wpe-labs-platform-skills`
|
|
127
|
-
- SSH setup log (first machine): gist `602d6a16ddfea438c0611a8e5cc31d5e`
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: wpds
|
|
3
|
-
description: "Use when building UIs leveraging the WordPress Design System (WPDS) and its components, tokens, patterns, etc."
|
|
4
|
-
license: GPL-2.0-or-later
|
|
5
|
-
compatibility: "Requires WPDS MCP server configured and running. Targets WordPress 6.9+ (PHP 7.2.24+)."
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# WordPress Design System (WPDS)
|
|
9
|
-
|
|
10
|
-
## Prerequisites
|
|
11
|
-
|
|
12
|
-
This skill works best with the **WPDS MCP server** installed. The MCP provides access to WordPress Design System documentation and resources, such as components and DS token lists.
|
|
13
|
-
|
|
14
|
-
The following terms should be treated as synonyms:
|
|
15
|
-
- "WordPress" and "WP";
|
|
16
|
-
- "Design System" and "DS";
|
|
17
|
-
- "WordPress Design System" and "WPDS".
|
|
18
|
-
|
|
19
|
-
## When to use
|
|
20
|
-
|
|
21
|
-
Use this skill when the user mentions:
|
|
22
|
-
|
|
23
|
-
- building and/or reviewing any UI in a WordPress-related context (for example, Gutenberg, WooCommerce, WordPress.com, Jetpack, etc etc);
|
|
24
|
-
- WordPress Design System, WPDS, Design System;
|
|
25
|
-
- UI components, Design tokens, color primitives, spacing scales, typography variables and presets;
|
|
26
|
-
- Specific component packages such as @wordpress/components or @wordpress/ui;
|
|
27
|
-
|
|
28
|
-
## Rules
|
|
29
|
-
|
|
30
|
-
### Use the WPDS MCP server to access WPDS-related documentation
|
|
31
|
-
|
|
32
|
-
- Use the WPDS MCP server to retrieve the canonical, authoritative documentation:
|
|
33
|
-
- reference site (`wpds://pages`)
|
|
34
|
-
- list of available components (`wpds://components`) and specific component information (`wpds://components/:name`)
|
|
35
|
-
- list of available tokens (`wpds://design-tokens`)
|
|
36
|
-
- DO NOT search the web for canonical documentation about the WordPress Design System. If asked by the user, push back and ask for confirmation, warning them that the MCP server is the best place to provide information
|
|
37
|
-
|
|
38
|
-
### Required documentation
|
|
39
|
-
|
|
40
|
-
Before working on any WPDS-related tasks, make sure you read relevant documentation on the reference site. This documentation should take the absolute precedence when evaluating the best course of action for any given tasks.
|
|
41
|
-
|
|
42
|
-
### Boundaries
|
|
43
|
-
|
|
44
|
-
- Skip non-UI related aspects of an answer (for example, fetching data from stores, or localizing strings of text).
|
|
45
|
-
- Focus on building UI that adheres as much as possible to the WPDS best practices, uses the most fitting WPDS components/tokens/patterns.
|
|
46
|
-
|
|
47
|
-
### Tech stack
|
|
48
|
-
|
|
49
|
-
- Unless you are told otherwise (or gathered specific information from the local context of the request), assume the following tech stack: TypeScript, React, CSS.
|
|
50
|
-
|
|
51
|
-
### Validation
|
|
52
|
-
|
|
53
|
-
- If the local context in which a task is running provide lint scripts, use them to validate the proposed code output when possible.
|
|
54
|
-
|
|
55
|
-
## Output
|
|
56
|
-
|
|
57
|
-
- As a recap at the end of your response, provide a clear and concise explanation of what the solution does, and add context to why each decision was made.
|
|
58
|
-
- Be explicit about the boundaries, ie. what was explicitly left out of the task because not relevant (eg non-ui related).
|
|
59
|
-
- Provide working code snippets
|