yida-density SKILL.md skillA
yida-density from openyida/openyida is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add openyida/openyida/yida-density@git:20261021.62244c3Pins git:20261021.62244c3 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- openyida/openyida
- Path
yida-skills/skills/yida-density/SKILL.md- Versions recorded
- 7
- Latest version
- git:20261021.62244c3, committed Oct 21, 2026
- First version recorded
- Jul 2, 2026
- Size
- 6,648 bytes
- Repository stars
- 231
- License
- MIT
自定义页面信息密度设计规范。提供紧凑、舒适、宽松三种模式、切换 UI 和响应式降级;平台 JSX 组件页面的 didMount/this.utils.isMobile 仅作存量维护示例。.
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
# 宜搭自定义页面信息密度设计规范
## 核心定位
信息密度是页面密度配置。`DENSITY_CONFIG`、场景选择、移动端降级和无障碍要求对自定义页面都适用;实现示例使用 React hooks。
维护已检测到的 `.oyd.jsx` / `.oyb.jsx` / `renderJsx` / 平台 `Jsx` 组件页面时,才参考 `didMount` / `this.utils.isMobile()` 的平台 JSX 组件写法。
## 严格要求
- 每次生成列表/表格类自定义页面时都考虑密度,无需用户主动提及。
- PC 列表/表格默认 `comfortable`,可提供紧凑/舒适切换。
- 移动端固定 `spacious`,不显示密度切换 UI。
- 固定展示大屏使用 `spacious`,不显示密度切换 UI。
- 表单填写页交原生表单;若只讨论密度,固定 `comfortable`,不提供切换。
- 间距、字号、行高、控件高度统一从密度 token 派生,避免散落魔法值。
- 密度状态是页面本地状态,不依赖跨会话 memory。
## 场景选择
| 场景 | 默认密度 | 切换 UI |
| --- | --- | --- |
| 专业后台、运营列表、大数据表格 | `compact` 或 `comfortable` | PC 提供 |
| 常规任务管理、审批列表 | `comfortable` | PC 提供 |
| 引导页、展示页、固定大屏 | `spacious` | 不提供 |
| 移动端 | `spacious` | 不提供 |
| 原生表单填写 | `comfortable` | 不提供 |
用户明确说“紧凑/密集/一屏更多”时选 `compact`;说“宽松/大字体/更易读”时选 `spacious`。用户未指定时按页面类型和设备选择。
## 密度 token
同一页面可以把数值映射成 CSS variables、antd token 或 inline style;关键是所有相关组件都消费同一个配置。
```javascript
const DENSITY_CONFIG = {
compact: {
cardPadding: '8px 12px',
fontSize: 12,
lineHeight: 1.4,
tableRowHeight: 32,
controlHeight: 24,
sectionGap: 8,
},
comfortable: {
cardPadding: '16px 20px',
fontSize: 14,
lineHeight: 1.6,
tableRowHeight: 48,
…Read the whole file at its exact version.
How to install
mdr add openyida/openyida/yida-density@sha256:b4526a458951ae6aThe line at the top of this page pins the label git:20261021.62244c3, 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_tvbdsjfsfqrfxw4v)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 7 versions of this file, between Jul 2, 2026 and Oct 21, 2026, about one every 18 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261021.62244c3 latest | 2026-10-21 | 62244c3 | 6,648 B | A | view · diff |
| git:20261020.d8a251b | 2026-10-20 | d8a251b | 6,376 B | A | view · diff |
| git:20260814.93a1643 | 2026-08-14 | 93a1643 | 5,937 B | A | view · diff |
| git:20260804.d4cca3a | 2026-08-04 | d4cca3a | 5,988 B | A | view · diff |
| git:20260804.c94ec63 | 2026-08-04 | c94ec63 | 6,049 B | A | view · diff |
| git:20260728.ca83c23 | 2026-07-28 | ca83c23 | 6,049 B | A | view · diff |
| git:20260702.ac3bada | 2026-07-02 | ac3bada | 6,245 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 (6648 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
openyida/openyida · 231 stars · license MIT · pushed 2026-11-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_tvbdsjfsfqrfxw4v GET https://markdownregistry.com/api/v1/resolve?ref=openyida/openyida/yida-density GET https://markdownregistry.com/api/v1/blob/b4526a458951ae6abcd178033f7c66563346e1226d1eab9d8086328c00b2b6b6
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.