Skip to content
Back to skills

Queries

ASecurity

"Routes TensorFlow Privacy users who need low-level DPQuery stacks,

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
businessapi

Works with

  • cli
  • api

Security analysis

A100/100

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

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill queries --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Queries?

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

Security grade badge for Queries
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-queries/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-queries)

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: queries
description: "Routes TensorFlow Privacy users who need low-level DPQuery stacks,
  query composition, quantile clipping helpers, or tree aggregation mechanics."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Queries

Use this sub-skill when the user needs to work directly with TensorFlow Privacy's `DPQuery` family or its tree-aggregation helpers.

## Trigger phrases

- "custom DPQuery"
- "Gaussian query"
- "discrete Gaussian"
- "Skellam query"
- "normalized query"
- "nested query"
- "quantile adaptive clipping"
- "restart query"
- "tree aggregation"

## What this sub-skill covers

- `DPQuery` and `SumAggregationDPQuery`
- Gaussian, discrete-Gaussian, distributed discrete-Gaussian, and Skellam query classes
- `NoPrivacy*` and `NormalizedQuery` helpers
- nested queries and restart indicators
- quantile estimator and quantile-adaptive clipping query classes
- tree aggregation query helpers and the lower-level `tree_aggregation` module

## What it does not cover

- privacy budgets or epsilon/noise search -> `../privacy-accounting/`
- training loops or model wrappers -> `../training/`
- membership inference and secret-sharer analysis -> `../privacy-tests/`
- fast gradient clipping internals -> `../fast-clipping/`

## Read this before you act

- `references/api-reference.md` for class constructors, helper signatures, and the safe query smoke pattern.
- `references/troubleshooting.md` for nesting, state, and restart failures.
- `../../references/install-and-scope.md` for the minimum CPU runtime.

## Typical workflow

1. Decide whether the user needs a turn-key query or a custom nested composition.
2. Pick the narrowest query class that matches the desired mechanism.
3. Use `test_utils.run_query()` when you need a tiny deterministic smoke check.
4. If the user is actually asking for privacy accounting, route them to `privacy-accounting` instead of building a query by hand.

## Bundled helper

Run `scripts/tiny_dp_query_smoke.py` for a tiny deterministic query check. It exercises a Gaussian sum query and a no-privacy sum query on a scalar toy fixture.

Files in this skill

  • SKILL.md2.1 KB
  • references/api-reference.md2.9 KB
  • references/troubleshooting.md2 KB
  • scripts/tiny_dp_query_smoke.py1.5 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.

Comments

Loading comments…