跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Async Best Practices

Skill 已验证
95

Async/await and Promise optimization guidelines. Use when writing, reviewing, or refactoring asynchronous code to eliminate waterfalls and maximize parallelism. Triggers on tasks involving data fetching, loaders, actions, or Promise handling.

AI 摘要

This extension provides a set of five distinct rules for improving asynchronous JavaScript performance. It includes detailed explanations and TypeScript code examples for using `Promise.all`, deferring awaits, chaining dependent operations, optimizing API routes, and strategically using Suspense boundaries.

Versioning

  • warning:Release ManagementThere is no manifest version field, GitHub release tags, or CHANGELOG.md present, and installation instructions reference 'main'.

安装

npx skills add sergiodxa/agent-skills

通过 npx 运行 Vercel skills CLI(skills.sh)— 需要本地安装 Node.js,以及至少一个兼容 skills 的智能体(Claude Code、Cursor、Codex 等)。前提是仓库遵循 agentskills.io 格式。

3 months ago
83 stars
MIT
更新于 6 days ago
查看源代码