← 返回 Skills 市场
kadbbz

Operate Web Apps Built by Forguncy (aka 活字格)

作者 宁伟 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
244
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install forguncy-web-operator
功能描述
Provides functionality to interact with SpreadJS tables in the web applications built by Forguncy (aka 活字格), specifically for extracting table data and colum...
使用说明 (SKILL.md)

Forguncy Web Operations (forguncy-web-operator)

This skill allows you to extract data and headers from SpreadJS tables within the web applications built by Forguncy (aka 活字格).

How to use

The following JavaScript snippets can be executed in the browser context using the browser.act tool with kind: "evaluate" to retrieve data from a SpreadJS table.

Dynamically Get Table Name (fgcname)

First, you need to identify the fgcname of the SpreadJS table. You can find this by inspecting the DOM or using a JavaScript snippet like this to find elements with fgc-uielement="listview" and extract their fgcname:

(function() {
    const listViews = document.querySelectorAll('[fgc-uielement="listview"]');
    let fgcNames = [];
    listViews.forEach(lv => {
        if (lv.hasAttribute('fgcname')) {
            fgcNames.push(lv.getAttribute('fgcname'));
        }
    });
    return fgcNames;
})()

Once you have the fgcname (e.g., "表格1"), you can use it in the following functions.

Get Table Data

To get the full table data in CSV format (rows separated by '\r', columns by ','), replace YOUR_TABLE_FGCNAME with the actual fgcname you found:

(function() {
    const tableName = "YOUR_TABLE_FGCNAME"; // Replace with the actual fgcname, e.g., "表格1"
    var sheet = Forguncy.Page.getListView(tableName).getControl().getActiveSheet();
    return sheet.getCsv(0,0,sheet.getRowCount(), sheet.getColumnCount(),"\r",",");
})()

Get Column Headers

To get the column headers, assuming there are 2 header rows (adjust headerRowCount if necessary), replace YOUR_TABLE_FGCNAME with the actual fgcname:

(function() {
    const tableName = "YOUR_TABLE_FGCNAME"; // Replace with the actual fgcname, e.g., "表格1"
    var sheet = Forguncy.Page.getListView(tableName).getControl().getActiveSheet();
    var headerRowCount = sheet.getRowCount(GC.Spread.Sheets.SheetArea.colHeader); 
    var headers = [];
    for (let r = 0; r \x3C headerRowCount; r++) {
        var rowHeaders = [];
        for (let c = 0; c \x3C sheet.getColumnCount(); c++) {
            rowHeaders.push(sheet.getValue(r, c, GC.Spread.Sheets.SheetArea.colHeader));
        }
        headers.push(rowHeaders);
    }
    return headers;
})()

Remember to pass the targetId obtained from a browser.open or browser.snapshot call when executing these scripts.

安全使用建议
This skill runs arbitrary JavaScript inside a web page's context to read Forguncy/SpreadJS tables, so only use it on pages you trust and that actually host Forguncy/SpreadJS (it expects global Forguncy and GC.Spread objects). Because it executes in-page JS, it can access any data visible in the page — avoid using it on pages with sensitive information unless you trust the agent and environment. There are no extra installs or credentials requested. If you want extra assurance, test the snippets manually in the browser console on a safe sample page before enabling automated runs.
功能分析
Type: OpenClaw Skill Name: forguncy-web-operator Version: 1.0.2 The skill provides legitimate JavaScript snippets for interacting with Forguncy (SpreadJS) web applications to extract table data and headers. The code in SKILL.md uses standard Forguncy APIs (e.g., Forguncy.Page.getListView) and browser DOM methods to retrieve information from the current page context, with no evidence of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
Name/description match the SKILL.md: all content is about locating 'fgcname' and reading SpreadJS tables via in-page JS. No unrelated credentials, binaries, or installs are requested.
Instruction Scope
Instructions are limited to DOM inspection and SpreadJS API calls run in the browser evaluate context (browser.act). They do not request unrelated files, system config, or external endpoints. They explicitly require a targetId from browser.open/snapshot, which is appropriate.
Install Mechanism
No install spec and no code files — instruction-only. This minimizes disk persistence and installation risk.
Credentials
No environment variables, credentials, or config paths are requested. The skill relies solely on running JS inside the target web page, which is proportional to the described functionality.
Persistence & Privilege
always is false and there is no self-modifying installation. The skill does not request elevated or persistent privileges beyond the normal ability to execute browser.evaluate scripts.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install forguncy-web-operator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /forguncy-web-operator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- No file changes detected in this version. - No updates to functionality, documentation, or code.
v1.0.1
- Updated the skill name and description to clarify its usage with Forguncy (活字格) web applications. - Revised documentation to consistently refer to "Forguncy" instead of "HZG." - No code or functional changes; documentation improvements only.
v1.0.0
Initial release of forguncy-web-operator. - Enables extraction of data and headers from SpreadJS tables in Forguncy web applications. - Provides JavaScript examples for: - Dynamically identifying table "fgcname" attributes. - Exporting table data in CSV format. - Reading table column headers (supports configurable header row count). - Designed for browser-side execution via `browser.act` (evaluate). - Useful for automating table content retrieval within Forguncy-driven web pages.
元数据
Slug forguncy-web-operator
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Operate Web Apps Built by Forguncy (aka 活字格) 是什么?

Provides functionality to interact with SpreadJS tables in the web applications built by Forguncy (aka 活字格), specifically for extracting table data and colum... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 244 次。

如何安装 Operate Web Apps Built by Forguncy (aka 活字格)?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install forguncy-web-operator」即可一键安装,无需额外配置。

Operate Web Apps Built by Forguncy (aka 活字格) 是免费的吗?

是的,Operate Web Apps Built by Forguncy (aka 活字格) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Operate Web Apps Built by Forguncy (aka 活字格) 支持哪些平台?

Operate Web Apps Built by Forguncy (aka 活字格) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Operate Web Apps Built by Forguncy (aka 活字格)?

由 宁伟(@kadbbz)开发并维护,当前版本 v1.0.2。

💬 留言讨论