claude-plugin-wordpress-manager 2.6.0 → 2.9.1
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/CHANGELOG.md +61 -0
- package/agents/wp-monitoring-agent.md +44 -0
- package/agents/wp-site-manager.md +19 -0
- package/docs/GUIDE.md +145 -14
- package/docs/plans/2026-03-01-tier4-5-implementation.md +1783 -0
- package/docs/plans/2026-03-01-tier4-5-observability-automation-design.md +426 -0
- package/docs/plans/2026-03-01-wcop-reassessment-v2.6.0.md +403 -0
- package/hooks/hooks.json +9 -0
- package/package.json +10 -3
- package/servers/wp-rest-bridge/build/tools/cwv.d.ts +3 -0
- package/servers/wp-rest-bridge/build/tools/cwv.js +196 -0
- package/servers/wp-rest-bridge/build/tools/ga4.d.ts +3 -0
- package/servers/wp-rest-bridge/build/tools/ga4.js +323 -0
- package/servers/wp-rest-bridge/build/tools/index.js +15 -0
- package/servers/wp-rest-bridge/build/tools/plausible.d.ts +3 -0
- package/servers/wp-rest-bridge/build/tools/plausible.js +207 -0
- package/servers/wp-rest-bridge/build/tools/slack.d.ts +3 -0
- package/servers/wp-rest-bridge/build/tools/slack.js +129 -0
- package/servers/wp-rest-bridge/build/tools/wc-workflows.d.ts +3 -0
- package/servers/wp-rest-bridge/build/tools/wc-workflows.js +222 -0
- package/servers/wp-rest-bridge/build/wordpress.d.ts +18 -0
- package/servers/wp-rest-bridge/build/wordpress.js +139 -0
- package/skills/wordpress-router/SKILL.md +1 -1
- package/skills/wordpress-router/references/decision-tree.md +8 -2
- package/skills/wp-alerting/SKILL.md +142 -0
- package/skills/wp-alerting/references/alert-thresholds.md +79 -0
- package/skills/wp-alerting/references/escalation-paths.md +92 -0
- package/skills/wp-alerting/references/report-scheduling.md +142 -0
- package/skills/wp-alerting/references/slack-integration.md +109 -0
- package/skills/wp-alerting/scripts/alerting_inspect.mjs +150 -0
- package/skills/wp-analytics/SKILL.md +158 -0
- package/skills/wp-analytics/references/analytics-dashboards.md +83 -0
- package/skills/wp-analytics/references/cwv-monitoring.md +101 -0
- package/skills/wp-analytics/references/ga4-integration.md +76 -0
- package/skills/wp-analytics/references/plausible-setup.md +92 -0
- package/skills/wp-analytics/references/traffic-attribution.md +92 -0
- package/skills/wp-analytics/scripts/analytics_inspect.mjs +153 -0
- package/skills/wp-content-attribution/SKILL.md +1 -0
- package/skills/wp-content-optimization/SKILL.md +1 -0
- package/skills/wp-content-workflows/SKILL.md +142 -0
- package/skills/wp-content-workflows/references/content-lifecycle-hooks.md +131 -0
- package/skills/wp-content-workflows/references/multi-channel-actions.md +151 -0
- package/skills/wp-content-workflows/references/schedule-triggers.md +118 -0
- package/skills/wp-content-workflows/references/trigger-management.md +159 -0
- package/skills/wp-content-workflows/references/wp-action-hooks.md +114 -0
- package/skills/wp-content-workflows/scripts/workflow_inspect.mjs +202 -0
- package/skills/wp-monitoring/SKILL.md +2 -0
- package/skills/wp-search-console/SKILL.md +1 -0
- package/skills/wp-social-email/SKILL.md +1 -0
- package/skills/wp-webhooks/SKILL.md +1 -0
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
# Tier 4+5 WCOP — Observability Avanzata + Automation Avanzata
|
|
2
|
+
|
|
3
|
+
**Data:** 2026-03-01
|
|
4
|
+
**Stato:** Approvato
|
|
5
|
+
**Baseline:** v2.6.0 (36 skill, 12 agent, 111 MCP tools, 24 detection scripts, 178 reference files)
|
|
6
|
+
**Approccio:** A — Connector Grouping (analytics → alerting → workflows)
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Riepilogo Decisioni
|
|
11
|
+
|
|
12
|
+
| Decisione | Scelta |
|
|
13
|
+
|-----------|--------|
|
|
14
|
+
| Scope | Tier 4 (Observability) + Tier 5 (Automation) |
|
|
15
|
+
| Analytics | GA4 + Plausible (entrambi) |
|
|
16
|
+
| CWV | PageSpeed Insights API + CrUX API |
|
|
17
|
+
| Alerting | Slack + Email (riuso SendGrid esistente) |
|
|
18
|
+
| Workflows | Skill procedurale + MCP tool trigger (mu-plugin) |
|
|
19
|
+
| Versioning | 3 minor release (v2.7.0, v2.8.0, v2.9.0) |
|
|
20
|
+
| Raggruppamento | Connector Grouping (per tipo connettore/infrastruttura) |
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Release Plan
|
|
25
|
+
|
|
26
|
+
| Release | Feature | Nuovi MCP Tool | Nuove Skill | Agent Update |
|
|
27
|
+
|---------|---------|----------------|-------------|-------------|
|
|
28
|
+
| v2.7.0 | Analytics (GA4 + Plausible + CWV) | +14 (6 GA4 + 4 PL + 4 CWV) | +1 (wp-analytics) | wp-monitoring-agent |
|
|
29
|
+
| v2.8.0 | Smart Alerting (Slack + email pipeline) | +3 (Slack) | +1 (wp-alerting) | wp-monitoring-agent |
|
|
30
|
+
| v2.9.0 | Automated Workflows (templates + triggers) | +4 (wf_ triggers) | +1 (wp-content-workflows) | wp-site-manager |
|
|
31
|
+
|
|
32
|
+
### Conteggi a Fine Tier 4+5
|
|
33
|
+
|
|
34
|
+
| Metrica | v2.6.0 (oggi) | v2.9.0 (target) | Delta |
|
|
35
|
+
|---------|---------------|-----------------|-------|
|
|
36
|
+
| Skills | 36 | 39 | +3 |
|
|
37
|
+
| Agents | 12 | 12 | 0 (3 agent update) |
|
|
38
|
+
| MCP Tools | 111 | 132 | +21 |
|
|
39
|
+
| Detection scripts | 24 | 27 | +3 |
|
|
40
|
+
| Reference files | 178 | 192 | +14 |
|
|
41
|
+
| Safety hooks | 9 | 10 | +1 |
|
|
42
|
+
| Router | v13 | v16 | +3 |
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## v2.7.0 — Analytics (GA4 + Plausible + CWV)
|
|
47
|
+
|
|
48
|
+
### Componenti
|
|
49
|
+
|
|
50
|
+
| Tipo | Nome | Descrizione |
|
|
51
|
+
|------|------|-------------|
|
|
52
|
+
| Skill | `wp-analytics` | Unified analytics: GA4, Plausible, Core Web Vitals |
|
|
53
|
+
| Agent | — | Estensione di `wp-monitoring-agent` (Analytics Monitoring + CWV) |
|
|
54
|
+
| MCP Tools | 3 file TypeScript | 14 nuovi tool nel WP REST Bridge |
|
|
55
|
+
| Detection | `analytics_inspect.mjs` | Rileva GA4/Plausible config, analytics plugins, PageSpeed API key |
|
|
56
|
+
|
|
57
|
+
### MCP Tool — Google Analytics 4 (6 tool)
|
|
58
|
+
|
|
59
|
+
| Tool | Descrizione | API |
|
|
60
|
+
|------|-------------|-----|
|
|
61
|
+
| `ga4_run_report` | Report custom (dimensions, metrics, date range) | POST v1beta runReport |
|
|
62
|
+
| `ga4_get_realtime` | Utenti attivi in tempo reale | POST v1beta runRealtimeReport |
|
|
63
|
+
| `ga4_top_pages` | Top pagine per pageviews (shortcut pre-filtrato) | POST v1beta runReport |
|
|
64
|
+
| `ga4_traffic_sources` | Traffico per source/medium (shortcut pre-filtrato) | POST v1beta runReport |
|
|
65
|
+
| `ga4_user_demographics` | Breakdown paese, device, browser (shortcut) | POST v1beta runReport |
|
|
66
|
+
| `ga4_conversion_events` | Eventi di conversione e tassi (shortcut) | POST v1beta runReport |
|
|
67
|
+
|
|
68
|
+
**Auth**: Google Analytics Data API v1beta via Service Account (stessa libreria `googleapis` di GSC).
|
|
69
|
+
**SiteConfig**: `ga4_property_id` (es. `"properties/123456789"`), `ga4_service_account_key` (puo riutilizzare stessa key di GSC).
|
|
70
|
+
|
|
71
|
+
### MCP Tool — Plausible Analytics (4 tool)
|
|
72
|
+
|
|
73
|
+
| Tool | Descrizione | Endpoint |
|
|
74
|
+
|------|-------------|----------|
|
|
75
|
+
| `pl_get_stats` | Statistiche aggregate (visitors, pageviews, bounce_rate, visit_duration) | GET /api/v1/stats/aggregate |
|
|
76
|
+
| `pl_get_timeseries` | Stats nel tempo (daily/hourly) | GET /api/v1/stats/timeseries |
|
|
77
|
+
| `pl_get_breakdown` | Breakdown per proprieta (page, source, country, device) | GET /api/v1/stats/breakdown |
|
|
78
|
+
| `pl_get_realtime` | Visitatori correnti | GET /api/v1/stats/realtime/visitors |
|
|
79
|
+
|
|
80
|
+
**Auth**: API key semplice (header `Authorization: Bearer <key>`).
|
|
81
|
+
**Base URL**: `https://plausible.io` (default) o self-hosted.
|
|
82
|
+
**SiteConfig**: `plausible_api_key`, `plausible_base_url` (opzionale).
|
|
83
|
+
|
|
84
|
+
### MCP Tool — Core Web Vitals (4 tool)
|
|
85
|
+
|
|
86
|
+
| Tool | Descrizione | API |
|
|
87
|
+
|------|-------------|-----|
|
|
88
|
+
| `cwv_analyze_url` | Analisi PageSpeed per singolo URL (LCP, INP, CLS, FCP, TTFB) | PageSpeed Insights API v5 |
|
|
89
|
+
| `cwv_batch_analyze` | Analisi batch delle top N pagine (da GA4/GSC data) | Loop su PageSpeed Insights |
|
|
90
|
+
| `cwv_get_field_data` | Dati CrUX reali (28 giorni aggregati) per origine/URL | Chrome UX Report API |
|
|
91
|
+
| `cwv_compare_pages` | Confronta CWV tra pagine e ranking priorita ottimizzazione | Multi-query + ranking |
|
|
92
|
+
|
|
93
|
+
**Auth**: Google API key semplice (no OAuth).
|
|
94
|
+
**SiteConfig**: `google_api_key` (API key per servizi Google pubblici).
|
|
95
|
+
|
|
96
|
+
### SiteConfig Extension
|
|
97
|
+
|
|
98
|
+
```json
|
|
99
|
+
{
|
|
100
|
+
"id": "mysite",
|
|
101
|
+
"ga4_property_id": "properties/123456789",
|
|
102
|
+
"ga4_service_account_key": "/path/to/service-account.json",
|
|
103
|
+
"plausible_api_key": "plausible-api-key...",
|
|
104
|
+
"plausible_base_url": "https://plausible.io",
|
|
105
|
+
"google_api_key": "AIza..."
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Nota: `ga4_service_account_key` puo puntare allo stesso file di `gsc_service_account_key` se lo stesso Service Account ha accesso a GA4 e GSC.
|
|
110
|
+
|
|
111
|
+
### Skill Reference Files (5)
|
|
112
|
+
|
|
113
|
+
| File | Contenuto |
|
|
114
|
+
|------|-----------|
|
|
115
|
+
| `ga4-integration.md` | Setup GA4 Data API, Service Account condiviso con GSC, key metrics (sessions, users, conversions), custom report patterns |
|
|
116
|
+
| `plausible-setup.md` | Setup Plausible API, privacy benefits vs GA4, migrazione da GA4, self-hosted vs cloud |
|
|
117
|
+
| `cwv-monitoring.md` | Soglie CWV (Good: LCP<2.5s, INP<200ms, CLS<0.1), lab vs field data, PageSpeed vs CrUX |
|
|
118
|
+
| `analytics-dashboards.md` | Reporting cross-platform (GA4+Plausible+GSC), KPI unificati, template report |
|
|
119
|
+
| `traffic-attribution.md` | Source/medium analysis, correlazione GSC keyword → GA4 landing page, campaign UTM tracking |
|
|
120
|
+
|
|
121
|
+
### Agent Update: `wp-monitoring-agent`
|
|
122
|
+
|
|
123
|
+
Aggiunta sezione "Analytics Monitoring":
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
Procedura: Performance Dashboard
|
|
127
|
+
1. Fetch traffico GA4 (ga4_top_pages, ga4_traffic_sources) o Plausible (pl_get_stats, pl_get_breakdown)
|
|
128
|
+
2. Fetch CWV per top pages (cwv_batch_analyze)
|
|
129
|
+
3. Fetch keyword data GSC (gsc_top_queries)
|
|
130
|
+
4. Correla: pagine ad alto traffico con CWV Poor = priorita ottimizzazione
|
|
131
|
+
5. Genera Performance Dashboard Report
|
|
132
|
+
6. Se CWV Poor su pagine top → alert wp-performance-optimizer
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### Cross-references
|
|
136
|
+
|
|
137
|
+
- `wp-search-console` → "Per correlare keyword GSC con traffico GA4, vedi `wp-analytics`"
|
|
138
|
+
- `wp-content-attribution` → "Per correlazione contenuto→conversione completa, combina `wp-analytics` + `wp-content-attribution`"
|
|
139
|
+
- `wp-content-optimization` → "Per prioritizzare ottimizzazione con dati CWV, combina `wp-analytics` + `wp-content-optimization`"
|
|
140
|
+
|
|
141
|
+
### Router v14
|
|
142
|
+
|
|
143
|
+
Nuove keyword in Step 0 operations:
|
|
144
|
+
```
|
|
145
|
+
Google Analytics, GA4, traffic analytics, pageviews, sessions, user analytics,
|
|
146
|
+
Plausible, privacy analytics, Core Web Vitals, CWV, LCP, INP, CLS, PageSpeed,
|
|
147
|
+
page speed, site speed, performance score
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
Nuovo entry in Step 2b:
|
|
151
|
+
```
|
|
152
|
+
- **Google Analytics / GA4 / Plausible / traffic analytics / pageviews / sessions / user analytics / Core Web Vitals / CWV / PageSpeed / site speed**
|
|
153
|
+
→ `wp-analytics` skill + `wp-monitoring-agent` agent
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## v2.8.0 — Smart Alerting (Slack + Email + Monitoring Upgrade)
|
|
159
|
+
|
|
160
|
+
### Componenti
|
|
161
|
+
|
|
162
|
+
| Tipo | Nome | Descrizione |
|
|
163
|
+
|------|------|-------------|
|
|
164
|
+
| Skill | `wp-alerting` | Cross-cutting alerting: thresholds, escalation, reporting |
|
|
165
|
+
| Agent | — | Estensione di `wp-monitoring-agent` (Alert Dispatch) |
|
|
166
|
+
| MCP Tools | 1 file TypeScript | 3 nuovi tool nel WP REST Bridge |
|
|
167
|
+
| Detection | `alerting_inspect.mjs` | Rileva Slack config, SendGrid config, monitoring setup, wp-cron |
|
|
168
|
+
|
|
169
|
+
### MCP Tool — Slack (3 tool)
|
|
170
|
+
|
|
171
|
+
| Tool | Descrizione | Metodo |
|
|
172
|
+
|------|-------------|--------|
|
|
173
|
+
| `slack_send_alert` | Invia alert via incoming webhook (zero-config, solo URL) | POST incoming webhook |
|
|
174
|
+
| `slack_send_message` | Invia messaggio a canale specifico (formattato Block Kit) | Web API chat.postMessage |
|
|
175
|
+
| `slack_list_channels` | Lista canali disponibili nel workspace | Web API conversations.list |
|
|
176
|
+
|
|
177
|
+
**Auth dual-mode**:
|
|
178
|
+
- `slack_send_alert`: Incoming Webhook URL (basta generarlo da Slack, no OAuth)
|
|
179
|
+
- `slack_send_message` / `slack_list_channels`: Bot Token (`xoxb-...`)
|
|
180
|
+
|
|
181
|
+
**SiteConfig**: `slack_webhook_url` (per alerting base), `slack_bot_token` (opzionale, per messaggi avanzati).
|
|
182
|
+
|
|
183
|
+
### Alerting Pipeline (Procedure-Based)
|
|
184
|
+
|
|
185
|
+
L'alerting non usa "alert rules" come MCP tool (over-engineering). E una **procedura agent-driven**:
|
|
186
|
+
|
|
187
|
+
```
|
|
188
|
+
wp-monitoring-agent esegue check periodico
|
|
189
|
+
→ confronta con soglie (da reference files)
|
|
190
|
+
→ se soglia superata:
|
|
191
|
+
→ classifica severita (info/warning/critical/emergency)
|
|
192
|
+
→ route: Slack (slack_send_alert) + Email (sg_send_email)
|
|
193
|
+
→ log alert per reporting
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
Le soglie sono configurabili nei reference files e personalizzabili per sito.
|
|
197
|
+
|
|
198
|
+
### SiteConfig Extension
|
|
199
|
+
|
|
200
|
+
```json
|
|
201
|
+
{
|
|
202
|
+
"id": "mysite",
|
|
203
|
+
"slack_webhook_url": "https://hooks.slack.com/services/T.../B.../xxx",
|
|
204
|
+
"slack_bot_token": "xoxb-..."
|
|
205
|
+
}
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### Skill Reference Files (4)
|
|
209
|
+
|
|
210
|
+
| File | Contenuto |
|
|
211
|
+
|------|-----------|
|
|
212
|
+
| `slack-integration.md` | Setup webhook Slack, Bot Token, message formatting (Block Kit), canali consigliati (#alerts, #reports) |
|
|
213
|
+
| `alert-thresholds.md` | Soglie default: uptime (<99.5%), TTFB (>800ms), CWV (LCP>4s=critical), security (critical vuln=emergency), SEO (keyword drop >20%=warning) |
|
|
214
|
+
| `escalation-paths.md` | Livelli: info→Slack only, warning→Slack+email, critical→Slack+email+repeat, emergency→all channels immediate |
|
|
215
|
+
| `report-scheduling.md` | Template report settimanale (traffic + CWV + SEO + security), mensile (ROI + trends), delivery Slack+email |
|
|
216
|
+
|
|
217
|
+
### Agent Update: `wp-monitoring-agent`
|
|
218
|
+
|
|
219
|
+
Aggiunta sezione "Alert Dispatch":
|
|
220
|
+
|
|
221
|
+
```
|
|
222
|
+
Procedura: Alert Dispatch
|
|
223
|
+
1. Detect anomalia (da qualsiasi check: uptime, performance, security, SEO, content)
|
|
224
|
+
2. Classifica severita:
|
|
225
|
+
- info: sotto soglia ma trend negativo
|
|
226
|
+
- warning: soglia superata, non critico
|
|
227
|
+
- critical: impatto utente immediato
|
|
228
|
+
- emergency: sito down, security breach, data loss
|
|
229
|
+
3. Route:
|
|
230
|
+
- info → log only (report settimanale)
|
|
231
|
+
- warning → slack_send_alert
|
|
232
|
+
- critical → slack_send_alert + sg_send_email
|
|
233
|
+
- emergency → slack_send_alert + sg_send_email + repeat ogni 15min
|
|
234
|
+
4. Log alert per dashboard reporting
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
### Cross-references
|
|
238
|
+
|
|
239
|
+
- `wp-monitoring` → "Per configurare alert automatici, vedi `wp-alerting`"
|
|
240
|
+
- `wp-analytics` → "Per alert su drop traffico, combina `wp-analytics` + `wp-alerting`"
|
|
241
|
+
- `wp-search-console` → "Per alert su drop keyword, combina `wp-search-console` + `wp-alerting`"
|
|
242
|
+
|
|
243
|
+
### Router v15
|
|
244
|
+
|
|
245
|
+
Nuove keyword in Step 0 operations:
|
|
246
|
+
```
|
|
247
|
+
Slack alert, notification, alert threshold, escalation, monitoring alert,
|
|
248
|
+
email alert, report scheduling, weekly report, proactive monitoring
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
Nuovo entry in Step 2b:
|
|
252
|
+
```
|
|
253
|
+
- **Alert / notification / Slack / escalation / threshold / proactive monitoring / report scheduling**
|
|
254
|
+
→ `wp-alerting` skill + `wp-monitoring-agent` agent
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
259
|
+
## v2.9.0 — Automated Workflows (Templates + Event Triggers)
|
|
260
|
+
|
|
261
|
+
### Componenti
|
|
262
|
+
|
|
263
|
+
| Tipo | Nome | Descrizione |
|
|
264
|
+
|------|------|-------------|
|
|
265
|
+
| Skill | `wp-content-workflows` | Workflow templates + event-driven automation |
|
|
266
|
+
| Agent | — | Estensione di `wp-site-manager` (Workflow Automation) |
|
|
267
|
+
| MCP Tools | 1 file TypeScript | 4 nuovi tool nel WP REST Bridge |
|
|
268
|
+
| Detection | `workflow_inspect.mjs` | Rileva mu-plugin triggers, configured triggers, wp-cron |
|
|
269
|
+
|
|
270
|
+
### Workflow Templates (4)
|
|
271
|
+
|
|
272
|
+
| Template | Trigger | Procedura |
|
|
273
|
+
|----------|---------|-----------|
|
|
274
|
+
| **Launch Sequence** | Nuovo contenuto pronto | 1. Optimize (headline+meta via wp-content-optimization) → 2. Publish (update_content status=publish) → 3. Distribute (Buffer schedule + Mailchimp campaign) → 4. Monitor (24h: GSC indexing + GA4 traffic) |
|
|
275
|
+
| **Refresh Cycle** | Contenuto stale (>6 mesi) | 1. Triage (bulk triage → quick wins) → 2. Update (riscrittura/ottimizzazione) → 3. Re-distribute (social re-share + email highlight) → 4. Measure (GSC CTR dopo 2-4 settimane) |
|
|
276
|
+
| **Seasonal Campaign** | Calendario (evento, festivita) | 1. Plan (calendario + brief) → 2. Create (contenuti per canale) → 3. Schedule (Buffer + Mailchimp scheduling) → 4. Execute (publish dates) → 5. Report (analytics cross-channel) |
|
|
277
|
+
| **SEO Sprint** | Gap keyword rilevato | 1. Audit (GSC data → gap analysis) → 2. Prioritize (quick wins first) → 3. Optimize (batch headline+meta+content) → 4. Submit (gsc_submit_sitemap) → 5. Track (GSC CTR 4 settimane) |
|
|
278
|
+
|
|
279
|
+
Ogni template referenzia le skill e i tool esatti da usare in ogni step, creando un flusso end-to-end che attraversa l'intero stack WCOP.
|
|
280
|
+
|
|
281
|
+
### MCP Tool — Event Triggers (4 tool)
|
|
282
|
+
|
|
283
|
+
Meccanismo: **mu-plugin WordPress** (`wcop-event-triggers.php`) che legge una configurazione JSON e registra action hook → webhook outbound.
|
|
284
|
+
|
|
285
|
+
| Tool | Descrizione | Azione |
|
|
286
|
+
|------|-------------|--------|
|
|
287
|
+
| `wf_list_triggers` | Lista trigger event configurati | Legge config mu-plugin via REST API |
|
|
288
|
+
| `wf_create_trigger` | Registra nuovo trigger (hook → webhook URL + payload) | Scrive config mu-plugin |
|
|
289
|
+
| `wf_update_trigger` | Aggiorna configurazione trigger esistente | Modifica config mu-plugin |
|
|
290
|
+
| `wf_delete_trigger` | Rimuovi trigger (safety gate) | Rimuove da config mu-plugin |
|
|
291
|
+
|
|
292
|
+
**WordPress Hooks supportati** (documentati in reference file):
|
|
293
|
+
- `wp_publish_post` — contenuto pubblicato
|
|
294
|
+
- `woocommerce_order_status_completed` — ordine completato
|
|
295
|
+
- `wp_update_post` — contenuto aggiornato
|
|
296
|
+
- `delete_post` — contenuto eliminato
|
|
297
|
+
- Custom hooks tramite `do_action()`
|
|
298
|
+
|
|
299
|
+
**Configurazione trigger (JSON):**
|
|
300
|
+
```json
|
|
301
|
+
{
|
|
302
|
+
"triggers": [
|
|
303
|
+
{
|
|
304
|
+
"id": "auto-distribute-new-post",
|
|
305
|
+
"hook": "wp_publish_post",
|
|
306
|
+
"webhook_url": "https://hooks.slack.com/...",
|
|
307
|
+
"payload_template": "new_post",
|
|
308
|
+
"active": true
|
|
309
|
+
}
|
|
310
|
+
]
|
|
311
|
+
}
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
**Safety hook:** `wf_delete_trigger` → PreToolUse prompt confirmation.
|
|
315
|
+
|
|
316
|
+
### SiteConfig
|
|
317
|
+
|
|
318
|
+
Nessuna estensione SiteConfig necessaria — la configurazione trigger vive nel mu-plugin WordPress (gestita via MCP tool).
|
|
319
|
+
|
|
320
|
+
### Skill Reference Files (5)
|
|
321
|
+
|
|
322
|
+
| File | Contenuto |
|
|
323
|
+
|------|-----------|
|
|
324
|
+
| `launch-sequence.md` | Procedura completa: pre-publish checks, publish, distribute, 24h monitor. Checklist per ogni step con tool esatti |
|
|
325
|
+
| `refresh-cycle.md` | Triage decision tree (freshness score), update strategies, re-distribution timing |
|
|
326
|
+
| `seasonal-campaign.md` | Timeline campagna (8-4-2-1 settimane prima), asset creation, scheduling cross-channel, reporting KPI |
|
|
327
|
+
| `seo-sprint.md` | Sprint 2 settimane: audit day 1-2, optimize day 3-8, submit day 9, track day 10-14. Metriche success |
|
|
328
|
+
| `mu-plugin-triggers.md` | Architettura mu-plugin `wcop-event-triggers.php`, installazione, hook registry, payload templates, troubleshooting |
|
|
329
|
+
|
|
330
|
+
### Agent Update: `wp-site-manager`
|
|
331
|
+
|
|
332
|
+
Aggiunta sezione "Workflow Automation":
|
|
333
|
+
|
|
334
|
+
```
|
|
335
|
+
Procedura: Workflow Orchestration
|
|
336
|
+
1. Identifica workflow appropriato (launch/refresh/seasonal/seo-sprint)
|
|
337
|
+
2. Verifica prerequisiti (servizi configurati, contenuto pronto)
|
|
338
|
+
3. Esegui step sequenziali delegando ad agent specializzati:
|
|
339
|
+
- Optimize → wp-content-strategist (wp-content-optimization)
|
|
340
|
+
- Distribute → wp-distribution-manager (wp-social-email)
|
|
341
|
+
- Monitor → wp-monitoring-agent (wp-analytics, wp-search-console)
|
|
342
|
+
- Alert → wp-monitoring-agent (wp-alerting)
|
|
343
|
+
4. Report finale con metriche per step
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
### Cross-references
|
|
347
|
+
|
|
348
|
+
- `wp-content` → "Per automatizzare il ciclo di vita contenuto, vedi `wp-content-workflows`"
|
|
349
|
+
- `wp-social-email` → "Per distribuzione automatica post-publish, vedi `wp-content-workflows` (Launch Sequence)"
|
|
350
|
+
- `wp-webhooks` → "Per event triggers WordPress avanzati, vedi `wp-content-workflows` (mu-plugin triggers)"
|
|
351
|
+
- `wp-content-optimization` → "Per ottimizzazione pre-publish automatica, vedi `wp-content-workflows` (Launch Sequence step 1)"
|
|
352
|
+
|
|
353
|
+
### Router v16
|
|
354
|
+
|
|
355
|
+
Nuove keyword in Step 0 operations:
|
|
356
|
+
```
|
|
357
|
+
workflow, launch sequence, content refresh, seasonal campaign, SEO sprint,
|
|
358
|
+
automate content, event trigger, auto-publish, auto-distribute, content pipeline,
|
|
359
|
+
mu-plugin trigger, automated workflow
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
Nuovo entry in Step 2b:
|
|
363
|
+
```
|
|
364
|
+
- **Workflow / launch sequence / content refresh / seasonal campaign / SEO sprint / automate content / event trigger / content pipeline**
|
|
365
|
+
→ `wp-content-workflows` skill + `wp-site-manager` agent
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
---
|
|
369
|
+
|
|
370
|
+
## WCOP Score Proiezione
|
|
371
|
+
|
|
372
|
+
| Layer | v2.6.0 | v2.9.0 (target) | Miglioramento |
|
|
373
|
+
|-------|--------|-----------------|---------------|
|
|
374
|
+
| 1 — Content Factory | 9/10 | 9/10 | Invariato |
|
|
375
|
+
| 2 — Quality Assurance | 9/10 | 9/10 | Invariato |
|
|
376
|
+
| 3 — Distribution | 8/10 | 8/10 | Invariato (Tier 6) |
|
|
377
|
+
| 4 — Observability | 7/10 | **9/10** | +GA4+Plausible+CWV+Slack alerting |
|
|
378
|
+
| 5 — Automation | 7/10 | **9/10** | +Workflow templates+event triggers |
|
|
379
|
+
| **Totale** | **8/10** | **8.8/10** | +0.8 |
|
|
380
|
+
|
|
381
|
+
---
|
|
382
|
+
|
|
383
|
+
## Ordine di Implementazione
|
|
384
|
+
|
|
385
|
+
```
|
|
386
|
+
v2.7.0 — Analytics (GA4 + Plausible + CWV)
|
|
387
|
+
1. Estensione types.ts (GA4Config, PlausibleConfig, CWVConfig)
|
|
388
|
+
2. Estensione SiteConfig in wordpress.ts
|
|
389
|
+
3. File tool ga4.ts (6 tool, googleapis)
|
|
390
|
+
4. File tool plausible.ts (4 tool, axios)
|
|
391
|
+
5. File tool cwv.ts (4 tool, axios per PageSpeed + googleapis per CrUX)
|
|
392
|
+
6. Register tools in index.ts e build
|
|
393
|
+
7. Detection script analytics_inspect.mjs
|
|
394
|
+
8. Skill wp-analytics (SKILL.md + 5 reference files)
|
|
395
|
+
9. Agent update wp-monitoring-agent (Analytics Monitoring + CWV)
|
|
396
|
+
10. Router v14 + cross-references
|
|
397
|
+
11. Version bump + CHANGELOG
|
|
398
|
+
12. Build, commit, publish npm + GitHub release
|
|
399
|
+
|
|
400
|
+
v2.8.0 — Smart Alerting (Slack + Email)
|
|
401
|
+
1. Estensione types.ts (SlackConfig)
|
|
402
|
+
2. Estensione SiteConfig in wordpress.ts
|
|
403
|
+
3. File tool slack.ts (3 tool)
|
|
404
|
+
4. Register tools in index.ts e build
|
|
405
|
+
5. Detection script alerting_inspect.mjs
|
|
406
|
+
6. Skill wp-alerting (SKILL.md + 4 reference files)
|
|
407
|
+
7. Agent update wp-monitoring-agent (Alert Dispatch)
|
|
408
|
+
8. Router v15 + cross-references
|
|
409
|
+
9. Version bump + CHANGELOG
|
|
410
|
+
10. Build, commit, publish npm + GitHub release
|
|
411
|
+
|
|
412
|
+
v2.9.0 — Automated Workflows (Templates + Event Triggers)
|
|
413
|
+
1. File tool workflows.ts (4 tool wf_*)
|
|
414
|
+
2. Register tools in index.ts e build
|
|
415
|
+
3. Safety hook per wf_delete_trigger
|
|
416
|
+
4. Detection script workflow_inspect.mjs
|
|
417
|
+
5. Skill wp-content-workflows (SKILL.md + 5 reference files)
|
|
418
|
+
6. Agent update wp-site-manager (Workflow Automation)
|
|
419
|
+
7. Router v16 + cross-references
|
|
420
|
+
8. Version bump + CHANGELOG + GUIDE.md update
|
|
421
|
+
9. Build, commit, publish npm + GitHub release
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
---
|
|
425
|
+
|
|
426
|
+
*Design Tier 4+5 WCOP v1.0 — wordpress-manager v2.6.0 → v2.9.0 — 2026-03-01*
|