wp-skills 1.0.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.
Files changed (94) hide show
  1. package/LICENSE +16 -0
  2. package/README.md +157 -0
  3. package/docs/ai-authorship.md +60 -0
  4. package/docs/authoring-guide.md +56 -0
  5. package/docs/compatibility-policy.md +18 -0
  6. package/docs/packaging.md +35 -0
  7. package/docs/principles.md +7 -0
  8. package/docs/skill-set-v1.md +21 -0
  9. package/docs/upstream-sync.md +52 -0
  10. package/package.json +21 -0
  11. package/shared/scripts/ai-generate-updates.mjs +458 -0
  12. package/shared/scripts/scaffold-skill.mjs +62 -0
  13. package/shared/scripts/skillpack-build.mjs +168 -0
  14. package/shared/scripts/skillpack-cli.mjs +77 -0
  15. package/shared/scripts/skillpack-install.mjs +338 -0
  16. package/shared/scripts/update-upstream-indices.mjs +173 -0
  17. package/skills/wordpress-router/SKILL.md +51 -0
  18. package/skills/wordpress-router/references/decision-tree.md +55 -0
  19. package/skills/wp-abilities-api/SKILL.md +95 -0
  20. package/skills/wp-abilities-api/references/php-registration.md +67 -0
  21. package/skills/wp-abilities-api/references/rest-api.md +13 -0
  22. package/skills/wp-block-development/SKILL.md +174 -0
  23. package/skills/wp-block-development/references/attributes-and-serialization.md +22 -0
  24. package/skills/wp-block-development/references/block-json.md +49 -0
  25. package/skills/wp-block-development/references/creating-new-blocks.md +46 -0
  26. package/skills/wp-block-development/references/debugging.md +36 -0
  27. package/skills/wp-block-development/references/deprecations.md +24 -0
  28. package/skills/wp-block-development/references/dynamic-rendering.md +23 -0
  29. package/skills/wp-block-development/references/inner-blocks.md +25 -0
  30. package/skills/wp-block-development/references/registration.md +30 -0
  31. package/skills/wp-block-development/references/supports-and-wrappers.md +18 -0
  32. package/skills/wp-block-development/references/tooling-and-testing.md +21 -0
  33. package/skills/wp-block-development/scripts/list_blocks.mjs +121 -0
  34. package/skills/wp-block-themes/SKILL.md +116 -0
  35. package/skills/wp-block-themes/references/creating-new-block-theme.md +37 -0
  36. package/skills/wp-block-themes/references/debugging.md +24 -0
  37. package/skills/wp-block-themes/references/patterns.md +18 -0
  38. package/skills/wp-block-themes/references/style-variations.md +14 -0
  39. package/skills/wp-block-themes/references/templates-and-parts.md +16 -0
  40. package/skills/wp-block-themes/references/theme-json.md +59 -0
  41. package/skills/wp-block-themes/scripts/detect_block_themes.mjs +117 -0
  42. package/skills/wp-interactivity-api/SKILL.md +179 -0
  43. package/skills/wp-interactivity-api/references/debugging.md +29 -0
  44. package/skills/wp-interactivity-api/references/directives-quickref.md +30 -0
  45. package/skills/wp-interactivity-api/references/server-side-rendering.md +310 -0
  46. package/skills/wp-performance/SKILL.md +146 -0
  47. package/skills/wp-performance/references/autoload-options.md +24 -0
  48. package/skills/wp-performance/references/cron.md +20 -0
  49. package/skills/wp-performance/references/database.md +20 -0
  50. package/skills/wp-performance/references/http-api.md +15 -0
  51. package/skills/wp-performance/references/measurement.md +21 -0
  52. package/skills/wp-performance/references/object-cache.md +24 -0
  53. package/skills/wp-performance/references/query-monitor-headless.md +38 -0
  54. package/skills/wp-performance/references/server-timing.md +22 -0
  55. package/skills/wp-performance/references/wp-cli-doctor.md +24 -0
  56. package/skills/wp-performance/references/wp-cli-profile.md +32 -0
  57. package/skills/wp-performance/scripts/perf_inspect.mjs +128 -0
  58. package/skills/wp-phpstan/SKILL.md +97 -0
  59. package/skills/wp-phpstan/references/configuration.md +52 -0
  60. package/skills/wp-phpstan/references/third-party-classes.md +76 -0
  61. package/skills/wp-phpstan/references/wordpress-annotations.md +124 -0
  62. package/skills/wp-phpstan/scripts/phpstan_inspect.mjs +263 -0
  63. package/skills/wp-playground/SKILL.md +101 -0
  64. package/skills/wp-playground/references/blueprints.md +36 -0
  65. package/skills/wp-playground/references/cli-commands.md +39 -0
  66. package/skills/wp-playground/references/debugging.md +16 -0
  67. package/skills/wp-plugin-development/SKILL.md +112 -0
  68. package/skills/wp-plugin-development/references/data-and-cron.md +19 -0
  69. package/skills/wp-plugin-development/references/debugging.md +19 -0
  70. package/skills/wp-plugin-development/references/lifecycle.md +33 -0
  71. package/skills/wp-plugin-development/references/security.md +29 -0
  72. package/skills/wp-plugin-development/references/settings-api.md +22 -0
  73. package/skills/wp-plugin-development/references/structure.md +16 -0
  74. package/skills/wp-plugin-development/scripts/detect_plugins.mjs +122 -0
  75. package/skills/wp-project-triage/SKILL.md +38 -0
  76. package/skills/wp-project-triage/references/triage.schema.json +143 -0
  77. package/skills/wp-project-triage/scripts/detect_wp_project.mjs +592 -0
  78. package/skills/wp-rest-api/SKILL.md +114 -0
  79. package/skills/wp-rest-api/references/authentication.md +18 -0
  80. package/skills/wp-rest-api/references/custom-content-types.md +20 -0
  81. package/skills/wp-rest-api/references/discovery-and-params.md +20 -0
  82. package/skills/wp-rest-api/references/responses-and-fields.md +30 -0
  83. package/skills/wp-rest-api/references/routes-and-endpoints.md +36 -0
  84. package/skills/wp-rest-api/references/schema.md +22 -0
  85. package/skills/wp-wpcli-and-ops/SKILL.md +123 -0
  86. package/skills/wp-wpcli-and-ops/references/automation.md +30 -0
  87. package/skills/wp-wpcli-and-ops/references/cron-and-cache.md +23 -0
  88. package/skills/wp-wpcli-and-ops/references/debugging.md +17 -0
  89. package/skills/wp-wpcli-and-ops/references/multisite.md +22 -0
  90. package/skills/wp-wpcli-and-ops/references/packages-and-updates.md +22 -0
  91. package/skills/wp-wpcli-and-ops/references/safety.md +30 -0
  92. package/skills/wp-wpcli-and-ops/references/search-replace.md +40 -0
  93. package/skills/wp-wpcli-and-ops/scripts/wpcli_inspect.mjs +90 -0
  94. package/skills/wpds/SKILL.md +58 -0
package/LICENSE ADDED
@@ -0,0 +1,16 @@
1
+ Agent Skills for WordPress
2
+ Copyright (C) 2026 WordPress Contributors
3
+
4
+ This program is free software; you can redistribute it and/or modify
5
+ it under the terms of the GNU General Public License as published by
6
+ the Free Software Foundation; either version 2 of the License, or
7
+ (at your option) any later version.
8
+
9
+ This program is distributed in the hope that it will be useful,
10
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ GNU General Public License for more details.
13
+
14
+ You should have received a copy of the GNU General Public License along
15
+ with this program; if not, write to the Free Software Foundation, Inc.,
16
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
package/README.md ADDED
@@ -0,0 +1,157 @@
1
+ # Agent Skills for WordPress
2
+
3
+ **Teach AI coding assistants how to build WordPress the right way.**
4
+
5
+ Agent Skills are portable bundles of instructions, checklists, and scripts that help AI assistants (Claude, Copilot, Codex, Cursor, Antigravity IDE, etc.) understand WordPress development patterns, avoid common mistakes, and follow best practices.
6
+
7
+ > **AI Authorship Disclosure:** These skills were generated using GPT-5.2 Codex (High Reasoning) from official Gutenberg and WordPress documentation, then reviewed and edited by WordPress contributors. We tested skills with AI assistants and iterated based on results. This is v1, and skills will improve as the community uses them and contributes fixes. See [docs/ai-authorship.md](docs/ai-authorship.md) for details. ([WordPress AI Guidelines](https://make.wordpress.org/ai/handbook/ai-guidelines/))
8
+
9
+ ## Why Agent Skills?
10
+
11
+ AI coding assistants are powerful, but they often:
12
+ - Generate outdated WordPress patterns (pre-Gutenberg, pre-block themes)
13
+ - Miss critical security considerations in plugin development
14
+ - Skip proper block deprecations, causing "Invalid block" errors
15
+ - Ignore existing tooling in your repo
16
+
17
+ Agent Skills solve this by giving AI assistants **expert-level WordPress knowledge** in a format they can actually use.
18
+
19
+ ## Available Skills
20
+
21
+ | Skill | What it teaches |
22
+ |-------|-----------------|
23
+ | **wordpress-router** | Classifies WordPress repos and routes to the right workflow |
24
+ | **wp-project-triage** | Detects project type, tooling, and versions automatically |
25
+ | **wp-block-development** | Gutenberg blocks: `block.json`, attributes, rendering, deprecations |
26
+ | **wp-block-themes** | Block themes: `theme.json`, templates, patterns, style variations |
27
+ | **wp-plugin-development** | Plugin architecture, hooks, settings API, security |
28
+ | **wp-rest-api** | REST API routes/endpoints, schema, auth, and response shaping |
29
+ | **wp-interactivity-api** | Frontend interactivity with `data-wp-*` directives and stores |
30
+ | **wp-abilities-api** | Capability-based permissions and REST API authentication |
31
+ | **wp-wpcli-and-ops** | WP-CLI commands, automation, multisite, search-replace |
32
+ | **wp-performance** | Profiling, caching, database optimization, Server-Timing |
33
+ | **wp-phpstan** | PHPStan static analysis for WordPress projects (config, baselines, WP-specific typing) |
34
+ | **wp-playground** | WordPress Playground for instant local environments |
35
+ | **wpds** | WordPress Design System |
36
+
37
+ ## Quick Start
38
+
39
+ ### Install via npx (recommended)
40
+
41
+ ```bash
42
+ # Install into current project
43
+ npx wp-skills install --dest=. --targets=codex,vscode,claude,cursor,antigravity
44
+
45
+ # List available skills
46
+ npx wp-skills list
47
+ ```
48
+
49
+ This installs from the published npm package without cloning this repository.
50
+
51
+ ### Install globally for Claude Code
52
+
53
+ ```bash
54
+ # Clone agent-skills
55
+ git clone https://github.com/WordPress/agent-skills.git
56
+ cd agent-skills
57
+
58
+ # Install all skills globally (available across all projects)
59
+ node shared/scripts/skillpack-install.mjs --global
60
+
61
+ # Or install specific skills only
62
+ node shared/scripts/skillpack-install.mjs --global --skills=wp-playground,wp-block-development
63
+ ```
64
+
65
+ This installs skills to `~/.claude/skills/` where Claude Code will automatically discover them.
66
+
67
+ ### Install into your repo
68
+
69
+ ```bash
70
+ # Clone agent-skills
71
+ git clone https://github.com/WordPress/agent-skills.git
72
+ cd agent-skills
73
+
74
+ # Install into your WordPress project
75
+ node shared/scripts/skillpack-install.mjs --dest=../your-wp-project --targets=codex,vscode,claude,cursor,antigravity
76
+ ```
77
+
78
+ This copies skills into:
79
+ - `.codex/skills/` for OpenAI Codex
80
+ - `.github/skills/` for VS Code / GitHub Copilot
81
+ - `.claude/skills/` for Claude Code (project-level)
82
+ - `.cursor/skills/` for Cursor (project-level)
83
+ - `.agent/skill/` for Antigravity IDE (project-level)
84
+
85
+ ### Install globally for Cursor
86
+
87
+ ```bash
88
+ node shared/scripts/skillpack-install.mjs --targets=cursor-global
89
+ ```
90
+
91
+ This installs skills to `~/.cursor/skills/` where Cursor will discover them.
92
+
93
+ ### Available options
94
+
95
+ ```bash
96
+ # List available skills
97
+ node shared/scripts/skillpack-install.mjs --list
98
+
99
+ # Dry run (preview without installing)
100
+ node shared/scripts/skillpack-install.mjs --global --dry-run
101
+
102
+ # Install specific skills to a project (e.g. Claude + Antigravity)
103
+ node shared/scripts/skillpack-install.mjs --dest=../my-repo --targets=claude,antigravity --skills=wp-wpcli-and-ops
104
+ ```
105
+
106
+ ### Manual installation
107
+
108
+ Copy any skill folder from `skills/` into your project's instructions directory for your AI assistant.
109
+
110
+ ## How It Works
111
+
112
+ Each skill contains:
113
+
114
+ ```
115
+ skills/wp-block-development/
116
+ ├── SKILL.md # Main instructions (when to use, procedure, verification)
117
+ ├── references/ # Deep-dive docs on specific topics
118
+ │ ├── block-json.md
119
+ │ ├── deprecations.md
120
+ │ └── ...
121
+ └── scripts/ # Deterministic helpers (detection, validation)
122
+ └── list_blocks.mjs
123
+ ```
124
+
125
+ When you ask your AI assistant to work on WordPress code, it reads these skills and follows the documented procedures rather than guessing.
126
+
127
+ ## Compatibility
128
+
129
+ - **WordPress 6.9+** (PHP 7.2.24+)
130
+ - Works with any AI assistant that supports project-level instructions
131
+
132
+ ## Contributing
133
+
134
+ **We welcome contributions!** This project is a great way to share your WordPress expertise—you don't need to be a coding wizard. Most skills are written in Markdown, focusing on clear procedures and best practices.
135
+
136
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to get started.
137
+
138
+ Quick commands:
139
+
140
+ ```bash
141
+ # Scaffold a new skill
142
+ node shared/scripts/scaffold-skill.mjs <skill-name> "<description>"
143
+
144
+ # Validate skills
145
+ node eval/harness/run.mjs
146
+ ```
147
+
148
+ ## Documentation
149
+
150
+ - [Authoring Guide](docs/authoring-guide.md) - How to create and improve skills
151
+ - [Principles](docs/principles.md) - Design philosophy
152
+ - [Packaging](docs/packaging.md) - Build and distribution
153
+ - [Compatibility Policy](docs/compatibility-policy.md) - Version targeting
154
+
155
+ ## License
156
+
157
+ GPL-2.0-or-later
@@ -0,0 +1,60 @@
1
+ # AI Authorship Disclosure
2
+
3
+ This document describes how AI tools were used to create the skills in this repository, in accordance with the [WordPress AI Guidelines](https://make.wordpress.org/ai/handbook/ai-guidelines/).
4
+
5
+ ## Summary
6
+
7
+ | Aspect | Details |
8
+ |--------|---------|
9
+ | **AI Tool** | GPT-5.2 Codex (High Reasoning) |
10
+ | **Source Material** | Official Gutenberg trunk documentation, WordPress developer docs |
11
+ | **Human Review** | All skills reviewed and edited by WordPress contributors |
12
+ | **Testing** | Skills tested with AI assistants (Claude, Copilot, Codex) |
13
+ | **License** | GPL-2.0-or-later (compatible with WordPress) |
14
+
15
+ ## Process
16
+
17
+ 1. **Source Collection**: Up-to-date documentation was gathered from Gutenberg trunk and official WordPress developer resources.
18
+
19
+ 2. **AI Generation**: GPT-5.2 Codex (High Reasoning) processed the documentation to create semantically dense skill files, distilling large doc sets into actionable instructions AI assistants can follow.
20
+
21
+ 3. **Contributor Review**: WordPress contributors reviewed each skill for accuracy, alignment with current best practices, and completeness.
22
+
23
+ 4. **AI-Assisted Testing**: Skills were tested by using them with AI coding assistants (Codex and Claude Code) on real WordPress development tasks, sourced from [WP Bench](https://make.wordpress.org/ai/2026/01/14/introducing-wp-bench-a-wordpress-ai-benchmark/) to verify they produce correct guidance. That said, skills have not (yet) been run across a formal evaluation system, *as one does not exist*.
24
+
25
+ 5. **Iteration**: Based on testing results, skills were refined before the v1 release.
26
+
27
+ ## Per-Skill Breakdown
28
+
29
+ All v1 skills followed the same process described above. As skills diverge in their development history, this table will be updated.
30
+
31
+ | Skill | AI Generated | Human Reviewed | Tested |
32
+ |-------|--------------|----------------|--------|
33
+ | [wordpress-router](../skills/wordpress-router/SKILL.md) | Yes | Yes | Yes |
34
+ | [wp-project-triage](../skills/wp-project-triage/SKILL.md) | Yes | Yes | Yes |
35
+ | [wp-block-development](../skills/wp-block-development/SKILL.md) | Yes | Yes | Yes |
36
+ | [wp-block-themes](../skills/wp-block-themes/SKILL.md) | Yes | Yes | Yes |
37
+ | [wp-plugin-development](../skills/wp-plugin-development/SKILL.md) | Yes | Yes | Yes |
38
+ | [wp-rest-api](../skills/wp-rest-api/SKILL.md) | Yes | Yes | Yes |
39
+ | [wp-interactivity-api](../skills/wp-interactivity-api/SKILL.md) | Yes | Yes | Yes |
40
+ | [wp-abilities-api](../skills/wp-abilities-api/SKILL.md) | Yes | Yes | Yes |
41
+ | [wp-wpcli-and-ops](../skills/wp-wpcli-and-ops/SKILL.md) | Yes | Yes | Yes |
42
+ | [wp-performance](../skills/wp-performance/SKILL.md) | Yes | Yes | Yes |
43
+ | [wp-phpstan](../skills/wp-phpstan/SKILL.md) | Yes | Yes | Yes |
44
+ | [wp-playground](../skills/wp-playground/SKILL.md) | Yes | Yes | Yes |
45
+ | [wpds](../skills/wpds/SKILL.md) | Yes | Yes | Yes |
46
+
47
+ ## Quality Commitment
48
+
49
+ These skills are curated distillations of official documentation, reviewed by people who understand WordPress development. That said:
50
+
51
+ - Skills will contain errors. Please [report issues](https://github.com/WordPress/agent-skills/issues).
52
+ - Skills will improve over time as the community uses them and contributes fixes.
53
+ - We welcome PRs that improve accuracy, fix outdated patterns, or add missing guidance.
54
+
55
+ ## Evolution
56
+
57
+ This disclosure will be updated as:
58
+ - Individual skills receive significant human rewrites
59
+ - New skills are added with different authorship processes
60
+ - Community feedback identifies areas needing clarification
@@ -0,0 +1,56 @@
1
+ # Authoring guide (AI-assisted)
2
+
3
+ This repo is built for **AI-assisted authoring** with **deterministic guardrails**.
4
+
5
+ ## Golden rules
6
+
7
+ - Keep `SKILL.md` short and procedural; push depth into `references/` and scripts.
8
+ - Prefer deterministic scripts for anything the agent would otherwise “guess” (repo detection, version checks, lint/test command discovery).
9
+ - Don’t add a new skill without at least one scenario in `eval/scenarios/`.
10
+ - Keep file references 1 hop from `SKILL.md` (avoid deep chains).
11
+ - Include a `compatibility:` frontmatter line matching `docs/compatibility-policy.md`.
12
+
13
+ ## Workflow: draft → harden → ship
14
+
15
+ 1. **Route first**
16
+ - Start from `skills/wordpress-router/SKILL.md` to classify the repo and pick the domain.
17
+ 2. **Collect inputs**
18
+ - What repo type(s) does triage detect?
19
+ - What WP/PHP/Node versions are targeted (if known)?
20
+ - What tooling exists (Composer, @wordpress/scripts, PHPUnit, Playwright, wp-env)?
21
+ 3. **Draft the skill (AI-assisted)**
22
+ - Write `SKILL.md` as a checklist/procedure with explicit “Verification” and “Failure modes”.
23
+ - Keep examples short; link to topic references when needed.
24
+ 4. **Add deterministic helpers**
25
+ - If the skill depends on detection (versions, project layout, build system), add a script under `scripts/`.
26
+ 5. **Add evaluation scenario(s)**
27
+ - Add at least 1 prompt-style scenario under `eval/scenarios/` describing expected behavior.
28
+ 6. **Validate**
29
+ - Run `node eval/harness/run.mjs`.
30
+ - Optionally validate frontmatter using `skills-ref validate` (see `docs/upstream-sync.md` for CI guidance).
31
+
32
+ ## Scaffolding a new skill
33
+
34
+ Use the scaffold script to create a minimal, spec-compliant starting point:
35
+
36
+ - `node shared/scripts/scaffold-skill.mjs <skill-name> "<description>"`
37
+
38
+ ## “Skill generation” prompt template (recommended)
39
+
40
+ When using an LLM to draft a skill, provide:
41
+
42
+ - The repo triage JSON output
43
+ - The user’s task statement(s)
44
+ - Any version constraints and non-goals
45
+ - The required sections: When to use, Inputs required, Procedure, Verification, Failure modes, Escalation
46
+
47
+ Then ask the model to output:
48
+
49
+ 1. `skills/<skill-name>/SKILL.md`
50
+ 2. Any `references/*.md` files it mentions
51
+ 3. Any `scripts/*` stubs needed for deterministic checks
52
+ 4. One scenario markdown file under `eval/scenarios/`
53
+
54
+ ## Suggested initial domain skills (v1)
55
+
56
+ See `docs/skill-set-v1.md`.
@@ -0,0 +1,18 @@
1
+ # Compatibility policy
2
+
3
+ This repo is an authoring workspace for WordPress-focused Agent Skills.
4
+
5
+ ## Compatibility contract (v1)
6
+
7
+ Skills in this repo target:
8
+
9
+ - WordPress core **6.9+**
10
+ - PHP **7.2.24+** (minimum supported by WordPress 6.9)
11
+
12
+ ## Authoring rules
13
+
14
+ Skills should:
15
+
16
+ - Prefer stable WordPress APIs and best practices.
17
+ - Prefer detection + guardrails (triage) over hard-coded assumptions.
18
+ - If a task requires behavior that differs across core versions, ask for a target version (but default guidance should assume WP 6.9+).
@@ -0,0 +1,35 @@
1
+ # Packaging and installation
2
+
3
+ This repo is the **source of truth** under `skills/`.
4
+
5
+ To distribute skills to other repos/tools (without symlinks), use the skillpack scripts or npm CLI.
6
+
7
+ ## Install directly (no dist required)
8
+
9
+ Install from source layout (or from npm package via `npx`):
10
+
11
+ - `node shared/scripts/skillpack-install.mjs --dest=../some-repo --targets=codex,vscode,claude,cursor,antigravity`
12
+ - `npx wp-skills install --dest=. --targets=codex,vscode,claude,cursor,antigravity`
13
+
14
+ ## Build dist
15
+
16
+ Build a packaged copy under `dist/`:
17
+
18
+ - `node shared/scripts/skillpack-build.mjs --clean`
19
+
20
+ Outputs:
21
+
22
+ - `dist/codex/.codex/skills/*` (OpenAI Codex repo layout)
23
+ - `dist/vscode/.github/skills/*` (VS Code / Copilot repo layout)
24
+ - `dist/claude/.claude/skills/*` (Claude Code repo layout)
25
+ - `dist/cursor/.cursor/skills/*` (Cursor repo layout)
26
+ - `dist/antigravity/.agent/skill/*` (Antigravity IDE repo layout)
27
+
28
+ ## Install into another repo
29
+
30
+ 1. Build dist (above), or skip this when installing from source/npm.
31
+ 2. Install into a destination repo:
32
+
33
+ - `node shared/scripts/skillpack-install.mjs --dest=../some-repo --targets=codex,vscode,claude,cursor,antigravity`
34
+
35
+ By default, install mode is `replace` (it replaces only the skill directories it installs).
@@ -0,0 +1,7 @@
1
+ # Principles
2
+
3
+ - Prefer small, composable skills over a single "mega-skill".
4
+ - Keep `SKILL.md` bodies short; move depth into `references/`.
5
+ - Bundle deterministic checks as scripts when reliability matters.
6
+ - Treat upstream docs as canonical; store agent-first checklists and decision trees.
7
+ - Every new skill must include at least one eval scenario under `eval/scenarios/`.
@@ -0,0 +1,21 @@
1
+ # WordPress skill set (v1)
2
+
3
+ This repo currently includes:
4
+
5
+ - `wordpress-router`
6
+ - `wp-project-triage`
7
+ - `wp-block-development`
8
+ - `wp-block-themes`
9
+ - `wp-plugin-development`
10
+ - `wp-rest-api`
11
+ - `wp-interactivity-api`
12
+ - `wp-abilities-api`
13
+ - `wp-wpcli-and-ops`
14
+ - `wp-performance`
15
+ - `wp-phpstan`
16
+
17
+ Planned next skills (not yet implemented):
18
+
19
+ - `wp-build-tooling`
20
+ - `wp-testing`
21
+ - `wp-security`
@@ -0,0 +1,52 @@
1
+ # Upstream sync (automation plan)
2
+
3
+ Goal: when upstream changes (WordPress core releases, Gutenberg releases, docs updates), the repo should **regenerate indexes** and (eventually) **open PRs** that update affected skills/references.
4
+
5
+ ## What to automate first (low risk)
6
+
7
+ 1. **Indexes and matrices**
8
+ - WordPress core version list (latest stable + recent).
9
+ - Gutenberg releases list (latest stable + recent).
10
+ - WordPress ↔ Gutenberg mapping table (derived from canonical docs where available).
11
+ 2. **Routing metadata refresh**
12
+ - Update `shared/references/*.json` files only.
13
+
14
+ This keeps automation deterministic and reviewable before it starts rewriting skill prose.
15
+
16
+ ## Later automation (higher risk)
17
+
18
+ - “Reference chunk regeneration” from upstream docs into `skills/*/references/*.md`.
19
+ - Task-shaped deltas (e.g. a new Gutenberg package, new block APIs, changes in theme.json schema).
20
+ - Semi-automated PRs that include:
21
+ - regenerated references
22
+ - updated checklists
23
+ - updated eval scenarios
24
+
25
+ ## Scripts
26
+
27
+ - `shared/scripts/update-upstream-indices.mjs`
28
+ - Fetches upstream sources and rewrites JSON indexes in `shared/references/`.
29
+
30
+ ## CI / PR bot design (recommended)
31
+
32
+ - Schedule a workflow (daily/weekly).
33
+ - Run `shared/scripts/update-upstream-indices.mjs`.
34
+ - If `git diff` is non-empty, open a PR with:
35
+ - a summary of changes
36
+ - links to upstream release notes
37
+ - a checklist for human review (“does this impact blocks/themes/plugin workflows?”)
38
+
39
+ ## Validation
40
+
41
+ - Always run `node eval/harness/run.mjs`.
42
+ - Optional: use Agent Skills reference validator:
43
+ - `skills-ref validate skills/<skill-name>`
44
+
45
+ ## Canonical sources
46
+
47
+ The automation should prefer canonical sources and avoid scraping where possible.
48
+
49
+ - WordPress core releases and API endpoints (official WordPress APIs)
50
+ - Gutenberg releases (GitHub releases)
51
+ - WordPress developer docs (used for the WP↔Gutenberg mapping when no API exists)
52
+
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "wp-skills",
3
+ "version": "1.0.0",
4
+ "description": "WordPress Agent Skills installer and packager",
5
+ "license": "GPL-2.0-or-later",
6
+ "type": "module",
7
+ "bin": {
8
+ "wp-skills": "shared/scripts/skillpack-cli.mjs",
9
+ "agent-skills": "shared/scripts/skillpack-cli.mjs"
10
+ },
11
+ "files": [
12
+ "skills",
13
+ "shared/scripts",
14
+ "README.md",
15
+ "LICENSE",
16
+ "docs"
17
+ ],
18
+ "engines": {
19
+ "node": ">=18"
20
+ }
21
+ }