Datalion

From HybridAIOne/hybridclaw · View interactive version

Datalion is an AI agent skill from the GitHub repository HybridAIOne/hybridclaw. Use for DataLion workflows such as listing, reading, creating, or editing projects, inspecting data sources, importing Excel or CSV data, working with reports and report tabs and codebooks, reading chart tables, or coordinating dashboard and export work through a configured datalion MCP server and r

How to use this skill

Skill file

DataLion

Use this skill for DataLion project, project-settings, data-import, codebook,

chart-table, report, report-tab, dashboard, and export workflows.

In DataLion, "tab" and "dashboard" are used interchangeably for the report

subpages managed under a report.

Default Strategy

  1. Verify the datalion MCP server is enabled and inspect which

datalion__* tools are actually available in the current session.

  1. Use MCP first for supported actions.
  2. Do not invent Datalion MCP tools. If a matching tool is missing, switch to a

REST or browser/UI path from

references/setup-and-capabilities.md.

  1. Read first, write second. Restate the exact target object and proposed

mutation before calling a write path.

Setup

npm --prefix <path-to-your-datalion-repo>/mcp install

files or chat.

shell argument. In zsh, unquoted {...} and [...] will be expanded

before HybridClaw sees them.

references/setup-and-capabilities.md

for ready-to-paste CLI and TUI examples, dependency notes, and ability

requirements.

Working Rules

mutating anything.

creation, project settings updates, data source listing, CSV upload, full

Excel/CSV import, report list/create and tab CRUD, chart-table reads, and

codebook list, download, generation, deletion, and upload.

opening and widget insertion.

and 4 browser URL helpers.

when the exact target project is not already pinned down.

project-update tool.

the keys you pass and keeps the existing settings for all other keys.

project before uploading or troubleshooting data.

when you want Datalion's full import pipeline, including optional codebook

generation during import.

use datalion__download_codebook for the tree structure.

the file directly.

name if relevant, and whether existing rows should be truncated.

content, filename if you are not using localPath, whether you want the

default main data source (useDefaultDataSource=true) or a named data

source, and whether replaceData, runCalculations, convertComma,

skipLines, comment, and createCodebook should be enabled.

defsettings keys and values before calling.

before calling.

whether any explicit column mapping is needed. The current backend expects

columnMapping as an array aligned to the CSV header order.

Datalion repo and its OpenAPI or route definitions before choosing a fallback

path.

explicitly asks for them.

Current MCP Coverage

The current datalion bridge exposes these direct tools:

That means:

the raw CSV upload path, so it handles type detection, replace/append mode,

optional codebook generation, and optional calculations

directly

generation require fallback API or UI paths until the bridge grows more tools

Common Workflows

For explicit TUI testing, prefer /skill datalion ....

built-in slash-menu command, so do not use slash-menu visibility as the test

for whether the skill is installed

Create a Project

  1. Confirm the project name and any optional identcode or defsettings.
  2. Call datalion__create_project.
  3. Return the new project ID and recommend the next step, usually data import

or report/dashboard setup.

Create a Report

  1. Confirm the project ID and report name.
  2. Call datalion__create_report.
  3. Note that the report is seeded with a first tab and return both the report

ID and first tab ID.

Manage Report Tabs

  1. Call datalion__create_report_tab to add a tab to an existing report.
  2. Call datalion__edit_report_tab to rename or update a tab.
  3. Call datalion__delete_report_tab to remove a tab after confirming the

report and tab IDs.

  1. Keep projectId aligned with the report or tab/dashboard you are mutating.

Open In Browser

  1. Use datalion__open_project_browser for the project screen.
  2. Use datalion__open_report_browser for the report editor or a specific

report tab/dashboard.

  1. Use datalion__open_dashboard_browser for a specific tab/dashboard view.
  2. Use datalion__open_add_widget_browser to get the modal URL used to add a

question/widget to a tab/dashboard. The actual insertion still happens in

the browser UI after the modal is opened.

Find or Read a Project

  1. Call datalion__list_projects when the user gives a fuzzy project name or

identcode.

  1. Call datalion__read_project once you know the projectId.
  2. Use the returned defsettings, categoriesCount, and dataSourcesCount to

guide the next step.

Edit Project Settings

  1. Confirm projectId and the exact defsettings keys to merge.
  2. Call datalion__edit_project.
  3. Return the updated keys and note that untouched settings stay as they were.

Upload Data

  1. Confirm the target project ID.
  2. Call datalion__list_data_sources first if you need to inspect existing

data sources.

  1. Prefer CSV text input for the current bridge.
  2. Call datalion__upload_data.
  3. Return the job ID and the import assumptions you used.

Import Excel or CSV via Datalion Pipeline

  1. Confirm projectId and the source file path or file content.
  2. Prefer localPath for .xlsx imports when the file exists on disk.
  3. Use useDefaultDataSource=true when you want the workbook imported into

the main project data table and codebook generation to read from that same

table. Otherwise confirm dataSourceName.

  1. Confirm whether createCodebook should run during import.
  2. Call datalion__import_excel_data.
  3. Return the data source name, imported row count, and whether codebook

generation was requested.

Read a Chart Table

  1. Confirm projectId, chartId, and filters.
  2. Call datalion__get_chart_table.
  3. Summarize the result and surface obvious caveats.

Codebook Workflows

  1. For question-level inspection, call datalion__list_codebook.
  2. For tree-structured inspection, call datalion__download_codebook.
  3. For regenerate-from-data workflows, call datalion__generate_codebook.
  4. For destructive cleanup, call datalion__delete_codebook and confirm

whether includeTextboxes should be true.

  1. For CSV import, call datalion__upload_codebook with the filename, file

content, import mode, and any index-based columnMapping array that should

align with the CSV header order.

Reports

  1. Call datalion__list_reports to inspect existing reports for a project.
  2. Call datalion__create_report to create a new report once the target

project and report name are confirmed. The new report is seeded with a

first tab and the response includes both IDs.

  1. Use the report-tab tools for tab-level create/edit/delete work.
  2. Treat report edits beyond tab CRUD as fallback work until direct MCP

coverage exists.

Dashboards and Exports

  1. Check current datalion__* tool coverage first.
  2. If no direct tool exists, inspect openapi.yaml, routes/dashboard.php, and

routes/export.php in the local Datalion checkout or use browser automation

against the Datalion UI.

  1. Prefer REST endpoints for API-backed CRUD and browser/UI paths for web-only

export flows.

  1. Be explicit about which path you chose and why.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.