跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/facebook/react/extract-errors

Claude Code extract-errors for React Source Error Codes

Use extract-errors after adding an error message in the React source repository. It checks which messages need numeric codes and whether the error code map is current. It is useful when preparing a React contribution or investigating an unknown error code warning in a build.

中文

Install in Claude Code

Claude Code, a React source checkout, Node.js, Yarn, and the project's installed dependencies. The extractor reads artifacts under `build`.

  1. Open a React source checkout containing the pinned skill file. Confirm `.claude/skills/extract-errors/SKILL.md` exists under the repository root.
  2. Start Claude Code at the React repository root. Enter `/extract-errors` and point it to the file that contains the new message.

Example task

On a local React practice branch, change the message of a `throw new Error(...)` handled by the production build to `Unexpected draft row type.` Rebuild the affected package. Ask: ‘/extract-errors Check this new message and report the assigned code and map diff.’

What to check

If the production build emits an error marker for the unregistered message, `scripts/error-codes/codes.json` should gain a mapping. If the map is unchanged, check for a current marker under `build` and see whether the text already exists.

Original SKILL.md on GitHub · Updated 2026-11-12

Frequently asked question

Can this skill diagnose an exception in a regular React app?

It works with the error code map and `extract-errors` script in the React source repository. Use the app's own logs, stack traces, or developer tools for application errors.

Related skills from this repository

  • Claude Code Feature Flags Skill for React Channel Tests
  • Claude Code React Fix Skill for Formatting and Lint Checks
  • Claude Code React Feature Flags Skill for Comparing Channels
Browse Claude Code skills in the Chinese directory
词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯