react-state-and-effects-discipline

规范 React 中的状态、派生数据、副作用、引用、reducer、上下文与事件处理器行为。适用于存在重复状态、不必要的 useEffect、属性与状态同步、过期闭包、在副作用中处理事件逻辑、外部订阅、DOM 集成、网络同步或复杂 UI 状态的组件情形。

仓库最近推送
GitHub Stars
140
Forks
47
Issues / PRs
0

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "react-state-and-effects-discipline":https://skillpi.com/zh/skills/deepskill-74200da3b5b1d3c2c72582ac9fc196afe610ca490c90da9ad8886ecb98f2ade0。安装前核对上游来源和版本:https://github.com/TheGoat395/Codex-Skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

规范 React 中的状态、派生数据、副作用、引用、reducer、上下文与事件处理器行为。适用于存在重复状态、不必要的 useEffect、属性与状态同步、过期闭包、在副作用中处理事件逻辑、外部订阅、DOM 集成、网络同步或复杂 UI 状态的组件情形。

0 下载

介绍来源: third_party · TheGoat395 · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
来源文档未说明。
输入和输出
来源文档未说明。
软件、账号及付费要求
来源文档未说明。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: react-state-and-effects-discipline
description: "Repair state ownership, effects and async races."

React State And Effects Discipline

For substantial web work, reuse the scoped web contract when available; it replaces duplicated policy here. Match the requested scope and existing decisions; a missing optional sibling does not block this local procedure.

Use This Skill

Use this skill to use react state and effects only where they belong.

Required Reference

Read references/react-state-and-effects-discipline-guide.md before making architectural or visible UI changes with this skill.

版本历史

  1. v0.2.0 GitHub ↗
    原版更新说明

    Added the public agent-quality collection and expanded the default public core from 70 to 80 skills. Highlights: - Critical and logical thinking, creativity, deep research, and evidence reconciliation - Systematic debugging and fresh verification before completion claims - Bounded agent architecture, memory provenance, and evaluation workflows - Public-neutral packaging with private and machine-specific references removed - Updated catalogs, adapters, release checks, and generated inventories

  2. v0.1.2 GitHub ↗
    原版更新说明

    ## Codex Premium Website Skills v0.1.2 - Added `COMPATIBILITY.md` with Codex, Claude Code, Cursor, Gemini CLI, and generic `SKILL.md` support levels. - Added `CATALOG.md` as a cleaner audience-facing map of collections and high-value skills. - Added `adapters/` documentation for Claude Code, Cursor project rules, and Gemini CLI context files. - Added Cursor and Gemini CLI adapter files for project-level use. - Updated README, evidence, docs, and usage-signal guidance for broader agent ecosystem adoption.

  3. v0.1.1 GitHub ↗
    原版更新说明

    ## Codex Premium Website Skills v0.1.1 - Added `EVIDENCE.md` to summarize proof-of-output, workflow estimates, benchmark readiness, and evidence status. - Added maintainer workflow, usage-signal, and measured benchmark template documentation. - Improved install documentation for clone-based and release-archive usage. - Corrected stale benchmark skill references. - Refined public attribution language in `design-motion-principles`. - Added repository hygiene for release artifacts and GitHub language classification.

  4. v0.1.0 GitHub ↗
    原版更新说明

    # Changelog All notable changes to Codex Premium Website Skills are documented here. ## [0.1.0] - 2026-07-02 - Initial public release of the curated 70-skill public core. - Added eight installable collections for design direction, frontend implementation, QA, motion, content, and maintainer safety workflows. - Added the local installer with dry-run, selected-collection, and replace-with-backup behavior. - Added the premium website showcase gallery with nine local demo previews. - Added public quality, security, benchmark, contribution, and community-health documentation. - Added automated skill validation through GitHub Actions.

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 针对 React 状态管理和副作用处理的常见痛点,实用性强
  • 适用于中大型 Web 项目,受众广泛
触发精准90/100

亮点

  • 触发场景描述清晰,覆盖多种典型问题场景
  • 边界定义明确,不易误触
结构规范60/100

待提升项

  • 缺少具体执行步骤和示例 原报告严重程度:轻微

    Skill 缺少 Phase/步骤划分、端到端示例和出口条件

    改进建议:建议补充具体的执行步骤、代码示例和完成条件,提升可操作性

执行可靠50/100

待提升项

  • 引用文件缺失 原报告严重程度:重大

    SKILL.md 引用了 references/react-state-and-effects-discipline-guide.md 但未传入该文件

    改进建议:请确保所有被引用的参考文件都包含在 Skill 包中,或提供替代的内置说明

证据可验 (前四项均值)71/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

来源文档未说明。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。