[docs] Add agent skills for styling, theming, Next.js, and Tailwind CSS integrations#48187
Open
mapache-salvaje wants to merge 17 commits intomui:masterfrom
Open
[docs] Add agent skills for styling, theming, Next.js, and Tailwind CSS integrations#48187mapache-salvaje wants to merge 17 commits intomui:masterfrom
mapache-salvaje wants to merge 17 commits intomui:masterfrom
Conversation
Netlify deploy previewBundle size report
|
Janpot
reviewed
Apr 3, 2026
|
|
||
| export default function Page() { | ||
| return ( | ||
| <Suspense fallback={null}> |
Member
There was a problem hiding this comment.
imo fallback={null} is a particularly bad pattern as it can cause layout shift. e.g. Here where we just hide the Toolbar during hydration and then show it on first render. If we recommend this pattern, we should probably give full examples of the components in a way that prevents layout shift.
Contributor
Author
There was a problem hiding this comment.
@Janpot updated with dimension-stable suspense fallback instead of null, as well as a note explaining why.
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.
This PR adds a batch of 4 agent skills to the repo based on some of the most common issues that users face:
The style and structure mirrors that of Vercel's collection of agent skills, but I'm not married to those particulars.
I tested these by creating a spec for a full-fledged internal dashboard with requirements that would lead an LLM to face issues if they don't have context about the list items above. I gave the spec to multiple agents, with and without access to the skill files, and had them build out MVPs. Those without the skill files frequently got stuck on common expected issues and took significantly longer to get an app running than those with the skill files, which were able to avoid those pitfalls entirely. When the skill-less LLMs were given the skills after the fact, they confirmed that the additional context would have been useful.
In one instance, an LLM tripped over the Next.js integration as it relates to Suspense, so I had it suggest improvements we could make to the Next.js integration page so others might avoid that issue. I've included that in this PR as well.