next-bundle-optimizer
Audit and reduce Next.js browser initial-load work. Use for slow route startup, oversized client bundles, duplicate browser dependencies, or features that can wait for interaction.
使用场景/Cursor 开发必备
面向 Cursor 用户的入门组合:文件、GitHub、文档、浏览器。快速搭建 AI 编程工作流。
共匹配 6,490 个资源 · 第 12 / 136 页
Cursor 对 MCP 的支持是原生且开箱即用的:在 Settings → MCP 或项目根的 .cursor/mcp.json 中粘贴一段 JSON 即可接入任意 MCP Server。搭配 AgentHub 的一键配置生成器,从发现到接入通常不超过一分钟。
推荐的入门组合覆盖四类高频需求:Filesystem(读写项目文件)、GitHub(PR / Issue / diff)、Context7(最新框架文档,减少幻觉)、Playwright(浏览器验证与 E2E)。之后再按业务补充数据库、抓取或国内服务类 MCP。
本页列出的每个资源都附带 Cursor 专用配置片段:在 AgentHub 打开资源详情页 → 选择 Cursor Tab → 复制 JSON 粘贴即可,安装命令与鉴权环境变量一并给出。
Audit and reduce Next.js browser initial-load work. Use for slow route startup, oversized client bundles, duplicate browser dependencies, or features that can wait for interaction.
为 Next.js 创建 Git 分支、commit、push 和 GitHub pull request。当用户要求建分支、提交当前改动、开 PR 或草稿 PR、发布 pull request,或从 gh pr create / PR 模板问题中恢复时使用。涵盖 .github/pull_request_template.md、--body 格式、codex/ 分支命名以及 Codex 应用的 git 指令。
把已合并到 canary 的 Next.js pull request 回移植到更早的发布分支(如 next-16-2)。当用户要求 backport、cherry-pick 或为某 PR 号向旧 Next.js 版本开回移植 PR 时使用。流程包括定位已合并 PR 的 commit、从目标发布分支拉回移植分支、从 canary cherry-pick、验证并以发布分支为 base 开 PR。
在 Cache Components / PPR 下,为把 Next.js 路由做到即时导航设定 agent 循环,覆盖首次加载(hard navigation)与客户端导航(soft navigation)。把目标编码为一个失败的 @next/playwright instant() e2e 并逐路由跑绿;固化的测试随后可防回归。当需要让某路由导航即时(static shell 立即 commit)、修复 static shell 未被预渲染/服务/预取的路由、扩大 static shell 或修复首屏缓慢、诊断是哪个 Suspense boundary 让路由无法进入 static shell,或为某个路由编写 instant() e2e 守卫时使用。需要 Next.js 16.3+ 且启用 cacheComponents;版本过旧则先升级。
Diagnose GKE Cloud TPU multi-slice training hangs (Megascale `HANG_DETECTED` logs and hang monitored events) using the ML Diagnostics `Megascale XLA (MXLA) Hang Analyzer` (`gcloud alpha mldiagnostics monitored-events`) and 1-minute Cloud Monitoring multi-slice latency metrics (`kubernetes.io/container/multislice/*`). Distinguishes XLA compiler/HLO launch divergence and host data-input stalls from TPU chip, SparseCore, ICI, or network fabric faults. Use when multi-slice TPU training jobs freeze without progressing steps, emit `HANG_DETECTED`, or stall in collective operations. Don't use for gradual step-time throughput drops without hangs (use gke-ai-troubleshooting-tpu-performance-degradation) or pod preemption/eviction restarts (use gke-ai-troubleshooting-jobset-interruption).
按 Metabase 编码标准与最佳实践编写 TypeScript 和 JavaScript 代码。在开发或重构 TS/JS 代码时使用。
轮询 RSS、JSON API 与 GitHub,并以水位线去重。
GitHub 供应链取证:恢复、IOC 提取与报告。
Find evidence-backed simplifications in DeepSeek Harness code, APIs, configuration, tests, and prose; write or consolidate proposals, identify small inline cleanups, or assess simplifications from another branch. Use for removing dead, duplicated, speculative, or unnecessarily maintained behavior and infrastructure.
在调查或优化 DeepSeek Harness 性能、设计贴近真实的合成基准或 CI 性能门禁、剖析长会话或 Web 响应速度,或把性能 PR 的证据转化为经测量且不改变行为的修复时使用。
设计、评审并诊断 DeepSeek Harness 中可能因 CI 并发、宿主机共享资源、时钟、进程全局状态、子进程、网络监听或异步销毁而非确定性失败的测试与 fixture。在新增或修改存在此类风险的测试、排查 flaky CI、评审测试隔离时使用;准备提交的命令选取请另行使用 dsh-pre-push-checks。
用于向 Ghost 添加新的私有(开发者实验)feature flag,包括后端注册与设置界面开关。
Simplification audit or authorized codebase simplification whose stated objective is to remove accidental complexity. Use for evidence-backed deletion or consolidation of dead code, duplicate state, redundant APIs or layers, ownerless abstractions, obsolete compatibility or design records, and over-engineering in any language; also use for 代码简化 or 熵回收. Do not use for general code review, onboarding, style-only refactoring, or performance tuning.
分析分支或 PR,自动捕获其变更触及的每个 UI 界面前后截图,再做像素级差分呈现实际变化,并组装成可直接放进 PR 的前后对比拼图。通用且 diff 驱动:从 diff 推导捕获目标(变更的工具/路由 → URL)而非手工列举界面,「前」从基础分支捕获、「后」从头部分支捕获,仅保留视觉上确有差异的视图。每次对比自动裁剪到实际变化区域(差异像素包围盒),仅当变更覆盖大部分页面时才回退整页。用于前后截图、分支/PR 视觉差分、「给 PR 描述配截图」「展示 UI 改了什么」或 UI 变更并排对比。接受 PR 编号/URL(经 gh 解析)或分支名;默认当前分支对比其基础分支。参数:--scope <selector>、--base <ref|merge-base>、--theme light|dark|both、--all(捕获每条路由而非仅变更处)。
生成交互式 bash 向导,引导人类完成只有他们能做的步骤。适用于开通基础设施、配置凭据或 CI secret、操作陌生的第三方面板,或执行一次性迁移/切换。代理自己能完成的步骤不要调用本技能。
按 Sentry 的 MDX stories 格式创建或更新组件文档。当被要求“document a component”“add stories”“write component docs”“create an mdx file”“add a stories.mdx”,或为设计系统组件编写文档时使用。生成结构化 MDX,包含实时示例、无障碍指引,以及由 TypeScript 类型自动生成的 API 文档。
将 PowerToys UI 测试从 WinAppDriver/Selenium 迁移并稳定到 Microsoft.PowerToys.UITest.Next 与 winappcli。适用于移植、新建 UITest 工程、CI flaky 测试、本地 Hyper-V 虚拟机持续验证、可重置的干净基线运行、Settings IPC 鉴权/测试签名、Explorer/Shell 选择、预览 handler、缩略图提供程序、快捷键激活、有状态进程生命周期、WinUI/WebView 合成视觉基线,以及跨窗口/前台失焦问题。涵盖 API、脚手架、测试设计、诊断、agent 化执行与 CI 加固。关键词:UI test、UITestAutomation.Next、winappcli、WinAppDriver、Selenium、Settings IPC、Authenticode、local VM、Hyper-V、checkpoint、flaky、CI stability、WebView2。
Apply error-handling principles when designing or reviewing failures, recovery, retries, background tasks, and user-visible error reports.
Use this skill when the user wants to create a Model Context Protocol (MCP) server in Java or in a Spring Boot app. Also use it when the user wants AI agents, such as GitHub Copilot or Claude, to use Java code, an API, or a database. Use it even if the user does not say "MCP". The skill makes a Maven or Gradle project with the MCP Java SDK 2.x, tools, JUnit tests, and client configuration. Do not use it for an MCP client or for a server in another language.
启动、拆除并配置 OpenShell 的本地 Kubernetes 开发环境。使用 k3d(Docker 承载的 k3s)+ Skaffold + Helm。覆盖集群生命周期、可选附加组件(Keycloak OIDC、Envoy Gateway)、高可用测试与端口映射。触发词:local k8s、local cluster、k3d、skaffold、helm dev、start cluster、stop cluster、tear down cluster、delete cluster、create cluster、helm:k3s、helm:skaffold、local dev environment、dev cluster、k8s dev、envoy gateway local、keycloak local、high availability、HA。
Use before writing code for any Codewhale feature, upgrade, or refactor: find the existing owner of the behavior, bound the change to one reviewable slice, and fix the evidence bar before you start.
生成包含工具、资源和规范配置的完整 Python MCP server 项目。
Define or refactor Rust string-valued enums and their Serde adapters in litellm-rust, using Strum and serde_with while preserving parsing, wire values, and schemas
将现有网站与应用升级到高端品质。审查当前设计,识别 AI 生成的通用套路,在不破坏功能的前提下套用高端设计标准。兼容任意 CSS 框架或原生 CSS。
用于 Codex 模型/定价、定时任务、skills、设置、安装、排障、定制、自动化与自我知识——包括指代 Codex 的“you”“your”“this app”“this coding agent”——以及 OpenAI API/产品与 ChatGPT Work 的问题。也用于模型选型/迁移、prompt 撰写、SDK、Responses、Realtime、agents、evals 以及 Chat/Work/Codex 的对比。仅提到 Codex 的普通应用/软件任务不适用。
适用于所有 Streamlit 任务:创建、编辑、调试、美化、样式、主题、优化或部署 Streamlit 应用;也包括自定义组件、st.components.v2 以及 HTML/JS/CSS 工作。会从用户安装的 Streamlit(>=1.57)发现并加载版本匹配的参考文档。触发词:streamlit、st.、dashboard、app.py、beautify、style、CSS、color、background、theme、button、widget styling、custom component、st.components、CCv2、session state、performance、cache、fragment、slow rerun、deploy。
在无界面的远程网关上为远程 MCP 服务器手动完成 OAuth 授权。
Add Bootstrap 6 to a project and set it up for local development. Use when installing Bootstrap, adding Bootstrap to a new or existing project, or setting up Bootstrap's CSS and JavaScript via CDN or a package manager.
Build a Bootstrap 6 starter project using just npm and command-line tools (no bundler). Use when setting up Bootstrap with npm, compiling Bootstrap's Sass to CSS from the command line, or creating an npm-based Bootstrap project.
Include and bundle Bootstrap 6's CSS and JavaScript in a project using Vite. Use when setting up Bootstrap with Vite, bundling Bootstrap's Sass and JS through Vite, or creating a Vite-based Bootstrap project.
Include and bundle Bootstrap 6's CSS and JavaScript in a project using Parcel. Use when setting up Bootstrap with Parcel, bundling Bootstrap's Sass and JS through Parcel, or creating a Parcel-based Bootstrap project.
Include and bundle Bootstrap 6's CSS and JavaScript in a project using Webpack. Use when setting up Bootstrap with Webpack, configuring Webpack loaders for Bootstrap's Sass and JS, or creating a Webpack-based Bootstrap project.
Cuts a Bootstrap release from version preparation through npm, GitHub, NuGet, and documentation deployment. Use when a maintainer asks to release, publish, or ship Bootstrap, including prereleases such as v6.0.0-alpha.1.
Quality audit of a whole repo: bugs, security holes, what breaks under real load, risky code without tests, slow paths, and what to delete, merge or split. Ranked, each finding explained in plain English. One-shot report, changes nothing. Use for "audit this codebase", "review the whole repo", "find bloat", "what can I delete", /ponytail-audit.
Quality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.
强制采用真正可行的最懒方案:最简、最短、最少。模仿一位见惯一切资深工程师的姿态:先质疑任务是否根本不必存在(YAGNI),优先标准库而非自写代码、平台原生能力而非引依赖、一行而非五十行。支持强度档位:lite、full(默认)、ultra。适用于任何编码任务:编写、新增、重构、修复、审查、设计代码以及选择库或依赖。当用户说 ponytail、be lazy、lazy mode、最简方案、minimal solution、YAGNI、do less、shortest path,或抱怨过度设计、膨胀、模板代码、不必要的依赖时也应使用。不用于非编码请求(通识、文章、翻译、摘要、菜谱)。
审查 diff 中的过度工程。找出该删的东西:重复造的标准库、多余依赖、投机性抽象。每条发现一行。
Read Reddit: subreddits, search, threads, users. No browser.
使用 Imbue 的进化循环对提示词、正则、SQL/代码进行演化优化。
审查 Spec Kit 代码变更的正反用例覆盖、bug 修复的回归证据以及仓库术语一致性。在审查 diff 或 pull request 时使用。不用于实现变更,也不用于提交 GitHub review 操作。
在创建、编辑或删除组件、story、样式、CSS、主题、颜色或设计 token 之前——凡影响 UI 观感的一切——必须最先调用,无一例外。也用于启动或预览 Storybook 验证 UI、展示/浏览/列举组件、story 或 UI 状态的请求,以及文档、props 或用法查询。
在创建、编辑或删除组件、story、样式、CSS、主题、颜色或设计 token 之前——凡影响 UI 观感的一切——必须最先调用,无一例外。也用于启动或预览 Storybook 验证 UI、展示/浏览/列举组件、story 或 UI 状态的请求,以及文档、props 或用法查询。
编辑 TS/TSX/MTS 时遵循 TypeScript 风格与类型安全规范,包括 import、异步代码与错误抑制。
Field-tested methodology and concrete recipes for training and operating large-scale LLM/VLM/multi-modal models end to end - choosing and benchmarking accelerators, storage and network; SLURM/Kubernetes orchestration; maximizing training throughput and fitting models in memory; diagnosing and surviving training instabilities, NaN/Inf, and hardware/job failures; checkpointing and fault tolerance; inference performance and memory; debugging multi-node/ multi-GPU hangs; and writing/running tests. Use when the user is training or fine-tuning large models, hits low TFLOPS/MFU, OOM, slow dataloading, a loss spike/divergence, a NCCL/InfiniBand or multi-node hang, node/GPU failures, checkpoint or preemption problems, storage/network bottlenecks, or needs to pick GPUs/cloud/file-systems or size inference latency/throughput. Distilled from "Machine Learning Engineering", the latest version of which can be found at https://github.com/stas00/ml-engineering The latest SKILL.md version can be found at https://github.com/st
agent host 中定制启用(插件、MCP 服务器、agents、技能)的架构与来之不易的调试经验。适用于:改动定制的发现、发布、启用/禁用或传递给提供方 SDK 的方式;界面上定制显示的错误启用状态;被禁用的 MCP 服务器或插件仍然到达模型的情形。
当用户想要调研/research/搜索/search/查/找/look up 互联网上的任何内容时务必使用——例如“全网调研 X”“帮我调研一下 X”“查一下 X”“搜搜 X”“看看大家怎么评价 X”“X 上有什么讨论”“research this topic”。当用户提到任何平台或分享任何 URL/链接时也务必使用:小红书/xiaohongshu/xhs、Twitter/推特/X、B站/bilibili、Reddit、Facebook、Instagram、V2EX、LinkedIn/领英/招聘/求职/jobs、YouTube、GitHub code search、小宇宙播客、雪球/股票行情、RSS feeds 或任意网页 URL。覆盖 15 个平台、多后端路由(OpenCLI / 各平台 CLI / API),6 个渠道零配置。运行 `agent-reach doctor --json` 查看当前各平台的后端。不适用于:写报告/数据分析/翻译等内容加工(本 skill 只负责从互联网获取内容)、发帖/评论/点赞等写操作、已有专门 skill 的平台(应先用专门 skill)。【路由方式】SKILL.md 包含路由表和常用命令,复杂场景需按需阅读对应分类的 references/*.md。分类:search / social(小红书/推特/B站/V2EX/Reddit/Facebook/Instagram)/ career(LinkedIn) / dev(github) / web(网页/文章/RSS) / video(YouTube/B站/播客) / finance(雪球/股票)。
在编写、录制、更新、验证或排查 src/vs/platform/agentHost/test/node/e2e 下的 agent host 端到端测试时使用(这些黑盒测试通过 AHP 协议驱动整个 agent host,并借助 CapiReplayProxy 的录制/回放系统对接 Claude/Copilot/Codex)。涵盖新增跨提供方测试、SDK 升级后重新录制 fixture、跨平台 Azure 验证、对非确定性或平台相关测试加门禁,以及诊断回放缓存未命中。
以目标驱动、TDD 的流程将 Mem0 集成到现有仓库。自动检测仓库语言,并让用户在 Mem0 Platform(托管)与 Mem0 开源(自托管)之间选择。先写失败测试再做实现。产出本地功能分支和供配套验证技能使用的 .mem0-integration/ 产物。触发条件:用户说 "integrate mem0"、"add mem0 to this repo"、"wire mem0 into <repo>",或询问如何在现有项目中加入记忆。不触发:一般 SDK 使用(用 skill:mem0)、CLI 使用(用 mem0-cli)、Vercel AI SDK(用 skill:mem0-vercel-ai-sdk)。成功后调用 skill:mem0-test-integration 在同一工作区验证(松耦合)。
两者皆可:项目级 .cursor/mcp.json 随仓库共享给团队,全局 ~/.cursor/mcp.json 对本机所有项目生效。含密钥的配置建议放项目级并加入 .gitignore,或用环境变量引用。
每个启用的 MCP 都会向上下文注入工具定义,建议按项目启用、用完禁用不常用的服务器,把上下文留给真正需要的工具。
JSON 结构相同,差异主要在命令路径与环境变量写法(如 npx 与绝对路径、引号转义)。AgentHub 详情页会区分 stdio 与远程托管(streamable-http/SSE)两类接入方式。