wp-docker
設定 WordPress Docker 環境
在本機設定 WordPress 需要配置 Docker 容器、資料庫和 WP-CLI 指令。此技能提供可立即使用的 Docker Compose 模板和自動化腳本,讓您能在幾分鐘內開始開發 WordPress 網站,而非數小時。
スキルZIPをダウンロード
Claudeでアップロード
設定 → 機能 → スキル → スキルをアップロードへ移動
オンにして利用開始
テストする
「wp-docker」を使用しています。 Set up a new WordPress Docker environment for local development
期待される結果:
- Docker Compose configuration created with MariaDB, WordPress, and WP-CLI services
- PHP configuration updated: upload_max_filesize=64M, memory_limit=256M
- WordPress installed successfully at http://localhost:8080
- Plugins installed and activated: admin-site-enhancements, branda-white-labeling, yoast-seo, litespeed-cache, ewww-image-optimizer, wp-mail-smtp, instant-images
- Default pages created: Home, About, Contact, Privacy Policy, Terms of Service
- Permalinks configured to use /%postname%/ structure
- Site is ready at http://localhost:8080
- Admin login at http://localhost:8080/secure-login/
「wp-docker」を使用しています。 Install WooCommerce and configure basic store settings
期待される結果:
- WooCommerce plugin installed and activated via WP-CLI
- WooCommerce pages created: Shop, Cart, Checkout, My Account
- Default product categories added
- Currency settings configured to USD
- Payment gateways enabled: PayPal and Stripe
「wp-docker」を使用しています。 Export the database and replace old domain with new domain
期待される結果:
- Database exported to backup.sql file
- Search and replace completed: old-domain.com replaced with new-domain.com
- Serialized data correctly handled
- URLs updated in posts, pages, and options tables
- Redirect rules preserved
セキュリティ監査
低リスクThis skill provides Docker Compose templates and a bash setup script for WordPress local development. All static findings are false positives triggered by documentation patterns, standard Docker variable syntax, and legitimate devops tooling. No actual malicious behavior or intent found. The skill only generates configuration files and runs pre-defined docker-compose commands within controlled containers.
低リスクの問題 (1)
リスク要因
⚡ スクリプトを含む (1)
⚙️ 外部コマンド (1)
🌐 ネットワークアクセス (1)
品質スコア
作れるもの
本機開發環境
建立隔離的 WordPress 環境以測試主題、外掛和自訂程式碼,而不影響正式網站。
外掛測試工作流程
使用 WP-CLI 自動化安裝和配置,快速在新鮮的 WordPress 安裝上測試外掛。
網站移轉測試
從現有網站匯出資料庫和內容,然後匯入到本機環境以便在部署前進行安全測試。
これらのプロンプトを試す
Use wp-docker skill to set up a new WordPress Docker environment at /path/to/your/project. Start containers, run the setup script with site URL http://localhost:8080, title 'My Site', admin user 'admin', password 'secure-password-here', and email 'admin@example.com'.
Use wp-docker skill to install these WordPress plugins using WP-CLI: yoast-seo, woocommerce, elementor. Activate them after installation.
Use wp-docker skill to export the WordPress database to a file named backup.sql in the project directory.
Use wp-docker skill to search and replace all occurrences of 'old-domain.com' with 'new-domain.com' in the database.
ベストプラクティス
- 在部署前,務必將預設管理員密碼從 password123 變更為強式唯一密碼
- 保持 Docker 和 WordPress 版本更新,以修補安全漏洞
- 為開發和正式環境使用单独的 docker-compose 檔案
回避
- 在任何超出初始測試的環境中使用預設密碼或弱式憑證
- 在正式環境或可公開存取的網站上保持除錯模式啟用 (WP_DEBUG=true)
- 在對主題或外掛進行重大變更前跳過資料庫備份