frontend-excellence-sh-ah9ybz

针对 Frontendexcellence 的专用技能包,旨在帮助 AI Agent 更高效地完成与 Frontendexcellence 相关的任务(重复描述已合并)。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "frontend-excellence-sh-ah9ybz":https://skillpi.com/zh/skills/deepskill-d24d76b858a3873c90757096beb10139d1d9030e4902e9c6e666b38967f44377。安装前核对上游来源和版本:https://skillhub.cn/skills/user_3c6cb52e/frontend-excellence-sh-ah9ybz。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

针对 Frontendexcellence 的专用技能包,旨在帮助 AI Agent 更高效地完成与 Frontendexcellence 相关的任务(重复描述已合并)。

0 下载

介绍来源: third_party · user_3c6cb52e · 1.0.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
来源文档未说明。
输入和输出
来源文档未说明。
软件、账号及付费要求
来源文档未说明。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: Frontendexcellence
slug: frontend-excellence
version: 1.0.0
displayName: Frontendexcellence
description: >
  Frontendexcellence专用技能,帮助AI Agent高效完成相关任务。
  Frontendexcellence专用技能,帮助AI Agent高效完成相关任务。
summary: "Frontendexcellence专用技能,帮助AI Agent高效完成相关任务。"
license: MIT
category: 开发者工具
framework:
  - Claude Code
  - Codex
  - Hermes Agent
  - OpenClaw
  - QClaw
  - WorkBuddy
platform: multi-platform
homepage: "https://github.com/1991513ccie-png"
repository: "https://github.com/1991513ccie-png"

Frontend Excellence

React Server Components

Server Components run on the server and send rendered HTML to the client. They can directly access databases, filesystems, and internal APIs without exposing them to the browser.

// app/products/page.tsx (Server Component by default)
async function ProductsPage() {
  const products = await db.query("SELECT * FROM products WHERE active = true");
  return (
    <main>
      <h1>Products</h1>
      <ProductList products={products} />
      <AddToCartButton />  {/* Client Component */}
    </main>
  );
}

Rules:

  • Server Components cannot use useState, useEffect, or browser APIs
  • Mark interactive components with 'use client' at the top of the file
  • Pass serializable props from Server to Client Components (no functions, no classes)
  • Keep 'use client' boundary as deep in the tree as possible

Streaming SSR

import { Suspense } from 'react';

export default function Dashboard() {
  return (
    <div>
      <Header />  {/* renders immediately */}
      <Suspense fallback={<ChartSkeleton />}>
        <AnalyticsChart />  {/* streams when ready */}
      </Suspense>
      <Suspense fallback={<TableSkeleton />}>
        <RecentOrders />  {/* streams independently */}
      </Suspense>
    </div>
  );
}

Each Suspense boundary streams independently. Place boundaries around data-fetching components to avoid blocking the entire page.

Code Splitting

import dynamic from 'next/dynamic';

const HeavyEditor = dynamic(() => import('@/components/Editor'), {
  loading: () => <EditorSkeleton />,
  ssr: false,
});

const AdminPanel = dynamic(() => import('@/components/AdminPanel'));

Split on:

  • Route boundaries (automatic in Next.js App Router)
  • Conditionally rendered components (modals, drawers, admin panels)
  • Heavy libraries (chart libraries, rich text editors, maps)
  • Below-the-fold content

Bundle Optimization

// next.config.js
module.exports = {
  experimental: {
    optimizePackageImports: ['lucide-react', '@heroicons/react', 'lodash-es'],
  },
};

Checklist:

  • Run npx next build and review the output size per route
  • Use @next/bundle-analyzer to identify large dependencies
  • Replace moment with date-fns or dayjs (save ~200KB)
  • Import specific functions: import { debounce } from 'lodash-es/debounce'
  • Prefer CSS over JS for animations (no runtime cost)
  • Tree-shake icon libraries: import { Search } from 'lucide-react'

Core Web Vitals Targets

Metric Good Needs Work Poor
LCP (Largest Contentful Paint) <2.5s 2.5-4.0s >4.0s
INP (Interaction to Next Paint) <200ms 200-500ms >500ms
CLS (Cumulative Layout Shift) <0.1 0.1-0.25 >0.25

LCP Optimization

  • Preload hero images: <link rel="preload" as="image" href="..." />
  • Use priority prop on above-the-fold <Image> components
  • Inline critical CSS, defer non-critical stylesheets
  • Avoid client-side rendering for above-the-fold content
  • Set explicit width/height on images to prevent layout shifts

Image Optimization

import Image from 'next/image';

<Image
  src="/hero.jpg"
  alt="Descriptive alt text"
  width={1200}
  height={630}
  priority              // preload for LCP images
  sizes="(max-width: 768px) 100vw, 50vw"
  placeholder="blur"
  blurDataURL={base64}  // inline tiny placeholder
/>
  • Use next/image or equivalent (automatic WebP/AVIF, responsive srcset)
  • Set sizes attribute to avoid downloading oversized images
  • Use placeholder="blur" with a base64 data URL for perceived performance
  • Lazy load below-the-fold images (default behavior)

Font Loading Strategy

// app/layout.tsx
import { Inter } from 'next/font/google';

const inter = Inter({
  subsets: ['latin'],
  display: 'swap',       // show fallback font immediately
  preload: true,
  variable: '--font-inter',
});

export default function RootLayout({ children }) {
  return (
    <html className={inter.variable}>
      <body>{children}</body>
    </html>
  );
}
  • Use next/font for zero-CLS font loading with automatic subsetting
  • Set display: 'swap' to avoid invisible text during load
  • Self-host fonts instead of loading from Google CDN (saves DNS lookup)
  • Limit to 2 font families maximum

CLS Prevention

  • Always set width and height on images and videos
  • Use aspect-ratio CSS for responsive media containers
  • Reserve space for dynamic content (ads, embeds) with min-height
  • Avoid inserting content above existing content after load
  • Use CSS contain: layout for components that change size

Performance Monitoring

import { onCLS, onINP, onLCP } from 'web-vitals';

onCLS(console.log);
onINP(console.log);
onLCP(console.log);

Measure real user metrics (RUM), not just lab scores. Vercel Analytics and Google Search Console provide field data.

当前收录版本

1.0.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 提供全面的前端开发最佳实践指南
  • 涵盖 React Server Components、Streaming SSR、性能优化等核心主题
  • 包含详细的代码示例和优化策略
触发精准35/100

待提升项

  • 触发描述过于宽泛 原报告严重程度:重大

    description 内容重复且仅写'Frontendexcellence专用技能,帮助AI Agent高效完成相关任务',缺乏具体的使用场景和触发条件描述

    改进建议:建议明确描述 Skill 的具体使用场景,如'用于前端性能优化咨询'、'React 应用开发指导'等,并提供具体的触发关键词

结构规范88/100

待提升项

  • 缺少 When to Use 章节 原报告严重程度:轻微

    文档结构完整但缺少明确的使用场景说明章节

    改进建议:建议添加 When to Use 章节,说明在什么情况下使用此 Skill

亮点

  • frontmatter 完整,包含所有必要字段
  • 文档结构清晰,分章节详细说明各项技术
  • 提供丰富的代码示例和最佳实践
执行可靠82/100

亮点

  • 内容基于现代前端开发标准,技术准确
  • 提供可操作的优化建议和代码示例
  • 涵盖 Core Web Vitals 等关键性能指标
证据可验 (前四项均值)73/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 安装或获取外部依赖

    使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。

    主文档提及 · 第 105 行
文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • github.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

来源文档未说明。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。