nextra
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "nextra":https://skillpi.com/zh/skills/deepskill-acf90d8e94fcdcba791031f45f0cc3b3cf355b5c5dfa6ec85c154d1b34511a37。安装前核对上游来源和版本:https://github.com/TerminalSkills/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
Nextra(基于 Next.js 的静态站点生成器)用于构建文档和内容网站,适合创建文档站点、配置 Nextra 主题、添加 MDX 内容、设置搜索或部署 Nextra 项目。
介绍来源: third_party · TerminalSkills · 1.0.0 参考来源
SkillPi 解读
- 软件、账号及付费要求
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
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
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- Nextra 是 Next.js 生态中广泛使用的文档框架,解决开发者构建文档站点的明确需求
- 提供完整配置、MDX 支持、搜索、部署等实用功能,属于明确场景的通用工具
亮点
- description 明确描述适用场景:创建文档站点、配置主题、添加 MDX、设置搜索、部署
- 覆盖多种变体,边界清晰,不易误触
亮点
- 结构完整:Overview, Instructions, Setup, Configuration, MDX Pages, Auto-Navigation, Installation, Examples, Guidelines
- 有端到端示例,frontmatter 完整,单文件长度合理
亮点
- 工具来源明确,参数正确,覆盖主要异常,不可逆操作有确认机制
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 24, 28, 94, 104, 171 行 -
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 110 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- discord.gg
- github.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
翻译待完成,请参阅来源文档。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。