wp-skills 1.0.1 → 1.0.3

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/README.md CHANGED
@@ -1,161 +1,101 @@
1
- # Agent Skills for WordPress
1
+ # WordPress Team Skills
2
2
 
3
- **Teach AI coding assistants how to build WordPress the right way.**
3
+ This skill pack helps WordPress teams (classic themes, block themes, and plugins): clear architecture, explicit guardrails, and verification-first workflows.
4
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.
5
+ ## Quick Install
6
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
- | **classic-theme-dev** | Classic theme architecture, template hierarchy, URL-to-template-hook mapping, refactoring |
36
- | **block-theme-dev** | Block theme architecture (`theme.json`, templates/parts, patterns), migration planning |
37
- | **frontend-wp** | CSS/SCSS architecture, JS behavior, WordPress enqueue/performance patterns |
38
- | **wp-dev-workflow** | Feature scaffolding, WordPress-focused code review, migration/backward compatibility |
39
- | **wpds** | WordPress Design System |
40
-
41
- ## Quick Start
42
-
43
- ### Install via npx (recommended)
7
+ Install all skills into the current project:
44
8
 
45
9
  ```bash
46
- # Install into current project
47
10
  npx wp-skills install --dest=. --targets=codex,vscode,claude,cursor,antigravity
48
-
49
- # List available skills
50
- npx wp-skills list
51
11
  ```
52
12
 
53
- This installs from the published npm package without cloning this repository.
54
-
55
- ### Install globally for Claude Code
13
+ List available skills:
56
14
 
57
15
  ```bash
58
- # Clone agent-skills
59
- git clone https://github.com/WordPress/agent-skills.git
60
- cd agent-skills
61
-
62
- # Install all skills globally (available across all projects)
63
- node shared/scripts/skillpack-install.mjs --global
64
-
65
- # Or install specific skills only
66
- node shared/scripts/skillpack-install.mjs --global --skills=wp-playground,wp-block-development
16
+ npx wp-skills list
67
17
  ```
68
18
 
69
- This installs skills to `~/.claude/skills/` where Claude Code will automatically discover them.
70
-
71
- ### Install into your repo
19
+ Install a single skill:
72
20
 
73
21
  ```bash
74
- # Clone agent-skills
75
- git clone https://github.com/WordPress/agent-skills.git
76
- cd agent-skills
77
-
78
- # Install into your WordPress project
79
- node shared/scripts/skillpack-install.mjs --dest=../your-wp-project --targets=codex,vscode,claude,cursor,antigravity
22
+ npx wp-skills install --dest=. --targets=codex,vscode,claude,cursor,antigravity --skills=classic-theme-dev
80
23
  ```
81
24
 
82
- This copies skills into:
83
- - `.codex/skills/` for OpenAI Codex
84
- - `.github/skills/` for VS Code / GitHub Copilot
85
- - `.claude/skills/` for Claude Code (project-level)
86
- - `.cursor/skills/` for Cursor (project-level)
87
- - `.agent/skill/` for Antigravity IDE (project-level)
25
+ Installed locations:
88
26
 
89
- ### Install globally for Cursor
27
+ - `.codex/skills/`
28
+ - `.github/skills/`
29
+ - `.claude/skills/`
30
+ - `.cursor/skills/`
31
+ - `.agent/skill/`
90
32
 
91
- ```bash
92
- node shared/scripts/skillpack-install.mjs --targets=cursor-global
93
- ```
33
+ ## Team Usage Flow
94
34
 
95
- This installs skills to `~/.cursor/skills/` where Cursor will discover them.
35
+ 1. Start with `wordpress-router` or `wp-project-triage` to classify repository context.
36
+ 2. Select the domain skill (theme, frontend, plugin/API, ops, review/migration).
37
+ 3. Provide explicit inputs: URL/page type, file scope, and compatibility constraints.
38
+ 4. Require explicit verification before merge or release.
96
39
 
97
- ### Available options
40
+ Prompt examples:
98
41
 
99
- ```bash
100
- # List available skills
101
- node shared/scripts/skillpack-install.mjs --list
42
+ - `Use wordpress-router and wp-project-triage, then choose the right skill for this repository.`
43
+ - `Use classic-theme-dev to map URL -> template -> hook and implement the fix.`
44
+ - `Use wp-dev-workflow for a WordPress-focused code review with security and performance findings.`
102
45
 
103
- # Dry run (preview without installing)
104
- node shared/scripts/skillpack-install.mjs --global --dry-run
46
+ ## Skill Catalog
105
47
 
106
- # Install specific skills to a project (e.g. Claude + Antigravity)
107
- node shared/scripts/skillpack-install.mjs --dest=../my-repo --targets=claude,antigravity --skills=wp-wpcli-and-ops
108
- ```
48
+ ### Routing and triage
109
49
 
110
- ### Manual installation
50
+ - [wordpress-router](skills/wordpress-router/README.md)
51
+ - [wp-project-triage](skills/wp-project-triage/README.md)
111
52
 
112
- Copy any skill folder from `skills/` into your project's instructions directory for your AI assistant.
53
+ ### Theme development
113
54
 
114
- ## How It Works
55
+ - [classic-theme-dev](skills/classic-theme-dev/README.md)
56
+ - [block-theme-dev](skills/block-theme-dev/README.md)
57
+ - [wp-block-themes](skills/wp-block-themes/README.md)
58
+ - [wp-block-development](skills/wp-block-development/README.md)
115
59
 
116
- Each skill contains:
60
+ ### Frontend
117
61
 
118
- ```
119
- skills/wp-block-development/
120
- ├── SKILL.md # Main instructions (when to use, procedure, verification)
121
- ├── references/ # Deep-dive docs on specific topics
122
- │ ├── block-json.md
123
- │ ├── deprecations.md
124
- │ └── ...
125
- └── scripts/ # Deterministic helpers (detection, validation)
126
- └── list_blocks.mjs
127
- ```
62
+ - [frontend-wp](skills/frontend-wp/README.md)
63
+ - [wp-interactivity-api](skills/wp-interactivity-api/README.md)
64
+ - [wpds](skills/wpds/README.md)
128
65
 
129
- When you ask your AI assistant to work on WordPress code, it reads these skills and follows the documented procedures rather than guessing.
66
+ ### Plugin, API, and capabilities
130
67
 
131
- ## Compatibility
68
+ - [wp-plugin-development](skills/wp-plugin-development/README.md)
69
+ - [wp-rest-api](skills/wp-rest-api/README.md)
70
+ - [wp-abilities-api](skills/wp-abilities-api/README.md)
132
71
 
133
- - **WordPress 6.9+** (PHP 7.2.24+)
134
- - Works with any AI assistant that supports project-level instructions
72
+ ### Tooling, ops, and quality
135
73
 
136
- ## Contributing
74
+ - [wp-wpcli-and-ops](skills/wp-wpcli-and-ops/README.md)
75
+ - [wp-performance](skills/wp-performance/README.md)
76
+ - [wp-phpstan](skills/wp-phpstan/README.md)
77
+ - [wp-playground](skills/wp-playground/README.md)
78
+ - [wp-dev-workflow](skills/wp-dev-workflow/README.md)
137
79
 
138
- **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.
80
+ ## Recommended Team Bundles
139
81
 
140
- See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to get started.
82
+ - `classic-theme-dev` + `frontend-wp` + `wp-dev-workflow`
83
+ - `block-theme-dev` + `wp-block-development` + `wp-interactivity-api`
84
+ - `wp-plugin-development` + `wp-rest-api` + `wp-abilities-api`
85
+ - `wp-wpcli-and-ops` + `wp-performance` + `wp-phpstan`
141
86
 
142
- Quick commands:
87
+ ## Maintain and Validate
143
88
 
144
89
  ```bash
145
- # Scaffold a new skill
146
- node shared/scripts/scaffold-skill.mjs <skill-name> "<description>"
147
-
148
- # Validate skills
90
+ # Validate the skill set
149
91
  node eval/harness/run.mjs
150
- ```
151
92
 
152
- ## Documentation
153
-
154
- - [Authoring Guide](docs/authoring-guide.md) - How to create and improve skills
155
- - [Principles](docs/principles.md) - Design philosophy
156
- - [Packaging](docs/packaging.md) - Build and distribution
157
- - [Compatibility Policy](docs/compatibility-policy.md) - Version targeting
93
+ # List available skills from local repository
94
+ node shared/scripts/skillpack-install.mjs --list
95
+ ```
158
96
 
159
- ## License
97
+ Related docs:
160
98
 
161
- Duke Dev
99
+ - [docs/authoring-guide.md](docs/authoring-guide.md)
100
+ - [docs/packaging.md](docs/packaging.md)
101
+ - [docs/skill-set-v1.md](docs/skill-set-v1.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wp-skills",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "WordPress Agent Skills installer and packager",
5
5
  "license": "Duke Dev",
6
6
  "type": "module",
@@ -0,0 +1,46 @@
1
+ # Block Theme Dev
2
+
3
+ ## Purpose
4
+
5
+ Use when building or migrating WordPress block themes using theme.json, templates/parts, patterns, and custom block integration.
6
+
7
+ ## Install this skill only
8
+
9
+ Use npm package (recommended):
10
+
11
+ ```bash
12
+ npx wp-skills install --dest=. --targets=codex,vscode,claude,cursor,antigravity --skills=block-theme-dev
13
+ ```
14
+
15
+ Use local repository scripts:
16
+
17
+ ```bash
18
+ node shared/scripts/skillpack-install.mjs --dest=../your-wp-project --targets=codex,vscode,claude,cursor,antigravity --skills=block-theme-dev
19
+ ```
20
+
21
+ ## When to use
22
+
23
+ - Apply this skill when your task matches the scope in [SKILL.md](./SKILL.md).
24
+ - Typical trigger prompt: `Use block-theme-dev to handle this task in my WordPress repo`.
25
+
26
+ ## Inputs to provide
27
+
28
+ - Repository root (or target project path).
29
+ - Exact task goal (feature, refactor, debugging, migration, or review).
30
+ - Constraints: WordPress/PHP versions, plugin/theme boundaries, timeline/risk constraints.
31
+
32
+ ## Expected output
33
+
34
+ - Clear implementation plan tied to project context.
35
+ - File-level changes or command steps with verification.
36
+ - Guardrails and risks called out before high-impact operations.
37
+
38
+ ## Team guardrails
39
+
40
+ - Prefer existing repo conventions and tooling over introducing new patterns.
41
+ - Avoid destructive DB/content operations without explicit approval.
42
+ - Keep backward compatibility visible for production WordPress sites.
43
+
44
+ ## References
45
+
46
+ - Main instructions: [SKILL.md](./SKILL.md)
@@ -0,0 +1,46 @@
1
+ # Classic Theme Dev
2
+
3
+ ## Purpose
4
+
5
+ Use when building, refactoring, or debugging classic WordPress themes with template hierarchy, hooks, and URL-to-template mapping.
6
+
7
+ ## Install this skill only
8
+
9
+ Use npm package (recommended):
10
+
11
+ ```bash
12
+ npx wp-skills install --dest=. --targets=codex,vscode,claude,cursor,antigravity --skills=classic-theme-dev
13
+ ```
14
+
15
+ Use local repository scripts:
16
+
17
+ ```bash
18
+ node shared/scripts/skillpack-install.mjs --dest=../your-wp-project --targets=codex,vscode,claude,cursor,antigravity --skills=classic-theme-dev
19
+ ```
20
+
21
+ ## When to use
22
+
23
+ - Apply this skill when your task matches the scope in [SKILL.md](./SKILL.md).
24
+ - Typical trigger prompt: `Use classic-theme-dev to handle this task in my WordPress repo`.
25
+
26
+ ## Inputs to provide
27
+
28
+ - Repository root (or target project path).
29
+ - Exact task goal (feature, refactor, debugging, migration, or review).
30
+ - Constraints: WordPress/PHP versions, plugin/theme boundaries, timeline/risk constraints.
31
+
32
+ ## Expected output
33
+
34
+ - Clear implementation plan tied to project context.
35
+ - File-level changes or command steps with verification.
36
+ - Guardrails and risks called out before high-impact operations.
37
+
38
+ ## Team guardrails
39
+
40
+ - Prefer existing repo conventions and tooling over introducing new patterns.
41
+ - Avoid destructive DB/content operations without explicit approval.
42
+ - Keep backward compatibility visible for production WordPress sites.
43
+
44
+ ## References
45
+
46
+ - Main instructions: [SKILL.md](./SKILL.md)
@@ -0,0 +1,46 @@
1
+ # Frontend WP
2
+
3
+ ## Purpose
4
+
5
+ Use when implementing WordPress frontend CSS/SCSS architecture, JavaScript behavior, and asset loading/performance across classic and block themes.
6
+
7
+ ## Install this skill only
8
+
9
+ Use npm package (recommended):
10
+
11
+ ```bash
12
+ npx wp-skills install --dest=. --targets=codex,vscode,claude,cursor,antigravity --skills=frontend-wp
13
+ ```
14
+
15
+ Use local repository scripts:
16
+
17
+ ```bash
18
+ node shared/scripts/skillpack-install.mjs --dest=../your-wp-project --targets=codex,vscode,claude,cursor,antigravity --skills=frontend-wp
19
+ ```
20
+
21
+ ## When to use
22
+
23
+ - Apply this skill when your task matches the scope in [SKILL.md](./SKILL.md).
24
+ - Typical trigger prompt: `Use frontend-wp to handle this task in my WordPress repo`.
25
+
26
+ ## Inputs to provide
27
+
28
+ - Repository root (or target project path).
29
+ - Exact task goal (feature, refactor, debugging, migration, or review).
30
+ - Constraints: WordPress/PHP versions, plugin/theme boundaries, timeline/risk constraints.
31
+
32
+ ## Expected output
33
+
34
+ - Clear implementation plan tied to project context.
35
+ - File-level changes or command steps with verification.
36
+ - Guardrails and risks called out before high-impact operations.
37
+
38
+ ## Team guardrails
39
+
40
+ - Prefer existing repo conventions and tooling over introducing new patterns.
41
+ - Avoid destructive DB/content operations without explicit approval.
42
+ - Keep backward compatibility visible for production WordPress sites.
43
+
44
+ ## References
45
+
46
+ - Main instructions: [SKILL.md](./SKILL.md)
@@ -0,0 +1,46 @@
1
+ # WordPress Router
2
+
3
+ ## Purpose
4
+
5
+ Use when the user asks about WordPress codebases (plugins, themes, block themes, Gutenberg blocks, WP core checkouts) and you need to quickly classify the repo and route to the correct workflow/skill (classic theme dev, block theme dev, frontend, workflow/review, blocks, REST API, WP-CLI, performance, security, testing, release packaging).
6
+
7
+ ## Install this skill only
8
+
9
+ Use npm package (recommended):
10
+
11
+ ```bash
12
+ npx wp-skills install --dest=. --targets=codex,vscode,claude,cursor,antigravity --skills=wordpress-router
13
+ ```
14
+
15
+ Use local repository scripts:
16
+
17
+ ```bash
18
+ node shared/scripts/skillpack-install.mjs --dest=../your-wp-project --targets=codex,vscode,claude,cursor,antigravity --skills=wordpress-router
19
+ ```
20
+
21
+ ## When to use
22
+
23
+ - Apply this skill when your task matches the scope in [SKILL.md](./SKILL.md).
24
+ - Typical trigger prompt: `Use wordpress-router to handle this task in my WordPress repo`.
25
+
26
+ ## Inputs to provide
27
+
28
+ - Repository root (or target project path).
29
+ - Exact task goal (feature, refactor, debugging, migration, or review).
30
+ - Constraints: WordPress/PHP versions, plugin/theme boundaries, timeline/risk constraints.
31
+
32
+ ## Expected output
33
+
34
+ - Clear implementation plan tied to project context.
35
+ - File-level changes or command steps with verification.
36
+ - Guardrails and risks called out before high-impact operations.
37
+
38
+ ## Team guardrails
39
+
40
+ - Prefer existing repo conventions and tooling over introducing new patterns.
41
+ - Avoid destructive DB/content operations without explicit approval.
42
+ - Keep backward compatibility visible for production WordPress sites.
43
+
44
+ ## References
45
+
46
+ - Main instructions: [SKILL.md](./SKILL.md)
@@ -0,0 +1,46 @@
1
+ # WP Abilities API
2
+
3
+ ## Purpose
4
+
5
+ Use when working with the WordPress Abilities API (wp_register_ability, wp_register_ability_category, /wp-json/wp-abilities/v1/*, @wordpress/abilities) including defining abilities, categories, meta, REST exposure, and permissions checks for clients.
6
+
7
+ ## Install this skill only
8
+
9
+ Use npm package (recommended):
10
+
11
+ ```bash
12
+ npx wp-skills install --dest=. --targets=codex,vscode,claude,cursor,antigravity --skills=wp-abilities-api
13
+ ```
14
+
15
+ Use local repository scripts:
16
+
17
+ ```bash
18
+ node shared/scripts/skillpack-install.mjs --dest=../your-wp-project --targets=codex,vscode,claude,cursor,antigravity --skills=wp-abilities-api
19
+ ```
20
+
21
+ ## When to use
22
+
23
+ - Apply this skill when your task matches the scope in [SKILL.md](./SKILL.md).
24
+ - Typical trigger prompt: `Use wp-abilities-api to handle this task in my WordPress repo`.
25
+
26
+ ## Inputs to provide
27
+
28
+ - Repository root (or target project path).
29
+ - Exact task goal (feature, refactor, debugging, migration, or review).
30
+ - Constraints: WordPress/PHP versions, plugin/theme boundaries, timeline/risk constraints.
31
+
32
+ ## Expected output
33
+
34
+ - Clear implementation plan tied to project context.
35
+ - File-level changes or command steps with verification.
36
+ - Guardrails and risks called out before high-impact operations.
37
+
38
+ ## Team guardrails
39
+
40
+ - Prefer existing repo conventions and tooling over introducing new patterns.
41
+ - Avoid destructive DB/content operations without explicit approval.
42
+ - Keep backward compatibility visible for production WordPress sites.
43
+
44
+ ## References
45
+
46
+ - Main instructions: [SKILL.md](./SKILL.md)
@@ -0,0 +1,46 @@
1
+ # WP Block Development
2
+
3
+ ## Purpose
4
+
5
+ Use when developing WordPress (Gutenberg) blocks: block.json metadata, register_block_type(_from_metadata), attributes/serialization, supports, dynamic rendering (render.php/render_callback), deprecations/migrations, viewScript vs viewScriptModule, and @wordpress/scripts/@wordpress/create-block build and test workflows.
6
+
7
+ ## Install this skill only
8
+
9
+ Use npm package (recommended):
10
+
11
+ ```bash
12
+ npx wp-skills install --dest=. --targets=codex,vscode,claude,cursor,antigravity --skills=wp-block-development
13
+ ```
14
+
15
+ Use local repository scripts:
16
+
17
+ ```bash
18
+ node shared/scripts/skillpack-install.mjs --dest=../your-wp-project --targets=codex,vscode,claude,cursor,antigravity --skills=wp-block-development
19
+ ```
20
+
21
+ ## When to use
22
+
23
+ - Apply this skill when your task matches the scope in [SKILL.md](./SKILL.md).
24
+ - Typical trigger prompt: `Use wp-block-development to handle this task in my WordPress repo`.
25
+
26
+ ## Inputs to provide
27
+
28
+ - Repository root (or target project path).
29
+ - Exact task goal (feature, refactor, debugging, migration, or review).
30
+ - Constraints: WordPress/PHP versions, plugin/theme boundaries, timeline/risk constraints.
31
+
32
+ ## Expected output
33
+
34
+ - Clear implementation plan tied to project context.
35
+ - File-level changes or command steps with verification.
36
+ - Guardrails and risks called out before high-impact operations.
37
+
38
+ ## Team guardrails
39
+
40
+ - Prefer existing repo conventions and tooling over introducing new patterns.
41
+ - Avoid destructive DB/content operations without explicit approval.
42
+ - Keep backward compatibility visible for production WordPress sites.
43
+
44
+ ## References
45
+
46
+ - Main instructions: [SKILL.md](./SKILL.md)
@@ -0,0 +1,46 @@
1
+ # WP Block Themes
2
+
3
+ ## Purpose
4
+
5
+ Use when developing WordPress block themes: theme.json (global settings/styles), templates and template parts, patterns, style variations, and Site Editor troubleshooting (style hierarchy, overrides, caching).
6
+
7
+ ## Install this skill only
8
+
9
+ Use npm package (recommended):
10
+
11
+ ```bash
12
+ npx wp-skills install --dest=. --targets=codex,vscode,claude,cursor,antigravity --skills=wp-block-themes
13
+ ```
14
+
15
+ Use local repository scripts:
16
+
17
+ ```bash
18
+ node shared/scripts/skillpack-install.mjs --dest=../your-wp-project --targets=codex,vscode,claude,cursor,antigravity --skills=wp-block-themes
19
+ ```
20
+
21
+ ## When to use
22
+
23
+ - Apply this skill when your task matches the scope in [SKILL.md](./SKILL.md).
24
+ - Typical trigger prompt: `Use wp-block-themes to handle this task in my WordPress repo`.
25
+
26
+ ## Inputs to provide
27
+
28
+ - Repository root (or target project path).
29
+ - Exact task goal (feature, refactor, debugging, migration, or review).
30
+ - Constraints: WordPress/PHP versions, plugin/theme boundaries, timeline/risk constraints.
31
+
32
+ ## Expected output
33
+
34
+ - Clear implementation plan tied to project context.
35
+ - File-level changes or command steps with verification.
36
+ - Guardrails and risks called out before high-impact operations.
37
+
38
+ ## Team guardrails
39
+
40
+ - Prefer existing repo conventions and tooling over introducing new patterns.
41
+ - Avoid destructive DB/content operations without explicit approval.
42
+ - Keep backward compatibility visible for production WordPress sites.
43
+
44
+ ## References
45
+
46
+ - Main instructions: [SKILL.md](./SKILL.md)
@@ -0,0 +1,46 @@
1
+ # WP Dev Workflow
2
+
3
+ ## Purpose
4
+
5
+ Use when scaffolding WordPress features, performing WordPress-focused code review, and planning migrations with backward compatibility safeguards.
6
+
7
+ ## Install this skill only
8
+
9
+ Use npm package (recommended):
10
+
11
+ ```bash
12
+ npx wp-skills install --dest=. --targets=codex,vscode,claude,cursor,antigravity --skills=wp-dev-workflow
13
+ ```
14
+
15
+ Use local repository scripts:
16
+
17
+ ```bash
18
+ node shared/scripts/skillpack-install.mjs --dest=../your-wp-project --targets=codex,vscode,claude,cursor,antigravity --skills=wp-dev-workflow
19
+ ```
20
+
21
+ ## When to use
22
+
23
+ - Apply this skill when your task matches the scope in [SKILL.md](./SKILL.md).
24
+ - Typical trigger prompt: `Use wp-dev-workflow to handle this task in my WordPress repo`.
25
+
26
+ ## Inputs to provide
27
+
28
+ - Repository root (or target project path).
29
+ - Exact task goal (feature, refactor, debugging, migration, or review).
30
+ - Constraints: WordPress/PHP versions, plugin/theme boundaries, timeline/risk constraints.
31
+
32
+ ## Expected output
33
+
34
+ - Clear implementation plan tied to project context.
35
+ - File-level changes or command steps with verification.
36
+ - Guardrails and risks called out before high-impact operations.
37
+
38
+ ## Team guardrails
39
+
40
+ - Prefer existing repo conventions and tooling over introducing new patterns.
41
+ - Avoid destructive DB/content operations without explicit approval.
42
+ - Keep backward compatibility visible for production WordPress sites.
43
+
44
+ ## References
45
+
46
+ - Main instructions: [SKILL.md](./SKILL.md)
@@ -0,0 +1,46 @@
1
+ # WP Interactivity API
2
+
3
+ ## Purpose
4
+
5
+ Use when building or debugging WordPress Interactivity API features (data-wp-* directives, @wordpress/interactivity store/state/actions, block viewScriptModule integration, wp_interactivity_*()) including performance, hydration, and directive behavior.
6
+
7
+ ## Install this skill only
8
+
9
+ Use npm package (recommended):
10
+
11
+ ```bash
12
+ npx wp-skills install --dest=. --targets=codex,vscode,claude,cursor,antigravity --skills=wp-interactivity-api
13
+ ```
14
+
15
+ Use local repository scripts:
16
+
17
+ ```bash
18
+ node shared/scripts/skillpack-install.mjs --dest=../your-wp-project --targets=codex,vscode,claude,cursor,antigravity --skills=wp-interactivity-api
19
+ ```
20
+
21
+ ## When to use
22
+
23
+ - Apply this skill when your task matches the scope in [SKILL.md](./SKILL.md).
24
+ - Typical trigger prompt: `Use wp-interactivity-api to handle this task in my WordPress repo`.
25
+
26
+ ## Inputs to provide
27
+
28
+ - Repository root (or target project path).
29
+ - Exact task goal (feature, refactor, debugging, migration, or review).
30
+ - Constraints: WordPress/PHP versions, plugin/theme boundaries, timeline/risk constraints.
31
+
32
+ ## Expected output
33
+
34
+ - Clear implementation plan tied to project context.
35
+ - File-level changes or command steps with verification.
36
+ - Guardrails and risks called out before high-impact operations.
37
+
38
+ ## Team guardrails
39
+
40
+ - Prefer existing repo conventions and tooling over introducing new patterns.
41
+ - Avoid destructive DB/content operations without explicit approval.
42
+ - Keep backward compatibility visible for production WordPress sites.
43
+
44
+ ## References
45
+
46
+ - Main instructions: [SKILL.md](./SKILL.md)
@@ -0,0 +1,46 @@
1
+ # WP Performance (backend-only)
2
+
3
+ ## Purpose
4
+
5
+ Use when investigating or improving WordPress performance (backend-only agent): profiling and measurement (WP-CLI profile/doctor, Server-Timing, Query Monitor via REST headers), database/query optimization, autoloaded options, object caching, cron, HTTP API calls, and safe verification.
6
+
7
+ ## Install this skill only
8
+
9
+ Use npm package (recommended):
10
+
11
+ ```bash
12
+ npx wp-skills install --dest=. --targets=codex,vscode,claude,cursor,antigravity --skills=wp-performance
13
+ ```
14
+
15
+ Use local repository scripts:
16
+
17
+ ```bash
18
+ node shared/scripts/skillpack-install.mjs --dest=../your-wp-project --targets=codex,vscode,claude,cursor,antigravity --skills=wp-performance
19
+ ```
20
+
21
+ ## When to use
22
+
23
+ - Apply this skill when your task matches the scope in [SKILL.md](./SKILL.md).
24
+ - Typical trigger prompt: `Use wp-performance to handle this task in my WordPress repo`.
25
+
26
+ ## Inputs to provide
27
+
28
+ - Repository root (or target project path).
29
+ - Exact task goal (feature, refactor, debugging, migration, or review).
30
+ - Constraints: WordPress/PHP versions, plugin/theme boundaries, timeline/risk constraints.
31
+
32
+ ## Expected output
33
+
34
+ - Clear implementation plan tied to project context.
35
+ - File-level changes or command steps with verification.
36
+ - Guardrails and risks called out before high-impact operations.
37
+
38
+ ## Team guardrails
39
+
40
+ - Prefer existing repo conventions and tooling over introducing new patterns.
41
+ - Avoid destructive DB/content operations without explicit approval.
42
+ - Keep backward compatibility visible for production WordPress sites.
43
+
44
+ ## References
45
+
46
+ - Main instructions: [SKILL.md](./SKILL.md)
@@ -0,0 +1,46 @@
1
+ # WP PHPStan
2
+
3
+ ## Purpose
4
+
5
+ Use when configuring, running, or fixing PHPStan static analysis in WordPress projects (plugins/themes/sites): phpstan.neon setup, baselines, WordPress-specific typing, and handling third-party plugin classes.
6
+
7
+ ## Install this skill only
8
+
9
+ Use npm package (recommended):
10
+
11
+ ```bash
12
+ npx wp-skills install --dest=. --targets=codex,vscode,claude,cursor,antigravity --skills=wp-phpstan
13
+ ```
14
+
15
+ Use local repository scripts:
16
+
17
+ ```bash
18
+ node shared/scripts/skillpack-install.mjs --dest=../your-wp-project --targets=codex,vscode,claude,cursor,antigravity --skills=wp-phpstan
19
+ ```
20
+
21
+ ## When to use
22
+
23
+ - Apply this skill when your task matches the scope in [SKILL.md](./SKILL.md).
24
+ - Typical trigger prompt: `Use wp-phpstan to handle this task in my WordPress repo`.
25
+
26
+ ## Inputs to provide
27
+
28
+ - Repository root (or target project path).
29
+ - Exact task goal (feature, refactor, debugging, migration, or review).
30
+ - Constraints: WordPress/PHP versions, plugin/theme boundaries, timeline/risk constraints.
31
+
32
+ ## Expected output
33
+
34
+ - Clear implementation plan tied to project context.
35
+ - File-level changes or command steps with verification.
36
+ - Guardrails and risks called out before high-impact operations.
37
+
38
+ ## Team guardrails
39
+
40
+ - Prefer existing repo conventions and tooling over introducing new patterns.
41
+ - Avoid destructive DB/content operations without explicit approval.
42
+ - Keep backward compatibility visible for production WordPress sites.
43
+
44
+ ## References
45
+
46
+ - Main instructions: [SKILL.md](./SKILL.md)
@@ -0,0 +1,46 @@
1
+ # WordPress Playground
2
+
3
+ ## Purpose
4
+
5
+ Use for WordPress Playground workflows: fast disposable WP instances in the browser or locally via @wp-playground/cli (server, run-blueprint, build-snapshot), auto-mounting plugins/themes, switching WP/PHP versions, blueprints, and debugging (Xdebug).
6
+
7
+ ## Install this skill only
8
+
9
+ Use npm package (recommended):
10
+
11
+ ```bash
12
+ npx wp-skills install --dest=. --targets=codex,vscode,claude,cursor,antigravity --skills=wp-playground
13
+ ```
14
+
15
+ Use local repository scripts:
16
+
17
+ ```bash
18
+ node shared/scripts/skillpack-install.mjs --dest=../your-wp-project --targets=codex,vscode,claude,cursor,antigravity --skills=wp-playground
19
+ ```
20
+
21
+ ## When to use
22
+
23
+ - Apply this skill when your task matches the scope in [SKILL.md](./SKILL.md).
24
+ - Typical trigger prompt: `Use wp-playground to handle this task in my WordPress repo`.
25
+
26
+ ## Inputs to provide
27
+
28
+ - Repository root (or target project path).
29
+ - Exact task goal (feature, refactor, debugging, migration, or review).
30
+ - Constraints: WordPress/PHP versions, plugin/theme boundaries, timeline/risk constraints.
31
+
32
+ ## Expected output
33
+
34
+ - Clear implementation plan tied to project context.
35
+ - File-level changes or command steps with verification.
36
+ - Guardrails and risks called out before high-impact operations.
37
+
38
+ ## Team guardrails
39
+
40
+ - Prefer existing repo conventions and tooling over introducing new patterns.
41
+ - Avoid destructive DB/content operations without explicit approval.
42
+ - Keep backward compatibility visible for production WordPress sites.
43
+
44
+ ## References
45
+
46
+ - Main instructions: [SKILL.md](./SKILL.md)
@@ -0,0 +1,46 @@
1
+ # WP Plugin Development
2
+
3
+ ## Purpose
4
+
5
+ Use when developing WordPress plugins: architecture and hooks, activation/deactivation/uninstall, admin UI and Settings API, data storage, cron/tasks, security (nonces/capabilities/sanitization/escaping), and release packaging.
6
+
7
+ ## Install this skill only
8
+
9
+ Use npm package (recommended):
10
+
11
+ ```bash
12
+ npx wp-skills install --dest=. --targets=codex,vscode,claude,cursor,antigravity --skills=wp-plugin-development
13
+ ```
14
+
15
+ Use local repository scripts:
16
+
17
+ ```bash
18
+ node shared/scripts/skillpack-install.mjs --dest=../your-wp-project --targets=codex,vscode,claude,cursor,antigravity --skills=wp-plugin-development
19
+ ```
20
+
21
+ ## When to use
22
+
23
+ - Apply this skill when your task matches the scope in [SKILL.md](./SKILL.md).
24
+ - Typical trigger prompt: `Use wp-plugin-development to handle this task in my WordPress repo`.
25
+
26
+ ## Inputs to provide
27
+
28
+ - Repository root (or target project path).
29
+ - Exact task goal (feature, refactor, debugging, migration, or review).
30
+ - Constraints: WordPress/PHP versions, plugin/theme boundaries, timeline/risk constraints.
31
+
32
+ ## Expected output
33
+
34
+ - Clear implementation plan tied to project context.
35
+ - File-level changes or command steps with verification.
36
+ - Guardrails and risks called out before high-impact operations.
37
+
38
+ ## Team guardrails
39
+
40
+ - Prefer existing repo conventions and tooling over introducing new patterns.
41
+ - Avoid destructive DB/content operations without explicit approval.
42
+ - Keep backward compatibility visible for production WordPress sites.
43
+
44
+ ## References
45
+
46
+ - Main instructions: [SKILL.md](./SKILL.md)
@@ -0,0 +1,46 @@
1
+ # WP Project Triage
2
+
3
+ ## Purpose
4
+
5
+ Use when you need a deterministic inspection of a WordPress repository (plugin/theme/block theme/WP core/Gutenberg/full site) including tooling/tests/version hints, and a structured JSON report to guide workflows and guardrails.
6
+
7
+ ## Install this skill only
8
+
9
+ Use npm package (recommended):
10
+
11
+ ```bash
12
+ npx wp-skills install --dest=. --targets=codex,vscode,claude,cursor,antigravity --skills=wp-project-triage
13
+ ```
14
+
15
+ Use local repository scripts:
16
+
17
+ ```bash
18
+ node shared/scripts/skillpack-install.mjs --dest=../your-wp-project --targets=codex,vscode,claude,cursor,antigravity --skills=wp-project-triage
19
+ ```
20
+
21
+ ## When to use
22
+
23
+ - Apply this skill when your task matches the scope in [SKILL.md](./SKILL.md).
24
+ - Typical trigger prompt: `Use wp-project-triage to handle this task in my WordPress repo`.
25
+
26
+ ## Inputs to provide
27
+
28
+ - Repository root (or target project path).
29
+ - Exact task goal (feature, refactor, debugging, migration, or review).
30
+ - Constraints: WordPress/PHP versions, plugin/theme boundaries, timeline/risk constraints.
31
+
32
+ ## Expected output
33
+
34
+ - Clear implementation plan tied to project context.
35
+ - File-level changes or command steps with verification.
36
+ - Guardrails and risks called out before high-impact operations.
37
+
38
+ ## Team guardrails
39
+
40
+ - Prefer existing repo conventions and tooling over introducing new patterns.
41
+ - Avoid destructive DB/content operations without explicit approval.
42
+ - Keep backward compatibility visible for production WordPress sites.
43
+
44
+ ## References
45
+
46
+ - Main instructions: [SKILL.md](./SKILL.md)
@@ -0,0 +1,46 @@
1
+ # WP REST API
2
+
3
+ ## Purpose
4
+
5
+ Use when building, extending, or debugging WordPress REST API endpoints/routes: register_rest_route, WP_REST_Controller/controller classes, schema/argument validation, permission_callback/authentication, response shaping, register_rest_field/register_meta, or exposing CPTs/taxonomies via show_in_rest.
6
+
7
+ ## Install this skill only
8
+
9
+ Use npm package (recommended):
10
+
11
+ ```bash
12
+ npx wp-skills install --dest=. --targets=codex,vscode,claude,cursor,antigravity --skills=wp-rest-api
13
+ ```
14
+
15
+ Use local repository scripts:
16
+
17
+ ```bash
18
+ node shared/scripts/skillpack-install.mjs --dest=../your-wp-project --targets=codex,vscode,claude,cursor,antigravity --skills=wp-rest-api
19
+ ```
20
+
21
+ ## When to use
22
+
23
+ - Apply this skill when your task matches the scope in [SKILL.md](./SKILL.md).
24
+ - Typical trigger prompt: `Use wp-rest-api to handle this task in my WordPress repo`.
25
+
26
+ ## Inputs to provide
27
+
28
+ - Repository root (or target project path).
29
+ - Exact task goal (feature, refactor, debugging, migration, or review).
30
+ - Constraints: WordPress/PHP versions, plugin/theme boundaries, timeline/risk constraints.
31
+
32
+ ## Expected output
33
+
34
+ - Clear implementation plan tied to project context.
35
+ - File-level changes or command steps with verification.
36
+ - Guardrails and risks called out before high-impact operations.
37
+
38
+ ## Team guardrails
39
+
40
+ - Prefer existing repo conventions and tooling over introducing new patterns.
41
+ - Avoid destructive DB/content operations without explicit approval.
42
+ - Keep backward compatibility visible for production WordPress sites.
43
+
44
+ ## References
45
+
46
+ - Main instructions: [SKILL.md](./SKILL.md)
@@ -0,0 +1,46 @@
1
+ # WP-CLI and Ops
2
+
3
+ ## Purpose
4
+
5
+ Use when working with WP-CLI (wp) for WordPress operations: safe search-replace, db export/import, plugin/theme/user/content management, cron, cache flushing, multisite, and scripting/automation with wp-cli.yml.
6
+
7
+ ## Install this skill only
8
+
9
+ Use npm package (recommended):
10
+
11
+ ```bash
12
+ npx wp-skills install --dest=. --targets=codex,vscode,claude,cursor,antigravity --skills=wp-wpcli-and-ops
13
+ ```
14
+
15
+ Use local repository scripts:
16
+
17
+ ```bash
18
+ node shared/scripts/skillpack-install.mjs --dest=../your-wp-project --targets=codex,vscode,claude,cursor,antigravity --skills=wp-wpcli-and-ops
19
+ ```
20
+
21
+ ## When to use
22
+
23
+ - Apply this skill when your task matches the scope in [SKILL.md](./SKILL.md).
24
+ - Typical trigger prompt: `Use wp-wpcli-and-ops to handle this task in my WordPress repo`.
25
+
26
+ ## Inputs to provide
27
+
28
+ - Repository root (or target project path).
29
+ - Exact task goal (feature, refactor, debugging, migration, or review).
30
+ - Constraints: WordPress/PHP versions, plugin/theme boundaries, timeline/risk constraints.
31
+
32
+ ## Expected output
33
+
34
+ - Clear implementation plan tied to project context.
35
+ - File-level changes or command steps with verification.
36
+ - Guardrails and risks called out before high-impact operations.
37
+
38
+ ## Team guardrails
39
+
40
+ - Prefer existing repo conventions and tooling over introducing new patterns.
41
+ - Avoid destructive DB/content operations without explicit approval.
42
+ - Keep backward compatibility visible for production WordPress sites.
43
+
44
+ ## References
45
+
46
+ - Main instructions: [SKILL.md](./SKILL.md)
@@ -0,0 +1,46 @@
1
+ # WordPress Design System (WPDS)
2
+
3
+ ## Purpose
4
+
5
+ Use when building UIs leveraging the WordPress Design System (WPDS) and its components, tokens, patterns, etc.
6
+
7
+ ## Install this skill only
8
+
9
+ Use npm package (recommended):
10
+
11
+ ```bash
12
+ npx wp-skills install --dest=. --targets=codex,vscode,claude,cursor,antigravity --skills=wpds
13
+ ```
14
+
15
+ Use local repository scripts:
16
+
17
+ ```bash
18
+ node shared/scripts/skillpack-install.mjs --dest=../your-wp-project --targets=codex,vscode,claude,cursor,antigravity --skills=wpds
19
+ ```
20
+
21
+ ## When to use
22
+
23
+ - Apply this skill when your task matches the scope in [SKILL.md](./SKILL.md).
24
+ - Typical trigger prompt: `Use wpds to handle this task in my WordPress repo`.
25
+
26
+ ## Inputs to provide
27
+
28
+ - Repository root (or target project path).
29
+ - Exact task goal (feature, refactor, debugging, migration, or review).
30
+ - Constraints: WordPress/PHP versions, plugin/theme boundaries, timeline/risk constraints.
31
+
32
+ ## Expected output
33
+
34
+ - Clear implementation plan tied to project context.
35
+ - File-level changes or command steps with verification.
36
+ - Guardrails and risks called out before high-impact operations.
37
+
38
+ ## Team guardrails
39
+
40
+ - Prefer existing repo conventions and tooling over introducing new patterns.
41
+ - Avoid destructive DB/content operations without explicit approval.
42
+ - Keep backward compatibility visible for production WordPress sites.
43
+
44
+ ## References
45
+
46
+ - Main instructions: [SKILL.md](./SKILL.md)