Skip to content

Action Plans

Action Plans provide a structured remediation prompt for every scanned page. They can be handed directly to an AI coding agent (e.g. Cursor, Windsurf, GitHub Copilot) to implement performance, accessibility, and security fixes.

PerfLeaf generates action plans through a five-stage deterministic pipeline:

  1. Normalisation — Raw page data (Core Web Vitals, assets, accessibility, security, DOM, GEO, SEO) is normalised into a unified issue list with consistent categories.
  2. Scoring & Ranking — Each issue receives an impact score (0–100) based on metric deltas, category effort, grade boosts, and regression boosts. Issues are sorted by composite score (impact ÷ effort).
  3. Recommendation Enrichment — Deterministic recommendations are merged into scored issues, adding remediation actions and learn-more URLs.
  4. Prompt Generation — A structured AIAgentPrompt is built with full page context and prioritised tasks.
  5. AI Enrichment (paid plans only) — Tasks are sent to the AI service for improved descriptions, code examples, and additional remediation steps.

From a Page Report:

  1. Click Generate Action Plan.
  2. PerfLeaf runs the full pipeline and stores the result.
  3. You’re taken to the action plan view with the prioritised task list.

Each task in the action plan includes:

FieldDescription
Issue Categorye.g. render_blocking, javascript_optimisation, accessibility_critical
Priority RankSorted by composite score
Measurable GoalSpecific metric improvement target
Technical ObjectiveWhat to implement
Performance TargetQuantified success criteria
ConstraintsWhat must not break
Acceptance CriteriaVerification steps
DOM SelectorsRelevant elements (when available)
Regression RisksSide-effects to watch for
Remediation ActionsStep-by-step fix instructions
AI HintsCode examples from deterministic + AI enrichment
Learn More URLReference documentation

Every action plan includes a scoring breakdown showing:

  • Model version and weight configuration
  • Per-issue explanation strings (e.g. base=45, sizeImpact=+12, gradeBoost=+8)

This ensures full transparency into how issues are prioritised.

BoostConditionEffect
Grade boostCategory has a C or D grade+15% to impact score
Regression boostMetric degraded vs. previous report+10% to impact score

For paid plans with the aiActionPlanEnrichment feature enabled, the top tasks are sent to the AI service which returns:

  • Improved descriptions tailored to the detected tech stack
  • Code examples specific to the framework in use
  • Additional remediation steps

If the AI service is unavailable, the deterministic plan is stored unchanged.

FeatureSprout (Free)GrowBloom
Deterministic action plan
Recommendation enrichment
AI enrichment

Action plans are accessible at /dashboard/action-plans/[id]. From there you can:

Each action plan has an associated Prompt Generation page that formats the plan as a prompt ready for AI coding agents. See Prompt Generation for details.