[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C2JTAYW208PEZXG94SD6SY":3,"skill-same:01M7C2JTAYW208PEZXG94SD6SY":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":13,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7C2JTAYW208PEZXG94SD6SY","execute",null,"Use when VQL or a Data Marketplace or Scheduler REST call has to run against a live Denodo 9.5 server — applying a .vql file, running DESC or a test SELECT, checking a connection — or when `scripts\u002Fdenodo` returned JSON with `ok:false` that needs interpreting. Not for writing VQL — that is \u002Fdenodo:vql and the domain skills.","kirivandubai\u002Fdenodo_wipe_coading_skills","kirivandubai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F221521416?v=4","01M7C2HC9KETA166XKR09YMKZQ","01M7C2HCAJ787NNYKMCG12S3DY",0,"MIT","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fexecute\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: execute\ndescription: Use when VQL or a Data Marketplace or Scheduler REST call has to run against a live Denodo 9.5 server — applying a .vql file, running DESC or a test SELECT, checking a connection — or when `scripts\u002Fdenodo` returned JSON with `ok:false` that needs interpreting. Not for writing VQL — that is \u002Fdenodo:vql and the domain skills.\nallowed-tools: Bash(${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fdenodo *)\n---\n\n# Executing against Denodo\n\nOne tool, `${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fdenodo`, does every live call. Every invocation\nprints exactly one JSON document on stdout; read `ok`, `error.kind` and the exit code\nbefore doing anything else. The tool sets up its own Python environment on first run\n(`uv` or a venv under the plugin data directory) — never install drivers by hand.\n\n**Violating the letter of the rules below is violating their spirit.** They exist\nbecause this plugin is installed on production servers.\n\n## Commands\n\nEvery command takes `--env \u003Cprofile>` (or `DENODO_ENV`). The profile is a *name*; the\ntool reads host, user and password from `~\u002F.denodo\u002Fprofiles.toml` itself.\n\n| Task | Command |\n|---|---|\n| Apply a file | `vql run --env dev model\u002Fsales\u002Fviews.vql` — after `vql plan` of the same file, and again after every change to it (`\u002Fdenodo:vql`): a file of new objects and a cache load included |\n| Apply inline VQL | `vql run --env dev -e \"SELECT COUNT(*) FROM bv_orders\"` — reads only: every `CREATE`, `ALTER` and `DROP` goes through a file (`\u002Fdenodo:vql`) |\n| Read stdin | `vql run --env dev -` |\n| Another database | add `--database \u003Cdb>` (or put `CONNECT DATABASE \u003Cdb>;` first in the file) |\n| What a file would do, before applying it | `vql plan --env dev model\u002Fsales\u002Fviews.vql` (also `-e`, `-`, `--database`) — reads the server and the session's ledger, executes nothing; per statement `action`, `object`, `exists`, `own`, `needs_yes`, `why`, `conditions`, `dependents` (an existing view's readers), and `yes` — what the yes is — when anything waits. The rule it applies is `\u002Fdenodo:vql`'s safety table |\n| What this session created | `vql ledger --env dev` — every object a `vql run` of this session created on the profile's server, each with its `state`, re-checked against the server: `present`, `missing` (gone without a `DROP` this session ran), `replaced` (the name now has another object), `dropped`; `states` counts them |\n| Schema of an object | `vql desc --env dev bv_orders` (`--type view` is the default and covers base views too — there is no `DESC TABLE`) |\n| Server-generated VQL | `vql desc --env dev bv_orders --vql` — read it, do not apply it: it opens with `DROP … CASCADE` and rebuilds the object **together with what it depends on** in its own database — dependencies in another database are left out, except under a metric view of another database: the metric view is left out and its source views come back unqualified, as if they were in yours — never with what depends on it. A name can be qualified — `vql desc --env dev \"other_db.bv_orders\" --vql` reads another database without switching yours — *verified: 9.5.1 (live, 2026-09-12)*. The object alone, without the data source its dependencies bring (and that source's encrypted password): `vql run --env dev -e \"DESC VQL VIEW bv_orders ('includeDependencies' = 'no', 'dropElements' = 'no')\"` — *verified: 9.5.1 (live, 2026-10-02)* |\n| Other types | `--type database`, `--type \"datasource df\"`, `--type \"wrapper df\"`, `--type tag`, `--type association`, `--type \"interface view\"`, `--type role`, `--type global_security_policy` (with `--vql`, as above); folders take a quoted path: `vql desc --env dev \"'\u002Fsales'\" --type folder --vql` |\n| Marketplace call | `api get --env dev \u002Fpublic\u002Fapi\u002Ftags` |\n| … planned, not sent | add `--plan` to any `api` call: `needs_yes`, `why`, `conditions`, `sent: false`; for `element-management\u002F{DATABASES,VIEWS}\u002Fsynchronize` it reads both `…\u002Fchanges` and marks every entry against the session's ledger (`radius.own`, `radius.not_own`) |\n| … with a body | `api post --env dev \u002Fpublic\u002Fapi\u002Ftags --json '{\"name\":\"pii\",\"description\":\"…\",\"descriptionType\":\"TEXT\"}'` |\n| … with the body in a file | `api put --env dev \u002Fpublic\u002Fapi\u002Fviews --json-file body.json` — for HTML, quotes, or a body you want to keep |\n| … query params \u002F multipart | `--param k=v` (repeatable), `--part field=@file` \u002F `field=json:{…}` |\n| Scheduler call | `api --server scheduler get --env dev \u002Fpublic\u002Fapi\u002Fprojects` — the same command against the Scheduler administration tool: the profile's account, and its Scheduler server as the `uri` parameter, are added. The profile may name both (`scheduler_url`, `scheduler_uri`); by default the web container of `marketplace_url` (or `http:\u002F\u002F\u003Chost>:9090`) and `\u002F\u002F\u003Chost>:8000`. A path with a `..` segment is refused on either server. What to call is `\u002Fdenodo:scheduler` |\n| Encrypt a source password | `secret encrypt --env dev` — the password is typed into a hidden prompt (in a terminal) or piped in on stdin, never passed as an argument; the answer carries `encrypted` and nothing else; the human runs it in their own terminal, and the procedure is `\u002Fdenodo:datasources`, **Passwords** |\n| Run `.denodotest` tests | `testing run --env dev --database \u003Cdb> --tool \u003Cdir> --java-home \u003CJava 17+> \u003Ctests folder>`, or `testing config` for a human who runs the tool — `\u002Fdenodo:testing`, **Running it** |\n| Which profiles exist | `env list` (never shows passwords) |\n| Is the server reachable, and who am I on it | `env check --env dev` (VDP, the marketplace if configured, and the Scheduler where the profile names a web container — `scheduler.server_version`, `mode`, `roles`; a missing Scheduler does not fail the check); `vdp.admin` — the profile's user is an administrator, so security policies do not apply to its own queries; `vdp.impersonation` — it may run a query as another user (`\u002Fdenodo:security`); `vdp.server_version` — another release than 9.5: tell the human the templates are written for 9.5 before you apply one (`null`: unknown); `features` — what this installation has: `enterprise_plus` (tags, policies, the AI functions), `cache.on`, `llm.on`, `embedding.on`, `summary_rewrite`, `data_movement` — a skill that needs one says where; `false` is the administrator's, not a statement to rewrite; `null` is unknown (a setting the profile's user may not read) |\n| Verify the skills' own templates | `verify --env dev` runs `verification\u002Fchain.toml` and removes what it made: its own test database, and the server-wide `verify_` tags, user, role and global security policy — its security checks impersonate that user, so they need `vdp.impersonation: true`. The `--with-…` tails reach further: `--with-marketplace` synchronises the shared marketplace catalog (skipped while anything but the run's own database is pending there), `--with-writes` creates a table in a source database and writes its rows, `--with-scheduler` creates and runs jobs on the shared Scheduler, `--with-ai` sends about 50 paid LLM requests. A production profile needs `--allow-destructive`. Everything else: `verify --help` |\n\nPrefix every command with `${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fdenodo`. Keep results\nreadable: `--max-rows N` (default 100) caps every result set; `row_count` is the\ntrue count and `truncated` says whether rows were cut. **It caps the printout, not the\nwork**: the tool reads every row the query returns, so the server computes all of them —\nonly a `LIMIT` in the query bounds that, which matters when a column calls the server's LLM\n(`\u002Fdenodo:ai`).\n\n**`-e` repeats.** Every `-e` runs, in order — in `vql plan` too — and one `-e` may hold several\nstatements separated by `;`.\n\n## Reading the result\n\nCommon envelope: `ok`, `command`, `env {name, production, transport, database}`,\nand on failure `error {kind, message}`. **Look at `env.production` on every\nresponse** — it tells you where you are connected. `env.database` is the profile's database\nor `--database`; a `CONNECT DATABASE` inside the file moves the session but not this field,\nso `GET_ELEMENTS()` is where to see what landed where.\n\n| `error.kind` | Exit | Cause | Action |\n|---|---|---|---|\n| — | `0` | success | verify the object (DESC \u002F SELECT), report |\n| *(none)* | `1` | the server rejected a statement or call | `references\u002Ferrors.md`, fix the VQL\u002Fcall, re-apply |\n| `connection` | `1` | host\u002Fport unreachable, wrong password, marketplace down | `env check --env \u003Cname>`; report the message; do not retry blindly |\n| `usage` | `2` | wrong arguments (no `--env`, no input, both file and `-e`) | fix the command; `--help` on the subcommand |\n| `config` | `2` | profile missing, incomplete or unreadable; no `marketplace_url` for `api` | **No profile** below |\n| `refused` | `2` | destructive operation on a production profile | **Destructive operations** below |\n| `environment` | `3` | driver stack could not be set up | show the human `error.hint` verbatim and stop; do not `pip install` yourself |\n\n**`vql run`** returns `statements[]` (one entry per statement: `index`, `statement`\nhead, `destructive`, `ok`, `error`, `columns`, `rows`, `row_count`, `affected`), `failed_at`,\n`executed`, `total`. **`affected` is the only trace of a write**: an `INSERT`, `UPDATE` or\n`DELETE` returns no rows, and `affected` is the number of rows the source reports it changed —\n`0` when nothing matched. It is `null` for a read, a `CREATE` or `ALTER`, a failed statement, and\na write whose `RETURNING` returned rows — those rows are its trace (`\u002Fdenodo:dml`). The file is split into statements client-side and executed one by\none in one session. On the first failure execution **stops**: statements before\n`failed_at` are applied, statements after it are not, and nothing is rolled back.\nThe server message you match against the error reference is\n`statements[failed_at].error.message`.\n\n**`api`** returns `server` (`marketplace` or `scheduler`) and `status` separately from `body`; `body` is often `null` (`200`,\n`403`, `404`, `409` all come with an empty body). `ok` is true only for 2xx. Some\nmarketplace calls report failure inside a `200`: `POST \u002Ftags\u002F{id}\u002Fviews` answers\nwith the list of ids it could *not* assign — success is an empty list.\n\n**`vql run` keeps the session's ledger.** The session is this conversation, subagents\nincluded: `CLAUDE_CODE_SESSION_ID`, or `DENODO_SESSION` where a harness sets it. Before the\nfirst statement the tool reads whether the objects the file creates exist; after the last it\nrecords those that did not, with the server's id, and follows the drops and renames of objects\nit recorded — the `ledger` part of the answer says what. A `CREATE OR REPLACE` over an object\nthat existed records nothing: replacing an object does not make it yours. The file lives beside\nthe profiles, never in the project.\n\n**`vql plan`** answers `ok` with exit `0` whenever it could read the server, whatever it found;\n`needs_yes` at the top lists the statements that wait for the human, `not_recognised` those the\ntable decides, `actions` counts the statements by what they do, and `duplicates` lists the\nstatements that declare one object twice, differently — the later replaces the earlier (without\n`OR REPLACE`, fails), and the entry of each later one names the first in `duplicate_of`. `session: null` (no session id) means only an object an earlier statement of the\nsame input creates counts as yours. `project.base` is the commit the plan read declarations\nfrom — the last one before this session started; `project: null` means the input is not in a\ngit work tree, so no file of it vouches for an object that already exists, however old the\nfile — re-declaring such an object waits for the yes, and the summary says the project is not\nversioned. As for `vql run`, `env.database` is the connection's database; where each statement\nlands is its `object.database`, which follows the file's `CONNECT DATABASE`.\n\n**`vql desc`** returns the DESC rows as `columns`\u002F`rows` **at the top level of the\nenvelope** — `statements[]` belongs to `vql run` alone, and a parser that expects it\nhere fails on a call that succeeded. `DESC VQL` puts the whole script in one cell.\n\n**A `decimal` value arrives as a JSON string** (`\"12.34\"`), while `int`, `long` and\n`double` arrive as JSON numbers. That is the transport, not the column: it says\nnothing about the type in Denodo. To check a type, read it — `vql desc --env dev\n\u003Cview>` — or do arithmetic on the server (`SELECT SUM(price * 2) …`); a text column\nwould fail there.\n\n### No profile\n\n`config` with \"profiles file not found\" or \"profile 'x' not found\" means the human\nhas to create one. Ask them to run **in their own terminal input**:\n\n```\n! ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fdenodo env init\n```\n\nIt is interactive and hides the password. Then re-run your command.\n\n- Do not ask for host, user or password in the chat, even if offered.\n- Do not write or edit `profiles.toml` yourself.\n- Do not pass a password through an argument, an environment variable, `-e`, or a\n  heredoc — anything that goes through Bash is kept in the session transcript.\n- If the human already pasted a password into the chat, say so and suggest rotating it.\n\n### Destructive operations\n\nA statement is destructive when it destroys or overwrites something that exists, or changes\nstate outside your own project: server settings, data in sources, objects of other databases,\nglobal objects. `CREATE` of a new object is not. The tool cannot tell whose object a `DROP`\nor `ALTER` hits, so it flags every one. The flag is not the rule: an `ALTER` of an object you\ncreated in this session, which nothing else reads yet, is yours to apply, and so is a\nmarketplace catalog `synchronize` whose radius, read right before it, holds only what you\ncreated in this session (`\u002Fdenodo:vql`) — `vql plan` and `api … --plan` say which, from the\nsession's ledger; on a production profile every flagged statement and call still needs the\nhuman's yes and the flag.\n\n**Not refused is not allowed.** The tool refuses only on a profile marked `production`; on\nevery other profile it runs whatever it is given. Whether a flagged statement may run is\n`\u002Fdenodo:vql`'s safety table, on every profile — the few that are yours are named there, and a\n`DROP` is never one of them, whatever it hits. The yes answers the statements after you have\nshown them; the request that asked for them is not it, however plainly it names them — unless\nthat table makes the request itself the yes, as it does for the tag of a view named to be made\nvisible to an agent. When the human cannot answer — away, a deadline — the statements go into a\nfile and into your message, not into `vql run`. So when your own permission settings refuse a\n`vql run` after the yes: stop there — the files, what ran and what did not are your message.\n\nThe tool flags `DROP`, `ALTER`, `DELETE`, `TRUNCATE` and writes; server settings; the\npredefined procedures that change state; cache loads and invalidations; users, roles and\nglobal security policies; tables created, replaced or refreshed in a database; a web service\ndeployed, undeployed or exported; and the HTTP\ncalls that delete or replace a set, on the marketplace and the Scheduler. The full list, with\nthe kind of each, is `references\u002Ferrors.md`, **What the tool flags**. Every result carries a\n`destructive` field: the kind (`drop`, `alter`, `delete`, `write`, `setting`, `procedure`,\n`cache`, `security`, `table`, `publish`, `replace`, `job`) when it is one of these, and `null` — not\n`false` — when it is not. Session settings come back `null` and pass on any profile: `SET\nQUERYTIMEOUT TO …` (property name unquoted) and `ALTER SESSION SET 'querytimeout' = …` last\nuntil the connection closes; a quoted property after a bare `SET` is the server. The procedure\ncheck goes by name and catches only the names `\u002Fdenodo:procedures` lists: a VQL procedure of\nyour own that runs `DROP` through `EXECUTE` inside its body comes back `null`, and reading what\na procedure does before calling it stays your job. On a profile with `production: true` the\ntool refuses them with `error.kind = \"refused\"` and executes **nothing**.\n\n`--allow-destructive` is set only after the human has read the list of destructive\nstatements from `error.destructive` and confirmed, in this conversation, after the\nrefusal. The rule that requires the confirmation is the core skill (`\u002Fdenodo:vql`);\nthis skill enforces its half: the flag is never yours to add.\n\nWhen refused:\n1. Show the human `env.name`, and each `error.destructive[].statement`.\n2. Ask: \"Apply these on production profile `\u003Cname>`?\"\n3. Only after an explicit yes, re-run the same command with `--allow-destructive`.\n\n| Rationalization | Reality |\n|---|---|\n| \"The user named this file and this profile — that is the confirmation\" | Naming a file is not reading a `DROP`. The confirmation comes after the refusal, on the listed statements. |\n| \"The user said they can't answer right now \u002F just make it work\" | Then the answer is \"waiting for your confirmation\", not the flag. A missed deadline is cheaper than a dropped object. |\n| \"It's `DROP … IF EXISTS` on the object the next line recreates\" | `IF EXISTS` silences the error, not the data loss; and the recreate may fail after the drop succeeded. |\n| \"The object doesn't even exist, the drop is a no-op\" | Your read of the catalog is a snapshot. The refusal is on the statement, not on its effect. |\n| \"It's only a test database on the production server\" | The profile says `production`. Database names are not the rule. |\n| \"I'll disclose it afterwards\" | Disclosure after the fact is not consent. |\n| \"The plan says it waits for the human's yes — their request is that yes\" | The request names the outcome. The yes answers the statements you showed, in this conversation; with nobody to answer, the file and the message are the result. |\n| \"The profile is not production and nothing depends on it\" | Not production only means the tool will not stop you. A `DROP` waits for the yes on every profile, and an object nothing reads is still someone's. |\n\n**Red flags — stop and ask the human:** you are typing `--allow-destructive`; the\nprevious result had `error.kind: \"refused\"`; `env.production` is `true` and the input\nchanges anything.\n\n### Error in the middle of a file\n\nDo not reach for `--continue-on-error` to get past a failure. Read\n`statements[failed_at].error.message`, fix the statement in the file, `vql plan` it again and\nre-apply the file whole (`\u002Fdenodo:vql`). Statements before the failed one stay applied: a\n`CREATE OR REPLACE` of a view re-applies safely, but a write, a cache or AI load, or `OR\nREPLACE` over a table that holds rows runs again (`\u002Fdenodo:dml`, `\u002Fdenodo:materialize`).\n`--continue-on-error` is for two cases: the human's explicit request on a\nfile whose statements are independent, and a file of reads that checks many objects, one\nstatement per object — there each entry of `statements[]` is one object's answer, and a\nfailed read is that object's failure, not the end of the check (`\u002Fdenodo:vql`, **Many objects\nat once**).\n\n## Verify before reporting\n\nSuccess of `CREATE` is not success of the object. After applying:\n\n- `vql desc --env dev \u003Cname>` for the schema, or `SELECT * FROM \u003Cname>` with\n  `--max-rows 5` for a base or derived view;\n- for a marketplace object, `GET` it back by name (all marketplace operations use\n  numeric ids that only exist after creation).\n\nA DF wrapper listing only part of the file's columns creates fine and returns zero\nrows — the SELECT is what catches it.\n\n## Not this skill\n\nWriting the VQL or choosing where an object lives: `\u002Fdenodo:vql` and the domain skills it routes to.\n","# Executing against Denodo\n\nOne tool, `${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fdenodo`, does every live call. Every invocation\nprints exactly one JSON document on stdout; read `ok`, `error.kind` and the exit code\nbefore doing anything else. The tool sets up its own Python environment on first run\n(`uv` or a venv under the plugin data directory) — never install drivers by hand.\n\n**Violating the letter of the rules below is violating their spirit.** They exist\nbecause this plugin is installed on production servers.\n\n## Commands\n\nEvery command takes `--env \u003Cprofile>` (or `DENODO_ENV`). The profile is a *name*; the\ntool reads host, user and password from `~\u002F.denodo\u002Fprofiles.toml` itself.\n\n| Task | Command |\n|---|---|\n| Apply a file | `vql run --env dev model\u002Fsales\u002Fviews.vql` — after `vql plan` of the same file, and again after every change to it (`\u002Fdenodo:vql`): a file of new objects and a cache load included |\n| Apply inline VQL | `vql run --env dev -e \"SELECT COUNT(*) FROM bv_orders\"` — reads only: every `CREATE`, `ALTER` and `DROP` goes through a file (`\u002Fdenodo:vql`) |\n| Read stdin | `vql run --env dev -` |\n| Another database | add `--database \u003Cdb>` (or put `CONNECT DATABASE \u003Cdb>;` first in the file) |\n| What a file would do, before applying it | `vql plan --env dev model\u002Fsales\u002Fviews.vql` (also `-e`, `-`, `--database`) — reads the server and the session's ledger, executes nothing; per statement `action`, `object`, `exists`, `own`, `needs_yes`, `why`, `conditions`, `dependents` (an existing view's readers), and `yes` — what the yes is — when anything waits. The rule it applies is `\u002Fdenodo:vql`'s safety table |\n| What this session created | `vql ledger --env dev` — every object a `vql run` of this session created on the profile's server, each with its `state`, re-checked against the server: `present`, `missing` (gone without a `DROP` this session ran), `replaced` (the name now has another object), `dropped`; `states` counts them |\n| Schema of an object | `vql desc --env dev bv_orders` (`--type view` is the default and covers base views too — there is no `DESC TABLE`) |\n| Server-generated VQL | `vql desc --env dev bv_orders --vql` — read it, do not apply it: it opens with `DROP … CASCADE` and rebuilds the object **together with what it depends on** in its own database — dependencies in another database are left out, except under a metric view of another database: the metric view is left out and its source views come back unqualified, as if they were in yours — never with what depends on it. A name can be qualified — `vql desc --env dev \"other_db.bv_orders\" --vql` reads another database without switching yours — *verified: 9.5.1 (live, 2026-09-12)*. The object alone, without the data source its dependencies bring (and that source's encrypted password): `vql run --env dev -e \"DESC VQL VIEW bv_orders ('includeDependencies' = 'no', 'dropElements' = 'no')\"` — *verified: 9.5.1 (live, 2026-10-02)* |\n| Other types | `--type database`, `--type \"datasource df\"`, `--type \"wrapper df\"`, `--type tag`, `--type association`, `--type \"interface view\"`, `--type role`, `--type global_security_policy` (with `--vql`, as above); folders take a quoted path: `vql desc --env dev \"'\u002Fsales'\" --type folder --vql` |\n| Marketplace call | `api get --env dev \u002Fpublic\u002Fapi\u002Ftags` |\n| … planned, not sent | add `--plan` to any `api` call: `needs_yes`, `why`, `conditions`, `sent: false`; for `element-management\u002F{DATABASES,VIEWS}\u002Fsynchronize` it reads both `…\u002Fchanges` and marks every entry against the session's ledger (`radius.own`, `radius.not_own`) |\n| … with a body | `api post --env dev \u002Fpublic\u002Fapi\u002Ftags --json '{\"name\":\"pii\",\"description\":\"…\",\"descriptionType\":\"TEXT\"}'` |\n| … with the body in a file | `api put --env dev \u002Fpublic\u002Fapi\u002Fviews --json-file body.json` — for HTML, quotes, or a body you want to keep |\n| … query params \u002F multipart | `--param k=v` (repeatable), `--part field=@file` \u002F `field=json:{…}` |\n| Scheduler call | `api --server scheduler get --env dev \u002Fpublic\u002Fapi\u002Fprojects` — the same command against the Scheduler administration tool: the profile's account, and its Scheduler server as the `uri` parameter, are added. The profile may name both (`scheduler_url`, `scheduler_uri`); by default the web container of `marketplace_url` (or `http:\u002F\u002F\u003Chost>:9090`) and `\u002F\u002F\u003Chost>:8000`. A path with a `..` segment is refused on either server. What to call is `\u002Fdenodo:scheduler` |\n| Encrypt a source password | `secret encrypt --env dev` — the password is typed into a hidden prompt (in a terminal) or piped in on stdin, never passed as an argument; the answer carries `encrypted` and nothing else; the human runs it in their own terminal, and the procedure is `\u002Fdenodo:datasources`, **Passwords** |\n| Run `.denodotest` tests | `testing run --env dev --database \u003Cdb> --tool \u003Cdir> --java-home \u003CJava 17+> \u003Ctests folder>`, or `testing config` for a human who runs the tool — `\u002Fdenodo:testing`, **Running it** |\n| Which profiles exist | `env list` (never shows passwords) |\n| Is the server reachable, and who am I on it | `env check --env dev` (VDP, the marketplace if configured, and the Scheduler where the profile names a web container — `scheduler.server_version`, `mode`, `roles`; a missing Scheduler does not fail the check); `vdp.admin` — the profile's user is an administrator, so security policies do not apply to its own queries; `vdp.impersonation` — it may run a query as another user (`\u002Fdenodo:security`); `vdp.server_version` — another release than 9.5: tell the human the templates are written for 9.5 before you apply one (`null`: unknown); `features` — what this installation has: `enterprise_plus` (tags, policies, the AI functions), `cache.on`, `llm.on`, `embedding.on`, `summary_rewrite`, `data_movement` — a skill that needs one says where; `false` is the administrator's, not a statement to rewrite; `null` is unknown (a setting the profile's user may not read) |\n| Verify the skills' own templates | `verify --env dev` runs `verification\u002Fchain.toml` and removes what it made: its own test database, and the server-wide `verify_` tags, user, role and global security policy — its security checks impersonate that user, so they need `vdp.impersonation: true`. The `--with-…` tails reach further: `--with-marketplace` synchronises the shared marketplace catalog (skipped while anything but the run's own database is pending there), `--with-writes` creates a table in a source database and writes its rows, `--with-scheduler` creates and runs jobs on the shared Scheduler, `--with-ai` sends about 50 paid LLM requests. A production profile needs `--allow-destructive`. Everything else: `verify --help` |\n\nPrefix every command with `${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fdenodo`. Keep results\nreadable: `--max-rows N` (default 100) caps every result set; `row_count` is the\ntrue count and `truncated` says whether rows were cut. **It caps the printout, not the\nwork**: the tool reads every row the query returns, so the server computes all of them —\nonly a `LIMIT` in the query bounds that, which matters when a column calls the server's LLM\n(`\u002Fdenodo:ai`).\n\n**`-e` repeats.** Every `-e` runs, in order — in `vql plan` too — and one `-e` may hold several\nstatements separated by `;`.\n\n## Reading the result\n\nCommon envelope: `ok`, `command`, `env {name, production, transport, database}`,\nand on failure `error {kind, message}`. **Look at `env.production` on every\nresponse** — it tells you where you are connected. `env.database` is the profile's database\nor `--database`; a `CONNECT DATABASE` inside the file moves the session but not this field,\nso `GET_ELEMENTS()` is where to see what landed where.\n\n| `error.kind` | Exit | Cause | Action |\n|---|---|---|---|\n| — | `0` | success | verify the object (DESC \u002F SELECT), report |\n| *(none)* | `1` | the server rejected a statement or call | `references\u002Ferrors.md`, fix the VQL\u002Fcall, re-apply |\n| `connection` | `1` | host\u002Fport unreachable, wrong password, marketplace down | `env check --env \u003Cname>`; report the message; do not retry blindly |\n| `usage` | `2` | wrong arguments (no `--env`, no input, both file and `-e`) | fix the command; `--help` on the subcommand |\n| `config` | `2` | profile missing, incomplete or unreadable; no `marketplace_url` for `api` | **No profile** below |\n| `refused` | `2` | destructive operation on a production profile | **Destructive operations** below |\n| `environment` | `3` | driver stack could not be set up | show the human `error.hint` verbatim and stop; do not `pip install` yourself |\n\n**`vql run`** returns `statements[]` (one entry per statement: `index`, `statement`\nhead, `destructive`, `ok`, `error`, `columns`, `rows`, `row_count`, `affected`), `failed_at`,\n`executed`, `total`. **`affected` is the only trace of a write**: an `INSERT`, `UPDATE` or\n`DELETE` returns no rows, and `affected` is the number of rows the source reports it changed —\n`0` when nothing matched. It is `null` for a read, a `CREATE` or `ALTER`, a failed statement, and\na write whose `RETURNING` returned rows — those rows are its trace (`\u002Fdenodo:dml`). The file is split into statements client-side and executed one by\none in one session. On the first failure execution **stops**: statements before\n`failed_at` are applied, statements after it are not, and nothing is rolled back.\nThe server message you match against the error reference is\n`statements[failed_at].error.message`.\n\n**`api`** returns `server` (`marketplace` or `scheduler`) and `status` separately from `body`; `body` is often `null` (`200`,\n`403`, `404`, `409` all come with an empty body). `ok` is true only for 2xx. Some\nmarketplace calls report failure inside a `200`: `POST \u002Ftags\u002F{id}\u002Fviews` answers\nwith the list of ids it could *not* assign — success is an empty list.\n\n**`vql run` keeps the session's ledger.** The session is this conversation, subagents\nincluded: `CLAUDE_CODE_SESSION_ID`, or `DENODO_SESSION` where a harness sets it. Before the\nfirst statement the tool reads whether the objects the file creates exist; after the last it\nrecords those that did not, with the server's id, and follows the drops and renames of objects\nit recorded — the `ledger` part of the answer says what. A `CREATE OR REPLACE` over an object\nthat existed records nothing: replacing an object does not make it yours. The file lives beside\nthe profiles, never in the project.\n\n**`vql plan`** answers `ok` with exit `0` whenever it could read the server, whatever it found;\n`needs_yes` at the top lists the statements that wait for the human, `not_recognised` those the\ntable decides, `actions` counts the statements by what they do, and `duplicates` lists the\nstatements that declare one object twice, differently — the later replaces the earlier (without\n`OR REPLACE`, fails), and the entry of each later one names the first in `duplicate_of`. `session: null` (no session id) means only an object an earlier statement of the\nsame input creates counts as yours. `project.base` is the commit the plan read declarations\nfrom — the last one before this session started; `project: null` means the input is not in a\ngit work tree, so no file of it vouches for an object that already exists, however old the\nfile — re-declaring such an object waits for the yes, and the summary says the project is not\nversioned. As for `vql run`, `env.database` is the connection's database; where each statement\nlands is its `object.database`, which follows the file's `CONNECT DATABASE`.\n\n**`vql desc`** returns the DESC rows as `columns`\u002F`rows` **at the top level of the\nenvelope** — `statements[]` belongs to `vql run` alone, and a parser that expects it\nhere fails on a call that succeeded. `DESC VQL` puts the whole script in one cell.\n\n**A `decimal` value arrives as a JSON string** (`\"12.34\"`), while `int`, `long` and\n`double` arrive as JSON numbers. That is the transport, not the column: it says\nnothing about the type in Denodo. To check a type, read it — `vql desc --env dev\n\u003Cview>` — or do arithmetic on the server (`SELECT SUM(price * 2) …`); a text column\nwould fail there.\n\n### No profile\n\n`config` with \"profiles file not found\" or \"profile 'x' not found\" means the human\nhas to create one. Ask them to run **in their own terminal input**:\n\n```\n! ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fdenodo env init\n```\n\nIt is interactive and hides the password. Then re-run your command.\n\n- Do not ask for host, user or password in the chat, even if offered.\n- Do not write or edit `profiles.toml` yourself.\n- Do not pass a password through an argument, an environment variable, `-e`, or a\n  heredoc — anything that goes through Bash is kept in the session transcript.\n- If the human already pasted a password into the chat, say so and suggest rotating it.\n\n### Destructive operations\n\nA statement is destructive when it destroys or overwrites something that exists, or changes\nstate outside your own project: server settings, data in sources, objects of other databases,\nglobal objects. `CREATE` of a new object is not. The tool cannot tell whose object a `DROP`\nor `ALTER` hits, so it flags every one. The flag is not the rule: an `ALTER` of an object you\ncreated in this session, which nothing else reads yet, is yours to apply, and so is a\nmarketplace catalog `synchronize` whose radius, read right before it, holds only what you\ncreated in this session (`\u002Fdenodo:vql`) — `vql plan` and `api … --plan` say which, from the\nsession's ledger; on a production profile every flagged statement and call still needs the\nhuman's yes and the flag.\n\n**Not refused is not allowed.** The tool refuses only on a profile marked `production`; on\nevery other profile it runs whatever it is given. Whether a flagged statement may run is\n`\u002Fdenodo:vql`'s safety table, on every profile — the few that are yours are named there, and a\n`DROP` is never one of them, whatever it hits. The yes answers the statements after you have\nshown them; the request that asked for them is not it, however plainly it names them — unless\nthat table makes the request itself the yes, as it does for the tag of a view named to be made\nvisible to an agent. When the human cannot answer — away, a deadline — the statements go into a\nfile and into your message, not into `vql run`. So when your own permission settings refuse a\n`vql run` after the yes: stop there — the files, what ran and what did not are your message.\n\nThe tool flags `DROP`, `ALTER`, `DELETE`, `TRUNCATE` and writes; server settings; the\npredefined procedures that change state; cache loads and invalidations; users, roles and\nglobal security policies; tables created, replaced or refreshed in a database; a web service\ndeployed, undeployed or exported; and the HTTP\ncalls that delete or replace a set, on the marketplace and the Scheduler. The full list, with\nthe kind of each, is `references\u002Ferrors.md`, **What the tool flags**. Every result carries a\n`destructive` field: the kind (`drop`, `alter`, `delete`, `write`, `setting`, `procedure`,\n`cache`, `security`, `table`, `publish`, `replace`, `job`) when it is one of these, and `null` — not\n`false` — when it is not. Session settings come back `null` and pass on any profile: `SET\nQUERYTIMEOUT TO …` (property name unquoted) and `ALTER SESSION SET 'querytimeout' = …` last\nuntil the connection closes; a quoted property after a bare `SET` is the server. The procedure\ncheck goes by name and catches only the names `\u002Fdenodo:procedures` lists: a VQL procedure of\nyour own that runs `DROP` through `EXECUTE` inside its body comes back `null`, and reading what\na procedure does before calling it stays your job. On a profile with `production: true` the\ntool refuses them with `error.kind = \"refused\"` and executes **nothing**.\n\n`--allow-destructive` is set only after the human has read the list of destructive\nstatements from `error.destructive` and confirmed, in this conversation, after the\nrefusal. The rule that requires the confirmation is the core skill (`\u002Fdenodo:vql`);\nthis skill enforces its half: the flag is never yours to add.\n\nWhen refused:\n1. Show the human `env.name`, and each `error.destructive[].statement`.\n2. Ask: \"Apply these on production profile `\u003Cname>`?\"\n3. Only after an explicit yes, re-run the same command with `--allow-destructive`.\n\n| Rationalization | Reality |\n|---|---|\n| \"The user named this file and this profile — that is the confirmation\" | Naming a file is not reading a `DROP`. The confirmation comes after the refusal, on the listed statements. |\n| \"The user said they can't answer right now \u002F just make it work\" | Then the answer is \"waiting for your confirmation\", not the flag. A missed deadline is cheaper than a dropped object. |\n| \"It's `DROP … IF EXISTS` on the object the next line recreates\" | `IF EXISTS` silences the error, not the data loss; and the recreate may fail after the drop succeeded. |\n| \"The object doesn't even exist, the drop is a no-op\" | Your read of the catalog is a snapshot. The refusal is on the statement, not on its effect. |\n| \"It's only a test database on the production server\" | The profile says `production`. Database names are not the rule. |\n| \"I'll disclose it afterwards\" | Disclosure after the fact is not consent. |\n| \"The plan says it waits for the human's yes — their request is that yes\" | The request names the outcome. The yes answers the statements you showed, in this conversation; with nobody to answer, the file and the message are the result. |\n| \"The profile is not production and nothing depends on it\" | Not production only means the tool will not stop you. A `DROP` waits for the yes on every profile, and an object nothing reads is still someone's. |\n\n**Red flags — stop and ask the human:** you are typing `--allow-destructive`; the\nprevious result had `error.kind: \"refused\"`; `env.production` is `true` and the input\nchanges anything.\n\n### Error in the middle of a file\n\nDo not reach for `--continue-on-error` to get past a failure. Read\n`statements[failed_at].error.message`, fix the statement in the file, `vql plan` it again and\nre-apply the file whole (`\u002Fdenodo:vql`). Statements before the failed one stay applied: a\n`CREATE OR REPLACE` of a view re-applies safely, but a write, a cache or AI load, or `OR\nREPLACE` over a table that holds rows runs again (`\u002Fdenodo:dml`, `\u002Fdenodo:materialize`).\n`--continue-on-error` is for two cases: the human's explicit request on a\nfile whose statements are independent, and a file of reads that checks many objects, one\nstatement per object — there each entry of `statements[]` is one object's answer, and a\nfailed read is that object's failure, not the end of the check (`\u002Fdenodo:vql`, **Many objects\nat once**).\n\n## Verify before reporting\n\nSuccess of `CREATE` is not success of the object. After applying:\n\n- `vql desc --env dev \u003Cname>` for the schema, or `SELECT * FROM \u003Cname>` with\n  `--max-rows 5` for a base or derived view;\n- for a marketplace object, `GET` it back by name (all marketplace operations use\n  numeric ids that only exist after creation).\n\nA DF wrapper listing only part of the file's columns creates fine and returns zero\nrows — the SELECT is what catches it.\n\n## Not this skill\n\nWriting the VQL or choosing where an object lives: `\u002Fdenodo:vql` and the domain skills it routes to.\n",{"name":5,"description":7,"allowed-tools":23},"Bash(${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fdenodo *)","main","fd41fb386b25141c459264d10a1c49bd3b4f4c4b","skills\u002Fexecute","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills","https:\u002F\u002Fgithub.com\u002Fkirivandubai","2026-10-29 13:49:22",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add kirivandubai\u002Fdenodo_wipe_coading_skills --skill execute",{"tool":36,"command":37},"bunx","bunx skills add kirivandubai\u002Fdenodo_wipe_coading_skills --skill execute",{"tool":39,"command":40},"pnpm","pnpm dlx skills add kirivandubai\u002Fdenodo_wipe_coading_skills --skill execute","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fexecute\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"references\u002Ferrors.md","REFERENCE","参考文档",17641,"https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fexecute\u002Freferences\u002Ferrors.md",[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7C2NGAJEKKG90BG9Q1Z2M96","vql","Use when doing anything with Denodo — creating or changing a database, folder, tag, data source, wrapper, base, derived, interface or metric view, association, cache, role or security policy, remote table or summary, a Data Marketplace object, a regression test or a Scheduler job; writing or fixing VQL, or an expression in a SELECT — text, dates, casts; deciding where an object lives and what to name it; \"where do I start\", \"build a mart\", \"connect a source\", \"vibe-code on Denodo\". Start here when the request is ambiguous or names no single object.","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fvql\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7C2N5W4203SQ2TRYT6E0VSR","views","Use when building on top of views that already exist in Denodo 9.5 — a derived view (a join, an aggregate, a mart, a filtered or parameterised view, a UNION ALL of views of one entity, FLATTEN of a JSON array into rows, NEST of rows into an array), an interface view, or an association between two views. Also before changing a view others depend on — \"what uses this view\", \"can I drop this column\", \"where does this field come from\" — for whether a mart over a database runs there or pulls every row into Denodo, for \"combine these sources into one view\", \"expose this as a data product\", and for a view created without an error that fails on SELECT or turns up INVALID. Not for sources and base views — \u002Fdenodo:datasources; databases, folders, VDP tags — \u002Fdenodo:catalog; a view's cache — \u002Fdenodo:cache; a copy stored as a table — \u002Fdenodo:materialize; a metric view — \u002Fdenodo:metrics.","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fviews\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M7C2MY48XXHR87G39R0F0VTK","testing","Use when a Denodo 9.5 project needs regression tests, or its tests need running or fixing — .denodotest files that the Denodo Testing Tool runs in CI (%EXECUTION, %RESULTS[data|query|csv|exception], configuration.properties, denodo-test.sh) — \"add tests for this mart\", \"a safety net before I rewrite these views\", \"make sure the dashboards see no difference\", \"what should CI check on our data products\", \"prove the mart is right\", \"CI is red on the Denodo tests\", a test that fails on row order, on a column it did not ask for or on a value padded with spaces. Not for checking a new view once, right after creating it — \u002Fdenodo:views.","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Ftesting\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M7C2MMFX40K0WTDNW05VCQEJ","semantics","Use when the views of an existing Denodo 9.5 database have to be understood by people and by AI consumers — the Denodo MCP Server, Assisted Query in the Data Marketplace, the AI SDK. Auditing a database for views and fields without descriptions, primary keys that are missing or not unique, missing associations and the VDP tag the MCP Server shows views by; writing view, field, association and tag descriptions from the data, and primary keys. Also for \"describe \u002F document these views\", \"prepare this database for AI, MCP or Assisted Query\", \"why does the agent not see this view through MCP\", a description that says the wrong thing. Not for building or changing what a view computes — \u002Fdenodo:views; not for marketplace-only metadata (logical names, property groups, marketplace tags) — \u002Fdenodo:marketplace.","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fsemantics\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7C2M9XVTRVXYXMGTEC62EFB","security","Use when deciding who may read what in Denodo 9.5 — masking or hiding columns (PII, contact details, salaries, bank accounts) from some users or roles, letting a role see only some rows (a country, a tenant) or each person only their own, taking someone's access away (ALTER USER … REVOKE), denying a view to a group, a global security policy (CREATE GLOBAL_SECURITY_POLICY) and the VDP tags it reads, giving a user a role or giving a role access to a database or views (CREATE ROLE … GRANT EXECUTE, ALTER USER … GRANT ROLE), checking what a given user really gets back, or a user who sees data a restriction should hide (\"he still gets every row\", \"the masking stopped working\"). Not for a tag as a label without a policy (\u002Fdenodo:catalog) or for descriptions and the MCP visibility tag (\u002Fdenodo:semantics).","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M7C2KYWB8B6ZC026CT3Z1MZA","scheduler","Use when something in Denodo 9.5 has to happen on a schedule, or a scheduled run misbehaves — refreshing the cache of a view every night or every hour, running REFRESH of a remote table or a procedure at a set time, exporting a view to a CSV file every week or month, running a Denodo Scheduler job now, stopping, pausing, enabling or deleting it, reading what last night's run did or why it failed, \"the cache doubles after every refresh\", \"the job fires at the wrong hour\", \"the export file is missing or has no header\". Denodo Scheduler projects, jobs, cron triggers and reports, through the REST API of the Scheduler administration tool. Not for switching a cache on or loading it once (\u002Fdenodo:cache), not for creating the remote table or summary itself (\u002Fdenodo:materialize).","https:\u002F\u002Fgithub.com\u002Fkirivandubai\u002Fdenodo_wipe_coading_skills\u002Fblob\u002Fmain\u002Fskills\u002Fscheduler\u002FSKILL.md",[],[]]