360 Secure SkillHub
360 安全技能中心

Wp Manager

这是通过WordPress REST API连接站点的CLI管理工具,核心功能含站点健康检查、元数据查看、文章/页面列表展示、内容搜索、站点地图分析、robots.txt生成、性能提示及安全扫描等。适合日常巡检、内容管理、安全排查场景,用户在终端执行带参数的bash命令即可触发操作,终端返回结果,需依赖bash 4.0+与curl环境。

bytesagain
bytesagain
热度 63.24
最近更新 2026-03-19 09:46:55
分类:自动化依赖:代码执行 / 第三方 API / 读写文件应用场景:自动化脚本 / DevOps / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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