← Back to Skills Marketplace
kadbbz

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

by 宁伟 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ Security Clean
244
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install forguncy-web-operator
Description
Provides functionality to interact with SpreadJS tables in the web applications built by Forguncy (aka 活字格), specifically for extracting table data and colum...
README (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.

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install forguncy-web-operator
  3. After installation, invoke the skill by name or use /forguncy-web-operator
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug forguncy-web-operator
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 244 downloads so far.

How do I install Operate Web Apps Built by Forguncy (aka 活字格)?

Run "/install forguncy-web-operator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

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

Yes, Operate Web Apps Built by Forguncy (aka 活字格) is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Operate Web Apps Built by Forguncy (aka 活字格) support?

Operate Web Apps Built by Forguncy (aka 活字格) is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

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

It is built and maintained by 宁伟 (@kadbbz); the current version is v1.0.2.

💬 Comments