Communitygithub.com

Geruyang/agent-skills-library

用於在 Vercel 上建立、設定和部署微前端的指南。當使用者提及微前端、多重區域、跨團隊拆分應用程式、獨立部署、跨應用程式路由、增量遷移、在單一網域下組合多個前端、microfrontends.json、@vercel/microfrontends、微前端本地代理,或在 Vercel 專案之間進行基於路徑的路由時,請使用此技能。此外,當使用者詢問跨專案的共享佈局、微前端之間的導航、備用環境、資產前綴或功能標幟控制的路由時,也請使用此技能。

agent-skills-library 是什麼?

此技能提供了一個全面的指南,用於在 Vercel 上建立、配置和部署微前端架構。它將大型應用程式拆分為可獨立部署的單元,這些單元共同呈現為一個統一的應用程式,並利用 Vercel 的全球網路進行路由。其核心概念包括預設應用程式(擁有 microfrontends.json 並處理未匹配請求)、子應用程式(定義路徑模式)、資產前綴(防止靜態資源衝突)以及獨立部署。該技能支援多種框架,如 Next.js、SvelteKit、React Router 和 Vite,並通過 @vercel/microfrontends 套件進行整合。它還提供了 CLI 命令(例如 vercel microfrontends)來管理群組、拉取配置以及啟動本地開發代理,並包含詳細的參考文件,涵蓋配置、路徑路由、本地開發、管理、故障排除和安全等主題。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Geruyang/agent-skills-library/tree/HEAD/original-skills/x-openai-microfrontends-4b38860

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Vercel 微前端

將大型應用程式拆分為可獨立部署的單元,並使其呈現為一個統一的應用程式。Vercel 透過 microfrontends.json 在其全球網路上處理路由。

核心概念: 預設應用程式(擁有 microfrontends.json,處理未匹配請求)· 子應用程式(擁有 routing 路徑模式)· 資產前綴(防止靜態資產衝突)· 獨立部署。

支援的框架: Next.js(App Router + Pages Router)、SvelteKit、React Router、Vite — 全部透過 @vercel/microfrontends。

CLI(vercel microfrontends / vercel mf):

  • create-group — 建立新群組;預設為互動模式,或使用 --non-interactive 完全非互動模式(選項:--name、--project(可重複)、--default-app、--default-route、--project-default-route(可重複,格式:<專案>=<路徑>,非互動模式下每個非預設專案都需要)、--yes 跳過確認提示);注意:如果新增專案會超出免費方案限制,則會阻止 --non-interactive 模式 — 使用者必須以互動方式確認帳單變更
  • add-to-group — 將目前專案新增到現有群組;需要互動式終端機(選項:--group、--default-route)
  • remove-from-group — 從其群組中移除目前專案;需要互動式終端機(選項:--yes 僅跳過專案連結提示)
  • delete-group — 刪除群組及其所有設定,此操作不可逆;需要互動式終端機(選項:--group 預選群組)
  • inspect-group — 擷取群組元資料(專案名稱、框架、Git 儲存庫、根目錄);有助於自動化設定(選項:--group、--format=json、--config-file-name)
  • pull — 拉取遠端 microfrontends.json 以供本地開發使用(選項:--dpl)
  • microfrontends proxy — 本地開發代理 · microfrontends port — 顯示自動分配的連接埠

尋找詳細資訊

此技能在 references/ 目錄中包含詳細的參考文件。請不要一次讀取所有參考資料。 相反地,當使用者詢問特定主題時,請搜尋或 grep 相關的檔案:

主題參考檔案
入門指南、快速入門、框架設定、microfrontends.json 結構、欄位、命名、範例references/configuration.md
路徑表達式、資產前綴、功能標幟控制的路由、中介軟體references/path-routing.md
本地代理設定、多儲存庫配置、Turborepo、連接埠、部署保護references/local-development.md
檢查群組(inspect-group)、新增/移除專案、備用環境、導航、可觀測性references/managing-microfrontends.md
測試工具(validateMiddlewareConfig、validateRouting 等)、除錯標頭、常見問題references/troubleshooting.md
部署保護、Vercel Firewall、微前端的 WAF 規則references/security.md

當使用者詢問特定主題時,請使用 grep 或搜尋相關的參考檔案來尋找答案,而不要將所有參考資料載入上下文。

Individual skills in this repo

This repo contains 12 individual skills — each has its own dedicated page.

Geruyang/agent-skills-library

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

Geruyang/agent-skills-library

Set up Tailwind CSS v4 in Expo with react-native-css and NativeWind v5 for universal styling

Geruyang/agent-skills-library

Use for new frontend applications, dashboards, games, creative websites, hero sections, and visually driven UI from scratch, or when the user explicitly asks for a redesign/restyle/modernization. Builds from clean, airy, high-taste, readable image-generated concept design with section-specific references, faithful implementation, and browser testing.

Geruyang/agent-skills-library

Use when testing, debugging, or making targeted improvements to rendered frontend apps through the Build Web Apps or web dev plugin: local dev servers, UI regressions, interaction bugs, console errors, responsive layout, and visual QA. Check whether the Browser plugin is available and use it first when it is; otherwise use regular Playwright with the recorded reason.

Geruyang/agent-skills-library

Design UI surfaces for browser games. Use when the user asks for HUDs, menus, overlays, responsive layouts, or visual direction that must protect the playfield.

Geruyang/agent-skills-library

GSAP animation reference for HyperFrames. Covers gsap.to(), from(), fromTo(), easing, stagger, defaults, timelines (gsap.timeline(), position parameter, labels, nesting, playback), and performance (transforms, will-change, quickTo). Use when writing GSAP animations in HyperFrames compositions.

Geruyang/agent-skills-library

Next.js App Router expert guidance. Use when building, debugging, or architecting Next.js applications — routing, Server Components, Server Actions, Cache Components, layouts, middleware/proxy, data fetching, rendering strategies, and deployment on Vercel.

Geruyang/agent-skills-library

Use when sizing Public Equity Investing positions, finding equity hedges, or building an integrated position-and-hedge risk plan from a listed-equity thesis. Do not use for thesis construction, standalone event underwriting, trade execution, personal investment advice, or credit-instrument risk.

Geruyang/agent-skills-library

Integrate data visualizations into React and Next.js applications. Use when the user needs chart components, UML-like or architecture diagram components, React integration patterns, Next.js client or server boundaries, hydration-safe rendering, lazy loading, framework-aware performance, scroll-driven visual stories, or export guidance.

Geruyang/agent-skills-library

shadcn/ui expert guidance — CLI, component installation, composition patterns, custom registries, theming, Tailwind CSS integration, and high-quality interface design. Use when initializing shadcn, adding components, composing product UI, building custom registries, configuring themes, or troubleshooting component issues.

Geruyang/agent-skills-library

v0 by Vercel expert guidance. Use when discussing AI code generation, generating UI components from prompts, v0 CLI usage, v0 SDK/API integration, or integrating v0 into development workflows with GitHub and Vercel deployment.

Geruyang/agent-skills-library

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", or "switch to --preset".

相關技能