360 Secure SkillHub
360 安全技能中心

Wp Manager

基于 bash 与 curl 的 WordPress 站点管理脚本,通过站点 REST API 执行状态检测、站点信息、文章与页面列表、关键词搜索、站点地图查看、robots.txt 模板生成、性能提示和安全检查等子命令,结果以终端文本输出,并在本地目录缓存会话数据。

分类:自动化
bytesagain
bytesagain
热度 10.45
最近更新 2026-03-19 09:46:55

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add bytesagain/wp-manager
兼容性
通用兼容
联网要求
需要联网
数据出网
可选出网
Metadata
version
3.0.4
name
wp-manager
description
Manage WordPress sites from terminal. Use when checking site health, listing posts and pages, searching content, or running security scans.
author
BytesAgain
homepage
https://bytesagain.com
source
https://github.com/bytesagain/ai-skills

wp-manager

WordPress site management CLI — check site health, list posts and pages, search content, inspect sitemap, generate robots.txt templates, and run security scans. Connects to your WordPress site via its REST API.

Commands

status

Check site health — response time, SSL certificate status, and HTTP headers.

scripts/script.sh status

info

Show site metadata — name, description, URL, WordPress version, timezone.

scripts/script.sh info

list-posts

List recent blog posts with title, date, and status. Optional count argument.

scripts/script.sh list-posts 10

list-pages

List published pages with title and URL. Optional count argument.

scripts/script.sh list-pages 20

search

Search posts and pages by keyword.

scripts/script.sh search "tutorial"

sitemap

Fetch and display the site's XML sitemap structure and URL count.

scripts/script.sh sitemap

robots

Generate a robots.txt template based on WordPress best practices.

scripts/script.sh robots

performance

Show performance tips — caching headers, GZIP status, image optimization hints.

scripts/script.sh performance

security-scan

Run a security checklist — exposed files, default credentials, header analysis.

scripts/script.sh security-scan

help

scripts/script.sh help

Examples

# Daily site check workflow
scripts/script.sh status
scripts/script.sh info
scripts/script.sh list-posts 5
scripts/script.sh security-scan

Configuration

Variable Required Description
WP_URL No WordPress site URL (default: https://bytesagain.com)
WP_MANAGER_DIR No Data directory (default: ~/.local/share/wp-manager/)

Data Storage

Session data cached in ~/.local/share/wp-manager/.

Requirements

  • bash 4.0+
  • curl (for WordPress REST API calls)

Powered by BytesAgain | bytesagain.com | hello@bytesagain.com