# How to make your AI agent use WP Multitool
Source: https://wpmultitool.com/blog/how-to-make-your-ai-agent-use-wp-multitool/

so header/footer/nav lists are untouched. */ main :where(div, section, article, aside, details, figure, ul, ol, dl, a):has(> :is(p, li, dd, blockquote, .faq-answer, .prose, .feedback-result, .lead-message)) { container-type: inline-size; } main :where(p, li, dd, blockquote) { font-size: var(--font-size-prose); } /* Exceptions: content-sized flex items. Inline-size containment drops an element's intrinsic width to 0, so a flex child with no basis collapses. The check script (claude-tmp/wp-multitool/dev-browser/type-check.ts) flags any container narrower than 60px - add the class here. */ /* UA \`small\` is font-size: smaller (~0.83em) - inside 14px UI text that is 11.7px (the (EN) mark on /pl/). Hold it at the 14px UI floor. */ small { font-size: max(var(--font-size-2xs), 0.833em); } main .founder-text { container-type: normal; } /* must out-rank the :has() rule (0,0,2) */ main :where(li li, li p, dd p, blockquote p) { font-size: inherit; } /* ---- Type + vertical rhythm ------------------------------------------ The reset above zeroes EVERY margin, so spacing only exists where a rule puts it back by hand. Homepage and Pricing got that by hand; the static content pages never did, which is why they render welded together (the "2. Slow Database Queries" heading had a literal margin-top: 0). These defaults put it back ONCE, globally, so a new page is never born smooshed. The \`* + x\` owl selector only adds margin BETWEEN siblings - an element that OPENS a card or section still sits flush, so existing components keep working without having to unset anything. Paragraphs outside

are 16px; inside

the fluid \`main :where(p, ...)\` rule above wins (this one is zero-specificity). \`body\` stays 1rem so UI chrome that inherits is untouched. */ :where(p) { font-size: var(--font-size-body); } * + p { margin-top: var(--space-md); } /* 1rem */ * + h2 { margin-top: var(--space-2xl); } /* 4rem - major topic break */ * + h3 { margin-top: var(--space-xl); } /* 2rem - numbered sections */ * + h4 { margin-top: var(--space-lg); } /* 1.5rem */ /* A heading owns the thing under it - keep that pair tighter than the gap ABOVE the heading. Same specificity as the rules above, so source order decides: these win. h2 is a big heading (24px+) and 8px blended it into its body, so it gets 16px; the smaller h3/h4 still sit tight at 8px. */ h2 + * { margin-top: var(--space-md); } h3 + *, h4 + * { margin-top: var(--space-sm); } /* Noise overlay */ body::before { content: ""; position: fixed; inset: 0; opacity: 0.03; pointer-events: none; z-index: 9999; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"); } /* Scanlines */ body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9998; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.15) 0px, rgba(0,0,0,0.15) 1px, transparent 1px, transparent 2px); opacity: 0.4; } h1, h2, h3 { font-family: var(--font-mono); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; } a { color: var(--accent); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: all var(--transition-med); } a:hover { color: var(--text); text-decoration-color: var(--accent); } a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-lg); } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } /* H3 inside

should inherit summary styling, not block heading defaults. */ summary > h3 { display: inline; font: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; margin: 0; padding: 0; } /* Body copy line-length cap (50–75ch optimal) - applied to long-form prose only, not hero subhead, not full-width comparison/feature grids. */ .faq-answer, .module-content p { } #features .section-header p, #comparison .section-header p { margin-left: auto; margin-right: auto; } /* Tables shrink to 12-13px at mobile widths across the guide and comparison pages. Give the cells weight there so the smallest text on the site is not also the thinnest. */ @media (max-width: 768px) { td, th { font-weight: 500; } } /* Inline code is sized in em, so it shrinks with whatever it sits inside - nested in small text it reached 10.5px on /autoload-bloat/. Clamp it to the 12px floor and give small text the weight it needs to stay legible. */ code, kbd, samp { font-size: max(0.875rem, 0.875em); font-weight: 500; } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { /* 0s, not the usual 0.01ms. A CSS animation whose start time the engine has not resolved yet is in its PENDING state, and Chrome paints the keyframe's \`from\` value for those frames - a duration of 0.01ms cannot suppress that, because the element is styled before the animation engine gets to it. For the homepage \`typing\` reveal (\`.cache-lie\`) that pending frame is \`max-width: 0\`. Measured on the live homepage at 20x CPU throttle: 5/5 loads painted 2 offset frames with 0.01ms, 0/4 with 0s. The 0.01ms idiom exists so \`animationend\` still fires; nothing in this theme listens for it (no animationend/animationstart/transitionend handler and no getAnimations() call in the frontend), so 0s costs us nothing. Do NOT reach for \`animation: none\` here instead: a \`typing\`-revealed element sits at \`max-width: 0; overflow: hidden\` until the \`forwards\` fill runs, so killing the animation strands it clipped unless (like the homepage \`.cache-lie\`) a reduced-motion rule sets the width directly. \`animation-fill-mode: none\` has the same trap. Duration is the only safe global lever. */ animation-duration: 0s !important; /* Collapsing the DURATION alone is not enough - a surviving delay would still leave the element on its unanimated state for that long before the zero-duration fill snaps it to \`to\` (for the homepage \`typing\` reveal that unanimated state is \`max-width: 0\`, i.e. invisible). Zero the delay too. */ animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; } body::before, body::after { display: none; } } .container { padding: var(--space-xl) var(--space-lg); } /* Black Friday announcement strip */ .bf-banner { background: var(--black, #0a0a0a); color: var(--text, #e8e8e8); border-bottom: 1px solid var(--border, #2a2a2a); font-family: var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif); font-size: var(--font-size-sm, 0.875rem); line-height: 1.35; letter-spacing: -0.01em; } .bf-banner__inner { max-width: 1100px; margin: 0 auto; padding: 0.375rem 1.5rem; text-align: center; } .bf-banner__code { font-family: var(--font-mono, ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace); color: var(--accent, #c8ff00); border: 1px dashed var(--accent, #c8ff00); padding: 0 0.25rem; white-space: nowrap; } .bf-banner__link { color: var(--accent, #c8ff00); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; } .bf-banner__link:hover { color: var(--text, #e8e8e8); } .bf-banner__link:focus-visible { outline: 2px solid var(--accent, #c8ff00); outline-offset: 2px; } @media (max-width: 480px) { .bf-banner { letter-spacing: -0.02em; line-height: 1.25; } .bf-banner__inner { padding: 0.375rem 0.5rem; } } /* Skip link */ .skip-link { font-weight: 500; position: absolute; top: -40px; left: 0; background: var(--accent, #c8ff00); color: var(--black, #0a0a0a); padding: 0.5rem 1rem; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: var(--font-size-sm); z-index: 10000; text-decoration: none; } .skip-link:focus { top: 0; } /* Header */ header\[role="banner"\] { position: sticky; top: 0; background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border, #2a2a2a); z-index: 100; padding: 1rem 0; } .header-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; } header\[role="banner"\] .logo { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-weight: 600; font-size: 1rem; /* fixed: outside there is no size container */ color: var(--text, #e8e8e8); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; letter-spacing: -0.02em; } header\[role="banner"\] .logo svg { stroke: var(--accent, #c8ff00); } header\[role="banner"\] .logo-wordmark { display: block; height: 22px; width: auto; } @media (max-width: 880px) { header\[role="banner"\] .logo-wordmark { height: 18px; } } .nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; } .nav-links a { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: var(--font-size-sm); font-weight: 500; color: var(--text-muted, #a8a8a8); text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.3s ease; } .nav-links a:hover { color: var(--text, #e8e8e8); } /* Current page: light the matching nav link in the accent, and keep it lit on hover. */ .nav-links a\[aria-current="page"\], .nav-links a\[aria-current="page"\]:hover { color: var(--accent, #c8ff00); } .nav-links .btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1.5rem; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: var(--font-size-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; background: var(--accent, #c8ff00); color: var(--black, #0a0a0a); border: none; cursor: pointer; min-height: 44px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .nav-links .btn-primary:hover { background: var(--text, #e8e8e8); color: var(--black, #0a0a0a); transform: translateY(-1px); } /* Header CTA - filled, and the one dominant action in the nav. It was ghosted originally so the free scan could dominate instead (LP audit gh #3); /scan/ left the nav on 2026-07-24, so "Buy Now" inherits that role. Hover inverts to the outlined treatment. */ .nav-links .btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1.5rem; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: var(--font-size-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; background: var(--accent, #c8ff00); color: var(--black, #0a0a0a); border: 1px solid var(--accent, #c8ff00); cursor: pointer; min-height: 44px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .nav-links .btn-secondary:hover { background: transparent; color: var(--accent, #c8ff00); transform: translateY(-1px); } /* Hamburger toggle + mobile CTA: hidden on desktop */ .header-nav .nav-toggle, .header-nav .nav-cta-mobile { display: none; } /* Collapse to logo + Buy Now + hamburger wherever the full nav does not fit on one line: it needs ~830px, overflowed the page at 641-700px and wrapped the header to two rows at 768px. Same 1.5rem gutter as .container so the logo lines up with page content. */ @media (max-width: 880px) { .header-nav { padding-inline: 1.5rem; gap: 0.5rem; flex-wrap: nowrap; } .header-nav .nav-cta-mobile { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; min-height: 40px; /* The long-form templates stretch every .btn to 100% below 600px; this one is a .btn too and squeezed the logo onto two lines. */ width: auto; max-width: none; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: var(--font-size-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; background: var(--accent, #c8ff00); color: var(--black, #0a0a0a); border: none; margin-left: auto; } /* Ghost variant of the mobile CTA (LP audit gh #3 - demote "Buy Now"). */ .header-nav .nav-cta-mobile.btn-secondary { background: transparent; color: var(--accent, #c8ff00); border: 1px solid var(--accent, #c8ff00); } .header-nav .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--border, #2a2a2a); cursor: pointer; } .nav-toggle-bar { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--text, #e8e8e8); transition: transform 0.2s ease, opacity 0.2s ease; } .nav-toggle\[aria-expanded="true"\] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); } .nav-toggle\[aria-expanded="true"\] .nav-toggle-bar:nth-child(2) { opacity: 0; } .nav-toggle\[aria-expanded="true"\] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); } .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1rem 1rem; background: rgba(10, 10, 10, 0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border, #2a2a2a); } .nav-links.is-open { display: flex; } .nav-links li { width: 100%; } .nav-links a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 14px 8px; font-size: var(--font-size-md); border-bottom: 1px solid var(--border, #2a2a2a); } .nav-links li:last-child a { border-bottom: none; } /* Hide the duplicate Buy Now inside the drawer on mobile */ .nav-cta-desktop-item { display: none; } header\[role="banner"\] { position: sticky; } } /* No max-width here on purpose: the article uses the shared .container width (1100px), so a single post, the /blog/ archive and the site nav all line up on the same edge. */ /* Article Header */ .article-header { padding: var(--space-3xl) 0; border-bottom: 1px solid var(--border); } .article-header__meta { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); font-family: var(--font-mono); font-size: var(--font-size-2xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); } .article-header__category { display: inline-block; background: var(--accent); color: var(--black); padding: 2px 8px; font-weight: 600; text-decoration: none; } /* It is an now, so it must not pick up the global link colour and it has to show it is clickable. Dimming the chip keeps the black text legible - the usual "brighten on hover" would wash it out. */ .article-header__category:hover, .article-header__category:focus-visible { background: var(--accent-dim, #9fcc00); color: var(--black); } .article-header__dot { color: var(--border); } /* The byline link sits inside the dim meta row - keep it quiet like the other items; the global a:hover still shows the accent underline. */ .article-header__author { color: inherit; } .article-header__subtitle { font-family: var(--font-body); font-size: var(--font-size-xl); color: var(--text-muted); margin-top: var(--space-lg); } /* Article Content */ .article-content { padding: var(--space-2xl) 0; } /* Anchor jumps land below the 77px sticky header. */ .article-content :is(h2, h3, h4) { scroll-margin-top: 96px; } .article-content h2 { margin-top: var(--space-2xl); margin-bottom: var(--space-lg); font-size: var(--font-size-3xl); } .article-content h3 { margin-top: var(--space-xl); margin-bottom: var(--space-md); font-size: var(--font-size-2xl); } .article-content h4 { margin-top: var(--space-lg); margin-bottom: var(--space-sm); font-size: var(--font-size-lg); font-family: var(--font-mono); font-weight: 600; } .article-content p { margin-bottom: var(--space-md); color: var(--text-muted); } /* Text keeps a readable line length (~75 characters). The block itself stays left-aligned on the shared 1100px container edge; tables, figures and code still use the full width. */ .article-content > :is(p, ul, ol, blockquote, h2, h3, h4) { max-width: 75ch; } /* In body copy a link must be visible without hovering: a dim accent underline at rest, the full accent one on hover (global a:hover). */ .article-content :is(p, li, td, figcaption, blockquote) a:not(\[class\]) { text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); } .article-content img { max-width: 100%; height: auto; border: 1px solid var(--border); margin: var(--space-lg) 0; display: block; } /* 9:16 Shorts sit in the article column without becoming 1900px tall. */ .article-content figure.short-embed { max-width: min(360px, 100%); margin: var(--space-xl) auto; } .article-content figure.short-embed video { width: 100%; height: auto; display: block; border: 1px solid var(--border); background: #000; } .article-content figure.short-embed figcaption { margin-top: var(--space-sm); font-family: var(--font-mono); font-size: var(--font-size-2xs); color: var(--text-dim); text-align: center; } /* Generic captions (charts, screenshots) get the demoted mono look too. --font-size-xs is the 12px floor, so it needs weight 500. */ .article-content figcaption { margin-top: var(--space-sm); font-family: var(--font-mono); font-size: var(--font-size-xs); font-weight: 500; color: var(--text-dim); } /* Wide terminal/console screenshots: scroll horizontally on narrow viewports instead of shrinking the monospace text to illegibility. */ .article-content figure.figure-terminal { overflow-x: auto; -webkit-overflow-scrolling: touch; } .article-content figure.figure-terminal img { min-width: 520px; } .article-content ul, .article-content ol { margin-bottom: var(--space-lg); padding-left: var(--space-xl); } .article-content li { margin-bottom: var(--space-sm); color: var(--text-muted); } .article-content li strong { color: var(--text); } .article-content blockquote { border-left: 3px solid var(--accent); padding: var(--space-md) var(--space-lg); margin: var(--space-xl) 0; background: var(--surface); color: var(--text-muted); font-style: italic; } .article-content hr { border: none; border-top: 1px solid var(--border); margin: var(--space-2xl) 0; } /* Code blocks */ pre { font-family: var(--font-mono); font-size: var(--font-size-md); background: var(--surface); border: 1px solid var(--border); padding: var(--space-lg); overflow-x: auto; margin: var(--space-lg) 0; } code { font-family: var(--font-mono); font-size: max(0.875rem, 0.875em); background: var(--surface); padding: 2px 6px; } pre code { background: none; padding: 0; } /* CTA Block */ .cta-block { margin-top: var(--space-3xl); padding: var(--space-2xl); border: 1px solid var(--border); background: var(--surface); text-align: center; } .cta-block h2 { margin-top: 0; margin-bottom: var(--space-md); } .cta-block h2::before { content: none; } .cta-block p { color: var(--text-muted); margin-bottom: var(--space-lg); max-width: 500px; margin-left: auto; margin-right: auto; } .cta-block .built-by { font-family: var(--font-mono); font-size: var(--font-size-xs); color: var(--text-dim); margin-top: var(--space-md); margin-bottom: 0; } .btn { display: inline-flex; align-items: center; justify-content: center; padding: var(--space-sm) var(--space-xl); font-family: var(--font-mono); font-size: var(--font-size-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; border: none; cursor: pointer; min-height: 44px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .btn--primary { background: var(--accent); color: var(--black); } .btn--primary:hover { background: var(--accent-dim); transform: translateY(-1px); } /* Author & related */ .article-footer { padding: var(--space-xl) 0; border-top: 1px solid var(--border); margin-top: var(--space-2xl); } .article-footer__back { font-family: var(--font-mono); font-size: var(--font-size-sm); color: var(--text-muted); text-decoration: none; } .article-footer__back:hover { color: var(--accent); } .article-footer__back::before { content: "\\2190 "; } .related-posts { margin: var(--space-2xl, 3rem) 0 var(--space-xl, 2rem); border-top: 1px solid var(--border, #222); padding-top: var(--space-lg, 1.5rem); } .related-posts__title { font-size: var(--font-size-xl); margin-bottom: var(--space-sm, 0.75rem); } .related-posts__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-xs, 0.5rem); } .related-posts__list a { color: var(--text, #e0e0e0); text-decoration: none; } .related-posts__list a:hover { color: var(--accent, #c8ff00); } /* Tables in post content had NO styling at all - browser defaults, so no cell padding and no row separators. It never showed up because only the /compare/ cluster uses tables, and those are the pages a reader scans hardest. */ .article-content table { width: 100%; border-collapse: collapse; margin: var(--space-lg, 1.5rem) 0; font-size: var(--font-size-md); } .article-content th, .article-content td { padding: var(--space-sm, 0.75rem) var(--space-md, 1rem); border-bottom: 1px solid var(--border, #222); text-align: left; vertical-align: top; } .article-content th { font-family: var(--font-mono); font-size: var(--font-size-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim, #888); border-bottom: 2px solid var(--border, #222); } .article-content td { color: var(--text-muted, #a8a8a8); } /* First column is the row label - keep it readable against the value columns. */ .article-content td:first-child { color: var(--text, #e0e0e0); } /* A wide table scrolls sideways inside its own box instead of squeezing every column until words break mid-letter. Up to tablet width, not just phones: /compare/ overflowed the page by 264px at 768px. */ @media (max-width: 1100px) { .article-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } } @media (max-width: 600px) { /* 6rem header padding + 4rem content padding put the first paragraph ~740px down an 812px phone - mostly padding above the fold. */ .article-header { padding: var(--space-xl) 0 var(--space-lg); } .article-content { padding-top: var(--space-lg); } .article-header__meta { flex-wrap: wrap; gap: var(--space-sm); } /* When the meta wraps, the flex gap separates the items and the "/" separators only dangle at line ends. */ .article-header__dot { display: none; } /* The chat launcher is position:fixed via widget inline styles, so padding cannot clear it - shrink it toward its corner instead. The inline cssText sets no transform, so this applies without !important. */ #telechat-btn { transform: scale(0.78); transform-origin: bottom right; opacity: 0.9; } pre, code { font-size: var(--font-size-xs); } .cta-block { padding: var(--space-xl); } .article-content th, .article-content td { padding: var(--space-xs, 0.5rem) var(--space-sm, 0.75rem); font-size: var(--font-size-sm); min-width: 7rem; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } body::before, body::after { display: none; } } /* Footer - organized column grid (Concept A) */ footer { background: var(--black); border-top: 1px solid var(--border); padding: var(--space-3xl) 0 var(--space-xl); font-size: var(--font-size-md); color: var(--text-muted); } .footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: var(--space-2xl) var(--space-xl); align-items: start; } /* Brand column */ .footer-logo { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.03em; font-size: var(--font-size-lg); color: var(--text); text-decoration: none; margin-bottom: var(--space-md); } .footer-logo svg { flex-shrink: 0; } .footer-logo .logo-wordmark { display: block; height: 22px; width: auto; } .footer-brand p { font-weight: 500; color: var(--text-muted); font-size: 1rem; /* fixed: no size container outside , fluid would hit the 21px cap */ max-width: 34ch; line-height: 1.6; margin-bottom: var(--space-lg); } .footer-social { display: flex; gap: var(--space-md); margin-bottom: var(--space-lg); } .footer-social a { font-weight: 500; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--border); transition: color var(--transition-med), border-color var(--transition-med), transform var(--transition-fast); } .footer-social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); } .footer-social a:focus-visible { color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; } .footer-brand .trustpilot-widget { max-width: 260px; } /* Link columns */ .footer-col h3 { font-family: var(--font-mono); font-size: var(--font-size-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: var(--space-md); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--border); } .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; padding: 0; margin: 0; } footer a { font-family: var(--font-mono); font-size: var(--font-size-sm); color: var(--text-muted); text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; transition: color var(--transition-med); } footer a:hover { color: var(--accent); } /* Long compound link labels (e.g. the de refund-policy word) must wrap or they overflow the page at 320px. */ .footer-col li { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; } .footer-col a { display: inline-block; font-weight: 500; } .footer-col a:focus-visible { color: var(--accent); outline: none; text-decoration: underline; text-underline-offset: 3px; } /* Badge marquee */ .badge-marquee { overflow: hidden; margin: var(--space-2xl) 0 var(--space-lg); mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); } .badge-marquee-track { display: flex; gap: var(--space-xl); width: max-content; animation: marquee 40s linear infinite; } .badge-marquee:hover .badge-marquee-track { animation-play-state: paused; } .badge-marquee-track a { display: flex; align-items: center; flex-shrink: 0; opacity: 0.6; transition: opacity var(--transition-med); } .badge-marquee-track a:hover { opacity: 1; } .badge-marquee-track img { display: block; height: 34px; width: auto; } /* For directories that only publish black-on-transparent artwork, which would otherwise be invisible against this footer. Opt-in per badge - never blanket, because inverting a badge that already reads correctly wrecks its colours. */ .badge-marquee-track img.badge--invert { filter: invert(1); } /* A badge that ships with a companion text link under it (Launch Llama). */ .badge-marquee-track .badge-stack { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; } /* Text, unlike the badge images, must stay readable: full opacity (the 0.6 above composited #888 down to #565656, 2.69:1) and a 24px tap target. */ .badge-marquee-track a.badge-companion { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; opacity: 1; font-family: var(--font-mono); font-size: var(--font-size-2xs); font-weight: 500; line-height: 1; color: var(--text-dim); text-decoration: none; } .badge-marquee-track a.badge-companion:hover, .badge-marquee-track a.badge-companion:focus-visible { color: var(--accent); } @keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } } /* Bottom bar */ .footer-bottom p, .footer-bottom span { font-weight: 500; } .footer-bottom { font-weight: 500; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-md); border-top: 1px solid var(--border); padding-top: var(--space-lg); margin-top: var(--space-md); } footer p { font-family: var(--font-mono); font-size: var(--font-size-xs); color: var(--text-muted); letter-spacing: 0.02em; margin: 0; } /* The built-by row groups the outbound author links so space-between on .footer-bottom keeps them adjacent instead of spreading them apart. */ .footer-built-by { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); } .built-by-badge { font-weight: 500; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; font-family: var(--font-mono); font-size: var(--font-size-xs); color: var(--text-dim); text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; transition: color var(--transition-med); } .built-by-badge:hover { color: var(--accent); } .built-by-badge svg { opacity: 0.7; transition: opacity var(--transition-med); } .built-by-badge:hover svg { opacity: 1; } @media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } } @media (max-width: 560px) { .footer-bottom { flex-direction: column; align-items: flex-start; } } /* --- Typography floor ------------------------------------------------- 12-14px text at weight 400 is the "hard to read" complaint from the video review. These are this page's small labels and meta - weight 500 keeps them legible without changing the size or the layout. Audited with the house typography-floor rule; do not drop the weight again. */ .built-by, .article-footer__back, .post-meta, .post-meta span , .article-header__meta, .article-header__meta span { font-weight: 500; } Skip to main content Black Friday: 25% off Yearly and Lifetime with code `BLACKFRIDAY25`. Until Mon 1 Dec, 23:59 UTC. [See pricing](https://wpmultitool.com/pricing/) [Tools](https://wpmultitool.com/blog/) / Jul 16, 2026 / 3 min read / By [Marcin Dudek](https://marcindudek.dev) How to make your AI agent use WP Multitool Point your agent at two things: the wp multitool CLI and the ClawHub skill file. Both already exist. Here is how to wire them up, and which commands are safe to run unattended. If you want your AI agent to work on a WordPress site with WP Multitool, there are two things to point it at: the WP-CLI command, and the skill file. Both already exist. Here's how to wire them up. The CLI is the interface WP Multitool registers one WP-CLI command with 16 subcommands. If your agent has shell access and WP-CLI, it can already drive all of it: `wp multitool quickstart # scan everything, ranked worst-first wp multitool autoload # what's bloating your autoloaded options wp multitool clean # revisions, transients, orphaned meta wp multitool config # wp-config.php constants wp multitool db-health # table sizes, overhead, engine checks wp multitool debug-log # size, growth, top offenders wp multitool doctor # host/config misconfiguration checks wp multitool frontend # emoji scripts, embeds, jQuery migrate wp multitool health # environment snapshot: PHP, memory, opcache, db size wp multitool healthcheck # pass/fail on autoload size + object cache wp multitool image # image sizes and regeneration wp multitool license # license status wp multitool modules # list/enable/disable modules wp multitool redis # Redis object-cache diagnosis wp multitool slow-queries # captured slow queries + EXPLAIN wp multitool status # every module, on or off` 14 of the 16 take `--format=json`. The two that don't, `clean` and `image`, are actions rather than reports. That flag is the thing that makes this work for an agent. Every finding comes back with a `severity`, a `why` in plain English, a `data` block with the raw values, and a `fix`. The agent reads `severity` and decides. It doesn't have to parse a table or interpret "OPcache: warning". `$ wp multitool doctor --format=json | jq '.checks.object_cache' { "severity": "info", "why": "No persistent object cache drop-in (using DB-backed cache only)", "data": { "recommended": "redis", "plugin": "Redis Object Cache" }, "fix": { "type": "guided", "detail": "..." } }` The output is compact, so pipe it through `jq` when you want to read it yourself. Give it a loop that terminates Every scan returns a `summary` block: `{"ok": 2, "info": 3, "warn": 0, "critical": 0}`. That's your termination condition. Scan, fix the criticals, scan again, stop when the count hits zero. `# 1. scan everything wp multitool quickstart --format=json # 2. drill into whatever came back hot wp multitool autoload --format=json wp multitool slow-queries list --format=json # 3. fix the specific thing, with a guard wp db export backup.sql wp multitool clean revisions --keep=5 --yes # 4. scan again, confirm the count moved wp multitool quickstart --format=json` Step 4 is the one people skip. The agent checks its own work against the same instrument it started with, so "did that help?" has an answer instead of a guess. One thing worth knowing: doctor downgrades severities when it detects a non-production host, and tells you so with `"is_nonprod": true`. A staging site shouting CRITICAL about a missing page cache is noise, and an agent acting on that noise wastes your time. The ClawHub skill If your agent runs on OpenClaw or ClawHub, there's a skill file that hands it all of the above, plus the part it can't infer: which commands are safe. `openclaw skills install @marcindudekdev/wp-multi-tool` It lives in the plugin repository at `docs/wp-multitool-skill/SKILL.md` and is published on ClawHub, so you can read it before you install anything. The useful part is the autonomy split. The read commands - `quickstart`, `status`, `health`, `db-health`, `autoload`, `slow-queries`, `frontend` - are marked safe to run without asking. Six things are marked always-confirm: `wp multitool clean`, `wp multitool frontend enable-all`, and the core WP-CLI commands the skill pairs them with (`wp transient delete`, `wp post delete --force`, `wp db optimize`, `wp config set`). For any of them it tells the agent to recommend `wp db export` first. The skill's metadata declares the same thing machine-readably, so a host that reads permissions gets it without parsing prose. I wrote that down because an agent shouldn't have to infer from a command name whether something is destructive. `clean` sounds harmless. It permanently deletes post revisions. The read-only diagnostics in that skill are plain WP-CLI and SQL, so they work on any WordPress 5.8+ site, with or without the plugin. The `wp multitool` subcommands need it installed. If you wire an agent up this way and it breaks somewhere, I'd like to hear where. Find what is slowing your WordPress WP Multitool - 19 modules. From $79/year. Zero bloat. [Get WP Multitool](https://wpmultitool.com/pricing/) Built by Marcin Dudek. [All Posts](https://wpmultitool.com/blog/)