ima-claude 2.16.0 → 2.20.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 (41) hide show
  1. package/README.md +16 -1
  2. package/dist/cli.js +9 -1
  3. package/package.json +1 -1
  4. package/plugins/ima-claude/.claude-plugin/plugin.json +2 -2
  5. package/plugins/ima-claude/agents/wp-developer.md +2 -1
  6. package/plugins/ima-claude/hooks/prompt_coach_digest.md +1 -1
  7. package/plugins/ima-claude/skills/agentic-workflows/SKILL.md +133 -0
  8. package/plugins/ima-claude/skills/agentic-workflows/references/phases/deliver.md +181 -0
  9. package/plugins/ima-claude/skills/agentic-workflows/references/phases/draft.md +99 -0
  10. package/plugins/ima-claude/skills/agentic-workflows/references/phases/gather.md +130 -0
  11. package/plugins/ima-claude/skills/agentic-workflows/references/phases/outline.md +106 -0
  12. package/plugins/ima-claude/skills/agentic-workflows/references/phases/review.md +137 -0
  13. package/plugins/ima-claude/skills/agentic-workflows/references/standards/draft-format.md +159 -0
  14. package/plugins/ima-claude/skills/agentic-workflows/references/standards/editorial-standards.md +160 -0
  15. package/plugins/ima-claude/skills/agentic-workflows/references/standards/outline-format.md +110 -0
  16. package/plugins/ima-claude/skills/agentic-workflows/references/templates/avada-construction-guide.md +263 -0
  17. package/plugins/ima-claude/skills/agentic-workflows/references/templates/avada-webinar-example.txt +275 -0
  18. package/plugins/ima-claude/skills/agentic-workflows/references/templates/cta-block-catalog.md +169 -0
  19. package/plugins/ima-claude/skills/agentic-workflows/references/templates/espo-email-preparation.md +241 -0
  20. package/plugins/ima-claude/skills/agentic-workflows/references/templates/webinar-recap-email-espo.html +339 -0
  21. package/plugins/ima-claude/skills/agentic-workflows/references/templates/webinar-reminder-email-espo.html +458 -0
  22. package/plugins/ima-claude/skills/agentic-workflows/references/workflows/editorial/webinar-summary.md +81 -0
  23. package/plugins/ima-claude/skills/design-to-code/SKILL.md +126 -0
  24. package/plugins/ima-claude/skills/design-to-code/references/guardrails.md +46 -0
  25. package/plugins/ima-claude/skills/design-to-code/references/phase-a-design-to-prompt.md +141 -0
  26. package/plugins/ima-claude/skills/design-to-code/references/phase-b-prompt-to-code.md +155 -0
  27. package/plugins/ima-claude/skills/design-to-code/references/prompt-template.md +95 -0
  28. package/plugins/ima-claude/skills/espocrm/SKILL.md +79 -0
  29. package/plugins/ima-claude/skills/espocrm-api/SKILL.md +360 -0
  30. package/plugins/ima-claude/skills/espocrm-api/references/where-operators.md +84 -0
  31. package/plugins/ima-claude/skills/functional-programmer/SKILL.md +15 -0
  32. package/plugins/ima-claude/skills/mcp-atlassian/SKILL.md +94 -14
  33. package/plugins/ima-claude/skills/mcp-atlassian/references/direct-api-attachments.md +115 -0
  34. package/plugins/ima-claude/skills/mcp-atlassian/references/direct-api-auth.md +103 -0
  35. package/plugins/ima-claude/skills/mcp-atlassian/references/direct-api-bulk.md +149 -0
  36. package/plugins/ima-claude/skills/mcp-atlassian/references/direct-api-misc.md +195 -0
  37. package/plugins/ima-claude/skills/mcp-atlassian/references/direct-api-sprints.md +158 -0
  38. package/plugins/ima-claude/skills/prompt-starter/SKILL.md +9 -6
  39. package/plugins/ima-claude/skills/wp-ddev/SKILL.md +264 -0
  40. package/plugins/ima-claude/skills/wp-ddev/references/ddev-commands.md +232 -0
  41. package/plugins/ima-claude/skills/wp-ddev/references/wp-cli-reference.md +406 -0
@@ -0,0 +1,406 @@
1
+ # WP-CLI Command Reference
2
+
3
+ Comprehensive reference for WP-CLI commands in local development. Organized for lookup — use the TOC to jump to what you need. All examples use the `ddev wp` command.
4
+
5
+ For inline essentials (database, plugin, user, theme, cache, options, post, taxonomy, menu, rewrite, scaffold, eval), see [SKILL.md](../SKILL.md).
6
+
7
+ ## Table of Contents
8
+
9
+ - [Core](#core)
10
+ - [Config](#config)
11
+ - [Cron](#cron)
12
+ - [Media](#media)
13
+ - [Comment](#comment)
14
+ - [Role & Capability](#role--capability)
15
+ - [Widget](#widget)
16
+ - [Sidebar](#sidebar)
17
+ - [Site & Multisite](#site--multisite)
18
+ - [Language & i18n](#language--i18n)
19
+ - [Import & Export](#import--export)
20
+ - [Embed](#embed)
21
+ - [Package](#package)
22
+ - [Maintenance Mode](#maintenance-mode)
23
+ - [Server](#server)
24
+ - [Super Admin](#super-admin)
25
+ - [Network Meta](#network-meta)
26
+ - [Advanced Patterns](#advanced-patterns)
27
+
28
+ ---
29
+
30
+ ## Core
31
+
32
+ `wp core version` · `wp core check-update` · `wp core update` · `wp core download` · `wp core install`
33
+
34
+ ```bash
35
+ ddev wp core version
36
+ ddev wp core check-update
37
+ ddev wp core update
38
+ ddev wp core update --minor
39
+ ddev wp core verify-checksums
40
+ ```
41
+
42
+ **Gotchas**: `core update` changes the WordPress version inside the container. The change persists in the mounted filesystem. Use `ddev setup` to re-run bootstrap after major updates.
43
+
44
+ ---
45
+
46
+ ## Config
47
+
48
+ `wp config list` · `wp config get <name>` · `wp config set <name> <value>` · `wp config path`
49
+
50
+ ```bash
51
+ ddev wp config path
52
+ ddev wp config list --format=table
53
+ ddev wp config get DB_NAME
54
+ ddev wp config set WP_DEBUG true --raw
55
+ ddev wp config set WP_DEBUG_LOG true --raw
56
+ ddev wp config set SCRIPT_DEBUG true --raw
57
+ ddev wp config set WP_DEBUG false --raw
58
+ ```
59
+
60
+ **Key flags**:
61
+ - `--raw` — Write value as a PHP constant (no quotes). Required for `true`/`false`/numbers.
62
+ - `--type=constant|variable` — Whether to set as `define()` or `$variable`.
63
+
64
+ **Gotchas**: `wp-config.php` is generated by `ddev setup`. Manual changes via `wp config set` persist across container restarts.
65
+
66
+ ---
67
+
68
+ ## Cron
69
+
70
+ `wp cron event list` · `wp cron event run <hook>` · `wp cron event schedule <hook> <next-run>` · `wp cron event delete <hook>`
71
+
72
+ ```bash
73
+ ddev wp cron event list --format=table
74
+ ddev wp cron event run wp_update_plugins
75
+ ddev wp cron event run --all
76
+ ddev wp cron event delete my_custom_hook
77
+ ddev wp cron schedule list
78
+ ```
79
+
80
+ **Key flags**:
81
+ - `--due-now` — List only events ready to run.
82
+ - `--format=json` — Useful for piping to jq.
83
+
84
+ **Gotchas**: DDEV sites don't run real cron by default. Events only fire on page load unless you configure `DISABLE_WP_CRON` + system cron.
85
+
86
+ ---
87
+
88
+ ## Media
89
+
90
+ `wp media import <file>` · `wp media regenerate` · `wp media image-size`
91
+
92
+ ```bash
93
+ ddev wp media import ~/images/photo.jpg --title="My Photo"
94
+ ddev wp media import https://example.com/image.jpg
95
+ ddev wp media regenerate --yes
96
+ ddev wp media regenerate 42 43 44
97
+ ddev wp media image-size --format=table
98
+ ```
99
+
100
+ **Key flags**:
101
+ - `--yes` — Skip confirmation on regenerate.
102
+ - `--only-missing` — Only regenerate missing sizes.
103
+ - `--skip-delete` — Don't delete old thumbnails during regenerate.
104
+
105
+ ---
106
+
107
+ ## Comment
108
+
109
+ `wp comment list` · `wp comment create` · `wp comment update <id>` · `wp comment delete <id>` · `wp comment approve <id>`
110
+
111
+ ```bash
112
+ ddev wp comment list --format=table
113
+ ddev wp comment list --status=hold --fields=comment_ID,comment_author,comment_content
114
+ ddev wp comment create --comment_post_ID=42 --comment_content="Test comment" --comment_author="Test"
115
+ ddev wp comment approve 5
116
+ ddev wp comment spam 5
117
+ ddev wp comment delete 5 --force
118
+ ddev wp comment recount
119
+ ```
120
+
121
+ ---
122
+
123
+ ## Role & Capability
124
+
125
+ `wp role list` · `wp role create <role> <name>` · `wp cap list <role>` · `wp cap add <role> <cap>`
126
+
127
+ ```bash
128
+ ddev wp role list --format=table
129
+ ddev wp role create custom_role "Custom Role" --clone=editor
130
+ ddev wp cap list editor --format=table
131
+ ddev wp cap add editor manage_options
132
+ ddev wp cap remove editor manage_options
133
+ ```
134
+
135
+ **Gotchas**: Role/cap changes persist in the database (`wp_options` → `wp_user_roles`). Removing a role doesn't reassign users — they lose access.
136
+
137
+ ---
138
+
139
+ ## Widget
140
+
141
+ `wp widget list <sidebar-id>` · `wp widget add <widget> <sidebar-id>` · `wp widget delete <widget-id>` · `wp widget reset <sidebar-id>`
142
+
143
+ ```bash
144
+ ddev wp widget list sidebar-1 --format=table
145
+ ddev wp widget add text sidebar-1 --title="Hello" --text="World"
146
+ ddev wp widget update text-2 --title="Updated"
147
+ ddev wp widget delete text-2
148
+ ddev wp widget deactivate text-2
149
+ ddev wp widget reset sidebar-1
150
+ ```
151
+
152
+ **Gotchas**: Widget IDs are auto-generated (e.g., `text-2`). List first to find IDs.
153
+
154
+ ---
155
+
156
+ ## Sidebar
157
+
158
+ `wp sidebar list`
159
+
160
+ ```bash
161
+ ddev wp sidebar list --format=table
162
+ ddev wp sidebar list --fields=id,name,description
163
+ ```
164
+
165
+ ---
166
+
167
+ ## Site & Multisite
168
+
169
+ `wp site list` · `wp site create` · `wp site activate <site-id>` · `wp site deactivate <site-id>`
170
+
171
+ ```bash
172
+ ddev wp site list --format=table
173
+ ddev wp site create --slug=newsite --title="New Site" --email=admin@example.com
174
+ ddev wp site activate 2
175
+ ddev wp site deactivate 2
176
+ ddev wp site delete 2 --yes
177
+ ```
178
+
179
+ **Key flags**:
180
+ - `--url=<url>` — Target a specific site in multisite. Use with any command.
181
+
182
+ **Gotchas**: Only works on multisite installs. Single-site installs will error.
183
+
184
+ ---
185
+
186
+ ## Language & i18n
187
+
188
+ `wp language core list` · `wp language core install <language>` · `wp language core activate <language>` · `wp i18n make-pot`
189
+
190
+ ```bash
191
+ ddev wp language core list --format=table
192
+ ddev wp language core install es_ES
193
+ ddev wp language core activate es_ES
194
+ ddev wp language plugin install hello-dolly es_ES
195
+ ddev wp language theme install flavor es_ES
196
+ ddev wp i18n make-pot . languages/my-plugin.pot
197
+ ddev wp i18n make-json languages/
198
+ ```
199
+
200
+ ---
201
+
202
+ ## Import & Export
203
+
204
+ `wp export` · `wp import <file>`
205
+
206
+ ```bash
207
+ ddev wp export --dir=. --post_type=post
208
+ ddev wp export --dir=. --post_type=page --start_date=2024-01-01
209
+ ddev wp import export.xml --authors=mapping.csv
210
+ ddev wp import export.xml --authors=create
211
+ ```
212
+
213
+ **Key flags**:
214
+ - `--dir` — Export directory (defaults to current dir).
215
+ - `--post_type` — Limit export to specific post type.
216
+ - `--authors=create|mapping.csv|skip` — How to handle author mapping on import.
217
+
218
+ **Gotchas**: Import requires the WordPress Importer plugin. Install with `ddev wp plugin install wordpress-importer --activate`.
219
+
220
+ ---
221
+
222
+ ## Embed
223
+
224
+ `wp embed fetch <url>` · `wp embed provider list`
225
+
226
+ ```bash
227
+ ddev wp embed fetch "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
228
+ ddev wp embed provider list --format=table
229
+ ddev wp embed cache clear
230
+ ```
231
+
232
+ ---
233
+
234
+ ## Package
235
+
236
+ `wp package list` · `wp package install <package>` · `wp package uninstall <package>`
237
+
238
+ ```bash
239
+ ddev wp package list
240
+ ddev wp package install wp-cli/doctor-command
241
+ ddev wp package install wp-cli/profile-command
242
+ ddev wp package uninstall wp-cli/doctor-command
243
+ ```
244
+
245
+ **Useful packages**:
246
+ - `wp-cli/doctor-command` — Diagnose WordPress issues
247
+ - `wp-cli/profile-command` — Profile command performance
248
+ - `wp-cli/dist-archive-command` — Create plugin/theme zip archives
249
+
250
+ ---
251
+
252
+ ## Maintenance Mode
253
+
254
+ `wp maintenance-mode activate` · `wp maintenance-mode deactivate` · `wp maintenance-mode status`
255
+
256
+ ```bash
257
+ ddev wp maintenance-mode activate
258
+ ddev wp maintenance-mode deactivate
259
+ ddev wp maintenance-mode status
260
+ ```
261
+
262
+ ---
263
+
264
+ ## Server
265
+
266
+ `wp server`
267
+
268
+ ```bash
269
+ ddev wp server --host=0.0.0.0 --port=8080
270
+ ```
271
+
272
+ **Gotchas**: Not useful with DDEV — DDEV manages its own nginx/Apache server. Included for completeness.
273
+
274
+ ---
275
+
276
+ ## Super Admin
277
+
278
+ `wp super-admin list` · `wp super-admin add <user>` · `wp super-admin remove <user>`
279
+
280
+ ```bash
281
+ ddev wp super-admin list
282
+ ddev wp super-admin add admin
283
+ ddev wp super-admin remove admin
284
+ ```
285
+
286
+ **Gotchas**: Multisite only.
287
+
288
+ ---
289
+
290
+ ## Network Meta
291
+
292
+ `wp network meta get <id> <key>` · `wp network meta update <id> <key> <value>`
293
+
294
+ ```bash
295
+ ddev wp network meta list 1 --format=table
296
+ ddev wp network meta get 1 site_name
297
+ ddev wp network meta update 1 site_name "My Network"
298
+ ```
299
+
300
+ **Gotchas**: Multisite only. Network ID is usually `1`.
301
+
302
+ ---
303
+
304
+ ## Advanced Patterns
305
+
306
+ ### JSON output + jq
307
+
308
+ Pipe `--format=json` through jq for powerful filtering:
309
+
310
+ ```bash
311
+ # Get IDs of all active plugins
312
+ ddev wp plugin list --status=active --format=json | jq -r '.[].name'
313
+
314
+ # Get post titles containing "hello"
315
+ ddev wp post list --format=json | jq -r '.[] | select(.post_title | test("hello";"i")) | .post_title'
316
+
317
+ # Count posts by status
318
+ ddev wp post list --format=json | jq 'group_by(.post_status) | map({status: .[0].post_status, count: length})'
319
+
320
+ # Get all option names matching a pattern
321
+ ddev wp option list --search="woo*" --format=json | jq -r '.[].option_name'
322
+ ```
323
+
324
+ ### Bulk operations
325
+
326
+ ```bash
327
+ # Deactivate all plugins
328
+ ddev wp plugin deactivate --all
329
+
330
+ # Delete all transients
331
+ ddev wp transient delete --all
332
+
333
+ # Regenerate all thumbnails
334
+ ddev wp media regenerate --yes
335
+
336
+ # Delete all spam comments
337
+ ddev wp comment delete $(ddev wp comment list --status=spam --format=ids) --force
338
+
339
+ # Reset all user passwords
340
+ ddev wp user list --format=ids | xargs -I{} ddev wp user update {} --user_pass="changeme"
341
+ ```
342
+
343
+ ### Common eval snippets
344
+
345
+ ```bash
346
+ # Check current theme
347
+ ddev wp eval "echo get_template();"
348
+
349
+ # Get site health info
350
+ ddev wp eval "echo home_url(); echo ' | '; echo wp_get_theme()->get('Name');"
351
+
352
+ # Check if a function exists
353
+ ddev wp eval "echo function_exists('wc_get_products') ? 'yes' : 'no';"
354
+
355
+ # Get active plugin count
356
+ ddev wp eval "echo count(get_option('active_plugins'));"
357
+
358
+ # List registered post types
359
+ ddev wp eval "print_r(array_keys(get_post_types(['public' => true])));"
360
+
361
+ # List registered taxonomies
362
+ ddev wp eval "print_r(array_keys(get_taxonomies(['public' => true])));"
363
+
364
+ # Check PHP version and memory
365
+ ddev wp eval "echo 'PHP: ' . PHP_VERSION . ' | Memory: ' . WP_MEMORY_LIMIT;"
366
+
367
+ # Test a shortcode
368
+ ddev wp eval "echo do_shortcode('[my_shortcode]');"
369
+ ```
370
+
371
+ ### Chaining commands
372
+
373
+ ```bash
374
+ # Install, activate, and verify
375
+ ddev wp plugin install woocommerce --activate && ddev wp plugin list --status=active
376
+
377
+ # Export before destructive operation
378
+ ddev wp db export before-change.sql && ddev wp search-replace 'old.com' 'new.com'
379
+
380
+ # Create user and assign role
381
+ ddev wp user create testuser test@test.com --role=subscriber && ddev wp user add-role $(ddev wp user get testuser --field=ID) editor
382
+ ```
383
+
384
+ ### Debugging plugin conflicts
385
+
386
+ ```bash
387
+ # Run with all plugins disabled
388
+ ddev wp eval "echo home_url();" --skip-plugins
389
+
390
+ # Run with specific plugin disabled
391
+ ddev wp eval "echo home_url();" --skip-plugins=problematic-plugin
392
+
393
+ # Run with themes disabled
394
+ ddev wp eval "echo 'loaded';" --skip-themes
395
+ ```
396
+
397
+ ### Format reference
398
+
399
+ | Format | Use case |
400
+ |---|---|
401
+ | `table` | Human-readable terminal output (default) |
402
+ | `json` | Pipe to jq, programmatic processing |
403
+ | `csv` | Spreadsheet import, simple parsing |
404
+ | `yaml` | Config files, readable structured data |
405
+ | `ids` | Pipe to other commands (`xargs`) |
406
+ | `count` | Quick counts |