TechEarl
Topic · AI

AI

Building with Claude, prompt patterns, evals, and the engineering reality behind every LLM headline.

26 articlesWritten by Ishan Karunaratne
AI engineering guides on Claude API, prompt patterns, RAG, evals, and shipping LLM features.
More in AI
Agency-ops playbook for AI: proposals, SOWs, onboarding, SOPs, meeting summaries, status reports, internal docs. Where per-hour gain is highest.

AI for WordPress Agency Operations: The Playbook

The agency-ops playbook for AI: proposals, SOWs, onboarding documents, SOP creation, meeting summaries, status reports, internal documentation. Where the per-hour gain is highest, and the rules that keep client trust intact.

The five must-install MCP servers in 2026: filesystem, GitHub, Postgres, claude-in-chrome, and Sentry. Install commands, capabilities, security model, and FAQ.

Top 5 MCP Servers Every Developer Should Try in 2026

The five Model Context Protocol servers worth installing today: filesystem, GitHub, Postgres, claude-in-chrome (browser), and Sentry. With install commands, the tools they expose, and the security model.

Content-role playbook for AI on WordPress: outlines, briefs, refreshes, titles, format conversion, fact-checks. What stays human-written and why.

AI for WordPress Content Teams: The Playbook

The content-role playbook for AI on WordPress sites: outlines and briefs, article refreshes, title generation, format conversion, fact-check passes, content QA at scale. Plus the strict rules on what stays human-written end to end.

SEO-role playbook for AI on WordPress: internal links, schema, content-gap, redirects, title/meta, technical SEO, AI-search citability, what stays human.

AI for WordPress SEO: The Playbook

The SEO-role playbook for AI on WordPress sites: internal link audits, schema generation, content-gap analysis, redirect audits, title/meta rewrites, technical SEO triage, and AI-search citability. Plus what stays human.

Sysadmin-role playbook for AI on WordPress infrastructure: log triage, deploy verification, config audits, backups, security, fail2ban, read-only discipline.

AI for WordPress Sysadmins: The Playbook

The sysadmin-role playbook for AI on WordPress infrastructure: log triage, deploy verification, config audits, backup checks, security sweeps, fail2ban rule generation, and the strict read-only discipline that keeps production safe.

Write LLM evals that catch regressions. Pick metrics (exact match, LLM-as-judge, embedding similarity), build a golden dataset, run on every PR, monitor trends.

How to Write LLM Evals That Catch Regressions

Write LLM evals that catch real regressions: pick the right metrics (exact match, LLM-as-judge, embedding similarity), build a golden dataset, run on every PR, and watch the trend over time.

Developer-role playbook for AI on WordPress: ACF scaffolding, debugging, WP-CLI orchestration, code review, migrations, Figma to component, senior review.

AI for WordPress Developers: The Playbook

The developer-role playbook for AI on WordPress projects: ACF scaffolding, plugin/theme debugging, WP-CLI orchestration, code review, migration scripts, Figma-to-component, and the senior-review discipline that keeps quality high.

Build an LLM agent with tool use. The agentic loop, tool-call formats on Anthropic / OpenAI / Gemini, JavaScript and Python code, common failure modes.

How to Build an LLM Agent with Tool Use

Build an LLM agent with tool use: the agentic loop, the tool-call format on Anthropic, OpenAI, and Gemini, runnable code in JavaScript and Python, plus the common failure modes.

AI + SSH + systemd + nginx + fail2ban + certbot workflows for WordPress sysadmin. Log triage, config audits, deploy verification, what to never delegate.

Using AI to Help Manage WordPress Infrastructure

AI plus SSH plus the standard server toolkit (systemd, nginx, fail2ban, certbot) accelerates infrastructure work without replacing the sysadmin judgment. Log triage, config audits, deploy verification, security review. Plus what to never delegate.

What WordPress agencies should adopt first, what to skip, budget realities, and the four operational shifts that turn AI from a curiosity into load-bearing.

How Small WordPress Agencies Can Use AI in 2026

AI for a WordPress agency in 2026: what to actually adopt first, what to skip, the budget realities, and the four operational shifts that turn AI tooling from a curiosity into a load-bearing part of the business.

Add semantic search to an existing MySQL app with MySQL 9's VECTOR type and embeddings from Voyage or OpenAI. Store, query, and rank without a separate vector DB.

How to Add Semantic Search to a MySQL App

Add semantic search to an existing MySQL app with MySQL 9's VECTOR type, an embedding model (Voyage, OpenAI), and application-side cosine ranking. No separate vector database needed.

AI + WP-CLI + ACF for bulk content updates. Schema-aware update_field, content rewrites, image alt backfills, the safety patterns that prevent disasters.

Using AI to Update ACF Fields and WordPress Content

AI plus WP-CLI plus ACF is the canonical pattern for bulk content updates that used to take a careful afternoon. Schema-aware update_field calls, content rewrites at scale, image alt backfills, and the safety patterns that prevent disasters.

Figma to ACF Flexible Content pipeline with AI: describe the design, hand over JSON or screenshots, get ACF registration plus template partials. The realistic flow.

Turning Figma Designs Into WordPress Components Using AI

The Figma to ACF Flexible Content pipeline used to be the slow part of every agency build. With AI in the loop, you describe the design intent, hand over the Figma JSON or screenshots, and get back working ACF registration plus template partials. Here is the realistic workflow.

Use Claude CLI to run WordPress and ACF work end-to-end. Field group generation, WP-CLI orchestration, log triage, debugging. Real prompts, real output, real limits.

Using Claude CLI to Manage WordPress Sites

How I use Claude CLI to run WordPress and ACF work end-to-end: ACF field group generation, WP-CLI orchestration, log triage, plugin debugging, bulk content ops. Concrete prompts, what it gets wrong, and where it fits in an agency workflow.

WP-CLI patterns that compose with AI: multi-step plans, generated scripts, database surgery, content migrations, what to never delegate. Real commands, real limits.

Using AI with WP-CLI for Faster WordPress Operations

The WP-CLI patterns that compose well with AI assistants: multi-step plans with checkpoint approval, generated one-off scripts, database surgery, content migrations at scale, and what to never delegate.

Run a local LLM with Ollama: install, pull a model, hardware floor, picking between Llama, Mistral, Qwen. When local beats cloud and when it doesn't.

How to Run a Local LLM with Ollama

Run a local LLM with Ollama: install, pull a model, the hardware floor, picking between Llama, Mistral, and Qwen, and when local is faster than cloud (and when it isn't).

Get reliable JSON from an LLM with structured-output modes on Anthropic, OpenAI, Gemini. Plus Zod/Pydantic validation, retry strategies, and common pitfalls.

How to Get Reliable JSON from an LLM

Get reliable JSON out of an LLM with native structured-output modes (Anthropic tool use, OpenAI Structured Outputs, Gemini schema), plus Zod / Pydantic validation as a fallback.

Six techniques that actually reduce LLM hallucination: grounding, citations, tool use, structured outputs, explicit don't-know, and LLM-as-judge verification.

How to Stop an LLM from Hallucinating

Six techniques that actually reduce LLM hallucination: grounding with retrieved context, citation requirements, tool use for facts, structured outputs, explicit don't-know permission, and LLM-as-judge verification.

Write an effective system prompt with five parts: role, capabilities, constraints, output, refusal. Before/after examples and the structure that maximises cache hits.

How to Write an Effective System Prompt

Write an effective system prompt for an LLM with five parts: role, capabilities, constraints, output format, refusal policy. With before/after examples and the structure that maximises cache hits.