Skip to content
Back to skills

2510 Fetch Filter A93242ff

ASecurity

Fetch objects from a collection by UUID, with filters, or as a random sample. Supports complex nested filter logic (AND, OR).

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 11, 2026
documentationgobash

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2510-fetch_filter_a93242ff --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2510 Fetch Filter A93242ff?

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

Security grade badge for 2510 Fetch Filter A93242ff
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2510-fetch-filter-a93242ff/badge)](https://www.skillsdirectory.com/skills/tools-only-2510-fetch-filter-a93242ff)

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

SKILL.md
# Fetch and Filter

Fetch objects from a collection by UUID, with filters, or as a random sample. Supports complex nested filter logic (AND, OR).

## Usage

```bash
uv run scripts/fetch_filter.py "CollectionName" [--id "UUID"] [--filters 'JSON'] [--limit 10] [--properties "prop1,prop2"] [--json]
```

## Parameters

| Parameter | Flag | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `collection_name` | — | Yes (positional) | — | Collection name |
| `--id` | — | No | — | Fetch a specific object by UUID |
| `--filters` | `-f` | No | — | JSON string defining filters (see filter syntax below) |
| `--limit` | `-l` | No | `10` | Number of objects to fetch |
| `--properties` | `-p` | No | all | Comma-separated properties to include in output |
| `--json` | — | No | `false` | Output in JSON format |

## Modes

1. **Fetch by UUID**: Use `--id` to retrieve a specific object
2. **Fetch with filters**: Use `--filters` to retrieve filtered subsets
3. **Fetch random sample**: Omit both `--id` and `--filters` for unfiltered results

## Filter Syntax

### Simple property filter

```json
{"property": "category", "operator": "equal", "value": "Science"}
```

### Logical operators (AND / OR)

```json
{"operator": "and", "filters": [
  {"property": "category", "operator": "equal", "value": "Science"},
  {"property": "year", "operator": "greater_than", "value": 2020}
]}
```

### List of filters (implicit AND)

```json
[
  {"property": "category", "operator": "equal", "value": "Science"},
  {"property": "year", "operator": "greater_than", "value": 2020}
]
```

### Supported operators

`equal`, `not_equal`, `less_than`, `less_or_equal`, `greater_than`, `greater_or_equal`, `like`, `contains_any`, `contains_all`, `is_none`

## Output

- **Default**: Markdown table with object UUIDs and properties
- **JSON**: Array of objects with full metadata

## Examples

Fetch by UUID:

```bash
uv run scripts/fetch_filter.py "Articles" --id "550e8400-e29b-41d4-a716-446655440000"
```

Filter by property:

```bash
uv run scripts/fetch_filter.py "Products" --filters '{"property": "price", "operator": "less_than", "value": 50}'
```

Complex filter with AND/OR:

```bash
uv run scripts/fetch_filter.py "Articles" --filters '{"operator": "or", "filters": [{"property": "category", "operator": "equal", "value": "Science"}, {"property": "category", "operator": "equal", "value": "Tech"}]}'
```

Select specific properties:

```bash
uv run scripts/fetch_filter.py "Products" --properties "name,price" --limit 5
```

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…

Newsletter

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