GitHub - vercel-labs/agent-skills
Key Points
- 1Agent Skills is a collection of packaged instructions and scripts designed to extend the capabilities of AI coding agents.
- 2It includes diverse skills such as `react-best-practices` for optimizing React/Next.js performance, `web-design-guidelines` for auditing UI code, and `vercel-deploy-claimable` for instant application deployment.
- 3Once installed, these skills are automatically available and utilized by agents when relevant tasks are detected, streamlining code development, review, and deployment workflows.
The vercel-labs/agent-skills repository presents a collection of packaged instructions and scripts, termed "skills," designed to extend the capabilities of AI coding agents. These skills adhere to a defined "Agent Skills format" and are intended to provide agents with specialized functionalities for development tasks.
The core methodology involves integrating these pre-defined skills into an AI agent's operational framework, enabling the agent to autonomously leverage them when relevant user tasks are detected. Each skill encapsulates specific knowledge, rules, and optional helper scripts to execute complex operations.
Key skills detailed include:
react-best-practices:
- Critical Impact: Eliminating waterfalls in data fetching and optimizing bundle size.
- High Impact: Enhancing server-side performance.
- Medium-High Impact: Optimizing client-side data fetching.
- Medium Impact: Improving re-render efficiency and overall rendering performance.
- Low-Medium Impact: Applying JavaScript micro-optimizations.
web-design-guidelines:
- Accessibility: Covering aspects like
aria-labels, semantic HTML, and keyboard handlers. - Focus States: Ensuring visible focus indicators and
focus-visiblepatterns. - Forms: Addressing
autocompleteattributes, validation, and error handling. - Animation: Incorporating
prefers-reduced-motionand compositor-friendly transforms. - Typography: Focusing on stylistic details such as curly quotes, ellipses, and tabular numbers.
- Images: Verifying proper dimensions, lazy loading, and
alttext. - Performance: Including virtualization techniques, prevention of layout thrashing, and
preconnectdirectives. - Navigation & State: Ensuring URL reflection of state and deep-linking capabilities.
- Dark Mode & Theming: Guidelines for
color-schemeandtheme-colormeta tags. - Touch & Interaction: Optimizing
touch-actionandtap-highlightbehavior. - Locale & i18n: Utilizing
Intl.DateTimeFormatandIntl.NumberFormatfor internationalization.
vercel-deploy-claimable:
claude.ai and Claude Desktop. The core methodology for deployment involves:
- Project Packaging: The project's files are programmatically bundled into a tarball.
- Framework Detection: The system automatically detects the project's framework by analyzing its
package.jsonfile, supporting over 40 frameworks (e.g., Next.js, Vite, Astro). Static HTML projects are also handled. - Exclusion: Sensitive or unnecessary directories, specifically
node_modulesand.git, are automatically excluded from the upload to optimize transfer size and security. - Upload & Deployment: The packaged project is then uploaded to the Vercel deployment service.
- Output: Upon successful deployment, the skill returns two crucial URLs: a preview URL for the live site (
https://skill-deploy-abc123.vercel.app) and a "claim URL" () that allows the user to transfer ownership of the deployment to their personal Vercel account, providing a seamless and secure handoff.
Installation of these skills is managed via npx add-skill vercel-labs/agent-skills, after which they become automatically available to the agent for relevant task execution. Each skill's internal structure typically comprises a SKILL.md file for instructions, an optional scripts/ directory for helper automation, and an optional references/ directory for supporting documentation. The project is distributed under an MIT License.