@ai-kits/wp-ag-kit 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.
- package/ANTIGRAVITY-README.md +47 -0
- package/CONTRIBUTING.md +122 -0
- package/README.md +135 -0
- package/STRUCTURE.md +200 -0
- package/agents/wordpress-expert.md +36 -0
- package/agents/wp-frontend-expert.md +21 -0
- package/bin/antigravity-agent.js +159 -0
- package/docs/authoring-guide.md +56 -0
- package/docs/compatibility-policy.md +18 -0
- package/docs/packaging.md +26 -0
- package/docs/principles.md +7 -0
- package/docs/skill-set-v1.md +21 -0
- package/docs/upstream-sync.md +52 -0
- package/package.json +47 -0
- package/rules/GEMINI.md +273 -0
- package/shared/references/.gitkeep +1 -0
- package/shared/references/gutenberg-releases.json +155 -0
- package/shared/references/wordpress-core-versions.json +208 -0
- package/shared/references/wp-gutenberg-version-map.json +886 -0
- package/shared/scripts/ai-generate-updates.mjs +458 -0
- package/shared/scripts/scaffold-skill.mjs +62 -0
- package/shared/scripts/skillpack-build.mjs +165 -0
- package/shared/scripts/skillpack-install.mjs +275 -0
- package/shared/scripts/update-upstream-indices.mjs +173 -0
- package/skills/wordpress-router/SKILL.md +51 -0
- package/skills/wordpress-router/references/decision-tree.md +55 -0
- package/skills/wp-abilities-api/SKILL.md +95 -0
- package/skills/wp-abilities-api/references/php-registration.md +67 -0
- package/skills/wp-abilities-api/references/rest-api.md +13 -0
- package/skills/wp-block-development/SKILL.md +174 -0
- package/skills/wp-block-development/references/attributes-and-serialization.md +22 -0
- package/skills/wp-block-development/references/block-json.md +49 -0
- package/skills/wp-block-development/references/creating-new-blocks.md +46 -0
- package/skills/wp-block-development/references/debugging.md +36 -0
- package/skills/wp-block-development/references/deprecations.md +24 -0
- package/skills/wp-block-development/references/dynamic-rendering.md +23 -0
- package/skills/wp-block-development/references/inner-blocks.md +25 -0
- package/skills/wp-block-development/references/registration.md +30 -0
- package/skills/wp-block-development/references/supports-and-wrappers.md +18 -0
- package/skills/wp-block-development/references/tooling-and-testing.md +21 -0
- package/skills/wp-block-development/scripts/list_blocks.mjs +121 -0
- package/skills/wp-block-themes/SKILL.md +116 -0
- package/skills/wp-block-themes/references/creating-new-block-theme.md +37 -0
- package/skills/wp-block-themes/references/debugging.md +24 -0
- package/skills/wp-block-themes/references/patterns.md +18 -0
- package/skills/wp-block-themes/references/style-variations.md +14 -0
- package/skills/wp-block-themes/references/templates-and-parts.md +16 -0
- package/skills/wp-block-themes/references/theme-json.md +59 -0
- package/skills/wp-block-themes/scripts/detect_block_themes.mjs +117 -0
- package/skills/wp-interactivity-api/SKILL.md +179 -0
- package/skills/wp-interactivity-api/references/debugging.md +29 -0
- package/skills/wp-interactivity-api/references/directives-quickref.md +30 -0
- package/skills/wp-interactivity-api/references/server-side-rendering.md +310 -0
- package/skills/wp-performance/SKILL.md +146 -0
- package/skills/wp-performance/references/autoload-options.md +24 -0
- package/skills/wp-performance/references/cron.md +20 -0
- package/skills/wp-performance/references/database.md +20 -0
- package/skills/wp-performance/references/http-api.md +15 -0
- package/skills/wp-performance/references/measurement.md +21 -0
- package/skills/wp-performance/references/object-cache.md +24 -0
- package/skills/wp-performance/references/query-monitor-headless.md +38 -0
- package/skills/wp-performance/references/server-timing.md +22 -0
- package/skills/wp-performance/references/wp-cli-doctor.md +24 -0
- package/skills/wp-performance/references/wp-cli-profile.md +32 -0
- package/skills/wp-performance/scripts/perf_inspect.mjs +128 -0
- package/skills/wp-phpstan/SKILL.md +97 -0
- package/skills/wp-phpstan/references/configuration.md +52 -0
- package/skills/wp-phpstan/references/third-party-classes.md +76 -0
- package/skills/wp-phpstan/references/wordpress-annotations.md +124 -0
- package/skills/wp-phpstan/scripts/phpstan_inspect.mjs +263 -0
- package/skills/wp-playground/SKILL.md +101 -0
- package/skills/wp-playground/references/blueprints.md +36 -0
- package/skills/wp-playground/references/cli-commands.md +39 -0
- package/skills/wp-playground/references/debugging.md +16 -0
- package/skills/wp-plugin-development/SKILL.md +112 -0
- package/skills/wp-plugin-development/references/data-and-cron.md +19 -0
- package/skills/wp-plugin-development/references/debugging.md +19 -0
- package/skills/wp-plugin-development/references/lifecycle.md +33 -0
- package/skills/wp-plugin-development/references/security.md +29 -0
- package/skills/wp-plugin-development/references/settings-api.md +22 -0
- package/skills/wp-plugin-development/references/structure.md +16 -0
- package/skills/wp-plugin-development/scripts/detect_plugins.mjs +122 -0
- package/skills/wp-project-triage/SKILL.md +38 -0
- package/skills/wp-project-triage/references/triage.schema.json +143 -0
- package/skills/wp-project-triage/scripts/detect_wp_project.mjs +592 -0
- package/skills/wp-rest-api/SKILL.md +114 -0
- package/skills/wp-rest-api/references/authentication.md +18 -0
- package/skills/wp-rest-api/references/custom-content-types.md +20 -0
- package/skills/wp-rest-api/references/discovery-and-params.md +20 -0
- package/skills/wp-rest-api/references/responses-and-fields.md +30 -0
- package/skills/wp-rest-api/references/routes-and-endpoints.md +36 -0
- package/skills/wp-rest-api/references/schema.md +22 -0
- package/skills/wp-wpcli-and-ops/SKILL.md +123 -0
- package/skills/wp-wpcli-and-ops/references/automation.md +30 -0
- package/skills/wp-wpcli-and-ops/references/cron-and-cache.md +23 -0
- package/skills/wp-wpcli-and-ops/references/debugging.md +17 -0
- package/skills/wp-wpcli-and-ops/references/multisite.md +22 -0
- package/skills/wp-wpcli-and-ops/references/packages-and-updates.md +22 -0
- package/skills/wp-wpcli-and-ops/references/safety.md +30 -0
- package/skills/wp-wpcli-and-ops/references/search-replace.md +40 -0
- package/skills/wp-wpcli-and-ops/scripts/wpcli_inspect.mjs +90 -0
- package/skills/wpds/SKILL.md +58 -0
- package/workflows/create-block.md +27 -0
- package/workflows/wp-lint.md +27 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Antigravity Agent Kit
|
|
2
|
+
|
|
3
|
+
A global CLI tool to easily install and use WordPress agent skills in your Antigravity IDE projects.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g /path/to/this/agent-skills
|
|
9
|
+
# or from a published package:
|
|
10
|
+
npm install -g antigravity-agent-kit
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
### Initialize a project
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
cd your-antigravity-project
|
|
19
|
+
ag-agent init
|
|
20
|
+
```
|
|
21
|
+
This creates a `.agent` folder and copies all available skills, agents, workflows, and rules from this kit into your project.
|
|
22
|
+
|
|
23
|
+
### List available items
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
ag-agent list-skills
|
|
27
|
+
ag-agent list-agents
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Check installed items
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
ag-agent list-installed
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## How it works
|
|
37
|
+
- **Skills**: Portable instruction modules for specific WordPress tasks.
|
|
38
|
+
- **Agents**: Specialized AI personas (e.g., WordPress Expert, Frontend Expert).
|
|
39
|
+
- **Workflows**: Semi-automated procedures for common tasks (e.g., linting, block creation).
|
|
40
|
+
- **Rules**: Global behavior guidelines (GEMINI.md) optimized for WordPress development.
|
|
41
|
+
|
|
42
|
+
## Contributing
|
|
43
|
+
See the main README for details on authoring and contributing skills.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
For more details, see the main [README.md](README.md).
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# Contributing to Agent Skills
|
|
2
|
+
|
|
3
|
+
We welcome contributions! This project is a great opportunity to share your WordPress expertise with the community in a unique way.
|
|
4
|
+
|
|
5
|
+
## Why Contribute Here?
|
|
6
|
+
|
|
7
|
+
**You don't need to be a coding wizard.** Unlike typical open source projects, Agent Skills is primarily about capturing *knowledge* and *best practices* in a structured format. If you understand WordPress deeply—whether that's block development, performance optimization, plugin security, or any other domain—you can make a meaningful contribution.
|
|
8
|
+
|
|
9
|
+
Most of our skills are written in Markdown. The "code" is mostly procedural checklists, decision trees, and reference documentation. If you can explain a WordPress concept clearly, you can contribute here.
|
|
10
|
+
|
|
11
|
+
## Ways to Contribute
|
|
12
|
+
|
|
13
|
+
### 1. Improve Existing Skills
|
|
14
|
+
|
|
15
|
+
The easiest way to start:
|
|
16
|
+
|
|
17
|
+
- **Fix outdated information** — WordPress evolves quickly. If you spot something that's changed, open a PR.
|
|
18
|
+
- **Add missing edge cases** — Did you hit a gotcha that isn't documented? Add it to the "Failure modes" section.
|
|
19
|
+
- **Clarify procedures** — If a step confused you, it'll confuse others. Make it clearer.
|
|
20
|
+
- **Expand references** — Add deeper documentation on specific topics.
|
|
21
|
+
|
|
22
|
+
### 2. Create New Skills
|
|
23
|
+
|
|
24
|
+
Have expertise in a WordPress area we don't cover yet? Consider adding a new skill.
|
|
25
|
+
|
|
26
|
+
Before starting:
|
|
27
|
+
1. Check [existing skills](skills/) to avoid overlap
|
|
28
|
+
2. Review the [Authoring Guide](docs/authoring-guide.md) for structure requirements
|
|
29
|
+
3. Open an issue to discuss scope (optional but recommended for larger skills)
|
|
30
|
+
|
|
31
|
+
Scaffold a new skill:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
node shared/scripts/scaffold-skill.mjs <skill-name> "<description>"
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### 3. Add Evaluation Scenarios
|
|
38
|
+
|
|
39
|
+
Every skill needs test scenarios under `eval/scenarios/`. These are simple markdown files describing:
|
|
40
|
+
- A realistic prompt/task
|
|
41
|
+
- What the AI should do
|
|
42
|
+
- How to verify it worked
|
|
43
|
+
|
|
44
|
+
This is a great low-barrier contribution—you're essentially writing "what should happen when someone asks X?"
|
|
45
|
+
|
|
46
|
+
### 4. Report Issues
|
|
47
|
+
|
|
48
|
+
Found a skill giving bad advice? AI following a procedure that doesn't work? Open an issue with:
|
|
49
|
+
- Which skill
|
|
50
|
+
- What went wrong
|
|
51
|
+
- What the correct behavior should be
|
|
52
|
+
|
|
53
|
+
## Skill Structure
|
|
54
|
+
|
|
55
|
+
Each skill follows this structure:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
skills/<skill-name>/
|
|
59
|
+
├── SKILL.md # Main instructions (short, procedural)
|
|
60
|
+
├── references/ # Deep-dive docs on specific topics
|
|
61
|
+
│ └── *.md
|
|
62
|
+
└── scripts/ # Deterministic helpers (optional)
|
|
63
|
+
└── *.mjs
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### SKILL.md Requirements
|
|
67
|
+
|
|
68
|
+
Every `SKILL.md` needs:
|
|
69
|
+
|
|
70
|
+
1. **YAML frontmatter** with `name`, `description`, and `compatibility`
|
|
71
|
+
2. **When to use** — Conditions that trigger this skill
|
|
72
|
+
3. **Inputs required** — What the AI needs to gather first
|
|
73
|
+
4. **Procedure** — Step-by-step checklist
|
|
74
|
+
5. **Verification** — How to confirm it worked
|
|
75
|
+
6. **Failure modes / debugging** — Common problems and fixes
|
|
76
|
+
7. **Escalation** — When to ask for human help
|
|
77
|
+
|
|
78
|
+
See any existing skill for examples.
|
|
79
|
+
|
|
80
|
+
## Guidelines
|
|
81
|
+
|
|
82
|
+
### Keep It Practical
|
|
83
|
+
|
|
84
|
+
- Focus on what developers actually need to do
|
|
85
|
+
- Include concrete examples, not abstract theory
|
|
86
|
+
- Link to official docs for deep dives
|
|
87
|
+
|
|
88
|
+
### Keep It Current
|
|
89
|
+
|
|
90
|
+
- Target WordPress 6.9+ and PHP 7.2.24+
|
|
91
|
+
- Avoid legacy patterns (Classic themes, pre-Gutenberg APIs)
|
|
92
|
+
- Update compatibility frontmatter when requirements change
|
|
93
|
+
|
|
94
|
+
### Keep It Testable
|
|
95
|
+
|
|
96
|
+
- Add at least one eval scenario for new skills
|
|
97
|
+
- Run `node eval/harness/run.mjs` before submitting
|
|
98
|
+
|
|
99
|
+
### Keep It Small
|
|
100
|
+
|
|
101
|
+
- Prefer small, focused skills over mega-skills
|
|
102
|
+
- Keep `SKILL.md` short—push depth into `references/`
|
|
103
|
+
- One skill should do one thing well
|
|
104
|
+
|
|
105
|
+
## Submitting Changes
|
|
106
|
+
|
|
107
|
+
1. Fork the repo
|
|
108
|
+
2. Create a branch (`git checkout -b improve-block-dev-skill`)
|
|
109
|
+
3. Make your changes
|
|
110
|
+
4. Run validation: `node eval/harness/run.mjs`
|
|
111
|
+
5. Commit with a clear message
|
|
112
|
+
6. Open a pull request
|
|
113
|
+
|
|
114
|
+
For significant changes, consider opening an issue first to discuss the approach.
|
|
115
|
+
|
|
116
|
+
## Questions?
|
|
117
|
+
|
|
118
|
+
Open an issue or start a discussion. We're happy to help you get started.
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
*Your WordPress knowledge can help thousands of developers get better AI assistance. Thank you for contributing!*
|
package/README.md
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# WordPress Antigravity Kit
|
|
2
|
+
|
|
3
|
+
**Complete WordPress development environment for Antigravity IDE**
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@ai-kits/wp-ag-kit)
|
|
6
|
+
[](https://opensource.org/licenses/MIT)
|
|
7
|
+
|
|
8
|
+
## 🚀 Quick Install
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
# Quick start with npx (no installation needed)
|
|
12
|
+
npx @ai-kits/wp-ag-kit init
|
|
13
|
+
|
|
14
|
+
# Or install globally
|
|
15
|
+
npm install -g @ai-kits/wp-ag-kit
|
|
16
|
+
wpag init
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## 📦 What You Get
|
|
20
|
+
|
|
21
|
+
This kit provides a complete WordPress development environment for Antigravity IDE:
|
|
22
|
+
|
|
23
|
+
- **13 WordPress Skills** - Expert instruction modules for blocks, themes, plugins, performance, and more
|
|
24
|
+
- **2 Specialized Agents** - WordPress Expert and Frontend Expert AI personas
|
|
25
|
+
- **2 Workflows** - Automated linting and block creation procedures
|
|
26
|
+
- **Global Rules** - GEMINI.md for consistent, high-quality behavior
|
|
27
|
+
- **Shared Resources** - WordPress/Gutenberg version maps and utility scripts
|
|
28
|
+
|
|
29
|
+
## 💡 Usage
|
|
30
|
+
|
|
31
|
+
### Initialize Your Project
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
cd your-wordpress-project
|
|
35
|
+
wpag init
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
This creates a `.agent/` folder with:
|
|
39
|
+
```
|
|
40
|
+
.agent/
|
|
41
|
+
├── agents/ # AI personas specialized for WordPress
|
|
42
|
+
├── workflows/ # Semi-automated task procedures
|
|
43
|
+
├── rules/ # Global behavior guidelines
|
|
44
|
+
├── skills/ # 13 WordPress instruction modules
|
|
45
|
+
└── shared/ # Version maps and utilities
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Available Commands
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
wpag init # Initialize .agent folder
|
|
52
|
+
wpag list-skills # Show available skills
|
|
53
|
+
wpag list-agents # Show available agents
|
|
54
|
+
wpag list-installed # Show what's in your project
|
|
55
|
+
wpag use-skill <name> # Add a specific skill
|
|
56
|
+
wpag help # Show help
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## 📚 Available Skills
|
|
60
|
+
|
|
61
|
+
| Skill | Description |
|
|
62
|
+
|-------|-------------|
|
|
63
|
+
| `wp-project-triage` | Automatic project detection and classification |
|
|
64
|
+
| `wp-block-development` | Gutenberg block creation and management |
|
|
65
|
+
| `wp-block-themes` | Block theme development with theme.json |
|
|
66
|
+
| `wp-plugin-development` | Plugin architecture, hooks, and security |
|
|
67
|
+
| `wp-rest-api` | REST API endpoints and controllers |
|
|
68
|
+
| `wp-interactivity-api` | Frontend interactivity with data-wp-* directives |
|
|
69
|
+
| `wp-abilities-api` | Capability-based permissions |
|
|
70
|
+
| `wp-wpcli-and-ops` | WP-CLI automation and operations |
|
|
71
|
+
| `wp-performance` | Backend performance profiling and optimization |
|
|
72
|
+
| `wp-phpstan` | Static analysis with PHPStan |
|
|
73
|
+
| `wp-playground` | WordPress Playground workflows |
|
|
74
|
+
| `wpds` | WordPress Design System |
|
|
75
|
+
| `wordpress-router` | Smart project routing |
|
|
76
|
+
|
|
77
|
+
## 🤖 Specialized Agents
|
|
78
|
+
|
|
79
|
+
### WordPress Expert
|
|
80
|
+
Master WordPress developer that uses all 13 skills for comprehensive WordPress development.
|
|
81
|
+
|
|
82
|
+
### WordPress Frontend Expert
|
|
83
|
+
Specialist for Block Themes, Interactivity API, and modern WordPress UI/UX.
|
|
84
|
+
|
|
85
|
+
## 🔄 Workflows
|
|
86
|
+
|
|
87
|
+
- `/wp-lint` - Run WordPress-specific linting (PHPStan + @wordpress/scripts)
|
|
88
|
+
- `/create-block` - Scaffold a new Gutenberg block
|
|
89
|
+
|
|
90
|
+
## 🎯 Requirements
|
|
91
|
+
|
|
92
|
+
- Node.js 16 or higher
|
|
93
|
+
- WordPress 6.9+ (for skills compatibility)
|
|
94
|
+
- PHP 7.2.24+ (for WordPress compatibility)
|
|
95
|
+
|
|
96
|
+
## 📖 Documentation
|
|
97
|
+
|
|
98
|
+
- [Complete Structure Guide](./STRUCTURE.md) - Detailed breakdown of all components
|
|
99
|
+
- [Contributing Guide](./CONTRIBUTING.md) - How to add skills or improve the kit
|
|
100
|
+
- [Antigravity README](./ANTIGRAVITY-README.md) - Kit-specific documentation
|
|
101
|
+
|
|
102
|
+
## 🛠️ Development
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
# Clone the repository
|
|
106
|
+
git clone https://github.com/your-org/wp-ag-kit.git
|
|
107
|
+
cd wp-ag-kit/agent-skills
|
|
108
|
+
|
|
109
|
+
# Install dependencies
|
|
110
|
+
npm install
|
|
111
|
+
|
|
112
|
+
# Run tests
|
|
113
|
+
npm test
|
|
114
|
+
|
|
115
|
+
# Build distribution
|
|
116
|
+
npm run build
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## 🤝 Contributing
|
|
120
|
+
|
|
121
|
+
We welcome contributions! See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.
|
|
122
|
+
|
|
123
|
+
## 📄 License
|
|
124
|
+
|
|
125
|
+
MIT © Anikesh Kumar
|
|
126
|
+
|
|
127
|
+
## 🔗 Links
|
|
128
|
+
|
|
129
|
+
- [npm Package](https://www.npmjs.com/package/@ai-kits/wp-ag-kit)
|
|
130
|
+
- [GitHub Repository](https://github.com/ai-kits/wp-ag-kit)
|
|
131
|
+
- [Issues](https://github.com/ai-kits/wp-ag-kit/issues)
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
**Made with ❤️ for the WordPress and Antigravity communities**
|
package/STRUCTURE.md
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
# WordPress Antigravity Kit - Complete Structure
|
|
2
|
+
|
|
3
|
+
## 📦 What Gets Installed
|
|
4
|
+
|
|
5
|
+
When a user runs `ag-agent init`, the following complete structure is copied to their project's `.agent/` folder:
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
.agent/
|
|
9
|
+
├── agents/ ✅ WordPress-specialized AI personas
|
|
10
|
+
├── workflows/ ✅ Semi-automated task procedures
|
|
11
|
+
├── rules/ ✅ Global behavior guidelines (GEMINI.md)
|
|
12
|
+
├── skills/ ✅ 13 WordPress instruction modules
|
|
13
|
+
└── shared/ ✅ Common resources and utilities
|
|
14
|
+
├── references/ ✅ Version maps and data files
|
|
15
|
+
└── scripts/ ✅ Build and maintenance scripts
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 📂 Kit Components Breakdown
|
|
21
|
+
|
|
22
|
+
### 1. **Skills** (13 WordPress-specific modules)
|
|
23
|
+
Located in: `skills/`
|
|
24
|
+
|
|
25
|
+
Each skill contains:
|
|
26
|
+
- `SKILL.md` - Main instruction file with procedures
|
|
27
|
+
- `references/` - Deep-dive documentation
|
|
28
|
+
- `scripts/` - Deterministic helper scripts (Node.js)
|
|
29
|
+
|
|
30
|
+
**Available Skills:**
|
|
31
|
+
1. `wordpress-router` - Project classification and routing
|
|
32
|
+
2. `wp-project-triage` - Automatic project detection
|
|
33
|
+
3. `wp-block-development` - Gutenberg block creation
|
|
34
|
+
4. `wp-block-themes` - Block theme development
|
|
35
|
+
5. `wp-plugin-development` - Plugin architecture and security
|
|
36
|
+
6. `wp-rest-api` - REST API endpoints and controllers
|
|
37
|
+
7. `wp-interactivity-api` - Frontend interactivity (data-wp-*)
|
|
38
|
+
8. `wp-abilities-api` - Capability-based permissions
|
|
39
|
+
9. `wp-wpcli-and-ops` - WP-CLI automation
|
|
40
|
+
10. `wp-performance` - Backend performance profiling
|
|
41
|
+
11. `wp-phpstan` - Static analysis configuration
|
|
42
|
+
12. `wp-playground` - WordPress Playground workflows
|
|
43
|
+
13. `wpds` - WordPress Design System
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
### 2. **Agents** (Specialized AI Personas)
|
|
48
|
+
Located in: `agents/`
|
|
49
|
+
|
|
50
|
+
**Current Agents:**
|
|
51
|
+
- `wordpress-expert.md` - Master WordPress developer (uses all 13 skills)
|
|
52
|
+
- `wp-frontend-expert.md` - Block Theme and Interactivity specialist
|
|
53
|
+
|
|
54
|
+
**Agent Structure:**
|
|
55
|
+
```yaml
|
|
56
|
+
---
|
|
57
|
+
name: agent-name
|
|
58
|
+
description: "What this agent specializes in"
|
|
59
|
+
skills:
|
|
60
|
+
- skill-1
|
|
61
|
+
- skill-2
|
|
62
|
+
---
|
|
63
|
+
# Agent behavior and guidelines
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
### 3. **Workflows** (Semi-Automated Procedures)
|
|
69
|
+
Located in: `workflows/`
|
|
70
|
+
|
|
71
|
+
**Current Workflows:**
|
|
72
|
+
- `/wp-lint` - Run WordPress linting (PHPStan + @wordpress/scripts)
|
|
73
|
+
- `/create-block` - Scaffold a new Gutenberg block
|
|
74
|
+
|
|
75
|
+
**Workflow Features:**
|
|
76
|
+
- `// turbo` annotations for auto-executable steps
|
|
77
|
+
- Step-by-step guidance
|
|
78
|
+
- Integration with skills
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
### 4. **Rules** (Global Behavior)
|
|
83
|
+
Located in: `rules/`
|
|
84
|
+
|
|
85
|
+
**File:** `GEMINI.md`
|
|
86
|
+
|
|
87
|
+
Contains:
|
|
88
|
+
- Agent routing protocol
|
|
89
|
+
- Socratic questioning gates
|
|
90
|
+
- Clean code standards
|
|
91
|
+
- Project type routing
|
|
92
|
+
- Testing and deployment rules
|
|
93
|
+
|
|
94
|
+
This ensures consistent, high-quality behavior across all WordPress projects.
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
### 5. **Shared Resources**
|
|
99
|
+
Located in: `shared/`
|
|
100
|
+
|
|
101
|
+
#### `shared/references/`
|
|
102
|
+
Version mapping data for WordPress and Gutenberg:
|
|
103
|
+
- `wordpress-core-versions.json` - WordPress release data
|
|
104
|
+
- `gutenberg-releases.json` - Gutenberg plugin versions
|
|
105
|
+
- `wp-gutenberg-version-map.json` - Core ↔ Gutenberg mapping
|
|
106
|
+
|
|
107
|
+
#### `shared/scripts/`
|
|
108
|
+
Maintenance and build utilities:
|
|
109
|
+
- `scaffold-skill.mjs` - Create new skills
|
|
110
|
+
- `skillpack-build.mjs` - Build distribution packages
|
|
111
|
+
- `skillpack-install.mjs` - Install skills to projects
|
|
112
|
+
- `ai-generate-updates.mjs` - AI-assisted updates
|
|
113
|
+
- `update-upstream-indices.mjs` - Sync version data
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## 🔧 Development Components (Not Installed to User Projects)
|
|
118
|
+
|
|
119
|
+
These remain in the kit repository for development and testing:
|
|
120
|
+
|
|
121
|
+
### **eval/** - Evaluation and Testing
|
|
122
|
+
- `eval/harness/run.mjs` - Skill validation runner
|
|
123
|
+
- `eval/scenarios/` - Test scenarios for each skill
|
|
124
|
+
|
|
125
|
+
### **docs/** - Documentation
|
|
126
|
+
- `authoring-guide.md` - How to create skills
|
|
127
|
+
- `principles.md` - Design philosophy
|
|
128
|
+
- `packaging.md` - Distribution guidelines
|
|
129
|
+
- `compatibility-policy.md` - Version targeting
|
|
130
|
+
|
|
131
|
+
### **dist/** - Build Output
|
|
132
|
+
Generated by `skillpack-build.mjs`:
|
|
133
|
+
- `dist/codex/` - For OpenAI Codex
|
|
134
|
+
- `dist/vscode/` - For VS Code / GitHub Copilot
|
|
135
|
+
- `dist/claude/` - For Claude Code
|
|
136
|
+
|
|
137
|
+
### **bin/** - CLI Tool
|
|
138
|
+
- `bin/antigravity-agent.js` - The `ag-agent` command
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## ✅ What's Included vs. What's Not
|
|
143
|
+
|
|
144
|
+
| Component | Installed to User Projects | Purpose |
|
|
145
|
+
|-----------|---------------------------|---------|
|
|
146
|
+
| **skills/** | ✅ Yes | WordPress instruction modules |
|
|
147
|
+
| **agents/** | ✅ Yes | AI personas for specialized tasks |
|
|
148
|
+
| **workflows/** | ✅ Yes | Semi-automated procedures |
|
|
149
|
+
| **rules/** | ✅ Yes | Global behavior (GEMINI.md) |
|
|
150
|
+
| **shared/references/** | ✅ Yes | Version maps and data |
|
|
151
|
+
| **shared/scripts/** | ✅ Yes | Build and utility scripts |
|
|
152
|
+
| **eval/** | ❌ No | Testing framework (dev only) |
|
|
153
|
+
| **docs/** | ❌ No | Authoring guides (dev only) |
|
|
154
|
+
| **dist/** | ❌ No | Build artifacts (dev only) |
|
|
155
|
+
| **bin/** | ❌ No | CLI is globally installed |
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## 🚀 Usage Flow
|
|
160
|
+
|
|
161
|
+
1. **User installs the kit globally:**
|
|
162
|
+
```bash
|
|
163
|
+
npm install -g /path/to/wp-ag-kit
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
2. **User initializes their WordPress project:**
|
|
167
|
+
```bash
|
|
168
|
+
cd my-wordpress-plugin
|
|
169
|
+
ag-agent init
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
3. **Kit copies everything needed:**
|
|
173
|
+
- All 13 skills → `.agent/skills/`
|
|
174
|
+
- 2 agents → `.agent/agents/`
|
|
175
|
+
- 2 workflows → `.agent/workflows/`
|
|
176
|
+
- GEMINI.md → `.agent/rules/`
|
|
177
|
+
- Shared resources → `.agent/shared/`
|
|
178
|
+
|
|
179
|
+
4. **Antigravity IDE automatically discovers:**
|
|
180
|
+
- Skills from `.agent/skills/`
|
|
181
|
+
- Agents from `.agent/agents/`
|
|
182
|
+
- Workflows from `.agent/workflows/`
|
|
183
|
+
- Rules from `.agent/rules/`
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## 🎯 Summary
|
|
188
|
+
|
|
189
|
+
**YES, everything is used and properly integrated:**
|
|
190
|
+
|
|
191
|
+
✅ **Skills** - All 13 WordPress modules are copied and functional
|
|
192
|
+
✅ **Agents** - WordPress Expert and Frontend Expert personas
|
|
193
|
+
✅ **Workflows** - Linting and block creation procedures
|
|
194
|
+
✅ **Rules** - GEMINI.md for consistent behavior
|
|
195
|
+
✅ **Shared** - Version maps and utility scripts
|
|
196
|
+
✅ **Eval** - Testing harness (for kit development)
|
|
197
|
+
✅ **Docs** - Authoring guides (for contributors)
|
|
198
|
+
✅ **Bin** - CLI tool (`ag-agent` command)
|
|
199
|
+
|
|
200
|
+
Your kit is **complete and self-contained**. Users get everything they need for professional WordPress development in Antigravity IDE!
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: wordpress-expert
|
|
3
|
+
description: "Expert WordPress developer specializing in Block Editor, Plugins, Themes, and Performance."
|
|
4
|
+
skills:
|
|
5
|
+
- wp-project-triage
|
|
6
|
+
- wp-block-development
|
|
7
|
+
- wp-block-themes
|
|
8
|
+
- wp-plugin-development
|
|
9
|
+
- wp-rest-api
|
|
10
|
+
- wp-interactivity-api
|
|
11
|
+
- wp-abilities-api
|
|
12
|
+
- wp-wpcli-and-ops
|
|
13
|
+
- wp-performance
|
|
14
|
+
- wp-phpstan
|
|
15
|
+
- wp-playground
|
|
16
|
+
- wpds
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# WordPress Expert Agent
|
|
20
|
+
|
|
21
|
+
I am a specialized agent for WordPress development. I follow modern WordPress standards (Gutenberg, Block Themes, Interactivity API) and ensure security and performance.
|
|
22
|
+
|
|
23
|
+
## Core Directives
|
|
24
|
+
|
|
25
|
+
1. **Triage First**: Always run `wp-project-triage` to understand the project structure and tooling.
|
|
26
|
+
2. **Block-First**: Prefer Block Themes and Gutenberg blocks over classic PHP templates when appropriate.
|
|
27
|
+
3. **Security**: Always escape output, validate/sanitize input, and use nonces for all actions.
|
|
28
|
+
4. **Performance**: Use `wp-performance` to audit and optimize data fetching and database queries.
|
|
29
|
+
5. **Modern Build**: Use `@wordpress/scripts` and `block.json` for block development.
|
|
30
|
+
|
|
31
|
+
## Specialized Skills
|
|
32
|
+
|
|
33
|
+
- **Blocks**: I can build complex nested blocks with `wp-block-development`.
|
|
34
|
+
- **Interactivity**: I use the Interactivity API for high-performance frontend behavior.
|
|
35
|
+
- **Ops**: I use WP-CLI for automation and site management.
|
|
36
|
+
- **Testing**: I use PHPStan and Playwright for quality assurance.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: wp-frontend-expert
|
|
3
|
+
description: "WordPress frontend specialist focused on Interactivity API, Block Themes, and modern UI/UX."
|
|
4
|
+
skills:
|
|
5
|
+
- wp-block-themes
|
|
6
|
+
- wp-interactivity-api
|
|
7
|
+
- wpds
|
|
8
|
+
- frontend-design
|
|
9
|
+
- tailwind-patterns
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# WordPress Frontend Expert
|
|
13
|
+
|
|
14
|
+
I specialize in building stunning, high-performance WordPress frontends. I leverage the Interactivity API for dynamic features without the bloat of traditional jQuery-based solutions.
|
|
15
|
+
|
|
16
|
+
## Guidelines
|
|
17
|
+
|
|
18
|
+
1. **Interactivity API**: Use `data-wp-*` directives for custom interactive components.
|
|
19
|
+
2. **WPDS**: Use the WordPress Design System components and tokens whenever possible to maintain native feel.
|
|
20
|
+
3. **Theme JSON**: Use `theme.json` for global styles and settings to ensure consistency across the Site Editor.
|
|
21
|
+
4. **Performance**: Optimize LCP and CLS by avoiding heavy scripts and using native WordPress image optimizations.
|