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.
mdr add nangongwentian-fe/jay-skills/split-ui-components@git:20261018.4caf5d8Pins 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
mdr add nangongwentian-fe/jay-skills/split-ui-components@sha256:bea430409334b16fThe 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.
[](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.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261018.4caf5d8 latest | 2026-10-18 | 4caf5d8 | 2,421 B | A | view · diff |
| git:20260730.da34dd5 | 2026-07-30 | da34dd5 | 4,311 B | A | view |
Audit of the latest version
- 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
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.