Communitygithub.com

ComeOnOliver/skillshub

你是 Nextra 的專家,這是一個基於 Next.js 的文件框架,可渲染 MDX 檔案,並內建全文搜尋、深色模式、國際化和語法高亮。你協助開發者使用 Markdown 中的 React 元件,建立由 Next.js 驅動的文件網站、部落格和知識庫。

skillshub 是什麼?

這個技能教導 AI 代理如何指導使用者建立和設定由 Nextra 驅動的文件網站。Nextra 是一個建構在 Next.js 上的框架,可將 MDX 檔案(在 Markdown 中使用 JSX)轉譯為功能完整的靜態或動態網站,內建如 FlexSearch 全文搜尋、深色模式切換、i18n 支援和語法高亮等功能。該技能提供逐步安裝指引,使用 `create-next-app` 或手動新增到現有專案、詳細的 `next.config.mjs` 和 `theme.config.tsx` 配置,以及示範如何使用 `Callout`、`Tabs`、`Steps`、`Cards` 和 `FileTree` 等 React 元件建立豐富的 MDX 頁面。此外,它涵蓋了基於檔案的頁面路由、使用 `_meta.json` 控制側邊欄、以及利用 Next.js 的 SSR 和 Vercel 部署等進階主題。透過內建的測試案例和指引,AI 代理可以自動化設定、功能建置和疑難排解,從而顯著簡化開發者建立高品質文件網站的流程。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/TerminalSkills/skills/nextra

在你喜歡的 AI 中提問

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

說明文件

Nextra — Next.js 文件框架

概述

你是 Nextra 的專家,這是一個基於 Next.js 的文件框架,可渲染 MDX 檔案,並內建全文搜尋、深色模式、國際化和語法高亮。你協助開發者使用 Markdown 中的 React 元件,建立由 Next.js 驅動的文件網站、部落格和知識庫。

指示

設定

npx create-next-app my-docs --example https://github.com/shuding/nextra-docs-template
cd my-docs && npm run dev

# 或新增到現有的 Next.js 專案
npm install nextra nextra-theme-docs

配置

// next.config.mjs
import nextra from "nextra";

const withNextra = nextra({
  theme: "nextra-theme-docs",
  themeConfig: "./theme.config.tsx",
  defaultShowCopyCode: true,
  search: { codeblocks: true },        // 也搜尋程式碼區塊內部
});

export default withNextra({
  reactStrictMode: true,
});
// theme.config.tsx
import { DocsThemeConfig } from "nextra-theme-docs";

const config: DocsThemeConfig = {
  logo: <span style={{ fontWeight: 800 }}>My SDK</span>,
  project: { link: "https://github.com/org/repo" },
  chat: { link: "https://discord.gg/xxx" },
  docsRepositoryBase: "https://github.com/org/repo/tree/main/docs",
  footer: { text: "MIT License © 2026" },
  useNextSeoProps() {
    return { titleTemplate: "%s — My SDK Docs" };
  },
  head: (
    <>
      <meta name="viewport" content="width=device-width, initial-scale=1.0" />
      <link rel="icon" href="/favicon.ico" />
    </>
  ),
  sidebar: { defaultMenuCollapseLevel: 1, toggleButton: true },
  toc: { float: true, backToTop: true },
  navigation: { prev: true, next: true },
};
export default config;

MDX 頁面

---
title: 開始使用
description: My SDK 快速入門指南
---

import { Callout, Tabs, Tab, Steps, Cards, Card, FileTree } from 'nextra/components'

# 開始使用

<Callout type="info">
  本指南假設您已安裝 Node.js 18+。
</Callout>

## 安裝

<Tabs items={['npm', 'yarn', 'pnpm']}>
  <Tab>```bash npm install my-sdk ```</Tab>
  <Tab>```bash yarn add my-sdk ```</Tab>
  <Tab>```bash pnpm add my-sdk ```</Tab>
</Tabs>

## 快速開始

<Steps>
### 安裝 SDK
```bash
npm install my-sdk

初始化客戶端

import { SDK } from "my-sdk";
const client = new SDK({ apiKey: process.env.API_KEY });

發出您的第一個請求

const users = await client.users.list();
console.log(users);

專案結構

相關資源

自動導航

## 基於檔案的路由
pages/
  index.mdx           → /
  getting-started.mdx  → /getting-started
  guide/
    _meta.json         → 側邊欄順序與標籤
    installation.mdx   → /guide/installation
    configuration.mdx  → /guide/configuration
  api/
    _meta.json
    reference.mdx      → /api/reference

## _meta.json — 控制側邊欄順序
{
  "installation": "安裝",
  "configuration": "配置",
  "authentication": "認證",
  "-- Separator": { "type": "separator", "title": "進階" },
  "plugins": "外掛",
  "migration": "遷移指南"
}

安裝

npm install nextra nextra-theme-docs

範例

範例 1:使用者要求設定 nextra

使用者:「幫我為我的專案設定 nextra」

代理應:

  1. 檢查系統需求和先決條件
  2. 安裝或配置 nextra
  3. 建立初始專案結構
  4. 驗證設定是否正常運作

範例 2:使用者要求使用 nextra 建立功能

使用者:「使用 nextra 建立一個儀表板」

代理應:

  1. 搭建元件或配置的支架
  2. 連接到適當的資料來源
  3. 實作所要求的功能
  4. 測試並驗證輸出

指南

  1. 使用 MDX 增加互動性 — 在文件中使用 React 元件(標籤、提示框、互動式範例);MDX 讓這一切無縫銜接
  2. 使用 _meta.json 組織內容 — 使用 _meta.json 控制側邊欄順序與標籤;不要依賴字母順序排列檔案
  3. 內建搜尋 — Nextra 包含基於 FlexSearch 的全文搜尋;中小型網站無需設定 Algolia
  4. Next.js 功能 — 您可以獲得 SSR、ISR、API 路由以及完整的 Next.js 生態系;對互動式文件很有用
  5. 程式碼區塊功能 — 啟用 defaultShowCopyCode、檔名標籤和程式碼區塊內的行號高亮
  6. 內建深色模式 — Nextra 的文件主題包含深色模式切換;所有元件會自動適配
  7. i18n 支援 — 內建國際化;建立具有相同結構的語言資料夾(en/、ja/、zh/)
  8. 部署到 Vercel — 一鍵部署;每次文件變更的 PR 都會自動預覽部署

Individual skills in this repo

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

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

相關技能