{
 "schema": "aiblocks-page/1",
 "id": "agency-engineering-drupal-performance",
 "type": "agent",
 "name": "Drupal performance engineer agent",
 "summary": "Find why your Drupal site is slow. Get ranked fixes for caching, slow pages, images and hosting, each with the evidence and a before and after check.",
 "headline": "Drupal performance engineer agent",
 "subhead": "Give it your Drupal version, hosting details and speed test results for the slow pages. It reads the evidence and finds the real cause of each slowdown. You get ranked fixes for caching, queries, images and hosting, with a check to prove each one worked.",
 "job": {
  "id": "speed-up-store",
  "name": "Make your store load fast"
 },
 "level": "intermediate",
 "thinking": "high",
 "tested": true,
 "updated": "2026-11-03",
 "first_published": "2026-10-26",
 "inputs": [
  {
   "type": "question",
   "required": true,
   "label": "Question",
   "what": "the problem, decision or piece of work you want help with, and what a good outcome looks like"
  },
  {
   "type": "page_speed_report",
   "required": false,
   "label": "Page speed report",
   "what": "a PageSpeed Insights or Lighthouse result: real-user and lab speed numbers for each page tested"
  }
 ],
 "outputs": [
  {
   "type": "audit_report",
   "required": true,
   "label": "Audit report",
   "what": "findings with evidence, severity, missing inputs and next actions"
  },
  {
   "type": "plan",
   "required": true,
   "label": "Plan",
   "what": "a dated plan: what to do, in what order, with a decision rule for each step"
  }
 ],
 "you_give": [
  "Your Drupal version (10 or 11), PHP version and where it is hosted",
  "The addresses of the slowest pages",
  "A PageSpeed or Lighthouse mobile result for each, with the main scores (LCP, INP and CLS)",
  "The response headers for one slow page, from your browser's network tab (optional)",
  "Any slow query list or profiler output, and the list of added modules (optional)"
 ],
 "you_get": [
  "A baseline of what is slow and what is already fine",
  "Findings ranked by gain, each with evidence, the fix, the risk and a check",
  "Cache settings fixes, so no cache has to be turned off",
  "Slow Views, queries, image and script fixes",
  "Hosting and PHP settings for your developer to check"
 ],
 "use_when": [
  "Your Drupal 10 or 11 site feels slow and a speed test shows a poor mobile score.",
  "A developer said \"turn off the cache\" to fix stale content, and you want a safer way.",
  "A page with a big View or a listing takes seconds to load.",
  "You want a fix list to hand to your developer or your host, in order of gain."
 ],
 "skip_when": [
  "Your site runs on WordPress. Use the WordPress performance reviewer.",
  "You run a store on another platform and have a PageSpeed report. Use the Store speed report analyst.",
  "The site is down right now, or a traffic spike is crashing it. Use the Incident response coordinator, and call your host."
 ],
 "output_sample": {
  "input": [
   "Your Drupal version, PHP version and hosting",
   "The addresses of your slowest pages",
   "A mobile speed test result for each page",
   "Response headers, a profiler output and your module list (optional)"
  ],
  "prerequisites": [
   "An AI that can read pasted text or files",
   "A developer or host who can make and test the changes"
  ],
  "output": [
   {
    "name": "Scope",
    "contains": "The site, versions, host and the pages being fixed."
   },
   {
    "name": "Baseline",
    "contains": "Speed scores and cache headers per page, recorded before any change."
   },
   {
    "name": "Findings, ranked by gain",
    "contains": "Each problem with the evidence, the fix, the risk and the check that proves it."
   },
   {
    "name": "Caching fixes",
    "contains": "What is uncached, why, and the cache tags, contexts or lifetime to set."
   },
   {
    "name": "Query and Views fixes",
    "contains": "Slow Views and queries, with rows loaded against rows shown and the fix."
   },
   {
    "name": "Front-end fixes",
    "contains": "Script, style and image problems with a fix for each."
   },
   {
    "name": "Hosting and PHP notes",
    "contains": "Settings to check with your developer or host."
   },
   {
    "name": "Assumptions and checks missed",
    "contains": "What the AI assumed and what it could not check."
   }
  ]
 },
 "output_shape": "SCOPE\n  Site <address> | Drupal <version> | PHP <version> | Host <type> | Pages <list>\n\nBASELINE\n  <page> | LCP <value> | INP <value> | CLS <value> | Cache headers <Seen or MISSING>\n\nFINDINGS, RANKED BY GAIN\n  <number> | <problem> | <evidence you gave> | <fix> | <risk> | <check to prove it>\n\nCACHING FIXES\n  <what is uncached> | <cause> | <tags, contexts or lifetime to set>\n\nQUERY AND VIEWS FIXES\n  <View or query> | <rows loaded vs shown> | <fix>\n\nFRONT-END FIXES\n  <script, style or image> | <problem> | <fix>\n\nHOSTING AND PHP NOTES\n  <setting> | <current value> | <what to ask your developer or host>\n\nASSUMPTIONS AND CHECKS MISSED\n  <assumption> | <check that could not run>",
 "how_to_use": [
  "Download the pack from this page and add it to your AI as a skill. If you cannot, paste SKILL.md into a new chat, then paste references/source-agent.md.",
  "Run a free speed test on your slowest pages, such as PageSpeed Insights, on the mobile setting. Copy the main scores and the list of problems it names.",
  "In your browser, open your slowest page, open the Network tab in developer tools and copy the response headers, including X-Drupal-Cache and X-Drupal-Dynamic-Cache. Your developer can help. No code running by the AI is needed.",
  "Paste the scores, headers, version details and module list into the AI. Type \"Find the real causes. Rank them by gain. Mark anything I did not give you as MISSING.\"",
  "Check the first three findings against your own pages. Ask for the evidence line if any looks wrong.",
  "Give the fix list to your developer. Test each fix on a copy of the site first, and run the speed test again after each one."
 ],
 "checks": [
  "The result addresses your actual task and cites the evidence used.",
  "Examples, role-play experience and targets are kept separate from verified results.",
  "Claims of tests, memory, tool access or completed actions match what actually happened."
 ],
 "next": [
  {
   "name": "WordPress performance reviewer",
   "url": "https://useaiblocks.com/skills/agency-engineering-wordpress-performance",
   "why": "WordPress performance reviewer"
  },
  {
   "name": "Website performance fix ranker",
   "url": "https://useaiblocks.com/skills/speed-fix-ranker",
   "why": "Website performance fix ranker"
  },
  {
   "name": "WooCommerce speed repair planner",
   "url": "https://useaiblocks.com/skills/self-hosted-store-speed-fixer",
   "why": "WooCommerce speed repair planner"
  }
 ],
 "source": {
  "by": "Michael Sitarzewski and Agency Agents contributors",
  "repo": "msitarzewski/agency-agents",
  "url": "https://github.com/msitarzewski/agency-agents/blob/b37b5bb33b78f2c1d6567d98e25ca818e3259219/engineering/engineering-drupal-performance.md",
  "licence": "MIT",
  "original_name": "Drupal Performance Engineer",
  "commit": "b37b5bb33b78f2c1d6567d98e25ca818e3259219"
 },
 "credits": [
  {
   "title": "Drupal Performance Engineer",
   "by": "Michael Sitarzewski and Agency Agents contributors",
   "url": "https://github.com/msitarzewski/agency-agents/blob/b37b5bb33b78f2c1d6567d98e25ca818e3259219/engineering/engineering-drupal-performance.md",
   "used": "Original agent profile, preserved in references/source-agent.md; AI Blocks adds setup and review instructions."
  }
 ],
 "files": [
  "LICENSE",
  "references/source-agent.md",
  "SETUP.md",
  "source.json"
 ],
 "links": {
  "page": "https://useaiblocks.com/agents/agency-engineering-drupal-performance",
  "markdown": "https://useaiblocks.com/agents/agency-engineering-drupal-performance.md",
  "json": "https://useaiblocks.com/agents/agency-engineering-drupal-performance.json",
  "instructions": "https://useaiblocks.com/skills/agency-engineering-drupal-performance/SKILL.md",
  "download": "https://useaiblocks.com/skills/agency-engineering-drupal-performance.zip",
  "api_item": "https://useaiblocks.com/api/v1/items/agency-engineering-drupal-performance",
  "api_document": "https://useaiblocks.com/api/v1/documents/agent/agency-engineering-drupal-performance",
  "mcp": "https://useaiblocks.com/mcp"
 }
}
