split-ui-components SKILL.md skillA

split-ui-components from nangongwentian-fe/jay-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add nangongwentian-fe/jay-skills/split-ui-components@git:20261018.4caf5d8

Pins git:20261018.4caf5d8 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
nangongwentian-fe/jay-skills
Path
skills/split-ui-components/SKILL.md
Versions recorded
2
Latest version
git:20261018.4caf5d8, committed Oct 18, 2026
First version recorded
Jul 30, 2026
Size
2,421 bytes
Repository stars
12
License
none declared

Choose or refactor UI component boundaries and state ownership. Use for oversized components, over-abstraction or behavior-preserving component extraction.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# UI 组件拆分

按业务语义、变化原因和状态所有权选择边界。文件行数、JSX 深度和 props 数量不能代替工程判断。

## 选择动作

检查目标组件、相关调用方及影响本次改动的项目约定。区分一起变化的职责与仅处在同一文件的代码,不预读整套架构或框架文档。

| 事实 | 动作 |
| --- | --- |
| 单一语境且没有独立变化或交互边界 | 保持原状 |
| 有清晰语义和独立职责,尚无跨语境复用 | 提取私有组件或逻辑单元 |
| 多个实际消费者共享同一业务契约 | 提取业务共享组件 |
| 跨业务契约、主题和无障碍要求均已稳定 | 考虑设计系统基础组件 |

分析请求只给建议;实施请求完成边界调整和相关验证;评审请求优先指出有证据的欠拆、过拆、错误抽象或状态问题。不要把局部拆分扩大为全仓迁移。

## 保持的契约

- DOM 语义、可访问名称、键盘操作、焦点和事件结果。
- 状态身份、重置时机、异步取消及错误处理。
- 公开 props、导出、导入路径及调用方,除非任务明确要求变更。
- 样式作用域、响应式行为和资源加载。

先移动边界清楚的代码,再做必要抽象。按实际所有权放置状态;不因视觉框、一次重复或可能的未来复用创建通用组件。不为方便测试暴露内部实现,也不以猜测的性能问题驱动拆分。

## 按需参考与验证

- 边界或共享 API 存在真实取舍时读 [decision-framework.md](references/decision-framework.md)。
- React 状态身份、Effect、Hook 或组合语义受影响时读 [react.md](references/react.md);其他框架不套用 React 规则。
- 需要辨别具体错误抽象时读 [examples.md](references/examples.md)。

根据变更运行相关类型、行为或构建检查,遵守项目强制门禁。状态、交互和生命周期变化需要验证对应的页面操作与失败路径;单纯代码移动不自动要求所有状态或全量构建。测试用户可观察行为,不固定私有组件树。

完成范围内修复、相关复验和临时资源清理,再说明结果和剩余验证缺口。

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add nangongwentian-fe/jay-skills/split-ui-components@sha256:bea430409334b16f

The line at the top of this page pins the label git:20261018.4caf5d8, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_viovc5h6ghyhnzce.svg)](https://markdownregistry.com/a/art_viovc5h6ghyhnzce)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between Jul 30, 2026 and Oct 18, 2026, about one every 80 days.

versioncommittedcommitsizeaudit
git:20261018.4caf5d8 latest2026-10-18 4caf5d8 2,421 BA view · diff
git:20260730.da34dd52026-07-30 da34dd5 4,311 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (2421 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

nangongwentian-fe/jay-skills · 12 stars · license none declared · pushed 2026-11-04 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_viovc5h6ghyhnzce
GET https://markdownregistry.com/api/v1/resolve?ref=nangongwentian-fe/jay-skills/split-ui-components
GET https://markdownregistry.com/api/v1/blob/bea430409334b16fa5ef7a3dfc58bda502f618f5dc70361e04d5ab2947fa6283

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from nangongwentian-fe/jay-skills

buddy-reroll SKILL.md skill
nangongwentian-fe/jay-skills · skills/buddy-reroll/SKILL.md · Reroll a Claude Code companion to match a requested species, rarity or shiny variant. Use for explicit buddy…
git:20261018.4caf5d8 · audit A · 12 stars
chrome-browser-validation SKILL.md skill
nangongwentian-fe/jay-skills · skills/chrome-browser-validation/SKILL.md · 使用官方 @Chrome 插件连接用户现有 Chrome,进行网页调试、交互测试和视觉验收。跨项目适用于开发完成后的浏览器验证及现有网页问题复现;代码静态检查和单元测试不受此浏览器选择约束。
git:20261030.ef8191b · audit A · 12 stars
clean-wechat-wps-storage SKILL.md skill
nangongwentian-fe/jay-skills · skills/clean-wechat-wps-storage/SKILL.md · Scan macOS WeChat/WPS disk usage and move selected data to Trash after the cleanup plan is confirmed. Use for app…
git:20261018.4caf5d8 · audit A · 12 stars
codex-imagegen SKILL.md skill
nangongwentian-fe/jay-skills · skills/codex-imagegen/SKILL.md · Generate or edit images via Codex CLI when no native tool is available, or recover outputs from an existing CLI image…
git:20261018.4caf5d8 · audit A · 12 stars
commit-before-deploy SKILL.md skill
nangongwentian-fe/jay-skills · skills/commit-before-deploy/SKILL.md · 部署 Git 项目前先验证、提交并推送本次发布代码,确认远端提交后才构建和发布。适用于 DEV、UAT、生产等代码部署任务;只编写技能、检查或制定计划不触发发布。
git:20261103.c1852b4 · audit A · 12 stars
daily-work-summary SKILL.md skill
nangongwentian-fe/jay-skills · skills/daily-work-summary/SKILL.md · 按指定仓库和日期,从本人 Git 提交生成每日工作总结。适用于日报与按日期汇总已提交工作。
git:20261018.4caf5d8 · audit A · 12 stars
delivery-context SKILL.md skill
nangongwentian-fe/jay-skills · skills/delivery-context/SKILL.md · Calibrate deliverables to the author's role, actual audience, intended use and acceptance criteria before creating or…
git:20261101.0b2a671 · audit A · 12 stars
dts-docs SKILL.md skill
nangongwentian-fe/jay-skills · skills/dts-docs/SKILL.md · 使用飞渡科技 DTS 产品进行开发、配置、操作或排障时,识别产品和版本并查询匹配的官方文档。适用于 DTS Cloud、CloudMaster、NodeService、Explorer、Engine、JavaScript SDK,以及…
git:20261029.0b1d958 · audit A · 12 stars
find-docs SKILL.md skill
nangongwentian-fe/jay-skills · skills/find-docs/SKILL.md · Look up current library, API and CLI syntax, configuration or version-specific behavior with Context7. Use for…
git:20261018.4caf5d8 · audit A · 12 stars
finish-cleanly SKILL.md skill
nangongwentian-fe/jay-skills · skills/finish-cleanly/SKILL.md · 在任务完成、准备最终交付或用户要求收尾时,核实最终成果并自动清理本任务已无用途的临时文件及重复交付副本。默认只保留最终成果,不反复询问清理许可;保护用户文件、依赖、必要证据及回滚资料。适用于产生本地过程文件的任务收尾,不用于全盘清理或每次中…
git:20261024.480cfc7 · audit A · 12 stars
git-topic-commit-push SKILL.md skill
nangongwentian-fe/jay-skills · skills/git-topic-commit-push/SKILL.md · Group authorized Git changes into coherent commits and push when requested. Use for topical commit or commit-and-push…
git:20261018.4caf5d8 · audit A · 12 stars
goal-first SKILL.md skill
nangongwentian-fe/jay-skills · skills/goal-first/SKILL.md · Understand the user's intended outcome, independently assess the proposed approach, and proactively find better ways to…
git:20261030.252c74d · audit A · 12 stars

Every file in nangongwentian-fe/jay-skills

Browse by kind, by grade A, or by owner.