Auto Pivot Table

v1.0.0

Build ORBCAFE advanced analytics and voice navigation with CPivotTable/usePivotTable and CAINavProvider/useVoiceInput using official examples patterns. Use f...

0· 13·0 current·0 all-time
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description (pivot + AINav) match the SKILL.md and the included reference examples and recipes. The npm packages and example file paths shown are consistent with implementing a React UI pivot/voice feature; nothing requested is out of scope for that purpose.
Instruction Scope
The SKILL.md instructs the agent/developer to inspect repository files (e.g., skills/orbcafe-ui-component-usage/...), run npm install, build and run example dev servers, and use localStorage or server persistence. These actions are normal for a development helper but do require executing project code from the repository; the skill does not instruct reading unrelated system files or exfiltrating data.
Install Mechanism
There is no registry install spec and no downloaded archives. The document tells developers to run npm install/build in their project — a typical developer workflow. No external or obscure URLs or archive extraction are requested by the skill itself.
Credentials
The skill does not request environment variables, credentials, or config paths. Guardrails explicitly call out that ASR auth and wsUrl should come from app config (and not hardcoded secrets). Example wsUrl uses ws://localhost:8765, which is local testing-oriented, not an external secret.
Persistence & Privilege
The skill is not marked always:true, does not request persistent system privileges, and is instruction-only. It does not modify other skills or system-wide agent settings.
Assessment
This skill is a development helper and appears internally consistent. Before using it: (1) run npm install/build only in a trusted repository (npm packages will be fetched from registries); (2) review example code referenced (examples/* and src/*) before running the dev server to ensure no unexpected behavior; (3) ensure ASR/websocket endpoints and any auth are provided via your app config (not hardcoded), and don't point production secrets to localhost or unknown external hosts; (4) if you plan to persist presets server-side, verify the backend integration and credentials separately.

Like a lobster shell, security has layers — review code before you run it.

latestvk97eryhft8d5mkhskdw0xw2bdx8439p5

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

ORBCAFE Pivot + AINav

Workflow

  1. 先对照 skills/orbcafe-ui-component-usage/references/module-contracts.md,确认这是 Hook-first 模块。
  2. references/domain-patterns.md 判定 pivot、voice 或组合模式。
  3. 执行安装与最小可运行接入。
  4. references/recipes.md 产出实现骨架。
  5. 对 pivot 需求额外检查是否需要三段式布局(配置区 + 图表区 + 结果区)、独立折叠、图表选择器和 preset 图表快照。
  6. references/guardrails.md 检查受控状态、preset 持久化、ASR 配置。
  7. 输出验收步骤与“没效果”排障。

Installation and Bootstrapping (Mandatory)

npm install orbcafe-ui @mui/material @mui/icons-material @mui/x-date-pickers @emotion/react @emotion/styled dayjs

本仓库联调:

npm run build
cd examples
npm install
npm run dev

参考实现:

  • examples/app/_components/PivotTableExampleClient.tsx
  • examples/app/_components/AINavExampleClient.tsx
  • src/components/PivotTable/PivotChart/

Output Contract

  1. Mode: Hook-first.
  2. Module choice: pivot or AINav (or both).
  3. Minimal implementation: controlled if persistence/integration needed.
  4. Ops note: preset 持久化、PivotChart 默认逻辑或 ASR 契约。
  5. Verify: 至少包括拖拽布局生效、聚合切换、图表切换、独立折叠、生效后持久化、语音触发与回调。
  6. Troubleshooting: 至少包含 3 条失效排查点。

Examples-Based Experience Summary

  • 需要持久化时优先 usePivotTable 受控模式,不要只依赖组件内部状态。
  • preset 持久化应在 onPresetsChange 回调落地(本地可用 localStorage,生产建议服务端)。
  • Pivot 默认是三段式:配置区、PivotChart、结果表格;图表区和表格区都能独立折叠。
  • PivotChart 最多只映射 1 个维度和 2 个度量。默认维度优先取 rows[0],否则 columns[0];默认主度量取 values[0]
  • 多维或多度量时,图表工具条应显示 4 个统一宽度的下拉:Dimension / Measure / Compare measure / Chart type
  • preset 不只保存布局和筛选,也要保存图表维度、主度量、对比度量和图表类型。
  • localStorage 读写放在浏览器安全边界(初始化判定 window,写入放 useEffect)。
  • AINav 强制提供 onVoiceSubmit,否则“录音了但业务不动作”。
  • 空格热键建议保持 ignoreWhenFocusedInput=true,避免输入框场景误触。

Files

5 total
Select a file
Select a file to preview.

Comments

Loading comments…