Agent skill

Yida Data Source Connectors

by openyida in openyida/openyida

基于 JSX 组件 自定义页面设计器 dataSourceMap 专用技能。仅用于维护已存在的 Page dataSource.online / this.dataSourceMap.<name.load() 形态。YidaCodeCanvas 组件没有 dataSourceMap;使用 YidaCodeCanvas 组件实现的自定义页面数据接入必须改用…

MITAuto-check passedFrontend & Design

Install Yida Data Source Connectors

skills CLI
$ npx skills add openyida/openyida --skill yida-data-source-connectors -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install openyida/openyida yida-data-source-connectors --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/openyida/openyida.git skills-src && mkdir -p .claude/skills && cp -r skills-src/yida-skills/skills/yida-data-source-connectors .claude/skills/yida-data-source-connectors && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
yida-data-source-connectors
GitHub stars
220
Token cost
~1.2k tokens
SKILL.md length
237 words
Files
1
Skills in repo
58
Repo updated
First seen
Licence
MIT

At a glance

基于 JSX 组件 自定义页面设计器 dataSourceMap 专用技能。仅用于维护已存在的 Page dataSource.online / this.dataSourceMap.<name.load() 形态。YidaCodeCanvas 组件没有 dataSourceMap;使用 YidaCodeCanvas 组件实现的自定义页面数据接入必须改用…

  • Works in 5 steps: 确认连接器与 Action → 规划数据源名称 → 注册 dataSource.online → …
  • Tasks that involve React components
  • SKILL.md covers 核心定位, 路由边界, 平台 JSX 组件核心规则 and 平台 JSX 组件实施流程, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Yida Data Source Connectors is an agent skill from openyida/openyida. 基于 JSX 组件 自定义页面设计器 dataSourceMap 专用技能。仅用于维护已存在的 Page dataSource.online / this.dataSourceMap.<name.load() 形态。YidaCodeCanvas 组件没有 dataSourceMap;使用 YidaCodeCanvas 组件实现的自定义页面数据接入必须改用 yida-canvas-data-binding / HTTP 数据桥。

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering React components. The repository describes itself as: Your own personal YiDA AI assistant! The licence is MIT.

When your agent uses it

  • Tasks that involve React components

Example prompts

  • “/yida-data-source-connectors”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. 确认连接器与 Action
  2. 规划数据源名称
  3. 注册 dataSource.online
  4. 页面只调用已注册数据源
  5. 恢复状态

What it can do on your machine

Read from SKILL.md and the folder at commit 3dd4693. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript and bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Yida Data Source Connectors loads about 1.2k tokens when it runs. Until then it costs about 62 tokens; SKILL.md has 237 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~62
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from openyida/openyida at commit 3dd4693, republished under its MIT licence (© openyida). 237 words, ~1,216 tokens.

Download SKILL.mdSave it as .claude/skills/yida-data-source-connectors/SKILL.md (or your agent's skills folder).
name
yida-data-source-connectors
description
基于 JSX 组件 自定义页面设计器 dataSourceMap 专用技能。仅用于维护已存在的 Page dataSource.online / this.dataSourceMap.<name>.load() 形态。`YidaCodeCanvas` 组件没有 dataSourceMap;使用 `YidaCodeCanvas` 组件实现的自定义页面数据接入必须改用 yida-canvas-data-binding / HTTP 数据桥。

宜搭设计器 dataSourceMap 连接器数据源规范

核心定位

本技能只服务已存在的历史平台 JSX 组件页面中的设计器 Page dataSource.online 配置:

text
设计器 Page dataSource.online
  → this.dataSourceMap.<name>.load()
  → 连接器 / REMOTE 数据源

它不是 YidaCodeCanvas 组件页面通用数据接入技能。YidaCodeCanvas 组件没有平台 JSX 组件页面实例 this,也没有 dataSourceMap;遇到 .canvas.jsx、YidaCodeCanvas、YidaComp、React hooks 或新建自定义页面看板时,立即改用:

text
use_skill("yida-canvas-data-binding", "为使用 YidaCodeCanvas 组件实现的页面接入连接器或同源 API 数据")

需要 YidaCodeCanvas 组件运行时规范时,按 yida-canvas-custom-page 的自定义页面规范处理。

路由边界

信号路由
.oyd.jsx、.oyb.jsx、renderJsx、平台 Jsx 组件页面、已有 this.dataSourceMap本技能
用户明确要求“设计器左侧数据源可见”本技能
维护已有 dataSource.online / YIDACONNECTOR Schema本技能
YidaCodeCanvas、.canvas.jsx、YidaComp、hooksyida-canvas-data-binding
新建看板/工作台/列表/详情需要连接器数据不使用本技能
需要创建/管理连接器或 Action 本身yida-connector

不要为了使用本技能而把 YidaCodeCanvas 组件页面改写成平台 JSX 组件页面。

平台 JSX 组件核心规则

历史平台 JSX 组件页面调用连接器或远程 API 时,先在设计器 Page 根节点 dataSource.online 注册数据源,再通过:

javascript
this.dataSourceMap.<数据源名>.load()

禁止在平台 JSX 组件页面用 fetch、XMLHttpRequest、/query/newconnector/testConnector.json、ConnectorFactory.testConnector 或手写外部 URL 绕过设计器数据源。

官方示例回读时可能把数据源归一为:

text
REMOTE
  + /query/publicService/invokeService.json
  + serviceInfo.connectorInfo

这是平台可接受的只读形态;源码仍以可审计的连接器配置为准,不写死 _csrf_token。

平台 JSX 组件实施流程

1. 确认连接器与 Action
bash
openyida connector detail <connector-id>
openyida connector list-actions <connector-id>
2. 规划数据源名称

使用业务语义小驼峰,例如:

  • getDeviceList
  • getDeviceState
  • submitDeviceCommand

每个远程能力使用独立数据源;查询、详情、保存、删除不要混成一个万能 Action。

3. 注册 dataSource.online

连接器数据源需要:

  • dpType: "YIDACONNECTOR"
  • protocal: "REMOTE"
  • requestHandler.value: "this.utils.legaoBuiltin.dataSourceHandler"
  • options.connector 指向连接器名
  • options.connectorAction.value 使用 Action operationId
  • options.params.inputs 包含 Headers、Query、Body
  • options.shouldFetch: false,页面按需触发
  • options.didFetch 归一返回 content
  • options.onError 暴露数据源/Action 名并恢复 loading
4. 页面只调用已注册数据源
javascript
export function loadConnectorDataSource(dataSourceName, headers, query, body) {
  var dataSource = this.dataSourceMap && this.dataSourceMap[dataSourceName];
  if (!dataSource || typeof dataSource.load !== 'function') {
    return Promise.reject(new Error('页面数据源不存在:' + dataSourceName));
  }
  return dataSource.load({
    inputs: JSON.stringify({
      Headers: headers || {},
      Query: query || {},
      Body: body || {}
    })
  });
}
5. 恢复状态
  • 请求失败、取消或超时后必须 loading: false。
  • 页面显示具体错误或 toast,不能只写 console。
  • 超时和重试必须有限,不能永久停在“加载中”。
  • mutation 操作避免重复提交;按钮有 submitting/disabled 状态。

YidaCodeCanvas 数据接入边界

YidaCodeCanvas 组件源码中不得复制上面的 this.dataSourceMap 代码。使用 YidaCodeCanvas 组件实现的页面数据接入使用:

  • dataBinding.mode=connector + 同源代理 endpoint。
  • 或 dataBinding.mode=url/form/report + DataBridge。
  • fetch(..., { credentials: 'include' })。
  • CSRF、AbortController、返回体解包、totalCount 保护、silent refresh。
  • Cookie、密钥、签名留在平台连接器或后端服务侧。

详细规则由 yida-canvas-data-binding 决定。本技能只负责判断当前需求是否属于历史 dataSourceMap 维护,不为 YidaCodeCanvas 组件页面发明伪 dataSourceMap。

发布与回读验证

bash
openyida check-page <src>
openyida compile <src>
openyida publish <src> <appType> <formUuid> --health-check
openyida get-schema <appType> <formUuid>

这些是历史平台 JSX 组件页面验证步骤。使用 YidaCodeCanvas 组件实现的页面验证必须使用 compileCanvasLocal、.canvas.jsx 发布和 YidaCodeCanvas/runtimeCode 回读,不要复用这里的 check-page 默认。

平台 JSX 组件回读检查:

  • 设计器左侧“数据源”能看到连接器数据源。
  • dataSource.online 存在显式连接器数据源,或被平台归一为 REMOTE + publicService/invokeService + serviceInfo.connectorInfo。
  • actions.module.source 没有 ConnectorFactory.testConnector、newconnector/testConnector 或外部 API 直连。
  • 运行时代码使用 this.dataSourceMap.<name>.load()。

反模式

平台 JSX 组件反模式
javascript
fetch('https://api.example.com/data');
new XMLHttpRequest();
postYidaForm('/query/newconnector/testConnector.json?_api=ConnectorFactory.testConnector', payload);
YidaCodeCanvas 反模式
javascript
// YidaCodeCanvas 组件中不存在 this 页面实例
this.dataSourceMap.getDeviceList.load();

也禁止看到连接器需求就自动选择本技能;先判断页面运行时。

验收清单

  • 已确认目标是历史平台 JSX 组件页面,而不是 YidaCodeCanvas 组件页面。
  • Page Schema 包含可审计的数据源配置。
  • 平台 JSX 组件页面代码只通过 this.dataSourceMap 调用。
  • loading / error / timeout / retry 可恢复。
  • check-page、compile、发布回读属于历史平台 JSX 组件页面维护范围且通过。
  • 如果目标是 YidaCodeCanvas 组件页面,已转 yida-canvas-data-binding,本技能没有生成平台 JSX 组件页面代码。

子表内嵌明细只返回 50 行时,应使用 openyida data query subform 按 formInstId + tableFieldId 分页查询,不为此新建连接器数据源。

© openyida, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in yida-skills/skills/yida-data-source-connectors of openyida/openyida.

Open the folder on GitHubat commit 3dd4693

Compare with similar skills

Yida Data Source Connectors next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Yida Data Source Connectors compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Yida Data Source Connectors this skillopenyida/openyida220—~1.2kAutomated safety check: PassMIT
Web Artifacts Builderanthropics/skills180k41 repos~769Automated safety check: PassApache-2.0
Tailwindcss Developmentanonaddy/anonaddy4.9k10 repos~865Automated safety check: PassMIT
Core Component Library PatternsChrisWiles/claude-code-showcase6.1k8 repos~1.2kAutomated safety check: PassNone
React Router Developmentremix-run/react-router57k1 repos~1.5kAutomated safety check: PassMIT
React UI State PatternsChrisWiles/claude-code-showcase6.1k8 repos~1.6kAutomated safety check: PassNone

Similar skills

  • Web Artifacts Builder

    anthropics/skills

    Official

    Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.

    180k GitHub starsUsed in 41 repos~769 tokens
    Frontend & DesignAuto-check passed
  • Tailwindcss Development

    anonaddy/anonaddy

    Always invoke when the user's message includes 'tailwind' in any form.

    4.9k GitHub starsUsed in 10 repos~865 tokens
    Frontend & DesignAuto-check passed
  • Core Component Library Patterns

    ChrisWiles/claude-code-showcase

    Reference for building UI with a token-based core component library: spacing, color and typography tokens, Box, stacks, Text, Button, Input and Card, plus layout patterns.

    6.1k GitHub starsUsed in 8 repos~1.2k tokens
    Frontend & DesignAuto-check passed
  • React Router Development

    remix-run/react-router

    Guides work on React Router apps by first identifying whether the app uses Framework, Data or Declarative mode, then loading the matching reference and the installed package docs.

    57k GitHub starsUsed in 1 repo~1.5k tokens
    Frontend & DesignAuto-check passed
  • React UI State Patterns

    ChrisWiles/claude-code-showcase

    Sets patterns for React interfaces: when to show loading spinners or skeletons, how to surface errors, how to disable buttons during async work and how to handle empty lists.

    6.1k GitHub starsUsed in 8 repos~1.6k tokens
    Frontend & DesignAuto-check passed
  • Chakra UI v3 Builder

    chakra-ui/chakra-ui

    Builds responsive, accessible Chakra UI v3 components and layouts, sets up Chakra in new or existing projects, and designs themes with tokens, semantic tokens and recipes.

    41k GitHub stars~3.1k tokensUpdated yesterday
    Frontend & DesignAuto-check passed

More from openyida/openyida

All 58 skills in this repo
  • Yida Canvas Custom Page

    openyida/openyida

    宜搭自定义页面开发规范,使用 YidaCodeCanvas 组件实现现代 React18 自定义页面。用于官网、看板、工作台、列表、详情、门户壳、可视化、hooks 交互、表单入口,以及需要门户组件、数据管理视图、成员、部门或上传组件的场景;发布层自动注入 yida/utils window 桥。

    220 GitHub stars~4.3k tokensUpdated 8 days ago
    Auto-check passed
  • Openyida Release

    openyida/openyida

    快速发布 OpenYida npm 正式版或测试版。用户说“发布正式版”“发布测试版”“发 beta”或要求按当天日期生成版本 tag 时使用;不用于宜搭应用或自定义页面发布。

    220 GitHub stars~520 tokensUpdated 8 days ago
    Auto-check passed
  • Yida Design Plan

    openyida/openyida

    Plan 模式的视觉设计分支。基于需求选择视觉方向,再结合业务页面规划维护 build-plan.json 的 visualStyle,供 CLI 派生 design.md。

    220 GitHub stars~756 tokensUpdated 8 days ago
    Auto-check passed
  • Prevent stale local OpenYida custom page source from overwriting live designer edits.

    220 GitHub stars~1.2k tokensUpdated 8 days ago
    Auto-check passed
  • Codemap

    openyida/openyida

    Generate, update, or drift-check agent-facing CodeMaps as progressive code terrain indexes for projects, features, capabilities, functions, modules, or bug chains.

    220 GitHub stars~1k tokensUpdated 8 days ago
    Auto-check passed
  • Sdd Riper One Light

    openyida/openyida

    面向 GPT-5.5 等强模型和熟练用户的轻量 AI Agent Harness / checkpoint-driven coding skill。默认用户已经把任务切到基本可执行的最小混沌单元;模型自行分解、探索与推进,人类通过最终目标、最小 spec、复述、checkpoint、证据验证与回写来低干扰控盘。

    220 GitHub stars~1.5k tokensUpdated 8 days ago
    Auto-check passed

Questions about Yida Data Source Connectors

What does Yida Data Source Connectors do?

基于 JSX 组件 自定义页面设计器 dataSourceMap 专用技能。仅用于维护已存在的 Page dataSource.online / this.dataSourceMap.<name.load() 形态。YidaCodeCanvas 组件没有 dataSourceMap;使用 YidaCodeCanvas 组件实现的自定义页面数据接入必须改用…. Yida Data Source Connectors is an agent skill from openyida/openyida.

When should I use Yida Data Source Connectors?

Yida Data Source Connectors fits situations like: tasks that involve React components.

How do I install Yida Data Source Connectors in Claude Code?

Run `npx skills add openyida/openyida --skill yida-data-source-connectors -a claude-code`. Or copy the skill folder (yida-skills/skills/yida-data-source-connectors in openyida/openyida) into .claude/skills/yida-data-source-connectors in your project. Claude Code loads it when a task matches its description.

How do I install Yida Data Source Connectors in Codex?

Run `npx skills add openyida/openyida --skill yida-data-source-connectors -a codex`. Or copy the skill folder (yida-skills/skills/yida-data-source-connectors in openyida/openyida) into .agents/skills/yida-data-source-connectors in your project. Codex loads it when a task matches its description.

Can I use Yida Data Source Connectors in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add openyida/openyida --skill yida-data-source-connectors -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/yida-data-source-connectors, .gemini/skills/yida-data-source-connectors, .github/skills/yida-data-source-connectors and .opencode/skills/yida-data-source-connectors in your project.

What does Yida Data Source Connectors need to run?

SKILL.md names no scripts, command-line tools or credentials: Yida Data Source Connectors is instructions for the agent only.

Does Yida Data Source Connectors access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Yida Data Source Connectors safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Yida Data Source Connectors use?

Yida Data Source Connectors is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Yida Data Source Connectors use?

About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Yida Data Source Connectors?

Skills that share tags, products or a category with Yida Data Source Connectors: Web Artifacts Builder (anthropics/skills, 180k stars), Tailwindcss Development (anonaddy/anonaddy, 4.9k stars), Core Component Library Patterns (ChrisWiles/claude-code-showcase, 6.1k stars) and React Router Development (remix-run/react-router, 57k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Yida Data Source Connectors?

openyida (a GitHub organization) maintains it in openyida/openyida, which has 220 GitHub stars. The repository holds 58 skills in this directory. The repository was last updated on September 30, 2026.

Source: openyida/openyida on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.