Add hosting-plans-helper skill for plan and pricing answers#4010
Open
gavande1 wants to merge 10 commits into
Open
Add hosting-plans-helper skill for plan and pricing answers#4010gavande1 wants to merge 10 commits into
gavande1 wants to merge 10 commits into
Conversation
bcotrim
reviewed
Jun 30, 2026
bcotrim
left a comment
Contributor
There was a problem hiding this comment.
Some feedback from testing:
- ✅ Skill is consistently triggered when asking about hosting/plans.
⚠️ It still says Personal/Premium can’t install plugins — but plans/features lists install-plugins on Personal and up. So it’s answering from memory and contradicting the fetched data, which is the exact thing the skill is meant to prevent.⚠️ The slug in wpcom/v2/plans/features (premium) doesn’t match the key in wpcom/v2/products (value_bundle) — and there’s no shared field to join on, so the agent can only guess the price mapping (Premium → value_bundle shares no substring, so that one’s especially unreliable). Could we add the product slug to plans/features so consumers can join directly?
…mattic/studio into stu-1940-hosting-plans-helper-skill
Collaborator
📊 Performance Test ResultsComparing 682fe94 vs trunk app-size
site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff) |
Contributor
Author
|
@bcotrim Thanks for testing. I addressed both points. The plan guardrail is now a top-level rule that forbids answering plan questions from memory and calls out the plugins case specifically. For the price join, the backend now returns |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issues
How AI was used in this PR
AI assisted with investigating the WordPress.com plans and products APIs, and with drafting the skill, the system-prompt guardrail, and the tests. I reviewed all changes.
Proposed Changes
Studio Code answered WordPress.com plan, pricing, and feature questions from stale training knowledge, so it recommended renamed plans and incorrect feature gating. This adds a
hosting-plans-helperskill and a system-prompt rule that requires the agent to answer plan, pricing, and feature questions from current data instead of memory. The skill reads plan names and per-tier features fromwpcom/v2/plans/featuresand prices fromwpcom/v2/products, then answers directly without citing the source.Note: the skill depends on a new
wpcom/v2/plans/featuresendpoint that does not exist yet (separate backend work). Until it ships, the feature fetch returns nothing; the guardrail and price path are already in place.Testing Instructions
hosting-plans-helperappears in the Skill tool list.CleanShot.2026-06-30.at.18.29.45.mp4
Pre-merge Checklist
npm run typecheckpasses)