Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

steedos-object-micro-pagesSteedos 对象微页面

Agent Skill

steedos-object-micro-pages 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

279

周安装

12

GitHub Stars

1,617

下载量

98
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:steedos-object-micro-pages(Steedos 对象微页面)
来源仓库:https://github.com/steedos/steedos-platform
仓库路径:skills/steedos-object-micro-pages
安装命令:
npx skills add https://github.com/steedos/steedos-platform --skill steedos-object-micro-pages
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/steedos/steedos-platform --skill steedos-object-micro-pages

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 建议确认权限范围和维护状态,避免触发联网或文件读写操作。
  • steedos-object-micro-pages 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Steedos Object Pages | Steedos 对象页面

Overview | 概述

Object pages are custom record detail or list pages that replace or enhance the default UI for specific objects. They are defined as paired .page.yml and .page.amis.json files, associated with objects via pageAssignments.

对象页面是自定义的记录详情或列表页面,替换或增强特定对象的默认 UI。通过 pageAssignments 与对象关联。

File Location | 文件位置

Object pages are in the pages/ folder (NOT inside object folders):

steedos-packages/
└── my-package/
    └── main/default/
        └── pages/
            ├── order_detail.page.yml              # Record page metadata
            ├── order_detail.page.amis.json        # Record page UI schema
            ├── order_detail_mobile.page.yml       # Mobile variant
            ├── order_detail_mobile.page.amis.json
            ├── order_list.page.yml                # List page metadata
            └── order_list.page.amis.json

Page Types | 页面类型

Record Page (type: record) | 记录页面

Replaces the default record detail view for an object:

# pages/order_detail.page.yml
name: order_detail
label: Order Detail
type: record
object_name: orders
render_engine: amis
is_active: true
locked: false
pageAssignments:
  - type: orgDefault
    page: order_detail
    desktop: true
    mobile: false

List Page (type: list) | 列表页面

Replaces the default list view for an object:

# pages/order_list.page.yml
name: order_list
label: Order List
type: list
object_name: orders
render_engine: amis
is_active: true
locked: false
pageAssignments:
  - type: orgDefault
    page: order_list
    desktop: true
    mobile: false

Page YAML Properties | 页面 YAML 属性

PropertyTypeRequiredDescription
namestringYesUnique page name
labelstringYesDisplay label
typestringYes⚠️ MUST be record or list. No other values are valid.
object_namestringYesAssociated object API name
render_enginestringYes⚠️ MUST be amis. No other value is valid.
is_activebooleanYesEnable/disable page
lockedbooleanNoLock from editing
pageAssignmentsarrayYesDesktop/mobile display settings

pageAssignments | 页面分配

pageAssignments:
  - type: orgDefault        # Default for entire org
    page: order_detail      # Page name reference
    desktop: true           # Show on desktop
    mobile: false           # Don't show on mobile

API Call Rules | API 调用规则

⚠️ CRITICAL: When calling /api/v6/data/ endpoints in Amis schemas, the skip and top query parameters are REQUIRED. Omitting them will cause errors or return incomplete data. ⚠️ 重要:在 Amis Schema 中调用 /api/v6/data/ 接口时,skiptop 查询参数是必填的。省略会导致错误或返回不完整数据。
✅ Correct:  /api/v6/data/orders?skip=0&top=20
❌ Wrong:    /api/v6/data/orders

This rule applies to ALL /api/v6/ list endpoints: /api/v6/data/, /api/v6/tables/, /api/v6/direct/.

API v6 Response Structures | API v6 响应数据结构

⚠️ Different endpoints return DIFFERENT response formats. You MUST use the correct structure when writing adaptor or accessing data.
EndpointResponse Format
GET /api/v6/data/:obj (list){"data": [...], "totalCount": 42} — Items in data array
GET /api/v6/data/:obj/:id (single){"_id": "...", "name": "...",...} — Raw document, NOT wrapped
POST /api/v6/data/:obj (create){"_id": "...",...} — Raw created document, NOT wrapped
PATCH /api/v6/data/:obj/:id (update){"_id": "...",...} — Raw updated document, NOT wrapped
DELETE /api/v6/data/:obj/:id (delete){"deleted": true, "_id": "..."}
POST /api/v6/functions/:obj/:fn (function)Whatever the function returns — NO wrapping, raw return value

Amis Adaptor for Function Calls | 函数调用适配器

{
  "api": {
    "url": "/api/v6/functions/orders/approve",
    "method": "post",
    "requestAdaptor": "api.data = { id: context.recordId }",
    "adaptor": "return { ...payload, msg: payload.message || 'Success' }",
    "messages": { "success": "${msg}" }
  }
}
📖 For complete API v6 documentation (all endpoints, filter operators, complex filters, authentication), load the steedos-server-api skill. 📖 如需 API v6 完整文档(所有端点、筛选运算符、复合筛选、认证方式),请加载 steedos-server-api 技能

Amis JSON Schema | Amis JSON Schema

Record Detail Page Example | 记录详情页面示例

// pages/order_detail.page.amis.json
{
  "type": "page",
  "body": [
    {
      "type": "steedos-record-service",
      "objectApiName": "orders",
      "id": "steedos-record-detail",
      "body": [
        {
          "type": "steedos-record-detail-header"
        },
        {
          "type": "grid",
          "columns": [
            {
              "lg": 8,
              "md": 12,
              "body": [
                {
                  "type": "steedos-record-detail",
                  "objectApiName": "orders"
                }
              ]
            },
            {
              "lg": 4,
              "md": 12,
              "body": [
                {
                  "type": "panel",
                  "title": "Order Summary",
                  "body": {
                    "type": "tpl",
                    "tpl": "<div class=\"p-4\"><div class=\"text-2xl font-bold\">¥${total_amount}</div><div class=\"mt-2 text-gray-600\">${status}</div></div>"
                  }
                }
              ]
            }
          ]
        },
        {
          "type": "tabs",
          "className": "mt-4",
          "tabs": [
            {
              "title": "Order Items",
              "body": {
                "type": "steedos-object-listview",
                "objectApiName": "order_items",
                "filters": [["order", "=", "${_id}"]],
                "listName": "all"
              }
            },
            {
              "title": "Attachments",
              "body": {
                "type": "steedos-object-listview",
                "objectApiName": "cms_files",
                "filters": [["parent.ids", "=", "${_id}"]],
                "listName": "all"
              }
            }
          ]
        }
      ]
    }
  ]
}

Mobile Record Page Example | 移动端记录页面示例

# pages/order_detail_mobile.page.yml
name: order_detail_mobile
label: Order Detail (Mobile)
type: record
object_name: orders
render_engine: amis
is_active: true
locked: false
pageAssignments:
  - type: orgDefault
    page: order_detail_mobile
    desktop: false
    mobile: true

The mobile .page.amis.json typically uses a simpler single-column layout.

Steedos-Specific Amis Components | Steedos 专用 Amis 组件

ComponentDescription
steedos-record-serviceData loader for a single record
steedos-record-detail-headerStandard record header with buttons
steedos-record-detailStandard record detail form
steedos-object-listviewStandard object list view component

steedos-record-service

Wraps record data loading. All child components can access record fields via ${fieldName}:

{
  "type": "steedos-record-service",
  "objectApiName": "orders",
  "id": "steedos-record-detail",
  "body": [...]
}

steedos-object-listview

Embeds a list view for related records:

{
  "type": "steedos-object-listview",
  "objectApiName": "order_items",
  "filters": [["order", "=", "${_id}"]],
  "listName": "all"
}

Best Practices | 最佳实践

  1. Always pass skip and top: Every /api/v6/data/ list call in Amis schemas MUST include skip and top parameters.(每个 /api/v6/data/ 列表请求必须包含 skiptop 参数)
  2. Create separate desktop and mobile pages: Use _mobile suffix naming convention
  3. Use pageAssignments: Set desktop: true, mobile: false for desktop pages and vice versa
  4. Leverage Steedos components: Use steedos-record-service, steedos-record-detail, and steedos-object-listview instead of raw API calls where possible
  5. Keep AMIS JSON in separate file: Never put AMIS schema inline in the .page.yml
  6. Use responsive grid: lg/md breakpoints for multi-column layouts on desktop

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.34%
按下载量换算34

Claude

32.04%
按下载量换算31

Cursor

18.19%
按下载量换算18

Gemini CLI

10.53%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills