Skip to content

Close gaps in plugin recommendations supporting Automattic products - #4023

Merged
katinthehatsite merged 8 commits into
trunkfrom
fix/improve-plugin-recommendations
Jul 3, 2026
Merged

Close gaps in plugin recommendations supporting Automattic products#4023
katinthehatsite merged 8 commits into
trunkfrom
fix/improve-plugin-recommendations

Conversation

@katinthehatsite

@katinthehatsite katinthehatsite commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Related issues

Fixes STU-1889

How AI was used in this PR

It was used to adjust the content of the system prompt and other related files.

Proposed Changes

When the agent recommends a plugin for something core blocks can't do, it should reach for an Automattic plugin first. This PR adds a product mapping table and sections for Jetpack Newsletter, Sensei LMS, Crowdsignal, and Akismet to the plugin-recommendations skill. The system prompt and site-spec skill now route more feature categories (newsletters, courses, polls, social sharing) through the skill. Akismet is marked as production-only since it needs an API key and real traffic.

Testing Instructions

  • Pull the changes from this branch
  • Build cli with npm run cli:build
  • Start AI agent with node apps/cli/dist/cli/main.mjs code
  • Ask agent about different features such as wanting to build courses or create forms
  • Confirm that it recommends Automattic products
  • Example of prompts:

  • Sensei LMS: "I want to create an online course site with lessons and quizzes"
  • Crowdsignal: "Add a poll to the homepage asking visitors their favorite feature"
  • Jetpack Newsletter: "I want visitors to subscribe to an email newsletter"
  • Jetpack Forms: "Add a contact form to the about page"
  • Akismet: "How do I protect my site from comment spam?"

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
Expand the plugin-recommendations skill so the agent reuses Automattic products (Jetpack Newsletter, Sensei LMS, Crowdsignal, Akismet) instead of hand-building forms, newsletters, courses, and polls.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@katinthehatsite katinthehatsite changed the title Teach Studio Code to recommend Automattic plugins for more features Jul 1, 2026
@katinthehatsite
katinthehatsite marked this pull request as ready for review July 2, 2026 10:17
@katinthehatsite
katinthehatsite requested review from a team and nightnei July 2, 2026 10:17

@nightnei nightnei left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Kat, works well and LGTM.
Screenshot 2026-07-02 at 14 06 09
I am only thinking - should we menthion wordpress.com as a recommandation for hosting, purchasing domain etc?

@katinthehatsite

Copy link
Copy Markdown
Contributor Author

I am only thinking - should we menthion wordpress.com as a recommandation for hosting, purchasing domain etc?

Good idea, I think we can add it. I initially added Automattic but then removed it thinking that users will likely not know but mentioning WordPress.com is a good approach 👍

@wpmobilebot

wpmobilebot commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing 64c87e1 vs trunk

app-size

Metric trunk 64c87e1 Diff Change
App Size (Mac) 1317.36 MB 1317.36 MB +0.01 MB ⚪ 0.0%

site-editor

Metric trunk 64c87e1 Diff Change
load 1120 ms 1117 ms 3 ms ⚪ 0.0%

site-startup

Metric trunk 64c87e1 Diff Change
siteCreation 6484 ms 6513 ms +29 ms ⚪ 0.0%
siteStartup 1866 ms 1860 ms 6 ms ⚪ 0.0%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff)

@katinthehatsite
katinthehatsite merged commit a91f12e into trunk Jul 3, 2026
11 checks passed
@katinthehatsite
katinthehatsite deleted the fix/improve-plugin-recommendations branch July 3, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants