document-writer by onmax/nuxt-skills
npx skills add https://github.com/onmax/nuxt-skills --skill document-writer遵循 Nuxt 官方网站的模式,为博客文章和文档提供写作指导。
覆盖规则:编写文档时,请保持正确的语法和完整的句子。此处不适用“为简洁而牺牲语法”的规则。
文档必须:
简洁性仍然重要,但绝不能以牺牲清晰度或正确性为代价。
对于组件和语法细节,请使用以下技能:
| 技能 | 用途 |
|---|---|
| nuxt-content | MDC 语法、散文组件、代码高亮 |
| nuxt-ui | 组件属性、主题化、UI 模式 |
| 参考文件 | 用途 |
|---|---|
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 语态、语气、句子结构 |
| references/content-patterns.md | 博客前置元数据、结构、组件模式 |
根据您的任务考虑加载以下参考文件:
请勿一次性加载所有文件。 仅加载与您当前任务相关的内容。
| 模式 | 示例 |
|---|---|
| 主语优先 | "useFetch 组合式函数处理数据获取。" |
| 祈使句 | "将以下内容添加到 nuxt.config.ts。" |
| 情境化 | "使用身份验证时,请配置..." |
| 动词 | 含义 |
|---|---|
can | 可选 |
should | 推荐 |
must | 必需 |
| 需求 | 组件 |
|---|---|
| 信息旁注 | ::note |
| 建议 | ::tip |
| 警告 | ::warning |
| 重要 | ::important |
| 行动号召 | :u-button{to="..." label="..."} |
| 多源代码 | ::code-group |
关于组件属性:请参阅 nuxt-ui 技能
#):不要使用反引号 —— 它们无法正确渲染# 身份验证入门
Nuxt Better Auth 提供了一种为您的应用程序添加身份验证的简单方法。
在您的 `nuxt.config.ts` 中配置该模块即可开始使用。
::note
身份验证需要数据库连接。详情请参阅[数据库设置](/docs/database)指南。
::
## 安装
将模块添加到您的项目:
~~~bash [Terminal]
pnpm add @onmax/nuxt-better-auth
~~~
该模块会自动导入 `useUserSession` 组合式函数。您可以从任何组件访问当前用户会话。
每周安装量
950
代码仓库
GitHub 星标数
606
首次出现
2026年1月19日
安全审计
安装于
opencode692
gemini-cli678
codex648
github-copilot637
cursor595
claude-code544
Writing guidance for blog posts and documentation following patterns from official Nuxt websites.
Override : When writing documentation, maintain proper grammar and complete sentences. The "sacrifice grammar for brevity" rule does NOT apply here.
Documentation must be:
Brevity is still valued, but never at the cost of clarity or correctness.
For component and syntax details, use these skills:
| Skill | Use For |
|---|---|
| nuxt-content | MDC syntax, prose components, code highlighting |
| nuxt-ui | Component props, theming, UI patterns |
| Reference | Purpose |
|---|---|
| references/writing-style.md | Voice, tone, sentence structure |
| references/content-patterns.md | Blog frontmatter, structure, component patterns |
Consider loading these reference files based on your task:
DO NOT load all files at once. Load only what's relevant to your current task.
| Pattern | Example |
|---|---|
| Subject-first | "The useFetch composable handles data fetching." |
| Imperative | "Add the following to nuxt.config.ts." |
| Contextual | "When using authentication, configure..." |
| Verb | Meaning |
|---|---|
can | Optional |
should | Recommended |
must | Required |
| Need | Component |
|---|---|
| Info aside | ::note |
| Suggestion | ::tip |
| Caution | ::warning |
| Required | ::important |
| CTA | :u-button{to="..." label="..."} |
| Multi-source code | ::code-group |
For component props: see nuxt-ui skill
#): No backticks — they don't render properly# Getting Started with Authentication
Nuxt Better Auth provides a simple way to add authentication to your application.
Configure the module in your `nuxt.config.ts` to get started.
::note
Authentication requires a database connection. See the [database setup](/docs/database) guide for details.
::
## Installation
Add the module to your project:
~~~bash [Terminal]
pnpm add @onmax/nuxt-better-auth
~~~
The module auto-imports the `useUserSession` composable. Access the current user session from any component.
Weekly Installs
950
Repository
GitHub Stars
606
First Seen
Jan 19, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode692
gemini-cli678
codex648
github-copilot637
cursor595
claude-code544
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装
Grimoire CLI 使用指南:区块链法术编写、验证与执行全流程
940 周安装
Grimoire Uniswap 技能:查询 Uniswap 元数据与生成代币/资金池快照的 CLI 工具
940 周安装
Grimoire Aave 技能:查询 Aave V3 元数据和储备快照的 CLI 工具
941 周安装
Railway CLI 部署指南:使用 railway up 命令快速部署代码到 Railway 平台
942 周安装
n8n Python 代码节点使用指南:在自动化工作流中编写 Python 脚本
943 周安装
Flutter Platform Views 实现指南:Android/iOS/macOS原生视图与Web嵌入教程
943 周安装