feat: Redesign Agent Skills callout with copy-prompt UX#16684
Open
feat: Redesign Agent Skills callout with copy-prompt UX#16684
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
4eadd19 to
1fe0ab3
Compare
9bd10b4 to
0407d8b
Compare
Introduce a new AgentSkillsCallout component that replaces the generic Expandable for the Next.js getting-started page. The new design features: - A prominent "Agent-Assisted Setup" card with a "Recommended" badge - A one-line prompt users can copy directly into their coding agent (points to skills.sentry.gg short URL) - Collapsed by default with an expandable section for full skills package installation (dotagents + npx skills) - Purple color scheme matching the Sentry brand palette with proper light/dark mode support This is a POC applied only to the Next.js platform include (javascript.nextjs.mdx). Other platforms still use the old Expandable component and will be migrated separately. Also updates repo references from sentry-agent-skills to sentry-for-ai. Co-Authored-By: Claude <noreply@anthropic.com>
6817572 to
a58328e
Compare
Move install command rendering into the component using the existing CodeTabs and CodeBlock components instead of custom tab/pre markup. All MDX files now use self-closing <AgentSkillsCallout /> tags with no children — the component generates everything from the skill prop. Also replace raw <a> tags with next/link <Link> to fix lint warnings. Co-Authored-By: Claude <noreply@anthropic.com>
78ec599 to
ac6293a
Compare
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.
Redesign Agent Skills Callout
Replaces the old Expandable-based "Sentry Agent Skills" callout with a new AgentSkillsCallout component across all platform docs.
New design
How it works
The component takes just two props — everything else is derived internally:
skill→ generates prompt URL, dotagents --name, npx skills --skillplatformName→ used in description textChanges
Platforms covered
Co-Authored-By: Claude noreply@anthropic.com