Docs Writer Blog 标志

Docs Writer Blog

组织热门
reactjs
docs-writer-blog

编写或编辑 src/content/blog/ 中的文件时使用。提供博客文章的结构和写作规范。

概览

发布者reactjs
代码仓库react.dev
技能名称docs-writer-blog
星标数
11.8K
复刻数
8K
附带文件
仅含指令
许可协议CC-BY-4.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 reactjs 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Docs Writer Blog AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/reactjs/react.dev/tree/main/.claude/skills/docs-writer-blog
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/reactjs/react.dev.git /tmp/react.dev
mkdir -p .claude/skills
cp -r /tmp/react.dev/.claude/skills/docs-writer-blog .claude/skills/docs-writer-blog
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Docs Writer Blog,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Docs Writer Blog。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Docs Writer Blog 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Blog Post Writer

Persona

Voice: Official React team voice Tone: Accurate, professional, forward-looking

Voice & Style

For tone, capitalization, jargon, and prose patterns, invoke /docs-voice.


Frontmatter Schema

All blog posts use this YAML frontmatter structure:

yaml
---
title: "Title in Quotes"
author: Author Name(s)
date: YYYY/MM/DD
description: One or two sentence summary.
---

Field Details

FieldFormatExample
titleQuoted string"React v19", "React Conf 2024 Recap"
authorUnquoted, comma + "and" for multipleThe React Team, Dan Abramov and Lauren Tan
dateYYYY/MM/DD with forward slashes2024/12/05
description1-2 sentences, often mirrors introSummarizes announcement or content

Title Patterns by Post Type

TypePatternExample
Release"React vX.Y" or "React X.Y""React v19"
Upgrade"React [VERSION] Upgrade Guide""How to Upgrade to React 18"
Labs"React Labs: [Topic] – [Month Year]""React Labs: What We've Been Working On – February 2024"
Conf"React Conf [YEAR] Recap""React Conf 2024 Recap"
Feature"Introducing [Feature]" or descriptive"Introducing react.dev"
Security"[Severity] Security Vulnerability in [Component]""Critical Security Vulnerability in React Server Components"

Author Byline

Immediately after frontmatter, add a byline:

markdown
---

Month DD, YYYY by [Author Name](social-link)

---

Conventions

  • Full date spelled out: December 05, 2024
  • Team posts link to /community/team: [The React Team](/community/team)
  • Individual authors link to Twitter/X or Bluesky
  • Multiple authors: Oxford comma before "and"
  • Followed by horizontal rule ---

Examples:

markdown
December 05, 2024 by [The React Team](/community/team)

---
markdown
May 3, 2023 by [Dan Abramov](https://bsky.app/profile/danabra.mov), [Sophie Alpert](https://twitter.com/sophiebits), and [Andrew Clark](https://twitter.com/acdlite)

---

Universal Post Structure

All blog posts follow this structure:

  1. Frontmatter (YAML)
  2. Author byline with date
  3. Horizontal rule (---)
  4. <Intro> component (1-3 sentences)
  5. Horizontal rule (---) (optional)
  6. Main content sections (H2 with IDs)
  7. Closing section (Changelog, Thanks, etc.)

Post Type Templates

Major Release Announcement

markdown
---
title: "React vX.Y"
author: The React Team
date: YYYY/MM/DD
description: React X.Y is now available on npm! In this post, we'll give an overview of the new features.
---

Month DD, YYYY by [The React Team](/community/team)

---

<Intro>

React vX.Y is now available on npm!

</Intro>

In our [Upgrade Guide](/blog/YYYY/MM/DD/react-xy-upgrade-guide), we shared step-by-step instructions for upgrading. In this post, we'll give an overview of what's new.

- [What's new in React X.Y](#whats-new)
- [Improvements](#improvements)
- [How to upgrade](#how-to-upgrade)

---

## What's new in React X.Y {/*whats-new*/}

### Feature Name {/*feature-name*/}

[Problem this solves. Before/after code examples.]

For more information, see the docs for [`Feature`](/reference/react/Feature).

---

## Improvements in React X.Y {/*improvements*/}

### Improvement Name {/*improvement-name*/}

[Description of improvement.]

---

## How to upgrade {/*how-to-upgrade*/}

See [How to Upgrade to React X.Y](/blog/YYYY/MM/DD/react-xy-upgrade-guide) for step-by-step instructions.

---

## Changelog {/*changelog*/}

### React {/*react*/}

* Add `useNewHook` for [purpose]. ([#12345](https://github.com/react/react/pull/12345) by [@contributor](https://github.com/contributor))

---

_Thanks to [Name](url) for reviewing this post._

Upgrade Guide

markdown
---
title: "React [VERSION] Upgrade Guide"
author: Author Name
date: YYYY/MM/DD
description: Step-by-step instructions for upgrading to React [VERSION].
---

Month DD, YYYY by [Author Name](social-url)

---

<Intro>

[Summary of upgrade and what this guide covers.]

</Intro>

<Note>

#### Stepping stone version {/*stepping-stone*/}

[If applicable, describe intermediate upgrade steps.]

</Note>

In this post, we will guide you through the steps for upgrading:

- [Installing](#installing)
- [Codemods](#codemods)
- [Breaking changes](#breaking-changes)
- [New deprecations](#new-deprecations)

---

## Installing {/*installing*/}

```bash
npm install --save-exact react@^X.Y.Z react-dom@^X.Y.Z

Codemods {/codemods/}

Run all React [VERSION] codemods {/run-all-codemods/}
bash
npx codemod@latest react/[VERSION]/migration-recipe

Breaking changes {/breaking-changes/}

Removed: apiName {/removed-api-name/}

apiName was deprecated in Month YYYY (vX.X.X).

js
// Before
[old code]

// After
[new code]

Codemod [description]:

bash
npx codemod@latest react/[VERSION]/codemod-name

New deprecations {/new-deprecations/}

Deprecated: apiName {/deprecated-api-name/}

[Explanation and migration path.]


Thanks to Contributor for reviewing this post.


### React Labs Research Update

```markdown
---
title: "React Labs: What We've Been Working On – [Month Year]"
author: Author1, Author2, and Author3
date: YYYY/MM/DD
description: In React Labs posts, we write about projects in active research and development.
---

Month DD, YYYY by [Author1](url), [Author2](url), and [Author3](url)

---

<Intro>

In React Labs posts, we write about projects in active research and development. We've made significant progress since our [last update](/blog/previous-labs-post), and we'd like to share our progress.

</Intro>

[Optional: Roadmap disclaimer about timelines]

---

## Feature Name {/*feature-name*/}

<Note>

`<FeatureName />` is now available in React's Canary channel.

</Note>

[Description of feature, motivation, current status.]

### Subsection {/*subsection*/}

[Details, examples, use cases.]

---

## Research Area {/*research-area*/}

[Problem space description. Status communication.]

This research is still early. We'll share more when we're further along.

---

_Thanks to [Reviewer](url) for reviewing this post._

Thanks for reading, and see you in the next update!

React Conf Recap

markdown
---
title: "React Conf [YEAR] Recap"
author: Author1 and Author2
date: YYYY/MM/DD
description: Last week we hosted React Conf [YEAR]. In this post, we'll summarize the talks and announcements.
---

Month DD, YYYY by [Author1](url) and [Author2](url)

---

<Intro>

Last week we hosted React Conf [YEAR] [where we announced [key announcements]].

</Intro>

---

The entire [day 1](youtube-url) and [day 2](youtube-url) streams are available online.

## Day 1 {/*day-1*/}

_[Watch the full day 1 stream here.](youtube-url)_

[Description of day 1 opening and keynote highlights.]

Watch the full day 1 keynote here:

<YouTubeIframe src="https://www.youtube.com/embed/VIDEO_ID" />

## Day 2 {/*day-2*/}

_[Watch the full day 2 stream here.](youtube-url)_

[Day 2 summary.]

<YouTubeIframe src="https://www.youtube.com/embed/VIDEO_ID" />

## Q&A {/*q-and-a*/}

* [Q&A Title](youtube-url) hosted by [Host](url)

## And more... {/*and-more*/}

We also heard talks including:
* [Talk Title](youtube-url) by [Speaker](url)

## Thank you {/*thank-you*/}

Thank you to all the staff, speakers, and participants who made React Conf [YEAR] possible.

See you next time!

Feature/Tool Announcement

markdown
---
title: "Introducing [Feature Name]"
author: Author Name
date: YYYY/MM/DD
description: Today we are announcing [feature]. In this post, we'll explain [what this post covers].
---

Month DD, YYYY by [Author Name](url)

---

<Intro>

Today we are [excited/thrilled] to announce [feature]. [What this means for users.]

</Intro>

---

## tl;dr {/*tldr*/}

* Key announcement point with [relevant link](/path).
* What users can do now.
* Availability or adoption information.

## What is [Feature]? {/*what-is-feature*/}

[Explanation of the feature/tool.]

## Why we built this {/*why-we-built-this*/}

[Motivation, history, problem being solved.]

## Getting started {/*getting-started*/}

To install [feature]:

<TerminalBlock>
npm install package-name
</TerminalBlock>

[You can find more documentation here.](/path/to/docs)

## What's next {/*whats-next*/}

[Future plans and next steps.]

## Thank you {/*thank-you*/}

[Acknowledgments to contributors.]

---

Thanks to [Reviewer](url) for reviewing this post.

Security Announcement

markdown
---
title: "[Severity] Security Vulnerability in [Component]"
author: The React Team
date: YYYY/MM/DD
description: Brief summary of the vulnerability. A fix has been published. We recommend upgrading immediately.

---

Month DD, YYYY by [The React Team](/community/team)

---

<Intro>

[One or two sentences summarizing the vulnerability.]

We recommend upgrading immediately.

</Intro>

---

On [date], [researcher] reported a security vulnerability that allows [description].

This vulnerability was disclosed as [CVE-YYYY-NNNNN](https://www.cve.org/CVERecord?id=CVE-YYYY-NNNNN) and is rated CVSS [score].

The vulnerability is present in versions [list] of:

* [package-name](https://www.npmjs.com/package/package-name)

## Immediate Action Required {/*immediate-action-required*/}

A fix was introduced in versions [linked versions]. Upgrade immediately.

### Affected frameworks {/*affected-frameworks*/}

[List of affected frameworks with npm links.]

### Vulnerability overview {/*vulnerability-overview*/}

[Technical explanation of the vulnerability.]

## Update Instructions {/*update-instructions*/}

### Framework Name {/*update-framework-name*/}

```bash
npm install package@version

Timeline {/timeline/}

  • November 29th: [Researcher] reported the vulnerability.
  • December 1st: Fix was created and validated.
  • December 3rd: Fix published and CVE disclosed.

Attribution {/attribution/}

Thank you to Researcher Name for discovering and reporting this vulnerability.


---

## Heading Conventions

### ID Syntax

All headings require IDs using CSS comment syntax:

```markdown
## Heading Text {/*heading-id*/}

ID Rules

  • Lowercase
  • Kebab-case (hyphens for spaces)
  • Remove special characters (apostrophes, colons, backticks)
  • Concise but descriptive

Heading Patterns

ContextExample
Feature section## New Feature: Automatic Batching {/*new-feature-automatic-batching*/}
New hook### New hook: \useActionState` {/new-hook-useactionstate/}`
API in backticks### \` {/activity/}`
Removed API#### Removed: \propTypes` {/removed-proptypes/}`
tl;dr section## tl;dr {/*tldr*/}

Component Usage Guide

Blog-Appropriate Components

ComponentUsage in Blog
<Intro>Required - Opening summary after byline
<Note>Callouts, caveats, important clarifications
<Pitfall>Warnings about common mistakes
<DeepDive>Optional technical deep dives (use sparingly)
<TerminalBlock>CLI/installation commands
<ConsoleBlock>Console error/warning output
<ConsoleBlockMulti>Multi-line console output
<YouTubeIframe>Conference video embeds
<Diagram>Visual explanations
<InlineToc />Auto-generated table of contents

<Intro> Pattern

Always wrap opening paragraph:

markdown
<Intro>

React 19 is now available on npm!

</Intro>

<Note> Patterns

Simple note:

markdown
<Note>

For React Native users, React 18 ships with the New Architecture.

</Note>

Titled note (H4 inside):

markdown
<Note>

#### React 18.3 has also been published {/*react-18-3*/}

To help with the upgrade, we've published `react@18.3`...

</Note>

<TerminalBlock> Pattern

markdown
<TerminalBlock>
npm install react@latest react-dom@latest
</TerminalBlock>

<YouTubeIframe> Pattern

markdown
<YouTubeIframe src="https://www.youtube.com/embed/VIDEO_ID" />

Link Patterns

Internal Links

TypePatternExample
Blog post/blog/YYYY/MM/DD/slug/blog/2024/12/05/react-19
API reference/reference/react/HookName/reference/react/useState
Learn section/learn/topic-name/learn/react-compiler
Community/community/team/community/team

External Links

TypePattern
GitHub PR[#12345](https://github.com/react/react/pull/12345)
GitHub user[@username](https://github.com/username)
Twitter/X[@username](https://x.com/username)
Bluesky[Name](https://bsky.app/profile/handle)
CVE[CVE-YYYY-NNNNN](https://www.cve.org/CVERecord?id=CVE-YYYY-NNNNN)
npm package[package](https://www.npmjs.com/package/package)

"See docs" Pattern

markdown
For more information, see the docs for [`useActionState`](/reference/react/useActionState).

Changelog Format

Bullet Pattern

markdown
* Add `useTransition` for concurrent rendering. ([#10426](https://github.com/react/react/pull/10426) by [@acdlite](https://github.com/acdlite))
* Fix `useReducer` observing incorrect props. ([#22445](https://github.com/react/react/pull/22445) by [@josephsavona](https://github.com/josephsavona))

Structure: Verb + backticked API + description + ([#PR](url) by [@user](url))

Verbs: Add, Fix, Remove, Make, Improve, Allow, Deprecate

Section Organization

markdown
## Changelog {/*changelog*/}

### React {/*react*/}

* [changes]

### React DOM {/*react-dom*/}

* [changes]

Acknowledgments Format

Post-closing Thanks

markdown
---

Thanks to [Name](url), [Name](url), and [Name](url) for reviewing this post.

Or italicized:

markdown
_Thanks to [Name](url) for reviewing this post._

Update Notes

For post-publication updates:

markdown
<Note>

[Updated content]

-----

_Updated January 26, 2026._

</Note>

Tone & Length by Post Type

TypeToneLengthKey Elements
ReleaseCelebratory, informativeMedium-longFeature overview, upgrade link, changelog
UpgradeInstructional, preciseLongStep-by-step, codemods, breaking changes
LabsTransparent, exploratoryMediumStatus updates, roadmap disclaimers
ConfEnthusiastic, community-focusedMediumYouTube embeds, speaker credits
FeatureExcited, explanatoryMediumtl;dr, "why", getting started
SecurityUrgent, factualShort-mediumImmediate action, timeline, CVE

Do's and Don'ts

Do:

  • Focus on facts over marketing
  • Say "upcoming" explicitly for unreleased features
  • Include FAQ sections for major announcements
  • Credit contributors and link to GitHub
  • Use "we" voice for team posts
  • Link to upgrade guides from release posts
  • Include table of contents for long posts
  • End with acknowledgments

Don't:

  • Promise features not yet available
  • Rewrite history (add update notes instead)
  • Break existing URLs
  • Use hyperbolic language ("revolutionary", "game-changing")
  • Skip the <Intro> component
  • Forget heading IDs
  • Use heavy component nesting in blogs
  • Make time estimates or predictions

Updating Old Posts

  • Never break existing URLs; add redirects when URLs change
  • Don't rewrite history; add update notes instead:
    markdown
    <Note>
    
    [Updated information]
    
    -----
    
    _Updated Month Year._
    
    </Note>

Critical Rules

  1. Heading IDs required: ## Title {/*title-id*/}
  2. <Intro> required: Every post starts with <Intro> component
  3. Byline required: Date + linked author(s) after frontmatter
  4. Date format: Frontmatter uses YYYY/MM/DD, byline uses Month DD, YYYY
  5. Link to docs: New APIs must link to reference documentation
  6. Security posts: Always include "We recommend upgrading immediately"

Components Reference

For complete MDX component patterns, invoke /docs-components.

Blog posts commonly use: <Intro>, <Note>, <Pitfall>, <TerminalBlock>, <ConsoleBlock>, <YouTubeIframe>, <DeepDive>, <Diagram>.

Prefer inline explanations over heavy component usage.

常见问题

Docs Writer Blog AI 技能有什么作用?

编写或编辑 src/content/blog/ 中的文件时使用。提供博客文章的结构和写作规范。

为什么在 TypingMind 中使用 Docs Writer Blog?

因为您只需安装一次,就能搭配任何模型使用。Docs Writer Blog 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Docs Writer Blog?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/reactjs/react.dev/tree/main/.claude/skills/docs-writer-blog。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Docs Writer Blog?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Docs Writer Blog 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Docs Writer Blog 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Docs Writer Blog AI 技能免费吗?

是的。reactjs 已在 GitHub 上根据 CC-BY-4.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇