An expert and knowledge base for the amis low-code framework. **Strict trigger conditions**: The user must explicitly mention keywords such as 'amis', 'low-code', 'Baidu amis', etc. **Core capabilities**: (1) Answer amis usage questions (component usage, property configuration, expressions, events, etc.), (2) Generate amis JSON schema (CRUD, forms, cards, dialogs, etc.), (3) Generate amis static HTML preview pages (only when the user explicitly requests amis + preview/static HTML), (4) Debug and optimize amis configurations. **Strictly prohibited triggers**: (1) The user does not mention amis or low-code, (2) The user explicitly requests other frameworks (React, Vue, Angular, Vite, or other engineering projects), (3) The user only says 'generate form' without mentioning amis. **Keywords**: amis, low-code, Baidu amis, aisuda, amis schema, amis components, amis preview.
amis 低代码框架专家和知识库,用于快速构建 amis 页面和回答 amis 使用问题。
这是一个 amis 框架专家 + 知识库,提供:
只有当你明确提到以下关键词时才会触发:
示例:
你: amis 的 CRUD 组件怎么配置筛选条件?
你: amis 表达式怎么写?
你: 如何在 amis 中绑定点击事件?
你: amis 的 Dialog 和 Drawer 有什么区别?
Skill 会:
用户: 根据这些字段生成表单:
[
{"name": "username", "displayName": "用户名", "fieldType": 1, "isRequired": 1},
{"name": "email", "displayName": "邮箱", "fieldType": 1, "isRequired": 0}
]
用户: CRUD 组件怎么用?
用户: Form 表单的属性有哪些?
文档查询优先级(三层保障):
Context7 MCP 服务器(主力)
/baidu/amis 或 /websites/baidu_github_io_amis_zh-cnGitHub Raw 查询(兜底)
search_docs.py 脚本项目模板参考(补充)
references/amis-templates.mdreferences/field-types.mdamis-builder/
├── SKILL.md # 核心指令
├── README.md # 使用说明
├── scripts/
│ └── search_docs.py # 从 GitHub 搜索 amis 文档(兜底方案)
├── references/
│ ├── field-types.md # 字段类型映射配置
│ └── amis-templates.md # 常用页面模板
└── config/
└── docs-path.json # 配置文件
推荐方式:直接在 Claude Code 中查询
在对话中直接询问 amis 相关问题,Claude Code 会自动调用 Context7 MCP 服务器查询。
兜底方式:使用 search_docs.py 脚本
如果 Context7 查询失败,可以使用脚本从 GitHub 获取:
# 搜索组件文档
python3 scripts/search_docs.py "crud"
# 搜索表单组件
python3 scripts/search_docs.py "form"
# 搜索其他组件
python3 scripts/search_docs.py "dialog"
脚本会从 GitHub Raw 实时获取官方文档。
| fieldType | 组件类型 | 说明 | |-----------|---------|------| | 1 | input-text | 文本输入 | | 2 | input-number | 数字输入 | | 3 | textarea | 多行文本 | | 4 | select | 下拉选择 | | 5 | input-date | 日期选择 | | 6 | input-image | 图片上传 | | 7 | input-file | 文件上传 | | 8 | switch | 开关 | | 9 | input-city | 城市选择 |
详细配置请查看 references/field-types.md。
Skill 输出的 JSON schema 格式:
<<<<<<< START_TITLE index.json >>>>>>> END_TITLE
\`\`\`json
{
"type": "form",
"api": {
"method": "post",
"url": "/api/create"
},
"body": [
{
"type": "input-text",
"name": "username",
"label": "用户名",
"required": true
}
]
}
\`\`\`
{
"amis_docs_root": "",
"components_dir": "components",
"concepts_dir": "concepts",
"extend_dir": "extend",
"_comment": "如果你有本地 amis 文档,请配置 amis_docs_root 路径"
}
说明:
amis_docs_root: 本地 amis 文档路径(可选)A: 编辑 references/field-types.md,添加新的字段类型配置。
A:
search_docs.py 脚本从 GitHub 获取A: 脚本会自动降级到 GitHub Raw 查询,直接从官方仓库获取文档。
用户: 帮我生成一个用户表单,包含用户名和邮箱字段
输出:
{
"type": "form",
"mode": "horizontal",
"labelWidth": 112,
"columnCount": 2,
"api": {
"method": "post",
"url": "/api/user/create"
},
"body": [
{
"type": "input-text",
"name": "username",
"label": "用户名",
"required": true
},
{
"type": "input-email",
"name": "email",
"label": "邮箱",
"required": false
}
]
}
用户: 帮我生成一个用户列表页面
输出:
{
"type": "crud",
"api": "/api/user/list",
"headerToolbar": [
{
"type": "button",
"label": "新增",
"icon": "fa fa-plus",
"actionType": "dialog",
"dialog": {
"title": "新增用户",
"size": "lg",
"body": {
"type": "form",
"api": {
"method": "post",
"url": "/api/user/create"
},
"body": [...]
}
}
}
],
"columns": [
{"name": "id", "label": "ID"},
{"name": "username", "label": "用户名"},
{"name": "email", "label": "邮箱"}
]
}
Bamzc
MIT
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer