Skip to content
Back to skills

Query Live

ASecurity

Answer natural-language questions about a Webex Calling environment using live API data. Read-only queries against people, call features, routing, numbers, call history, and call flow tracing. Use when the user asks "who", "what", "which", "how many", "does", "is", "show me", or "check" questions about their current Webex Calling configuration. Invoked by the wxops agent on query intent, or directly via /query-live. NOT for: making changes (a config skill), historical CDR analysis (reporting)...

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 23, 2026
researchrustgobashexpressrailsgitapidocumentation

Works with

  • claude code
  • cli
  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned November 23, 2026

npx -y skills add achobgood/wxops --skill query-live --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Query Live?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Query Live
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/achobgood-query-live/badge)](https://www.skillsdirectory.com/skills/achobgood-query-live)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: query-live
description: |
  Answer natural-language questions about a Webex Calling environment using live API data.
  Read-only queries against people, call features, routing, numbers, call history, and call flow tracing.
  Use when the user asks "who", "what", "which", "how many", "does", "is", "show me", or "check" questions
  about their current Webex Calling configuration. Invoked by the wxops agent on query intent,
  or directly via /query-live.
  NOT for: making changes (a config skill), historical CDR analysis (reporting), or Contact Center
  queries (reporting-cc).
allowed-tools: Read, Grep, Glob, Bash, Skill
argument-hint: [question]
---

# Query Live State

Answer plain-English questions about a Webex Calling environment using live API data. **Read-only only.**

## Checkpoint — verify before proceeding

1. Has `wxcli whoami` succeeded in this session? If not, run it now. Do not proceed without a valid token.
2. Do you know which domain(s) this question touches? (people, features, routing, numbers, call-history, call-flow). If unsure, read the Domain Routing table below.

## Step 1: Classify the question

**Query signals** — this skill handles these:
- Interrogative form: "Who...?", "What...?", "Which...?", "How many...?", "Does...?", "Is...?"
- Inspection verbs: "show me", "list", "check", "look up", "find", "tell me about"
- State references: "current", "right now", "configured", "enabled", "assigned"
- Comparison/audit: "which users don't have...", "compare", "differences between"

**Not a query** — hand back to the builder's normal workflow:
- Action verbs: "create", "set up", "enable", "add", "configure", "change", "move", "delete"
- Future intent: "I want to...", "we need to...", "can you make..."

**Edge case:** "Can you check if voicemail is enabled and turn it on if not?"
→ Classify as query first. Answer the check. Then say: "I can look things up but can't make changes. To enable voicemail, you'd go to Control Hub → Calling → User Settings → Voicemail, or I can help configure it if you'd like to switch to build mode."

## Step 2: Route to domain module(s)

Read the domain module(s) that match the question. Cross-domain queries load multiple modules.

### Domain Routing Table

| Question about... | Domain module | Load with |
|-------------------|--------------|-----------|
| Users, person settings (voicemail, forwarding, DND, recording, caller ID, permissions) | people-and-settings | `Read .claude/skills/query-live/domains/people-and-settings.md` |
| Hunt groups, call queues, auto attendants, paging, call park, pickup, voicemail groups | features | `Read .claude/skills/query-live/domains/features.md` |
| Trunks, route groups, route lists, dial plans, translation patterns, PSTN | routing | `Read .claude/skills/query-live/domains/routing.md` |
| Phone numbers, number inventory, assignment status, available numbers | numbers | `Read .claude/skills/query-live/domains/numbers.md` |
| Call history, CDR, call volume, missed calls, busiest hours | call-history | `Read .claude/skills/query-live/domains/call-history.md` |
| "What happens when someone calls...", call path tracing, schedule evaluation | call-flow-trace | `Read .claude/skills/query-live/domains/call-flow-trace.md` |

**Cross-domain examples:**
- "Show me all users at Austin with their devices and voicemail status" → people-and-settings (primary)
- "What number is assigned to the Main auto attendant?" → features + numbers

**Cross-domain anti-pattern — do NOT combine these:**
- "Who's in the Sales hunt group and what are their forwarding settings?" — member personal forwarding settings are irrelevant to HG routing. Hunt groups route directly to agent devices and ignore personal call forwarding entirely. Ask about the HG's own no-answer/forwarding settings instead (features domain only).

## Step 3: Execute the domain module's recipes

Follow the loaded domain module's command recipes, resolution rules, and join patterns exactly. Use `-o json` on all commands for programmatic parsing, and `--fields` to project only the fields the question actually needs.

**Mandatory --help verification:** Before constructing any wxcli command, run `wxcli <group> --help` to verify the subcommand exists, then `wxcli <group> <subcommand> --help` to verify the exact flags (e.g. `wxcli people list --help`). Even read-only commands differ by name (`show` vs `list`, singular vs plural — `docs/reference/wxcli-behavior.md` Known Issue #5), so confirm before running. Do NOT rely on examples in this skill, the domain modules, or reference docs — the CLI is auto-generated and flag names may differ from what documentation suggests.

### Field Projection with `--fields`

Every command — including every read command this skill uses — takes `--fields`, a JMESPath expression applied to the response before rendering. Use it instead of dumping the full JSON when the question only needs a few fields:

- Project just the columns the question needs: `wxcli people list --calling-data true --fields '[].{name:displayName,ext:extension}' -o json`
- Pull bare IDs for a resolution step: `wxcli locations list --fields '[].id' -o text`
- Filter before rendering, not after: `wxcli call-queue list --fields '[?enabled==`false`].name' -o json`

If `--fields` reduces a non-empty response to empty, the CLI prints a note to stderr in the form "matched 0 of N record(s)." That note states a fact, not a diagnosis — it fires identically whether the expression is wrong or the filter genuinely matched zero of N. Decide which: check the expression against what you expected, and if there's any doubt, re-run without `--fields` to see the unfiltered N before reporting "none found" (this is the same Discovery-First guard the rest of this skill follows). Do not report the 0-match result as an error on sight — a correct filter that legitimately matches nothing is a valid answer.

### Complete Reads with `--all`

Every `list` command takes `--all`. **The default is a single fetch**, which on a paging endpoint returns page one and nothing else — the command exits 0, the JSON parses, and the answer is silently short. This skill exists to answer "how many", "which ones", and "are there any", so a partial read here is not a slow answer, it is a **wrong** answer delivered confidently.

**Use `--all` whenever the question is about a whole collection** — a count, an enumeration, a "does any X…", or a name lookup that must be able to say "no match". Skip it only when fetching one known record by ID.

- `wxcli numbers list --all -o json` — number inventory, before counting or checking assignment
- `wxcli call-routing list-trunks --all -o json` — and the same for `list-route-groups`, `list-route-lists`, `list-dial-plans`
- `wxcli workspaces list --all -o json`, `wxcli call-park list --all -o json`, `wxcli location-voicemail list --all -o json`

Three things to know before you trust the output:

1. **A truncated read warns on stderr, not stdout.** `Note: N records returned and the server has more pages. Re-run with --all to fetch every page` (on a command that cannot walk pages — a `show`, a single-object read, an unpaged list — it ends `This command does not walk pages; …` instead; ADR-18, unit-tested, not re-run live). **You will see that note** — measured 2026-08-01, both Claude Code and Codex merge stderr into the tool result, and the note is written before the first row is rendered, so it survives piping, redirection, and head-truncation of a large response. Which makes ignoring it the real risk: if that note appears and you still answer a "how many" question, your answer is wrong. And its *absence* proves nothing — if you did not pass `--all`, you have no evidence the read was complete.
2. **`--all` is a deliberate no-op on endpoints that do not paginate.** Getting one page back is correct there, not a failure — do not go hunting for a bug.
3. **The word `INCOMPLETE` on stderr means records are missing.** It appears when the walk hits its 1000-page ceiling. Do not answer from output that produced it.

This is the same class of trap as `--calling-data` in the root CLAUDE.md: the command succeeds, and the omission is in what it did not fetch. Before reporting "none found" or any number, confirm the read could have returned everything.

### Verification Gate — before you state a number or a negative

This skill answers "how many", "which ones", and "are there any". Every one of
those can be answered **wrongly with exit 0**. Before reporting a count or a
"none found", confirm the command could have returned the opposite:

1. **Could it return the field?** `wxcli people list -o json` omits `extension`
   and `locationId` entirely unless `--calling-data true` is passed. "How many
   users have extensions?" then answers **0** — no error, every user returned.
   An absent field may mean "not configured" or may mean "you didn't ask for
   it". Confirm via `--help` which one before drawing the conclusion.
2. **Could it return every record?** See `--all` above. A count taken from page
   one is not a slightly-off answer, it is a wrong one.
3. **The inverse trap: `--limit N` narrows the fetch, not the display.** On a
   command that already walks every page, adding `--limit` switches it to a
   single fetch and silently drops the rest.
4. **A negative needs a query that could have gone positive.** "No hunt group
   named Sales" is only true if you listed hunt groups with `--all`. Otherwise
   the honest report is "not present in the records I fetched" — and that is
   not yet an answer.

State the evidence with the answer. "12 users" is a claim; "12 users, counted
on `extension` from `people list --all --calling-data true`" is a finding.

**What this looks like.** Three reports of the same finding — only the third is right:

```
Bad   "No users have extensions."
      (unverified — far more likely a --calling-data miss than a real zero)

Bad   "hypothesis: extensions may be unset. [runs people list] verified: 0.
       Now checking whether the field is returned at all. [runs --help]
       verified: needs --calling-data. Re-running… verified: 8."
      (ceremony — the search narrated back as if it were the finding)

Good  "8 of 14 users have extensions. I passed --calling-data true — without
       it this command returns no extension field at all and the answer would
       read 0 — and --all, so the count covers every page."
```

The middle line is not extra rigor. Narrating the search is its own failure:
the tool calls are already the record, so report the finding, not the hunt.

### Resource Resolution Protocol

When the user references a resource by name (not ID):

1. **List** the resource type with `--all -o json` (a name absent from page one is not a name that does not exist)
2. **Search** the response for name matches (case-insensitive substring)
3. **Exact match** → use it immediately
4. **Multiple partial matches** → disambiguate:
   ```
   I found 2 hunt groups matching "Sales":
     1. Sales - East (Austin, 5 members)
     2. Sales - West (Denver, 3 members)
   Which one?
   ```
5. **No match** → report with suggestion:
   ```
   I couldn't find a hunt group named "Sales". The hunt groups at your org are:
     - Support (Austin)
     - Engineering (Denver)
     - Front Desk (Austin)
   Did you mean one of these?
   ```

### Batch Query Protocol

For audit queries checking a setting across many users (e.g., "which users don't have voicemail?"):

1. **Count first:** `wxcli people list --all --fields 'length(@)' -o json`. `--all` is not optional here — this count decides which branch below you take, and a page-one count silently picks the wrong one. Add `--calling-data true` if the setting you are about to audit is a calling field.
2. **If ≤ 50 users:** Fetch settings for each user sequentially
3. **If > 50 users:** Note upfront: "Checking [N] users — this will take a moment." Batch in groups of 20 with brief progress updates every 20 users.
4. **Report:** "Checked all [N] users at [location]. [X] of [N] don't have voicemail enabled."

## Step 4: Format the response

### Formatting Principles

- **Lead with the direct answer**, then supporting details
- **Use the admin's language**: "voicemail" not "voicemailEnabled", "forwarding" not "callForwarding"
- **Include counts and context**: "3 of 12 users" not just "3 users"
- **Be specific about what was checked**: "I checked all 45 users at the Austin location"

### Format by Query Type

**Membership queries** ("Who's in the Sales hunt group?"):
```
Sales Hunt Group has 4 members:
  - Jane Smith (ext 2001, Austin)
  - Bob Lee (ext 2002, Austin)
  - Maria Garcia (ext 2003, Denver)
  - Tom Chen (ext 2004, Denver)

Ring pattern: Simultaneous
No-answer action: Forward to Sales voicemail after 20 seconds
```

**Yes/no queries** ("Does John have voicemail enabled?"):
```
Yes, John Smith has voicemail enabled.
  - Messages sent to: john.smith@acme.com
  - PIN required: Yes
  - Greeting: Custom greeting uploaded
```

**Inventory/audit queries** ("Which users at Austin don't have voicemail?"):
```
12 of 45 users at Austin don't have voicemail enabled:
  - Alice Johnson (ext 3001)
  - Brian Kim (ext 3002)
  - Carol Davis (ext 3003)
  ... and 9 more

Note: I checked all 45 Webex Calling-licensed users at the Austin location.
```

**Large result sets (> 10 items):**
- Show first 10 with "...and N more" note
- Include summary count at top
- Offer to show full list if needed

### Disambiguation format:
```
I found 2 queues matching "Sales":
  1. Sales - East (Austin, 5 agents)
  2. Sales - West (Denver, 3 agents)

Which one?
```

## Safety Guardrails

### Read-Only Enforcement

**Only use these command verbs:** `list`, `show`, `test`

**Blocklisted verbs — NEVER use these in query mode:**
`create`, `add`, `update`, `modify`, `delete`, `remove`, `assign`, `enable`, `disable`, `configure`

If the user requests a change, respond with:
1. The current state (the query result)
2. "I can look things up but can't make changes in query mode."
3. Where in Control Hub they'd make the change, OR offer to switch to build mode

### Scope Limiting

- Operate within the org authenticated via `wxcli configure`
- If a partner/multi-org token is active, query the currently-selected org only
- No cross-org queries or comparisons

### Error Handling

| Error | Response |
|-------|----------|
| 401 Unauthorized | "Your session may have expired. Run `wxcli configure` to re-authenticate." |
| 403 Forbidden | "Your account doesn't have permission to view [resource]. Contact your org admin." |
| 404 Not Found | "I couldn't find [resource]. It may have been deleted or the name might be different." |
| 429 Rate Limited | "The API is rate-limiting requests. Try again in a minute." |
| Timeout | "The request timed out. The org may have a large number of [resources]. Try narrowing your query to a specific location." |

Files in this skill

  • SKILL.md14.7 KB
  • domains/call-flow-trace.md8.7 KB
  • domains/call-history.md1.8 KB
  • domains/features.md6 KB
  • domains/numbers.md3.5 KB
  • domains/people-and-settings.md5.6 KB
  • domains/routing.md5.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in research →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.