Communitygithub.com

Nextra — Next.js Dokumentations-Framework

Du bist Experte in Nextra, dem Next.js-basierten Dokumentations-Framework, das MDX-Dateien mit integrierter Volltextsuche, Dark Mode, i18n und Syntax-Highlighting rendert. Du hilfst Entwicklern beim Erstellen von Dokumentationsseiten, Blogs und Wissensdatenbanken, die von Next.js mit React-Komponenten-Unterstützung in Markdown betrieben werden.

Was ist Nextra — Next.js Dokumentations-Framework?

Nextra ist ein leistungsstarkes, Next.js-basiertes Framework, das speziell für die Erstellung von Dokumentationsseiten, Blogs und Wissensdatenbanken entwickelt wurde. Es rendert MDX-Dateien nativ und bietet sofort einsatzbereite Funktionen wie Volltextsuche (FlexSearch), Dark Mode, Internationalisierung (i18n), Syntax-Highlighting und die Einbindung von React-Komponenten direkt im Markdown. Entwickler können damit interaktive und modern gestaltete Dokumentationen erstellen, ohne separate Tools für Suche oder Theme-Verwaltung integrieren zu müssen. Nextra unterstützt Next.js-Features wie SSR, ISR und API-Routen und kann einfach auf Vercel oder anderen Plattformen deployt werden. Die Strukturierung der Navigation erfolgt über dateibasiertes Routing und `_meta.json`-Dateien, die die Sidebar-Reihenfolge und Labels steuern. Dank der integrierten Code-Block-Features (Copy-Button, Dateinamen, Zeilenhervorhebung) und der automatischen Dark-Mode-Anpassung eignet sich Nextra besonders für technische Dokumentationen und SDK-Handbücher.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/TerminalSkills/skills/nextra

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Was macht Nextra — Next.js Dokumentations-Framework?

Übersicht

Du bist Experte in Nextra, dem Next.js-basierten Dokumentations-Framework, das MDX-Dateien mit integrierter Volltextsuche, Dark Mode, i18n und Syntax-Highlighting rendert. Du hilfst Entwicklern beim Erstellen von Dokumentationsseiten, Blogs und Wissensdatenbanken, die von Next.js mit React-Komponenten-Unterstützung in Markdown betrieben werden.

Anleitung

Einrichtung

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

# Oder zu einem bestehenden Next.js-Projekt hinzufügen
npm install nextra nextra-theme-docs

Konfiguration

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

const withNextra = nextra({
  theme: "nextra-theme-docs",
  themeConfig: "./theme.config.tsx",
  defaultShowCopyCode: true,
  search: { codeblocks: true },        // Suche auch in Code-Blöcken
});

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-Seiten

---
title: Erste Schritte
description: Schnellstartanleitung für My SDK
---

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

# Erste Schritte

<Callout type="info">
  Diese Anleitung setzt voraus, dass Node.js 18+ installiert ist.
</Callout>

## Installation

<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>

## Schnellstart

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

Client initialisieren

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

Erste Anfrage stellen

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

Projektstruktur

Verwandte Ressourcen

Automatische Navigation

## Dateibasiertes Routing
pages/
  index.mdx           → /
  getting-started.mdx  → /getting-started
  guide/
    _meta.json         → Sidebar-Reihenfolge und -Bezeichnungen
    installation.mdx   → /guide/installation
    configuration.mdx  → /guide/configuration
  api/
    _meta.json
    reference.mdx      → /api/reference

## _meta.json — Sidebar-Reihenfolge steuern
{
  "installation": "Installation",
  "configuration": "Konfiguration",
  "authentication": "Authentifizierung",
  "-- Separator": { "type": "separator", "title": "Erweitert" },
  "plugins": "Plugins",
  "migration": "Migrationsanleitung"
}

Installation

npm install nextra nextra-theme-docs

Beispiele

Beispiel 1: Benutzer fragt nach Einrichtung von nextra

Benutzer: „Hilf mir, nextra für mein Projekt einzurichten“

Der Agent sollte:

  1. Systemanforderungen und Voraussetzungen prüfen
  2. nextra installieren oder konfigurieren
  3. Anfängliche Projektstruktur einrichten
  4. Überprüfen, ob die Einrichtung korrekt funktioniert

Beispiel 2: Benutzer möchte eine Funktion mit nextra bauen

Benutzer: „Erstelle ein Dashboard mit nextra“

Der Agent sollte:

  1. Die Komponente oder Konfiguration erstellen
  2. Mit der entsprechenden Datenquelle verbinden
  3. Die angeforderte Funktion implementieren
  4. Die Ausgabe testen und validieren

Richtlinien

  1. MDX für Interaktivität — Verwende React-Komponenten in der Dokumentation (Tabs, Callouts, interaktive Beispiele); MDX macht dies nahtlos möglich
  2. _meta.json für Struktur — Steuere die Sidebar-Reihenfolge und -Bezeichnungen mit _meta.json; verlasse dich nicht auf die alphabetische Dateianordnung
  3. Integrierte Suche — Nextra enthält eine FlexSearch-basierte Volltextsuche; für kleine bis mittlere Seiten ist keine Algolia-Einrichtung erforderlich
  4. Next.js-Funktionen — Du erhältst SSR, ISR, API-Routen und das gesamte Next.js-Ökosystem; nützlich für interaktive Dokumentationen
  5. Code-Block-Funktionen — Aktiviere defaultShowCopyCode, Dateinamen-Labels und Zeilenhervorhebung in Code-Blöcken
  6. Dark Mode integriert — Das Docs-Theme von Nextra enthält einen Dark-Mode-Schalter; alle Komponenten passen sich automatisch an
  7. i18n-Unterstützung — Integrierte Internationalisierung; erstelle Sprachordner (en/, ja/, zh/) mit derselben Struktur
  8. Auf Vercel deployen — Ein-Klick-Deployment; automatische Preview-Deployments für jeden Pull-Request mit Dokumentationsänderungen

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

Verwandte Skills