claude-plugin-wordpress-manager 1.7.1 → 1.7.2
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/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +5 -0
- package/docs/GUIDE.md +306 -33
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wordpress-manager",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
4
4
|
"description": "Unified WordPress management plugin for Claude Code. Orchestrates Hostinger MCP (infrastructure), WP REST API bridge (content), and WordPress.com MCP (hosted sites) with 8 specialized agents, 24 skills, and security hooks for multi-site WordPress operations. Includes local dev environment support for WordPress Studio, LocalWP, and wp-env. Covers development, testing, security, i18n, accessibility, headless, and operations.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "vinmor",
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to the WordPress Manager plugin for Claude Code.
|
|
4
4
|
|
|
5
|
+
## [1.7.2] - 2026-02-28
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
- GUIDE.md aggiornata per v1.7.1: 8 agent, 24 skill, 12 scenari d'uso, router v4, 5 skill estese, cross-ref bidirezionali, 10 nuovi termini glossario (+273 righe)
|
|
9
|
+
|
|
5
10
|
## [1.7.1] - 2026-02-28
|
|
6
11
|
|
|
7
12
|
### Changed
|
package/docs/GUIDE.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# WordPress Manager - Guida Completa per Utenti e Amministratori
|
|
2
2
|
|
|
3
|
-
**Versione:** 1.
|
|
4
|
-
**Ultimo aggiornamento:** 2026-02-
|
|
3
|
+
**Versione:** 1.7.1
|
|
4
|
+
**Ultimo aggiornamento:** 2026-02-28
|
|
5
5
|
**Repository:** https://github.com/morrealev/wordpress-manager
|
|
6
6
|
|
|
7
7
|
---
|
|
@@ -48,6 +48,11 @@ WordPress Manager e un plugin per **Claude Code** (la CLI ufficiale di Anthropic
|
|
|
48
48
|
- **Analizzare codice**: static analysis con PHPStan, profiling con WP-CLI
|
|
49
49
|
- **Testare in sandbox**: WordPress Playground per ambienti disposable
|
|
50
50
|
- **Progettare UI WordPress**: componenti WPDS, design token, pattern
|
|
51
|
+
- **Testare progetti**: Playwright E2E, Jest unit, PHPUnit integration, CI/CD
|
|
52
|
+
- **Hardening sicurezza**: filesystem, HTTP headers, autenticazione, incident response
|
|
53
|
+
- **Audit accessibilita**: WCAG 2.2 AA, axe-core, pa11y, Lighthouse
|
|
54
|
+
- **Internazionalizzare**: PHP/JS gettext, .pot/.po/.mo workflow, RTL, WPML/Polylang
|
|
55
|
+
- **Architetture headless**: REST vs WPGraphQL, JWT auth, CORS, Next.js/Nuxt/Astro
|
|
51
56
|
|
|
52
57
|
### Requisiti
|
|
53
58
|
|
|
@@ -84,28 +89,33 @@ WordPress Manager e un plugin per **Claude Code** (la CLI ufficiale di Anthropic
|
|
|
84
89
|
### Componenti del Plugin
|
|
85
90
|
|
|
86
91
|
```
|
|
87
|
-
wordpress-manager/ # v1.
|
|
92
|
+
wordpress-manager/ # v1.7.1
|
|
88
93
|
+-- .claude-plugin/plugin.json # Manifest
|
|
89
94
|
+-- .mcp.json # Server MCP bundled
|
|
90
95
|
+-- LICENSE # MIT + GPL-2.0-or-later
|
|
91
96
|
+-- CHANGELOG.md # Cronologia versioni
|
|
92
|
-
+-- agents/ #
|
|
97
|
+
+-- agents/ # 8 agenti specializzati
|
|
93
98
|
| +-- wp-site-manager.md # Orchestratore centrale
|
|
94
99
|
| +-- wp-deployment-engineer.md # Specialista deploy
|
|
95
100
|
| +-- wp-content-strategist.md # Contenuti e SEO
|
|
96
|
-
| +-- wp-security-auditor.md # Audit sicurezza
|
|
101
|
+
| +-- wp-security-auditor.md # Audit sicurezza (read-only)
|
|
102
|
+
| +-- wp-security-hardener.md # Hardening e incident response
|
|
97
103
|
| +-- wp-performance-optimizer.md # Performance e CWV
|
|
104
|
+
| +-- wp-test-engineer.md # Testing (E2E, unit, integration)
|
|
105
|
+
| +-- wp-accessibility-auditor.md # WCAG 2.2 AA audit (read-only)
|
|
98
106
|
+-- commands/ # 5 slash commands
|
|
99
107
|
| +-- wp-status.md / wp-deploy.md / wp-audit.md / wp-backup.md / wp-setup.md
|
|
100
|
-
+-- skills/ #
|
|
108
|
+
+-- skills/ # 24 skill totali
|
|
101
109
|
| +-- [OPERATIVE - 5 skill]
|
|
102
110
|
| +-- wp-deploy/ # Procedure deploy
|
|
103
111
|
| +-- wp-audit/ # Checklist audit
|
|
104
112
|
| +-- wp-content/ # Template contenuti
|
|
105
113
|
| +-- wp-migrate/ # Procedure migrazione
|
|
106
114
|
| +-- wp-backup/ # Strategie backup
|
|
115
|
+
| +-- [AMBIENTE LOCALE - 1 skill]
|
|
116
|
+
| +-- wp-local-env/ # Studio/LocalWP/wp-env
|
|
107
117
|
| +-- [SVILUPPO - 13 skill da WordPress/agent-skills]
|
|
108
|
-
| +-- wordpress-router/ # Router unificato (dev + ops)
|
|
118
|
+
| +-- wordpress-router/ # Router unificato v4 (dev + local + ops)
|
|
109
119
|
| +-- wp-project-triage/ # Auto-detect tipo progetto
|
|
110
120
|
| +-- wp-block-development/ # Blocchi Gutenberg
|
|
111
121
|
| +-- wp-block-themes/ # Temi a blocchi
|
|
@@ -118,6 +128,12 @@ wordpress-manager/ # v1.4.0
|
|
|
118
128
|
| +-- wp-performance/ # Profiling backend
|
|
119
129
|
| +-- wp-playground/ # Sandbox disposable
|
|
120
130
|
| +-- wpds/ # WordPress Design System
|
|
131
|
+
| +-- [SVILUPPO ESTESO - 5 skill]
|
|
132
|
+
| +-- wp-e2e-testing/ # Testing strategy e framework
|
|
133
|
+
| +-- wp-security/ # Security hardening e incident response
|
|
134
|
+
| +-- wp-i18n/ # Internazionalizzazione
|
|
135
|
+
| +-- wp-accessibility/ # WCAG 2.2 accessibilita
|
|
136
|
+
| +-- wp-headless/ # Architettura headless/decoupled
|
|
121
137
|
+-- hooks/ # 6 hook di sicurezza
|
|
122
138
|
| +-- hooks.json # 4 prompt + 2 command
|
|
123
139
|
| +-- scripts/ # Script per hook command-type
|
|
@@ -292,6 +308,11 @@ WordPress Manager comprende richieste in linguaggio naturale. Ecco come formular
|
|
|
292
308
|
| Migrare un sito | "Migra il sito su Hostinger" / "Trasferisci il sito" |
|
|
293
309
|
| Aggiungere un nuovo sito | "Configura un nuovo sito WordPress" |
|
|
294
310
|
| Cambiare sito attivo | "Passa al sito bioinagro" / "Switch a opencactus" |
|
|
311
|
+
| Eseguire test | "Esegui i test" / "Lancia Playwright" / "Testa il plugin" |
|
|
312
|
+
| Hardening sicurezza | "Metti in sicurezza il sito" / "Hardening" |
|
|
313
|
+
| Audit accessibilita | "Controlla l'accessibilita" / "WCAG audit" |
|
|
314
|
+
| Internazionalizzare | "Internazionalizza il plugin" / "Traduci il tema" |
|
|
315
|
+
| Setup headless | "WordPress headless con Next.js" / "Configura WPGraphQL" |
|
|
295
316
|
|
|
296
317
|
---
|
|
297
318
|
|
|
@@ -455,6 +476,8 @@ I comandi slash sono scorciatoie dirette per operazioni specifiche. Si invocano
|
|
|
455
476
|
|
|
456
477
|
Gli agenti sono "personalita" specializzate di Claude che vengono attivate automaticamente in base al contesto della conversazione. Non devi invocarli manualmente - Claude sceglie l'agente giusto per il compito.
|
|
457
478
|
|
|
479
|
+
Il plugin include **8 agenti** organizzati per area di competenza. Alcuni agenti lavorano in coppia (audit → fix).
|
|
480
|
+
|
|
458
481
|
### wp-site-manager (Orchestratore)
|
|
459
482
|
|
|
460
483
|
| Proprieta | Valore |
|
|
@@ -484,13 +507,18 @@ Gli agenti sono "personalita" specializzate di Claude che vengono attivate autom
|
|
|
484
507
|
**Workflow di deploy**:
|
|
485
508
|
1. Pre-flight: verifica file, syntax check PHP, scan credenziali
|
|
486
509
|
2. Backup: assicura rollback path
|
|
487
|
-
3. Deploy: Hostinger MCP o
|
|
488
|
-
4. Post-deploy: verifica,
|
|
510
|
+
3. Deploy: Hostinger MCP, SSH, o export da ambiente locale
|
|
511
|
+
4. Post-deploy: verifica con WP REST Bridge (list_plugins, list_content), report
|
|
489
512
|
|
|
490
|
-
**
|
|
513
|
+
**4 metodi supportati**:
|
|
491
514
|
- **Hostinger MCP**: `hosting_deployWordpressPlugin`, `hosting_deployWordpressTheme`
|
|
492
515
|
- **SSH/SCP**: Upload e estrazione via comandi SSH
|
|
493
516
|
- **Full import**: `hosting_importWordpressWebsite` per migrazioni complete
|
|
517
|
+
- **Da ambiente locale**: Export da WordPress Studio, LocalWP o wp-env, poi deploy (vedi skill `wp-local-env`)
|
|
518
|
+
|
|
519
|
+
**Verifica post-deploy**: Usa i tool WP REST Bridge (`list_plugins`, `activate_plugin`, `list_content`) per verificare che il deploy sia andato a buon fine.
|
|
520
|
+
|
|
521
|
+
**Skill correlata**: `wp-deploy`, `wp-local-env`
|
|
494
522
|
|
|
495
523
|
---
|
|
496
524
|
|
|
@@ -499,7 +527,7 @@ Gli agenti sono "personalita" specializzate di Claude che vengono attivate autom
|
|
|
499
527
|
| Proprieta | Valore |
|
|
500
528
|
|-----------|--------|
|
|
501
529
|
| Colore | Magenta |
|
|
502
|
-
| Ruolo | Creazione contenuti, SEO, gestione editoriale |
|
|
530
|
+
| Ruolo | Creazione contenuti, SEO, gestione editoriale, contenuti multilingue |
|
|
503
531
|
| Attivazione | Creazione post, ottimizzazione SEO, gestione tassonomie |
|
|
504
532
|
|
|
505
533
|
**Ciclo di vita contenuti**:
|
|
@@ -514,17 +542,23 @@ IDEAZIONE -> BOZZA -> REVISIONE -> OTTIMIZZAZIONE -> PUBBLICAZIONE -> MONITORAGG
|
|
|
514
542
|
- Dati strutturati (Article, Product, FAQ)
|
|
515
543
|
- Analisi keyword density
|
|
516
544
|
|
|
545
|
+
**Contenuti multilingue**: Per contenuto tradotto o multilingue, si coordina con la skill `wp-i18n`. Per temi/plugin che generano contenuto traducibile, usa correttamente text domain e funzioni `__()`, `_e()`, `esc_html__()`.
|
|
546
|
+
|
|
517
547
|
**6 template disponibili**: Blog standard, Listicle, How-To Guide, Landing Page, About Page, Product Page
|
|
518
548
|
|
|
549
|
+
**Skill correlata**: `wp-content`, `wp-i18n`
|
|
550
|
+
|
|
519
551
|
---
|
|
520
552
|
|
|
521
|
-
### wp-security-auditor (Sicurezza)
|
|
553
|
+
### wp-security-auditor (Sicurezza — Audit)
|
|
522
554
|
|
|
523
555
|
| Proprieta | Valore |
|
|
524
556
|
|-----------|--------|
|
|
525
557
|
| Colore | Red |
|
|
526
|
-
| Ruolo | Audit sicurezza
|
|
527
|
-
| Attivazione | "Controlla la sicurezza", "audit sicurezza", "
|
|
558
|
+
| Ruolo | Audit sicurezza (read-only, non modifica nulla) |
|
|
559
|
+
| Attivazione | "Controlla la sicurezza", "audit sicurezza", "scansiona vulnerabilita" |
|
|
560
|
+
|
|
561
|
+
**Pre-scan rapido**: Esegue `security_inspect.mjs` per una panoramica veloce (wp-config constants, permessi file, .htaccess, plugin di sicurezza).
|
|
528
562
|
|
|
529
563
|
**5 fasi di audit**:
|
|
530
564
|
|
|
@@ -543,6 +577,39 @@ IDEAZIONE -> BOZZA -> REVISIONE -> OTTIMIZZAZIONE -> PUBBLICAZIONE -> MONITORAGG
|
|
|
543
577
|
- **LOW**: Miglioramenti raccomandati
|
|
544
578
|
- **INFO**: Best practice e suggerimenti
|
|
545
579
|
|
|
580
|
+
**Handoff a remediation**: Questo agent fa solo audit. Per **implementare le correzioni**, delegare al `wp-security-hardener` agent. Per procedure di hardening dettagliate, consultare la skill `wp-security`.
|
|
581
|
+
|
|
582
|
+
**Skill correlata**: `wp-audit`, `wp-security`
|
|
583
|
+
|
|
584
|
+
---
|
|
585
|
+
|
|
586
|
+
### wp-security-hardener (Sicurezza — Hardening)
|
|
587
|
+
|
|
588
|
+
| Proprieta | Valore |
|
|
589
|
+
|-----------|--------|
|
|
590
|
+
| Colore | Red |
|
|
591
|
+
| Ruolo | Hardening sicurezza e incident response (implementa le correzioni) |
|
|
592
|
+
| Attivazione | "Metti in sicurezza il sito", "hardening", "incidente sicurezza", "sito compromesso" |
|
|
593
|
+
|
|
594
|
+
Complementa `wp-security-auditor`: l'auditor **trova** i problemi, l'hardener **li risolve**.
|
|
595
|
+
|
|
596
|
+
**6 aree di intervento**:
|
|
597
|
+
|
|
598
|
+
| Area | Azioni |
|
|
599
|
+
|------|--------|
|
|
600
|
+
| Filesystem Hardening | Permessi file, disabilita editor PHP, protegge wp-config.php |
|
|
601
|
+
| HTTP Security Headers | CSP, X-Frame-Options, HSTS, X-Content-Type-Options via .htaccess |
|
|
602
|
+
| Authentication Hardening | Limita tentativi login, disabilita XML-RPC, forza password forti |
|
|
603
|
+
| REST API Restriction | Disabilita REST per utenti non autenticati, namespace filtering |
|
|
604
|
+
| User Management | Rimozione utenti inattivi, downgrade ruoli eccessivi |
|
|
605
|
+
| Incident Response | 5 fasi: contenimento → investigazione → remediation → recovery → post-incident |
|
|
606
|
+
|
|
607
|
+
**Protocollo di handoff**: Riceve i findings dal `wp-security-auditor` e produce un report di remediation con ogni azione documentata.
|
|
608
|
+
|
|
609
|
+
**Regole di sicurezza**: SEMPRE backup prima di modifiche. Conferma ogni modifica con l'utente. Non tocca plugin attivi senza permesso. Documenta ogni cambiamento.
|
|
610
|
+
|
|
611
|
+
**Skill correlata**: `wp-security`
|
|
612
|
+
|
|
546
613
|
---
|
|
547
614
|
|
|
548
615
|
### wp-performance-optimizer (Performance)
|
|
@@ -561,12 +628,94 @@ IDEAZIONE -> BOZZA -> REVISIONE -> OTTIMIZZAZIONE -> PUBBLICAZIONE -> MONITORAGG
|
|
|
561
628
|
| INP (Interaction to Next Paint) | < 200ms | Reattivita alle interazioni utente |
|
|
562
629
|
| CLS (Cumulative Layout Shift) | < 0.1 | Stabilita visiva durante caricamento |
|
|
563
630
|
|
|
631
|
+
**Separazione MCP tool**: L'agent usa **WP REST Bridge** per dati a livello WordPress (plugin, contenuti, impostazioni) e **Hostinger MCP** per metriche a livello infrastruttura (risorse server, PHP memory, caching server-side).
|
|
632
|
+
|
|
564
633
|
**Plugin pesanti noti** (dall'audit):
|
|
565
634
|
- Elementor Pro, WPBakery, Divi (page builder)
|
|
566
635
|
- Wordfence, Sucuri (security con scanning pesante)
|
|
567
636
|
- WooCommerce (con molte estensioni)
|
|
568
637
|
- Jetpack (quando attivato completamente)
|
|
569
638
|
|
|
639
|
+
**Skill correlata**: `wp-performance` (profiling backend con WP-CLI doctor/profile), `wp-audit`
|
|
640
|
+
|
|
641
|
+
---
|
|
642
|
+
|
|
643
|
+
### wp-test-engineer (Testing)
|
|
644
|
+
|
|
645
|
+
| Proprieta | Valore |
|
|
646
|
+
|-----------|--------|
|
|
647
|
+
| Colore | Blue |
|
|
648
|
+
| Ruolo | Esecuzione test, setup infrastruttura test, debug failure |
|
|
649
|
+
| Attivazione | "Esegui i test", "Playwright", "Jest", "PHPUnit", "CI pipeline" |
|
|
650
|
+
|
|
651
|
+
**Framework supportati**:
|
|
652
|
+
|
|
653
|
+
| Framework | Tipo | Comando |
|
|
654
|
+
|-----------|------|---------|
|
|
655
|
+
| Playwright | E2E browser test | `npx playwright test` |
|
|
656
|
+
| Jest | Unit test JavaScript | `npx jest` |
|
|
657
|
+
| PHPUnit | Unit/integration test PHP | `./vendor/bin/phpunit` |
|
|
658
|
+
|
|
659
|
+
**Procedure**:
|
|
660
|
+
1. **Setup ambiente**: rileva framework via `test_inspect.mjs`, configura wp-env se necessario
|
|
661
|
+
2. **Esecuzione test**: lancia suite appropriata, cattura output
|
|
662
|
+
3. **Debug failure**: analizza output, screenshot Playwright, trace file
|
|
663
|
+
4. **Coverage**: genera report coverage, identifica gap
|
|
664
|
+
5. **CI Integration**: verifica/crea GitHub Actions workflow
|
|
665
|
+
|
|
666
|
+
**Report**: Risultati per suite, analisi failure, coverage gap, suggerimenti.
|
|
667
|
+
|
|
668
|
+
**Regole**: Non esegue test su produzione. Conferma prima di installare dipendenze. Non modifica test senza approvazione.
|
|
669
|
+
|
|
670
|
+
**Skill correlata**: `wp-e2e-testing`
|
|
671
|
+
|
|
672
|
+
---
|
|
673
|
+
|
|
674
|
+
### wp-accessibility-auditor (Accessibilita)
|
|
675
|
+
|
|
676
|
+
| Proprieta | Valore |
|
|
677
|
+
|-----------|--------|
|
|
678
|
+
| Colore | Purple |
|
|
679
|
+
| Ruolo | Audit WCAG 2.2 AA (read-only, non modifica codice) |
|
|
680
|
+
| Attivazione | "Audit accessibilita", "WCAG", "a11y check", "screen reader" |
|
|
681
|
+
|
|
682
|
+
**5 fasi di audit**:
|
|
683
|
+
|
|
684
|
+
| Fase | Cosa verifica |
|
|
685
|
+
|------|---------------|
|
|
686
|
+
| Automated Scan | axe-core/pa11y su URL target, Lighthouse a11y score |
|
|
687
|
+
| Code Review | ARIA usage, gerarchia heading, alt text, form labels, landmarks |
|
|
688
|
+
| Keyboard Navigation | Focus order, skip links, tab traps |
|
|
689
|
+
| Theme Compliance | Requisiti accessibility-ready di WordPress |
|
|
690
|
+
| Block Editor A11y | Output semantico dei blocchi Gutenberg |
|
|
691
|
+
|
|
692
|
+
**Report**: Matrice conformita WCAG, violazioni per severity, step di remediation per ogni issue.
|
|
693
|
+
|
|
694
|
+
**Regole**: Non modifica codice (solo audit). Produce raccomandazioni actionable con riferimenti WCAG specifici.
|
|
695
|
+
|
|
696
|
+
**Skill correlata**: `wp-accessibility`
|
|
697
|
+
|
|
698
|
+
---
|
|
699
|
+
|
|
700
|
+
### Pattern di Collaborazione tra Agent
|
|
701
|
+
|
|
702
|
+
| Pattern | Flusso | Descrizione |
|
|
703
|
+
|---------|--------|-------------|
|
|
704
|
+
| **Audit → Fix** | `wp-security-auditor` → `wp-security-hardener` | L'auditor trova problemi, l'hardener implementa le correzioni |
|
|
705
|
+
| **Delegazione** | `wp-site-manager` → tutti gli altri | Il site manager delega a agent specializzati in base al task |
|
|
706
|
+
|
|
707
|
+
Il `wp-site-manager` puo delegare a tutti gli 8 agent specializzati:
|
|
708
|
+
|
|
709
|
+
| Task | Agent delegato |
|
|
710
|
+
|------|---------------|
|
|
711
|
+
| Deploy, migrazione | `wp-deployment-engineer` |
|
|
712
|
+
| Contenuti, SEO | `wp-content-strategist` |
|
|
713
|
+
| Audit sicurezza | `wp-security-auditor` |
|
|
714
|
+
| Hardening, incident response | `wp-security-hardener` |
|
|
715
|
+
| Performance, CWV | `wp-performance-optimizer` |
|
|
716
|
+
| Testing | `wp-test-engineer` |
|
|
717
|
+
| Accessibilita | `wp-accessibility-auditor` |
|
|
718
|
+
|
|
570
719
|
---
|
|
571
720
|
|
|
572
721
|
## 7. Skills Operative - Gestione Siti Live
|
|
@@ -599,11 +748,14 @@ Le skill NON sostituiscono i comandi slash. I comandi sono entry point espliciti
|
|
|
599
748
|
|
|
600
749
|
### Origine
|
|
601
750
|
|
|
602
|
-
Le
|
|
751
|
+
Le skill di sviluppo provengono da due fonti:
|
|
752
|
+
|
|
753
|
+
- **13 skill community** integrate dal repository [WordPress/agent-skills](https://github.com/WordPress/agent-skills) (licenza GPL-2.0-or-later). Coprono blocchi, temi, plugin, endpoint REST, analisi statica, profiling e altro.
|
|
754
|
+
- **5 skill estese** (MIT) aggiunte in v1.6.0: testing, security, internazionalizzazione, accessibilita, headless.
|
|
603
755
|
|
|
604
756
|
### Il Router Unificato
|
|
605
757
|
|
|
606
|
-
La skill `wordpress-router` e il punto d'ingresso per tutti i task WordPress. Classifica automaticamente il task
|
|
758
|
+
La skill `wordpress-router` (v4) e il punto d'ingresso per tutti i task WordPress. Classifica automaticamente il task in **tre categorie**: sviluppo, ambiente locale, operativo.
|
|
607
759
|
|
|
608
760
|
```
|
|
609
761
|
Utente: "Crea un blocco custom per la gallery"
|
|
@@ -623,7 +775,23 @@ wordpress-router: TASK = operativo
|
|
|
623
775
|
wp-deploy + wp-deployment-engineer: esegue deploy
|
|
624
776
|
```
|
|
625
777
|
|
|
626
|
-
|
|
778
|
+
```
|
|
779
|
+
Utente: "Configura il mio sito locale con WordPress Studio"
|
|
780
|
+
|
|
|
781
|
+
wordpress-router: TASK = ambiente locale
|
|
782
|
+
|
|
|
783
|
+
wp-local-env: guida setup e gestione
|
|
784
|
+
```
|
|
785
|
+
|
|
786
|
+
```
|
|
787
|
+
Utente: "Esegui i test E2E del mio plugin"
|
|
788
|
+
|
|
|
789
|
+
wordpress-router: TASK = sviluppo (testing)
|
|
790
|
+
|
|
|
791
|
+
wp-e2e-testing skill + wp-test-engineer agent
|
|
792
|
+
```
|
|
793
|
+
|
|
794
|
+
### Panoramica Skills di Sviluppo — Community (13)
|
|
627
795
|
|
|
628
796
|
| Skill | Si attiva quando... | Risorse |
|
|
629
797
|
|-------|---------------------|---------|
|
|
@@ -641,9 +809,23 @@ wp-deploy + wp-deployment-engineer: esegue deploy
|
|
|
641
809
|
| `wp-playground` | "Playground", "sandbox", "blueprint", "test disposable" | 3 reference files |
|
|
642
810
|
| `wpds` | "Design System", "@wordpress/components", "design token" | wpds-mcp-setup.md (richiede WPDS MCP server) |
|
|
643
811
|
|
|
812
|
+
### Panoramica Skills di Sviluppo — Estese (5)
|
|
813
|
+
|
|
814
|
+
Aggiunte in v1.6.0, queste skill coprono aree avanzate dello sviluppo WordPress. Ogni skill ha un **agent dedicato** per l'esecuzione (indicato in tabella).
|
|
815
|
+
|
|
816
|
+
| Skill | Si attiva quando... | Risorse | Agent dedicato |
|
|
817
|
+
|-------|---------------------|---------|----------------|
|
|
818
|
+
| `wp-e2e-testing` | "testa il plugin", "Playwright", "Jest", "PHPUnit", "CI" | 7 reference files, test_inspect.mjs | `wp-test-engineer` |
|
|
819
|
+
| `wp-security` | "hardening", "metti in sicurezza", "incidente", "CSP" | 7 reference files, security_inspect.mjs | `wp-security-hardener` |
|
|
820
|
+
| `wp-i18n` | "traduci", "internazionalizza", "text domain", "RTL", "WPML" | 6 reference files, i18n_inspect.mjs | — |
|
|
821
|
+
| `wp-accessibility` | "accessibilita", "WCAG", "screen reader", "a11y" | 6 reference files | `wp-accessibility-auditor` |
|
|
822
|
+
| `wp-headless` | "headless", "decoupled", "WPGraphQL", "Next.js", "CORS" | 6 reference files, headless_inspect.mjs | — |
|
|
823
|
+
|
|
824
|
+
**Cross-reference bidirezionali**: Le skill con agent dedicato contengono una sezione "Recommended Agent", e gli agent contengono "Related Skills". Questo garantisce che Claude attivi sia la conoscenza (skill) che l'esecutore (agent) appropriati.
|
|
825
|
+
|
|
644
826
|
### Script di Rilevamento Automatico
|
|
645
827
|
|
|
646
|
-
Le skill
|
|
828
|
+
Le skill includono 12 script Node.js (`.mjs`) che eseguono analisi automatica del progetto:
|
|
647
829
|
|
|
648
830
|
| Script | Cosa rileva |
|
|
649
831
|
|--------|-------------|
|
|
@@ -654,6 +836,11 @@ Le skill di sviluppo includono 7 script Node.js (`.mjs`) che eseguono analisi au
|
|
|
654
836
|
| `perf_inspect.mjs` | WP-CLI availability, autoloaded options, object cache |
|
|
655
837
|
| `wpcli_inspect.mjs` | WP-CLI versione, comandi disponibili, configurazione |
|
|
656
838
|
| `phpstan_inspect.mjs` | Configurazione PHPStan, livello analisi, baseline |
|
|
839
|
+
| `detect_local_env.mjs` | Ambienti locali: Studio, LocalWP, wp-env (v1.5.0) |
|
|
840
|
+
| `test_inspect.mjs` | Framework test: Playwright, Jest, PHPUnit, wp-env, CI config (v1.6.0) |
|
|
841
|
+
| `security_inspect.mjs` | wp-config constants, permessi file, .htaccess, plugin sicurezza (v1.6.0) |
|
|
842
|
+
| `i18n_inspect.mjs` | Text domain, file .pot/.po/.mo, funzioni i18n PHP/JS (v1.6.0) |
|
|
843
|
+
| `headless_inspect.mjs` | WPGraphQL, CORS config, framework frontend (v1.6.0) |
|
|
657
844
|
|
|
658
845
|
### WordPress Playground — Ambienti Disposable
|
|
659
846
|
|
|
@@ -688,11 +875,14 @@ Senza il server MCP, la skill usa conoscenza generale di `@wordpress/components`
|
|
|
688
875
|
```
|
|
689
876
|
1. cd mio-progetto-wordpress/
|
|
690
877
|
2. Claude esegue wp-project-triage → rileva "wp-block-plugin"
|
|
691
|
-
3. wordpress-router → instrada a wp-block-development
|
|
878
|
+
3. wordpress-router v4 → instrada a wp-block-development
|
|
692
879
|
4. Claude guida la creazione con block.json, edit.js, save.js
|
|
693
|
-
5. wp-
|
|
694
|
-
6. wp-
|
|
695
|
-
7. wp-
|
|
880
|
+
5. wp-e2e-testing + wp-test-engineer → esegue test E2E con Playwright
|
|
881
|
+
6. wp-accessibility + wp-accessibility-auditor → verifica WCAG 2.2
|
|
882
|
+
7. wp-phpstan → analisi statica del codice
|
|
883
|
+
8. wp-i18n → internazionalizzazione se necessaria
|
|
884
|
+
9. wp-security + wp-security-hardener → hardening sicurezza
|
|
885
|
+
10. wp-deploy → deploy in produzione quando pronto
|
|
696
886
|
```
|
|
697
887
|
|
|
698
888
|
---
|
|
@@ -981,12 +1171,58 @@ Claude (attiva wordpress-router → wp-block-development):
|
|
|
981
1171
|
7. Deploy quando pronto
|
|
982
1172
|
```
|
|
983
1173
|
|
|
984
|
-
### Scenario 7:
|
|
1174
|
+
### Scenario 7: Test E2E e CI Pipeline
|
|
1175
|
+
|
|
1176
|
+
```
|
|
1177
|
+
Tu: "Esegui i test E2E del mio plugin e configura la CI"
|
|
1178
|
+
|
|
1179
|
+
Claude (attiva wp-test-engineer + skill wp-e2e-testing):
|
|
1180
|
+
1. Rileva framework con test_inspect.mjs (Playwright trovato)
|
|
1181
|
+
2. Setup wp-env se necessario (npx wp-env start)
|
|
1182
|
+
3. Esegue Playwright test suite (npx playwright test)
|
|
1183
|
+
4. Analizza failure: screenshot, trace file, output
|
|
1184
|
+
5. Genera report coverage
|
|
1185
|
+
6. Verifica/crea GitHub Actions workflow per CI
|
|
1186
|
+
-> Report: risultati test, failure analysis, coverage gap
|
|
1187
|
+
```
|
|
1188
|
+
|
|
1189
|
+
### Scenario 8: Audit Sicurezza e Hardening
|
|
1190
|
+
|
|
1191
|
+
```
|
|
1192
|
+
Tu: "Controlla la sicurezza del sito e correggi i problemi trovati"
|
|
1193
|
+
|
|
1194
|
+
Claude (attiva wp-security-auditor → wp-security-hardener):
|
|
1195
|
+
1. Fase audit (wp-security-auditor):
|
|
1196
|
+
- Pre-scan con security_inspect.mjs
|
|
1197
|
+
- 5 fasi: plugin, utenti, contenuti, DNS/SSL, server config
|
|
1198
|
+
- Genera report con severity classification
|
|
1199
|
+
2. Handoff a hardener (wp-security-hardener):
|
|
1200
|
+
- Riceve findings dall'auditor
|
|
1201
|
+
- Implementa fix: permessi file, headers HTTP, auth hardening
|
|
1202
|
+
- Documenta ogni modifica
|
|
1203
|
+
-> Report: findings + remediation completata
|
|
1204
|
+
```
|
|
1205
|
+
|
|
1206
|
+
### Scenario 9: Audit Accessibilita WCAG
|
|
1207
|
+
|
|
1208
|
+
```
|
|
1209
|
+
Tu: "Verifica l'accessibilita del mio tema WordPress"
|
|
1210
|
+
|
|
1211
|
+
Claude (attiva wp-accessibility-auditor + skill wp-accessibility):
|
|
1212
|
+
1. Scan automatico: axe-core, pa11y, Lighthouse a11y score
|
|
1213
|
+
2. Code review: ARIA patterns, heading hierarchy, form labels
|
|
1214
|
+
3. Keyboard navigation: focus order, skip links, tab traps
|
|
1215
|
+
4. Theme compliance: check requisiti accessibility-ready
|
|
1216
|
+
5. Block editor: verifica output semantico blocchi
|
|
1217
|
+
-> Report: matrice conformita WCAG 2.2, violazioni, remediation steps
|
|
1218
|
+
```
|
|
1219
|
+
|
|
1220
|
+
### Scenario 10: Analisi Statica e Profiling
|
|
985
1221
|
|
|
986
1222
|
```
|
|
987
1223
|
Tu: "Analizza il codice del mio plugin con PHPStan e controlla le performance"
|
|
988
1224
|
|
|
989
|
-
Claude (attiva wp-phpstan + wp-performance):
|
|
1225
|
+
Claude (attiva wp-phpstan + wp-performance + wp-performance-optimizer):
|
|
990
1226
|
1. Rileva configurazione PHPStan (phpstan.neon o crea baseline)
|
|
991
1227
|
2. Esegue analisi statica a livello 6
|
|
992
1228
|
3. Segnala errori tipizzazione, chiamate deprecate, pattern non sicuri
|
|
@@ -995,11 +1231,39 @@ Claude (attiva wp-phpstan + wp-performance):
|
|
|
995
1231
|
6. Report con fix prioritizzati
|
|
996
1232
|
```
|
|
997
1233
|
|
|
1234
|
+
### Scenario 11: Internazionalizzazione Plugin
|
|
1235
|
+
|
|
1236
|
+
```
|
|
1237
|
+
Tu: "Internazionalizza il mio plugin per supporto multilingue"
|
|
1238
|
+
|
|
1239
|
+
Claude (attiva skill wp-i18n):
|
|
1240
|
+
1. Rileva text domain con i18n_inspect.mjs
|
|
1241
|
+
2. Wrappa stringhe PHP con __(), _e(), esc_html__()
|
|
1242
|
+
3. Wrappa stringhe JS con @wordpress/i18n
|
|
1243
|
+
4. Genera .pot con wp i18n make-pot
|
|
1244
|
+
5. Guida workflow .po/.mo per le traduzioni
|
|
1245
|
+
6. Verifica supporto RTL se necessario
|
|
1246
|
+
```
|
|
1247
|
+
|
|
1248
|
+
### Scenario 12: Architettura Headless con Next.js
|
|
1249
|
+
|
|
1250
|
+
```
|
|
1251
|
+
Tu: "Voglio usare WordPress come CMS headless con Next.js"
|
|
1252
|
+
|
|
1253
|
+
Claude (attiva skill wp-headless):
|
|
1254
|
+
1. Analizza con headless_inspect.mjs (WPGraphQL? CORS config?)
|
|
1255
|
+
2. Guida scelta: REST API vs WPGraphQL
|
|
1256
|
+
3. Configura JWT authentication
|
|
1257
|
+
4. Setup CORS per il dominio frontend
|
|
1258
|
+
5. Integra Next.js con ISR (Incremental Static Regeneration)
|
|
1259
|
+
6. Configura webhook per invalidazione cache
|
|
1260
|
+
```
|
|
1261
|
+
|
|
998
1262
|
---
|
|
999
1263
|
|
|
1000
1264
|
## 14. Amministrazione Avanzata
|
|
1001
1265
|
|
|
1002
|
-
###
|
|
1266
|
+
### 14.1 Personalizzare gli Hook
|
|
1003
1267
|
|
|
1004
1268
|
Puoi modificare `hooks/hooks.json` per aggiungere o rimuovere hook. Struttura di un hook:
|
|
1005
1269
|
|
|
@@ -1024,7 +1288,7 @@ Puoi modificare `hooks/hooks.json` per aggiungere o rimuovere hook. Struttura di
|
|
|
1024
1288
|
- `prompt`: Claude valuta semanticamente se l'operazione e legittima
|
|
1025
1289
|
- `command`: Uno script bash esegue validazione tecnica (exit 0 = allow, exit 2 = block)
|
|
1026
1290
|
|
|
1027
|
-
###
|
|
1291
|
+
### 14.2 Aggiungere un Nuovo Sito Manualmente
|
|
1028
1292
|
|
|
1029
1293
|
Se preferisci non usare `/wordpress-manager:wp-setup`:
|
|
1030
1294
|
|
|
@@ -1039,7 +1303,7 @@ Se preferisci non usare `/wordpress-manager:wp-setup`:
|
|
|
1039
1303
|
3. Riavvia la sessione Claude Code (per ricaricare le variabili d'ambiente)
|
|
1040
1304
|
4. Verifica: `"Elenca i siti configurati"`
|
|
1041
1305
|
|
|
1042
|
-
###
|
|
1306
|
+
### 14.3 Script di Health Check Automatizzato
|
|
1043
1307
|
|
|
1044
1308
|
Puoi schedulare il health check con cron per monitoraggio proattivo:
|
|
1045
1309
|
|
|
@@ -1049,7 +1313,7 @@ Puoi schedulare il health check con cron per monitoraggio proattivo:
|
|
|
1049
1313
|
0 */6 * * * source ~/.claude/mcp-secrets.env && bash ~/.claude/plugins/local/wordpress-manager/scripts/health-check.sh >> /var/log/wp-health.log 2>&1
|
|
1050
1314
|
```
|
|
1051
1315
|
|
|
1052
|
-
###
|
|
1316
|
+
### 14.4 Aggiornare il Plugin
|
|
1053
1317
|
|
|
1054
1318
|
```bash
|
|
1055
1319
|
cd ~/.claude/plugins/local/wordpress-manager
|
|
@@ -1061,7 +1325,7 @@ npm install
|
|
|
1061
1325
|
npx tsc
|
|
1062
1326
|
```
|
|
1063
1327
|
|
|
1064
|
-
###
|
|
1328
|
+
### 14.5 Disabilitare Temporaneamente il Plugin
|
|
1065
1329
|
|
|
1066
1330
|
In `~/.claude/settings.json`:
|
|
1067
1331
|
|
|
@@ -1075,7 +1339,7 @@ In `~/.claude/settings.json`:
|
|
|
1075
1339
|
|
|
1076
1340
|
I server MCP non si avvieranno e i comandi non saranno disponibili fino alla riattivazione.
|
|
1077
1341
|
|
|
1078
|
-
###
|
|
1342
|
+
### 14.6 Sicurezza delle Credenziali
|
|
1079
1343
|
|
|
1080
1344
|
**Dove sono le credenziali**:
|
|
1081
1345
|
- `~/.claude/mcp-secrets.env` - File locale, NON nel repository
|
|
@@ -1087,7 +1351,7 @@ I server MCP non si avvieranno e i comandi non saranno disponibili fino alla ria
|
|
|
1087
1351
|
- Usa una Application Password dedicata per Claude (non la password dell'account)
|
|
1088
1352
|
- Se un token viene compromesso, revocalo immediatamente dal pannello WordPress/Hostinger
|
|
1089
1353
|
|
|
1090
|
-
###
|
|
1354
|
+
### 14.7 Struttura dei Permessi File WordPress
|
|
1091
1355
|
|
|
1092
1356
|
Per riferimento, i permessi standard su Hostinger:
|
|
1093
1357
|
|
|
@@ -1236,8 +1500,17 @@ bash ~/.claude/plugins/local/wordpress-manager/scripts/validate-wp-operation.sh
|
|
|
1236
1500
|
| **WordPress Playground** | Ambiente WordPress disposable che gira in WebAssembly con SQLite |
|
|
1237
1501
|
| **WPDS** | WordPress Design System — componenti UI, token di design e pattern per l'ecosistema WP |
|
|
1238
1502
|
| **WP-CLI** | Command-line interface per WordPress: gestione plugin, utenti, database da terminale |
|
|
1503
|
+
| **axe-core** | Engine open-source per test automatici accessibilita web (usato da wp-accessibility-auditor) |
|
|
1504
|
+
| **CORS** | Cross-Origin Resource Sharing — configurazione necessaria per architetture headless |
|
|
1505
|
+
| **Handoff** | Passaggio strutturato di findings da un agent (auditor) a un altro (hardener) |
|
|
1506
|
+
| **Incident Response** | Procedura in 5 fasi per gestire compromissioni di sicurezza WordPress |
|
|
1507
|
+
| **ISR** | Incremental Static Regeneration — rigenerazione pagine statiche con dati freschi da WordPress |
|
|
1508
|
+
| **pa11y** | Tool CLI per test automatici accessibilita web (alternativa ad axe-core) |
|
|
1509
|
+
| **RTL** | Right-to-Left — supporto per lingue scritte da destra a sinistra (arabo, ebraico) |
|
|
1510
|
+
| **WCAG** | Web Content Accessibility Guidelines — standard W3C per accessibilita web (target: 2.2 AA) |
|
|
1511
|
+
| **WPGraphQL** | Plugin WordPress che espone un'API GraphQL come alternativa alla REST API |
|
|
1239
1512
|
|
|
1240
1513
|
---
|
|
1241
1514
|
|
|
1242
|
-
*Guida v1.
|
|
1243
|
-
*Ultimo aggiornamento: 2026-02-
|
|
1515
|
+
*Guida v1.7.1 - WordPress Manager Plugin per Claude Code*
|
|
1516
|
+
*Ultimo aggiornamento: 2026-02-28*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-plugin-wordpress-manager",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
4
4
|
"description": "Unified WordPress management and development plugin for Claude Code. Orchestrates Hostinger MCP, WP REST API bridge, and WordPress.com MCP with 24 skills, 8 agents, and security hooks. Includes local dev environment support for WordPress Studio, LocalWP, and wp-env. v1.7.0 adds 3 new agents (testing, security hardening, accessibility) and upgrades 5 existing agents.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "vinmor",
|