Skip to content
cccskills
FreePublished on GitHub

onequery-openclaw

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

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md2.6 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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, command substitution, or chained commands.
  • For long or quote-heavy SQL, write it to a temporary UTF-8 file and use --file <path> instead of forcing brittle shell escaping.
  • If onequery is unavailable, ask the operator to install it or expose it on PATH.
  • If exec runs under restrictive approval or allowlist policy, ask the operator to allow the resolved onequery binary or enable skill-bin auto-allow.
  • In your final answer, report the org, source, and any request id returned by the CLI.

Recovery:

  • Auth issues: rerun onequery auth whoami, then ask the user to refresh the OneQuery CLI session if needed.
  • Org ambiguity: onequery org list --page-size 25
  • Source ambiguity: onequery source list --org <org> --page-size 25, then onequery source show <source> --org <org>
  • SQL shape issues: onequery query validate ...

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

The English summary is being prepared. Showing the original description.

wordbricks/onequery17Updated Jul 30, 2026

A scoring scale for evaluating how well a CLI is designed for AI agents, based on the "Rewrite Your CLI for AI Agents" principles.

The English summary is being prepared. Showing the original description.

wordbricks/onequery17Updated Jul 30, 2026

Score a repository's agentic legibility from repo-visible evidence only. Use when Codex needs to audit how easy a codebase is for coding agents to discover, bootstrap, validate, and navigate, especially for harness-engineering reviews, developer-experience audits, repo cleanup, or before/after comparisons after improving docs, tooling, or architectural constraints.

The English summary is being prepared. Showing the original description.

wordbricks/onequery17Updated Jul 30, 2026

astro

Free

Expert in Astro framework with static generation and partial hydration patterns

The English summary is being prepared. Showing the original description.

wordbricks/onequery17Updated Jul 30, 2026

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep watching open PRs so fresh review feedback is surfaced promptly. Use when the user asks Codex to monitor a PR, watch CI, handle review comments, or keep an eye on failures and feedback on an open PR.

The English summary is being prepared. Showing the original description.

wordbricks/onequery17Updated Jul 30, 2026

Adopt better-result in an existing TypeScript codebase. Use when replacing try/catch, Promise rejection handling, null sentinels, or thrown domain exceptions with typed Result workflows.

The English summary is being prepared. Showing the original description.

wordbricks/onequery17Updated Jul 30, 2026

See all skills by wordbricks

Report a problem with this skill