onequery-openclaw

Solid

Use OpenClaw's exec tool to inspect orgs, sources, and run bounded read-only SQL through the OneQuery CLI directly.

AI & Automation 17 stars 1 forks Updated 3 weeks ago Apache-2.0

Install

View on GitHub

Quality Score: 81/100

Stars 20%
42
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

Use this skill when the user wants company or customer data that should be read through OneQuery-managed access, or when you need to resolve org and source context before a bounded query. Use OpenClaw's `exec` tool to run the `onequery` CLI directly. Use these commands in this order: 1. `onequery auth whoami` 2. `onequery org current` or `onequery org list --page-size 25` 3. `onequery source list --org <org> --page-size 25` 4. `onequery source show <source> --org <org>` 5. `onequery query validate --org <org> --source <source> --sql '<sql>' --max-rows 100 --max-bytes 1048576 --cell-max-chars 2000 --timeout-ms 60000` 6. `onequery query exec --org <org> --source <source> --sql '<sql>' --max-rows 100 --max-bytes 1048576 --cell-max-chars 2000 --timeout-ms 60000` Rules: - Always pass an explicit `--org` to org-scoped source and query commands. - Prefer `query validate` before `query exec` for unfamiliar SQL or provider dialects. - Start with `select 1`, a row count, or a bounded aggregate before wide row dumps. - Keep reads aggressively bounded with `--max-rows`, `--max-bytes`, `--cell-max-chars`, and small page sizes. - `query exec` supports `--page-size`, `--cursor`, and `--page-all`; `query validate` does not. - Only run read-only SQL. Reject obviously mutating statements instead of executing them. - Treat informal source names as aliases to resolve, not literal source keys. - Use shell-safe argument construction. Do not pass user text through shell operators, ...

Details

Author
wordbricks
Repository
wordbricks/onequery
Created
4 months ago
Last Updated
3 weeks ago
Language
TypeScript
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category