diagnostic-architecture

Review WordPress architecture for CPT misuse, hook abuse, and caching anti-patterns.

27|1|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/dr-robert-li/cowork-wordpress-expert --skill diagnostic-architecture
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: diagnostic-architecture
Source: https://github.com/dr-robert-li/cowork-wordpress-expert/tree/main/skills/diagnostic-architecture
Command: npx skills add https://github.com/dr-robert-li/cowork-wordpress-expert --skill diagnostic-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill identifies and flags critical architectural flaws within a WordPress site that can lead to performance degradation, scalability issues, and maintenance headaches.

Core Features & Use Cases

  • CPT Misuse Detection: Identifies custom post types that are dead, have very few entries, or are being used as data stores, leading to performance bottlenecks.
  • Hook Abuse Analysis: Detects an excessive number of callbacks on hooks, expensive operations on early hooks ('init', 'wp_loaded'), and potential priority conflicts between plugins.
  • Caching Anti-Patterns: Checks for the absence of a persistent object cache and identifies misuse of transients (e.g., permanent transients) and uncached direct database queries.
  • Use Case: A site is experiencing slow load times. This Skill can pinpoint if the cause is a custom post type with tens of thousands of entries being used as a log, or if too many functions are firing on the 'init' hook, delaying page rendering.

Quick Start

Analyze the WordPress site architecture for CPT misuse, hook abuse, and caching anti-patterns.

Frequently Asked Questions about diagnostic-architecture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find what is causing slow load times in my WordPress architecture?

WordPress architecture diagnostics identify slow load causes by detecting custom post types used as data stores, excessive callbacks on init hooks, and missing persistent object cache. It pinpoints CPT misuse and expensive init operations.

How do I detect custom post type misuse and dead CPTs in WordPress?

To detect CPT misuse in WordPress, run a diagnostic review that identifies dead custom post types, low-entry CPTs, and data-store abuse via row count gating. CPT checks require WP-CLI to accurately query and analyze custom post type entries.

Can I check for WordPress hook abuse and priority conflicts without a live environment?

Yes, WordPress hook abuse and priority conflict checks use static analysis on synced files, requiring no live environment. This detects excessive callbacks, expensive init hooks, and plugin priority conflicts without executing code.

What caching anti-patterns should I look for in a WordPress site?

WordPress caching anti-patterns include missing persistent object cache, permanent transients that never expire, and uncached direct database queries. Static analysis flags these caching issues to prevent performance degradation and scalability problems.

Do I need WP-CLI to run WordPress architecture diagnostics?

WP-CLI is required for CPT checks to identify dead custom post types and data-store abuse via row count gating. Hook and caching anti-pattern checks use static analysis on synced files, so WP-CLI is not needed for those specific reviews.