Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/sunyonghuan-layui
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/layui
What's inside
- Skill name
layui- Description
- Machine-readable Layui skill for building front-end pages. Use it to install, load, initialize, and develop with Layui components.
- License
- MIT
- Instructions
- 148 lines in SKILL.md · view on GitHub
Files (49)
- SKILL.md
- openai.yaml · agents/
- README.md · resources/
- anim.md · resources/
- auxiliar.md · resources/
- badge.md · resources/
- base.md · resources/
- button.md · resources/
- carousel.md · resources/
- checkbox.md · resources/
- class.md · resources/
- code.md · resources/
- color.md · resources/
- colorpicker.md · resources/
- component.md · resources/
- dropdown.md · resources/
- fixbar.md · resources/
- flow.md · resources/
- form.md · resources/
- framework-overview.md · resources/
- getting-started.md · resources/
- grid.md · resources/
- i18n.md · resources/
- icon.md · resources/
- input.md · resources/
- laydate.md · resources/
- layer.md · resources/
- layout.md · resources/
- laypage.md · resources/
- laytpl.md · resources/
- menu.md · resources/
- modules.md · resources/
- nav.md · resources/
- panel.md · resources/
- progress.md · resources/
- radio.md · resources/
- rate.md · resources/
- select.md · resources/
- slider.md · resources/
- tab.md · resources/
- table.md · resources/
- tabs.md · resources/
- timeline.md · resources/
- transfer.md · resources/
- tree.md · resources/
- treeTable.md · resources/
- upload.md · resources/
- util.md · resources/
- versions.md · resources/
SKILL.md (first lines)
# Layui 技能
## Overview
用途:AI 直接按 Layui 2.13.6 生成可运行前端页面。
## 处理顺序
1. 读 `resources/framework-overview.md`
2. 读对应组件文件
3. 生成完整 HTML + JS + 初始化
4. 补齐参数类型、默认值、事件、回调、数据结构
5. 补齐版本差异和兼容性
6. 优先使用 Layui 原生组件和模块系统
## 触发场景
| 关键词 | 说明 |
| --- | --- |
| `layui` | 使用 Layui 构建页面、组件、交互 |
| `layui 表格` | 读取 `resources/table.md` 并生成 table 页面 |
| `layui 表单` | 读取 `resources/form.md` 及表单子组件文件 |
| `layui 弹层` | 读取 `resources/layer.md` 并生成弹层交互 |
| `layui 上传` | 读取 `resources/upload.md` 并生成上传功能 |
## 使用规则
- 生成前先确认页面目标、组件组合、数据来源、事件、回显、异步加载
- 先总览,再基础模块,再核心组件,再业务组件
- 表单类:`form.md` -> `input.md` / `select.md` / `checkbox.md` / `radio.md`
- 展示类:`table.md` / `treeTable.md` / `tabs.md` / `nav.md` / `menu.md`
- 交互类:`layer.md` / `laydate.md` / `upload.md` / `dropdown.md` / `colorpicker.md` / `transfer.md` / `slider.md` / `rate.md`
- 页面必须包含 HTML 结构、CSS/JS 引入、`layui.use()` 初始化、渲染或事件绑定
## 安装与引入
### 最小页面骨架
```html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/layui/css/layui.css">
</head>
<body>
<div class="layui-container">
<h1 class="layui-font-16">示例页面</h1>
</div>
<script src="/layui/layui.js"></script>
<script>
layui.use(function(){
var layer = layui.layer;
layer.msg('Layui loaded');
});
</script>
</body>
</html>
```
### 安装要求
- 静态引入 `layui.css` 和 `layui.js`。
- 如果是生产环境,优先使用本地静态资源。
- 如果页面只用局部模块,也必须保留标准入口结构。
## 代码生成规则
- 默认使用浏览器直引模式:`layui.css` + `layui.js`。
- 示例可使用 CDN,但生产项目应替换为本地静态资源。
- 所有 JS 初始化放入 `layui.use(function(){ ... })`。
- 需要模块时从 `layui` 对象取值,例如:`var table = layui.table; var form = layui.form;`。
- 动态插入组件后必须调用对应渲染方法,例如 `form.render()`、`element.render()`。
- 事件绑定必须使用组件官方事件语法,例如 `form.on('submit(filter)', callback)`、`table.on('tool(filter)', callback)`。
- 参数写法应说明类型、默认值、适用范围,不允许只给 API 名称。
- 若组件支持实例对象,应保留实例变量,方便后续 `reload()`、`setValue()`、`goto()` 等操作。
- 若组件存在新旧替代关系,优先用新组件。例如标签页优先用 `tabs`,旧 `tab` 仅作为兼容方案。
- 示例必须包含必要的 HTML、初始化代码、回调处理、数据结构说明,必要时补充接口返回格式。
## 引用文件结构
- `resources/framework-overview.md`:框架总览
- `resources/getting-started.md`:开始使用
- `resources/base.md`:底层方法
- `resources/modules.md`:模块系统
- `resources/component.md`:组件构建器
- `resources/i18n.md`:国际化
- `resources/versions.md`:更新日志
- `resources/layout.md`:框体布局
- `resources/grid.md`:栅格布局
- `resources/color.md`:颜色
- `resources/button.md`:按钮
- `resources/icon.md`:图标
- `resources/anim.md`:动画
- `resources/form.md`:表单组件总览
- `resources/input.md`:输入框 / Textarea
- `resources/select.md`:选择框
- `resources/checkbox.md`:复选框
- `resources/radio.md`:单选框
- `resources/table.md`:表格
- `resources/laypage.md`:分页
- `resources/treeTable.md`:树形表格
- `resources/nav.md`:导航菜单
- `resources/menu.md`:基础菜单
- `resources/tabs.md`:标签页 Tabs
- `resources/tab.md`:选项卡 Tab
- `resources/badge.md`:徽章
- `resources/auxiliar.md`:辅助元素
- `resources/class.md`:公共类
- `resources/panel.md`:面板 / Card / Collapse
- `resources/progress.md`:进度条
- `resources/timeline.md`:时间线
- `resources/fixbar.md`:固定条
- `resources/tree.md`:树组件
- `resources/carousel.md`:轮播
- `resources/flow.md`:流加载From sunyonghuan/Netor.Madorin, MIT.
More from sunyonghuan/Netor.Madorin
- 0.666score
server-maintainer
sunyonghuan
Central dispatcher for server management.
SkillAFreshness: A★ 55Claude Code +9 - 0.661score
websocket-integration
sunyonghuan
Madorin PluginBus WebSocket 接入。用于生成 /internal 单端点、cortana.plugin-bus、conversation topic、conversation.chat.message.send、conversation.chat.generation.stop、system…
SkillAFreshness: A★ 55Claude Code +9 - 0.661score
workspace-initializer
sunyonghuan
Detect whether the current working directory is initialized from injected project memory and, if empty, guide the user through initializing its folder…
SkillAFreshness: A★ 55Claude Code +9 - 0.661score
plugin-development
sunyonghuan
Madorin 插件开发入口技能。用于统一编排 Native、MCP、Process 三类通道,约束工程规范、插件元数据协议、宿主能力申请、设置界面 schema、外部包 AOT 校验、发布安装与运行时更新流程。触发关键词:插件开发、Native 插件、MCP 插件、Process 插件、进程插件、发布插件、安装插件。
SkillAFreshness: A★ 55Claude Code +9 - 0.659score
bt-cli
sunyonghuan
Use the bundled Native AOT Baota panel CLI for single-server operations, server-matrix orchestration, website management, system queries, and config edits.
SkillAFreshness: A★ 55Claude Code +9 - 0.658score
skill-writer
sunyonghuan
Skill creation template and guidelines for writing properly formatted skills
SkillAFreshness: A★ 55Claude Code +9 - 0.655score
skill-plugin-installation
sunyonghuan
安装 Madorin skill 或 plugin;处理 zip/目录批量安装、解压、覆盖和结构校验。
SkillAFreshness: A★ 55Claude Code +9 - 0.653score
csharp-scripts
sunyonghuan
以脚本方式运行单文件 C# 程序,用于快速实验、原型验证和概念测试。当用户希望编写并执行一个小型 C# 程序而无需创建完整项目时使用。
SkillAFreshness: A★ 55Claude Code +9
Signals
- Stars
- 55
- Forks
- 8
- Open issues
- 0
- Last commit (this folder)
- Jul 3, 2026 (3 months ago)
- Last release
- Oct 23, 2026 (6 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/sunyonghuan/Netor.Madorin
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from sunyonghuan
- 0.666score
server-maintainer
sunyonghuan
Central dispatcher for server management.
SkillAFreshness: A★ 55Claude Code +9 - 0.661score
websocket-integration
sunyonghuan
Madorin PluginBus WebSocket 接入。用于生成 /internal 单端点、cortana.plugin-bus、conversation topic、conversation.chat.message.send、conversation.chat.generation.stop、system…
SkillAFreshness: A★ 55Claude Code +9 - 0.661score
workspace-initializer
sunyonghuan
Detect whether the current working directory is initialized from injected project memory and, if empty, guide the user through initializing its folder…
SkillAFreshness: A★ 55Claude Code +9 - 0.661score
plugin-development
sunyonghuan
Madorin 插件开发入口技能。用于统一编排 Native、MCP、Process 三类通道,约束工程规范、插件元数据协议、宿主能力申请、设置界面 schema、外部包 AOT 校验、发布安装与运行时更新流程。触发关键词:插件开发、Native 插件、MCP 插件、Process 插件、进程插件、发布插件、安装插件。
SkillAFreshness: A★ 55Claude Code +9 - 0.659score
bt-cli
sunyonghuan
Use the bundled Native AOT Baota panel CLI for single-server operations, server-matrix orchestration, website management, system queries, and config edits.
SkillAFreshness: A★ 55Claude Code +9 - 0.658score
skill-writer
sunyonghuan
Skill creation template and guidelines for writing properly formatted skills
SkillAFreshness: A★ 55Claude Code +9
Cite this page
layui skill. Agent Mart. https://agentmart.dev/skills/sunyonghuan-layui (last updated 2026-10-24)