Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

react-coding-standardsReact coding standards 搜索

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

303

周安装

13

GitHub Stars

公开资料未说明

下载量

106
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:react-coding-standards(React coding standards 搜索)
来源仓库:https://github.com/lichens-innovation/skills
仓库路径:skills/react-coding-standards
安装命令:
npx skills add https://github.com/lichens-innovation/skills --skill react-coding-standards
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/lichens-innovation/skills --skill react-coding-standards

简介

用于辅助 React、Next.js、Vue 等前端框架的开发与维护。

  • 适用于 Codex、Claude、Cursor、Gemini CLI,通过 GitHub 安装。
  • 适合生成或审查组件结构、样式和交互逻辑代码。
  • 使用时需结合项目设计系统和构建方式,避免孤立片段。
  • 页面改动后应配合本地预览确认视觉效果。

SKILL.md

React & TypeScript coding standards

This skill applies company coding standards expressed as Avoid (anti-patterns) and Prefer (recommended patterns) to in-code patterns only. For file and folder naming and structure, use react-files-structure-standards.

Source of truth (priority order)

When resolving standards, use this order:

  1. Project tooling: ESLint config (eslint.config.js / .eslintrc*), TypeScript config (tsconfig.json, tsconfig.app.json). Run yarn lint or npm run lint; fix auto-fixable issues first.
  2. Reference files in references/ (see table below) for Avoid/Prefer rules and examples.
  3. Reference codebase (if provided): e.g. a frontend app under the same org — use it to infer naming, structure, and patterns (hooks returning data only, FunctionComponent + destructured props, *.utils.ts / *.store.ts, test style with Vitest or Jest).

Reference categories

Standards are defined in the references/ folder. Load these files when you need the exact Avoid/Prefer rules and examples:

CategoryFileScope
Coding patternsreferences/common-coding-patterns.mdTypeScript (types, control flow, errors, enums, destructuring, etc.)
Naming patternsreferences/common-naming-patterns.mdIn-code naming (boolean prefixes, descriptive names)
React patternsreferences/common-react-patterns.mdHooks, components, JSX, state, styling, fragments
Unit testingreferences/common-unit-testing.mdJest / Vitest, React Testing Library, AAA, mocks, selectors
Codebase summaryreferences/reference-codebase-summary.mdConcrete patterns from reference frontend (optional)

Three-phase workflow

When the skill is invoked on code (selected files, git staged files, branch):

Preliminary — Run linter

  1. Run the project linter: yarn lint or npm run lint (use the one that matches the project).
  2. Collect every reported rule violation (rule id/name, file, line, message).
  3. For each violation:

- If the rule is auto-fixable (e.g. --fix / eslint --fix), run the fix (e.g. yarn lint --fix or npm run lint --fix) and consider the violation resolved. - If the fix is not automatic, do your best to find a solution with the help of coding guidelines in references/*.md (coding → common-coding-patterns, naming → common-naming-patterns, React → common-react-patterns, tests → common-unit-testing) and apply the Prefer correction described for that rule.

  1. Re-run the linter after fixes; repeat until lint passes or only violations that need manual interpretation remain.

Phase 1 — Collect violations

  1. Analyze the provided code against the reference files above.
  2. Identify every place where the code matches an Avoid pattern.
  3. List each violation in a single report with:

- Category (coding / naming / React / unit testing) - Rule name (e.g. "Avoid Using any for Type Definitions") - Location (file and line or snippet) - Short reason (what is wrong)

  1. If no Avoid pattern is found, state that the code complies and stop. Otherwise proceed to Phase 2.

Phase 2 — Apply corrections

  1. For each violation in the report:

- Open the corresponding reference file and find the Prefer section paired with that Avoid rule. - Apply the recommended correction so the code follows the Prefer pattern.

  1. Preserve business logic and behavior; only change structure, naming, or patterns.
  2. Prefer minimal edits: one logical change per violation, no unnecessary rewrites.
  3. When several standards apply to the same area, prioritize: TypeScript safety → naming clarity → React architecture → testing structure.

Rules of thumb

  • Strict avoid/prefer: Only treat as violations what is explicitly described as Avoid in the reference files; only apply fixes that are explicitly described as Prefer there.
  • One violation, one fix: One Avoid → one corresponding Prefer; do not mix multiple rules in a single edit unless they target the same line.
  • Readability and maintainability: After corrections, the code should be easier to read and maintain, without changing behavior.

Quick reference

  • Lint first: Run yarn lint or npm run lint; fix auto-fixable issues, then resolve remaining ones using references/*.md.
  • Tests: Project may use Jest or Vitest; same patterns apply (AAA, screen, it.each, mock factories). Use vi (Vitest) or jest (Jest) for spies/mocks.
  • Collect next: Complete the full list of Avoid violations (manual analysis) before making edits.
  • Then redress: Apply each Prefer in turn, using the reference file as the source of truth.
  • File/folder naming: Use react-files-structure-standards for normalizing file and folder names and structure.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.13%
按下载量换算39

Claude

29.06%
按下载量换算31

Cursor

19.34%
按下载量换算21

Gemini CLI

8.33%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills