nextra
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "nextra" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-acf90d8e94fcdcba791031f45f0cc3b3cf355b5c5dfa6ec85c154d1b34511a37. Verify the upstream source and version against https://github.com/TerminalSkills/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Nextra, a Next.js–based static site generator, is used to build documentation and content websites. It is suitable for creating docs sites, configuring Nextra themes, adding MDX content, setting up search, or deploying Nextra projects.
Introduction source: third_party · TerminalSkills · 1.0.0 Reference
SkillPi interpretation
- Software, accounts and paid services
- ```bash npx create-next-app my-docs --example https://github.com/shuding/nextra-docs-template cd my-docs && npm run dev
- Testing
- Not tested
Browse files
Frontmatter
name: nextra
description: >-
Build documentation and content sites with Nextra, the Next.js-based static site generator. Use when a user asks to create docs sites, configure Nextra themes, add MDX content, set up search, or deploy Nextra projects.
license: Apache-2.0
compatibility: "No special requirements"
metadata:
author: terminal-skills
version: "1.0.0"
category: development
tags: ["documentation", "next-js", "mdx", "static-site", "docs-as-code"]Nextra — Next.js Documentation Framework
Overview
You are an expert in Nextra, the Next.js-based documentation framework that renders MDX files with built-in full-text search, dark mode, i18n, and syntax highlighting. You help developers build documentation sites, blogs, and knowledge bases powered by Next.js with React component support in Markdown.
Instructions
Setup
npx create-next-app my-docs --example https://github.com/shuding/nextra-docs-template
cd my-docs && npm run dev
# Or add to existing Next.js project
npm install nextra nextra-theme-docs
Configuration
// next.config.mjs
import nextra from "nextra";
const withNextra = nextra({
theme: "nextra-theme-docs",
themeConfig: "./theme.config.tsx",
defaultShowCopyCode: true,
search: { codeblocks: true }, // Search inside code blocks too
});
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 Pages
---
title: Getting Started
description: Quick start guide for My SDK
---
import { Callout, Tabs, Tab, Steps, Cards, Card, FileTree } from 'nextra/components'
# Getting Started
<Callout type="info">
This guide assumes you have Node.js 18+ installed.
</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>
## Quick Start
<Steps>
### Install the SDK
```bash
npm install my-sdk
Initialize the client
import { SDK } from "my-sdk";
const client = new SDK({ apiKey: process.env.API_KEY });
Make your first request
const users = await client.users.list();
console.log(users);
</Steps>
Project Structure
<FileTree> <FileTree.Folder name="src" defaultOpen> <FileTree.File name="index.ts" /> <FileTree.Folder name="lib"> <FileTree.File name="client.ts" /> <FileTree.File name="auth.ts" /> </FileTree.Folder> </FileTree.Folder> <FileTree.File name="package.json" /> </FileTree>
Related Resources
<Cards> <Card title="API Reference" href="/api" /> <Card title="Examples" href="/examples" /> <Card title="Changelog" href="/changelog" /> </Cards>
### Auto-Navigation
```markdown
## File-based routing
pages/
index.mdx → /
getting-started.mdx → /getting-started
guide/
_meta.json → Sidebar order and labels
installation.mdx → /guide/installation
configuration.mdx → /guide/configuration
api/
_meta.json
reference.mdx → /api/reference
## _meta.json — Control sidebar order
{
"installation": "Installation",
"configuration": "Configuration",
"authentication": "Authentication",
"-- Separator": { "type": "separator", "title": "Advanced" },
"plugins": "Plugins",
"migration": "Migration Guide"
}
Installation
npm install nextra nextra-theme-docs
Examples
Example 1: User asks to set up nextra
User: "Help me set up nextra for my project"
The agent should:
- Check system requirements and prerequisites
- Install or configure nextra
- Set up initial project structure
- Verify the setup works correctly
Example 2: User asks to build a feature with nextra
User: "Create a dashboard using nextra"
The agent should:
- Scaffold the component or configuration
- Connect to the appropriate data source
- Implement the requested feature
- Test and validate the output
Guidelines
- MDX for interactivity — Use React components in docs (tabs, callouts, interactive examples); MDX makes this seamless
- _meta.json for organization — Control sidebar order and labels with
_meta.json; don't rely on alphabetical file ordering - Built-in search — Nextra includes FlexSearch-based full-text search; no Algolia setup needed for small-medium sites
- Next.js features — You get SSR, ISR, API routes, and the full Next.js ecosystem; useful for interactive docs
- Code block features — Enable
defaultShowCopyCode, filename labels, and line highlighting in code blocks - Dark mode built-in — Nextra's docs theme includes dark mode toggle; all components adapt automatically
- i18n support — Built-in internationalization; create locale folders (en/, ja/, zh/) with the same structure
- Deploy on Vercel — One-click deployment; automatic preview deployments for every PR with documentation changes
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- Nextra 是 Next.js 生态中广泛使用的文档框架,解决开发者构建文档站点的明确需求
- 提供完整配置、MDX 支持、搜索、部署等实用功能,属于明确场景的通用工具
Highlights
- description 明确描述适用场景:创建文档站点、配置主题、添加 MDX、设置搜索、部署
- 覆盖多种变体,边界清晰,不易误触
Highlights
- 结构完整:Overview, Instructions, Setup, Configuration, MDX Pages, Auto-Navigation, Installation, Examples, Guidelines
- 有端到端示例,frontmatter 完整,单文件长度合理
Highlights
- 工具来源明确,参数正确,覆盖主要异常,不可逆操作有确认机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 24, 28, 94, 104, 171 -
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 110
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- discord.gg
- github.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
```bash npx create-next-app my-docs --example https://github.com/shuding/nextra-docs-template cd my-docs && npm run dev
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.