Turn weekly Ahrefs site audits into Linear tickets

By General Input

Every Monday morning, pull this week's Ahrefs site audit, group related URLs into clean tickets, and route them to your engineering team in Linear.

Integrations

  • Ahrefs
  • Linear

Type

Agentic Task

Categories

  • Engineering
  • Marketing

Every Monday at 8am, turn the latest Ahrefs Site Audit results for our tracked project into clean technical SEO tickets in Linear for the engineering team. The goal is that on Monday morning, engineers see only the new, real, deduped work, never a flood of one ticket per affected URL.

What the agent should do, in order:

1. Pull the overall site health using the Ahrefs Get Site Audit Health Score operation so we know the current trend for our project.

2. Get the currently flagged issues using Ahrefs List Site Audit Issues. Keep only Error and Warning severities. Drop Notice-level issues entirely. If nothing Error or Warning is open, exit cleanly with no tickets filed.

3. For each remaining issue, use Ahrefs Get Site Audit Page Explorer to pull the list of affected URLs for that issue. Cap the per-issue URL fetch at a sensible number (a few hundred is fine, we do not need every URL for a pattern issue).

4. Group related pages so that pattern issues become a single ticket. A broken redirect chain or a missing canonical that spans 50 URLs is one ticket titled something like "Fix missing canonicals on /blog/* (47 URLs)", not 50 individual tickets.

5. Dedupe against previous runs. Before filing anything, look up open and recently closed Linear tickets in the configured team with the configured label, and skip any issue whose set of affected pages is already covered by an existing ticket. Only file something when it represents new or materially changed work.

6. For each surviving issue, file a Linear ticket using the Linear Create Issue operation with all of the following:

- A clear, specific title (e.g. "Fix 4xx errors on 12 product pages").

- A Markdown description that explains the SEO impact in plain English (why this hurts crawl, indexing, or rankings), the recommended fix from Ahrefs, and the list of affected URLs (cap the list at 25 and append "...and N more" if there are more).

- A priority derived from severity and reach: Error with many pages affected = Urgent, Error with few pages = High, Warning with many pages = Normal, Warning with few pages = Low.

- The configured label (default: seo).

- The configured Linear team.

Configuration the workflow needs from the user at setup time:

- Which Ahrefs Site Audit project to pull from.

- Which Linear team to file tickets in.

- Which Linear label to apply (default: seo).

- The page-count thresholds for the priority ladder (with sensible defaults so it works out of the box).

Trigger: cron, weekly, Monday 8am in the user's local timezone. Ahrefs does not support per-issue webhooks, so a weekly cron matches typical site audit crawl cadence. If the workflow runs and the latest crawl is the same one already reported on in the prior run, exit cleanly without filing anything.

Related prompts

Explore more prompts
Catch feature flags that never got switched on in productionWeekly alert noise review board for incident.io on-callMorning triage board for your Kernel browser agent runsTrack every half finished LaunchDarkly rollout in one boardFind the customers stuck contacting support again and againTurn shipped Linear work into Intercom product announcementsVoice agent QA review board for your Hume EVI callsClose the loop between Front tickets and Linear bug fixesOpen a Heroku release war room the moment production looks wrongFind the themes Help Scout tags miss and file them in Linear