[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BJ99X2HQDJQZPX0H1T4D5F":3,"skill-same:01M7BJ99X2HQDJQZPX0H1T4D5F":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7BJ99X2HQDJQZPX0H1T4D5F","censys-search",null,"Use when the user wants to run a censys search, censys search for hosts or certificates, search censys for hosts\u002Fcerts\u002Fweb properties, find censys hosts with a given condition, run a censys query for hosts, or search for certificates on censys using CenQL. Wraps the `censys search` CLI subcommand. Trigger phrases include \"censys search,\" \"search censys for,\" \"find censys hosts with,\" \"censys query for hosts,\" and \"search for certificates on censys.\" Do not use for viewing a single known host\u002Fcert\u002Fdomain by identifier (see censys-view) or for aggregating\u002Fcounting by field (see censys-aggregate).","censys\u002Fcensys-ai-skills","censys","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F14364260?v=4","01M7BJ81H5T13H27EDACWQY52A","Censys","01M7BJ81HSKBW2GD4Z7VA959XQ",14,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fcensys\u002Fcensys-ai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcensys-search\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: censys-search\ndescription: Use when the user wants to run a censys search, censys search for hosts or certificates, search censys for hosts\u002Fcerts\u002Fweb properties, find censys hosts with a given condition, run a censys query for hosts, or search for certificates on censys using CenQL. Wraps the `censys search` CLI subcommand. Trigger phrases include \"censys search,\" \"search censys for,\" \"find censys hosts with,\" \"censys query for hosts,\" and \"search for certificates on censys.\" Do not use for viewing a single known host\u002Fcert\u002Fdomain by identifier (see censys-view) or for aggregating\u002Fcounting by field (see censys-aggregate).\nversion: 0.1.0\n---\n\n# Censys Search\n\n## When to use\n\nUse this skill whenever the user wants to run a full-text or structured Censys Query Language (CenQL) query against Censys host, certificate, or web-property data via the `censys search` CLI command. This covers requests like:\n\n- \"censys search for SSH hosts not on port 22\"\n- \"search censys for certificates matching censys.com\"\n- \"find censys hosts with port 443 open in Germany\"\n- \"censys query for hosts running HTTP\"\n\nIf the user already has a specific IP, cert SHA-256, or FQDN and wants a single-record lookup (not a query), that's `censys-view`, not this skill. If the user wants counts\u002Fbreakdowns by field value rather than raw matching records, that's `censys-aggregate`. If the user needs help writing or debugging the CenQL query itself, defer to `censys-cenql`.\n\n## Invocation\n\nBase form:\n\n```bash\ncensys search \"\u003CCenQL query>\" [flags]\n```\n\n### Search-specific flags\n\n| Flag | Alias | Description |\n|---|---|---|\n| `--fields` | `-f` | Comma-separated list of fields to return (reduces payload size and speeds up parsing) |\n| `--page-size` | `-n` | Results per page (default: 100) |\n| `--max-pages` | `-p` | Max pages to fetch (default: 1; use `-1` for exhaustive\u002Fall pages) |\n| `--collection-id` | `-c` | Restrict the search to a specific collection (UUID) |\n\n### Output format\n\nPass `--output-format`\u002F`-O` with one of: `json` (default), `yaml`, `tree`, `short`, `template`. For streaming\u002Fpipeline use, pass `--streaming`\u002F`-S` to emit NDJSON (one JSON object per line) instead of a single JSON array — this is required for piping into `jq` over exhaustive result sets without buffering the whole array in memory.\n\n### Global CLI flags\n\nSee `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fcli-globals.md` for the full global flags reference (output\nformat, streaming, diagnostics, org-id, and PAT vs OAuth notes).\n\n## Common patterns\n\n```bash\n# Find SSH hosts not on port 22\ncensys search 'host.services: (protocol=SSH and not port: 22)' -O short\n\n# Search with specific fields returned\ncensys search --fields host.ip,host.location.country \"host.services.protocol=HTTP\"\n\n# Exhaustive export to NDJSON, extract IPs with jq\ncensys search \"host.services.port: 443 and host.location.country: Germany\" \\\n  --max-pages -1 --streaming | jq -r '.host.ip'\n\n# Search within a specific collection\ncensys search -c \u003Ccollection-uuid> \"host.services.protocol=SSH\"\n\n# Paginated results (5 pages of 50 each = up to 250 results)\ncensys search --page-size 50 --max-pages 5 \"cert.names=censys.com\"\n```\n\n## Post-retrieval filtering\n\nOnce results are retrieved, use `jq` for filtering, projecting, and counting rather than trying to encode every condition in CenQL:\n\n```bash\n# Extract specific fields from JSON output\ncensys search \"host.services.port=22\" | jq '.[].host.ip'\n\n# Filter results by condition\ncensys search \"host.services.port=443\" -O json | \\\n  jq '[.[] | select(.host.location.country_code == \"US\")]'\n\n# Count results matching a sub-condition\ncensys search \"host.services.protocol=SSH\" --max-pages 3 -O json | \\\n  jq '[.[] | select(.host.services[]? | .port == 22)] | length'\n```\n\n## Output guidance\n\n- Default to `-O short` for quick human review of a handful of results in the terminal.\n- Use the default `json` (or `-O json` explicitly) when the output will be piped into `jq` or another tool for filtering\u002Fanalysis.\n- Use `--streaming` (NDJSON) whenever `--max-pages -1` (exhaustive) is combined with a pipeline — this avoids holding the full result set in memory as one JSON array and lets `jq` process records incrementally.\n- `-O tree` is useful for visually inspecting the full nested structure of a single result during ad-hoc exploration.\n- `-O template` supports custom output formatting when the user needs a specific text layout (e.g., for a report or script).\n\n## Export workflow\n\nFor bulk exports, always aggregate first to check population size before spending credits on a full pull:\n\n```bash\n# Step 1: Check distribution before committing to a full pull\ncensys aggregate \"\u003Cquery>\" \"host.location.country\"\n\n# Step 2: Export using the plugin's export script\n\"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcensys-export.sh\" \"\u003Cquery>\" ips data\u002Fhosts.txt\n\"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcensys-export.sh\" \"\u003Cquery>\" ndjson data\u002Fhosts.ndjson\n\"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcensys-export.sh\" \"\u003Cquery>\" csv data\u002Fhosts.csv\n```\n\nThe export script uses streaming (`-S`) by default to avoid buffering large\nresult sets. Formats:\n\n- **`ips`** — plain text, one IP per line\n- **`ndjson`** — one JSON object per line (ip, asn, country, services)\n- **`csv`** — spreadsheet-ready with header row\n\nWithout an output file, the script writes to stdout for piping into `jq` or\nother tools.\n\n### Export caveats\n\n- **`software.product` values are lowercase** — `software.product=\"AnyDesk\"` silently returns nothing; use `software.product: \"AnyDesk\"` (`:` is case-insensitive) or `software.product=\"anydesk\"`. See `censys-cenql` for `=` vs `:` guidance.\n- **`2>\u002Fdev\u002Fnull`** suppresses the status line (e.g. `200 (OK) - 1.2s`) that the CLI writes to stderr — without it, the status text can pollute piped output.\n\n## Error handling\n\n- **Invalid CenQL syntax**: the CLI returns an error message that includes the malformed part of the query. Check `censys-cenql` for field paths, operators, and syntax reference before retrying.\n- **Auth expired \u002F unauthorized**: run `censys auth login` to re-authenticate (OAuth), or verify the PAT is still valid via `censys config auth add` if using a token.\n- **Rate limited**: back off and retry after a delay. Check remaining credits with `censys credits` before issuing another large\u002Fexhaustive query.\n- **Empty results with a PAT and multi-org access**: pass `--org-id`\u002F`-o` explicitly — the query may be scoping to the wrong (or no) organization.\n\n## Parsing CLI output programmatically\n\nWhen redirecting `censys search -O json` to a file and parsing it later:\n\n1. **stdout is valid JSON.** The output (when using `-O json`) is a single\n   JSON array `[...]` starting on the first line. Parse it directly — no\n   line-skipping needed. The status line (e.g., `200 (OK) - 347ms`) goes to\n   stderr.\n2. **Empty results may be `null`.** Some queries return `null` instead of `[]`\n   for zero results. Defensive parsing: `data = json.load(f) or []`.\n3. **Suppress stderr in pipelines.** Use `2>\u002Fdev\u002Fnull` when piping into `jq`\n   to suppress the status line and any diagnostic output. Use `-q` to suppress\n   response metadata at the source.\n\n## Caveats\n\n- `--max-pages -1` fetches up to the API maximum of 100 pages (10,000 results at the default page size) (per CLI config docs) — this can consume significant API credits on broad queries, and returns no warning when capped. Confirm scope with the user (or add tightening conditions) before running an unbounded exhaustive search on a broad query.\n- `--page-size` above the platform's per-page maximum will be clamped by the API; there is no benefit to setting it above that ceiling.\n- `--fields` only trims the returned payload — it does not change which records match the query. Filtering must still happen in the CenQL query itself or via post-retrieval `jq` filtering.\n- Results are subject to Censys data freshness\u002Findexing lag; a very recent scan may not yet appear in search results.\n- `--collection-id` requires a valid collection UUID that the authenticated identity has access to; an unrecognized or unauthorized UUID returns an error rather than an empty result set.\n- **Run `censys` commands one at a time (cencli \u003C 1.1.3).** On versions before 1.1.3, the CLI's local cache database can produce `failed to set journal_mode WAL: database is locked (261)` when two or more concurrent `censys` processes run. The command exits 0 and writes an empty output file, so the failure is easy to miss. Check that each output file is not empty before you use it. The fix in cencli 1.1.3 (`#82`) serializes concurrent database initialization. On 1.1.3+, parallel invocations have been observed to succeed (verified on cencli 1.1.3, 2026-08), though a race cannot be fully excluded.\n- **To count matching hosts**, use the plugin's count script:\n\n  ```bash\n  \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcensys-count.sh\" '\u003Cquery>'\n  ```\n\n  The script pages the full result set and prints the count. It exits 2 with\n  a warning if the count hits the 10,000-result API ceiling (100 pages × 100\n  per page) — treat that number as a floor, not a total.\n\n  Do not add `censys aggregate` buckets to get a total — `-n` limits the bucket list (default 25) and the sum can be far below the true total. See `censys-aggregate`.\n\n## Managing collections (no CLI support)\n\n`censys search` and `censys aggregate` can *read* a collection with `-c`, but the CLI cannot create, update, list, or delete one. Use the Platform API for that. Authenticate with `CENSYS_PLATFORM_TOKEN` and `CENSYS_PLATFORM_ORGID`. These are Platform API variables — they are not used by the `censys` CLI itself, which stores credentials in its own database.\n\nBase URL: `https:\u002F\u002Fapi.platform.censys.io\u002Fv3\u002Fcollections`. Every request needs `?organization_id=$CENSYS_PLATFORM_ORGID`.\n\n| Action | Method | Path |\n|---|---|---|\n| List | `GET` | `\u002Fv3\u002Fcollections` |\n| Read one | `GET` | `\u002Fv3\u002Fcollections\u002F\u003Cid>` |\n| Create | `POST` | `\u002Fv3\u002Fcollections` |\n| **Update** | **`PUT`** | `\u002Fv3\u002Fcollections\u002F\u003Cid>` |\n\nCreate and update take the same JSON body: `{\"name\": ..., \"description\": ..., \"query\": ...}`.\n\n```bash\n# create\njq -n --arg n \"My collection\" --arg d \"What it tracks\" --arg q '\u003CCenQL>' \\\n  '{name:$n, description:$d, query:$q}' > \u002Ftmp\u002Fc.json\ncurl -sS -X POST -H \"Authorization: Bearer $CENSYS_PLATFORM_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" --data @\u002Ftmp\u002Fc.json \\\n  \"https:\u002F\u002Fapi.platform.censys.io\u002Fv3\u002Fcollections?organization_id=$CENSYS_PLATFORM_ORGID\"\n```\n\nNotes:\n\n- **`PUT` is the update verb.** `PATCH` and `POST` against `\u002Fv3\u002Fcollections\u002F\u003Cid>` both return HTTP 405.\n- Build the JSON body with `jq -n --arg`, not a shell heredoc. CenQL queries contain double quotes and backslash escapes that break under manual shell quoting.\n- **The list endpoint paginates.** It returns 100 collections per page plus `result.next_page_token`. Loop on that token until it is empty. A new collection does not always appear on page 1, so do not conclude that creation failed after checking one page.\n- After a create or an update, `status` is `populating` and `total_assets` is `0`. The status becomes `active` and the count settles after a short delay. An update sets `status_reason` to `query_changed`.\n- Verify membership with a collection-scoped search: `censys search -c \u003Cid> '\u003Cbroad query>' --max-pages -1 -O json | jq 'length'`.\n- Collections are visible to the whole organization. Write a description that explains what the collection tracks, which known-benign members it contains and why, and which indicators were deliberately left out.\n\n## Cross-references\n\n- **censys-cenql** — CenQL syntax, field paths, operators, and query cookbook. Defer here for help constructing or debugging the query string itself.\n- **censys-view** — single-record lookup by IP\u002FSHA-256\u002FFQDN (not a query).\n- **censys-aggregate** — aggregate\u002Fcount results by field instead of returning raw records.\n- **censys-analyze** — deeper post-retrieval analysis: jq recipes, SQLite, batch cert analysis, cross-referencing.\n","# Censys Search\n\n## When to use\n\nUse this skill whenever the user wants to run a full-text or structured Censys Query Language (CenQL) query against Censys host, certificate, or web-property data via the `censys search` CLI command. This covers requests like:\n\n- \"censys search for SSH hosts not on port 22\"\n- \"search censys for certificates matching censys.com\"\n- \"find censys hosts with port 443 open in Germany\"\n- \"censys query for hosts running HTTP\"\n\nIf the user already has a specific IP, cert SHA-256, or FQDN and wants a single-record lookup (not a query), that's `censys-view`, not this skill. If the user wants counts\u002Fbreakdowns by field value rather than raw matching records, that's `censys-aggregate`. If the user needs help writing or debugging the CenQL query itself, defer to `censys-cenql`.\n\n## Invocation\n\nBase form:\n\n```bash\ncensys search \"\u003CCenQL query>\" [flags]\n```\n\n### Search-specific flags\n\n| Flag | Alias | Description |\n|---|---|---|\n| `--fields` | `-f` | Comma-separated list of fields to return (reduces payload size and speeds up parsing) |\n| `--page-size` | `-n` | Results per page (default: 100) |\n| `--max-pages` | `-p` | Max pages to fetch (default: 1; use `-1` for exhaustive\u002Fall pages) |\n| `--collection-id` | `-c` | Restrict the search to a specific collection (UUID) |\n\n### Output format\n\nPass `--output-format`\u002F`-O` with one of: `json` (default), `yaml`, `tree`, `short`, `template`. For streaming\u002Fpipeline use, pass `--streaming`\u002F`-S` to emit NDJSON (one JSON object per line) instead of a single JSON array — this is required for piping into `jq` over exhaustive result sets without buffering the whole array in memory.\n\n### Global CLI flags\n\nSee `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fcli-globals.md` for the full global flags reference (output\nformat, streaming, diagnostics, org-id, and PAT vs OAuth notes).\n\n## Common patterns\n\n```bash\n# Find SSH hosts not on port 22\ncensys search 'host.services: (protocol=SSH and not port: 22)' -O short\n\n# Search with specific fields returned\ncensys search --fields host.ip,host.location.country \"host.services.protocol=HTTP\"\n\n# Exhaustive export to NDJSON, extract IPs with jq\ncensys search \"host.services.port: 443 and host.location.country: Germany\" \\\n  --max-pages -1 --streaming | jq -r '.host.ip'\n\n# Search within a specific collection\ncensys search -c \u003Ccollection-uuid> \"host.services.protocol=SSH\"\n\n# Paginated results (5 pages of 50 each = up to 250 results)\ncensys search --page-size 50 --max-pages 5 \"cert.names=censys.com\"\n```\n\n## Post-retrieval filtering\n\nOnce results are retrieved, use `jq` for filtering, projecting, and counting rather than trying to encode every condition in CenQL:\n\n```bash\n# Extract specific fields from JSON output\ncensys search \"host.services.port=22\" | jq '.[].host.ip'\n\n# Filter results by condition\ncensys search \"host.services.port=443\" -O json | \\\n  jq '[.[] | select(.host.location.country_code == \"US\")]'\n\n# Count results matching a sub-condition\ncensys search \"host.services.protocol=SSH\" --max-pages 3 -O json | \\\n  jq '[.[] | select(.host.services[]? | .port == 22)] | length'\n```\n\n## Output guidance\n\n- Default to `-O short` for quick human review of a handful of results in the terminal.\n- Use the default `json` (or `-O json` explicitly) when the output will be piped into `jq` or another tool for filtering\u002Fanalysis.\n- Use `--streaming` (NDJSON) whenever `--max-pages -1` (exhaustive) is combined with a pipeline — this avoids holding the full result set in memory as one JSON array and lets `jq` process records incrementally.\n- `-O tree` is useful for visually inspecting the full nested structure of a single result during ad-hoc exploration.\n- `-O template` supports custom output formatting when the user needs a specific text layout (e.g., for a report or script).\n\n## Export workflow\n\nFor bulk exports, always aggregate first to check population size before spending credits on a full pull:\n\n```bash\n# Step 1: Check distribution before committing to a full pull\ncensys aggregate \"\u003Cquery>\" \"host.location.country\"\n\n# Step 2: Export using the plugin's export script\n\"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcensys-export.sh\" \"\u003Cquery>\" ips data\u002Fhosts.txt\n\"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcensys-export.sh\" \"\u003Cquery>\" ndjson data\u002Fhosts.ndjson\n\"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcensys-export.sh\" \"\u003Cquery>\" csv data\u002Fhosts.csv\n```\n\nThe export script uses streaming (`-S`) by default to avoid buffering large\nresult sets. Formats:\n\n- **`ips`** — plain text, one IP per line\n- **`ndjson`** — one JSON object per line (ip, asn, country, services)\n- **`csv`** — spreadsheet-ready with header row\n\nWithout an output file, the script writes to stdout for piping into `jq` or\nother tools.\n\n### Export caveats\n\n- **`software.product` values are lowercase** — `software.product=\"AnyDesk\"` silently returns nothing; use `software.product: \"AnyDesk\"` (`:` is case-insensitive) or `software.product=\"anydesk\"`. See `censys-cenql` for `=` vs `:` guidance.\n- **`2>\u002Fdev\u002Fnull`** suppresses the status line (e.g. `200 (OK) - 1.2s`) that the CLI writes to stderr — without it, the status text can pollute piped output.\n\n## Error handling\n\n- **Invalid CenQL syntax**: the CLI returns an error message that includes the malformed part of the query. Check `censys-cenql` for field paths, operators, and syntax reference before retrying.\n- **Auth expired \u002F unauthorized**: run `censys auth login` to re-authenticate (OAuth), or verify the PAT is still valid via `censys config auth add` if using a token.\n- **Rate limited**: back off and retry after a delay. Check remaining credits with `censys credits` before issuing another large\u002Fexhaustive query.\n- **Empty results with a PAT and multi-org access**: pass `--org-id`\u002F`-o` explicitly — the query may be scoping to the wrong (or no) organization.\n\n## Parsing CLI output programmatically\n\nWhen redirecting `censys search -O json` to a file and parsing it later:\n\n1. **stdout is valid JSON.** The output (when using `-O json`) is a single\n   JSON array `[...]` starting on the first line. Parse it directly — no\n   line-skipping needed. The status line (e.g., `200 (OK) - 347ms`) goes to\n   stderr.\n2. **Empty results may be `null`.** Some queries return `null` instead of `[]`\n   for zero results. Defensive parsing: `data = json.load(f) or []`.\n3. **Suppress stderr in pipelines.** Use `2>\u002Fdev\u002Fnull` when piping into `jq`\n   to suppress the status line and any diagnostic output. Use `-q` to suppress\n   response metadata at the source.\n\n## Caveats\n\n- `--max-pages -1` fetches up to the API maximum of 100 pages (10,000 results at the default page size) (per CLI config docs) — this can consume significant API credits on broad queries, and returns no warning when capped. Confirm scope with the user (or add tightening conditions) before running an unbounded exhaustive search on a broad query.\n- `--page-size` above the platform's per-page maximum will be clamped by the API; there is no benefit to setting it above that ceiling.\n- `--fields` only trims the returned payload — it does not change which records match the query. Filtering must still happen in the CenQL query itself or via post-retrieval `jq` filtering.\n- Results are subject to Censys data freshness\u002Findexing lag; a very recent scan may not yet appear in search results.\n- `--collection-id` requires a valid collection UUID that the authenticated identity has access to; an unrecognized or unauthorized UUID returns an error rather than an empty result set.\n- **Run `censys` commands one at a time (cencli \u003C 1.1.3).** On versions before 1.1.3, the CLI's local cache database can produce `failed to set journal_mode WAL: database is locked (261)` when two or more concurrent `censys` processes run. The command exits 0 and writes an empty output file, so the failure is easy to miss. Check that each output file is not empty before you use it. The fix in cencli 1.1.3 (`#82`) serializes concurrent database initialization. On 1.1.3+, parallel invocations have been observed to succeed (verified on cencli 1.1.3, 2026-08), though a race cannot be fully excluded.\n- **To count matching hosts**, use the plugin's count script:\n\n  ```bash\n  \"${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fcensys-count.sh\" '\u003Cquery>'\n  ```\n\n  The script pages the full result set and prints the count. It exits 2 with\n  a warning if the count hits the 10,000-result API ceiling (100 pages × 100\n  per page) — treat that number as a floor, not a total.\n\n  Do not add `censys aggregate` buckets to get a total — `-n` limits the bucket list (default 25) and the sum can be far below the true total. See `censys-aggregate`.\n\n## Managing collections (no CLI support)\n\n`censys search` and `censys aggregate` can *read* a collection with `-c`, but the CLI cannot create, update, list, or delete one. Use the Platform API for that. Authenticate with `CENSYS_PLATFORM_TOKEN` and `CENSYS_PLATFORM_ORGID`. These are Platform API variables — they are not used by the `censys` CLI itself, which stores credentials in its own database.\n\nBase URL: `https:\u002F\u002Fapi.platform.censys.io\u002Fv3\u002Fcollections`. Every request needs `?organization_id=$CENSYS_PLATFORM_ORGID`.\n\n| Action | Method | Path |\n|---|---|---|\n| List | `GET` | `\u002Fv3\u002Fcollections` |\n| Read one | `GET` | `\u002Fv3\u002Fcollections\u002F\u003Cid>` |\n| Create | `POST` | `\u002Fv3\u002Fcollections` |\n| **Update** | **`PUT`** | `\u002Fv3\u002Fcollections\u002F\u003Cid>` |\n\nCreate and update take the same JSON body: `{\"name\": ..., \"description\": ..., \"query\": ...}`.\n\n```bash\n# create\njq -n --arg n \"My collection\" --arg d \"What it tracks\" --arg q '\u003CCenQL>' \\\n  '{name:$n, description:$d, query:$q}' > \u002Ftmp\u002Fc.json\ncurl -sS -X POST -H \"Authorization: Bearer $CENSYS_PLATFORM_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" --data @\u002Ftmp\u002Fc.json \\\n  \"https:\u002F\u002Fapi.platform.censys.io\u002Fv3\u002Fcollections?organization_id=$CENSYS_PLATFORM_ORGID\"\n```\n\nNotes:\n\n- **`PUT` is the update verb.** `PATCH` and `POST` against `\u002Fv3\u002Fcollections\u002F\u003Cid>` both return HTTP 405.\n- Build the JSON body with `jq -n --arg`, not a shell heredoc. CenQL queries contain double quotes and backslash escapes that break under manual shell quoting.\n- **The list endpoint paginates.** It returns 100 collections per page plus `result.next_page_token`. Loop on that token until it is empty. A new collection does not always appear on page 1, so do not conclude that creation failed after checking one page.\n- After a create or an update, `status` is `populating` and `total_assets` is `0`. The status becomes `active` and the count settles after a short delay. An update sets `status_reason` to `query_changed`.\n- Verify membership with a collection-scoped search: `censys search -c \u003Cid> '\u003Cbroad query>' --max-pages -1 -O json | jq 'length'`.\n- Collections are visible to the whole organization. Write a description that explains what the collection tracks, which known-benign members it contains and why, and which indicators were deliberately left out.\n\n## Cross-references\n\n- **censys-cenql** — CenQL syntax, field paths, operators, and query cookbook. Defer here for help constructing or debugging the query string itself.\n- **censys-view** — single-record lookup by IP\u002FSHA-256\u002FFQDN (not a query).\n- **censys-aggregate** — aggregate\u002Fcount results by field instead of returning raw records.\n- **censys-analyze** — deeper post-retrieval analysis: jq recipes, SQLite, batch cert analysis, cross-referencing.\n",{"name":5,"version":24,"description":7},"0.1.0","main","cc048d5e7a4bcba276bd9b76ef9521a4a9a301bb","skills\u002Fcensys-search",0,"https:\u002F\u002Fgithub.com\u002Fcensys\u002Fcensys-ai-skills","https:\u002F\u002Fcensys.com","https:\u002F\u002Fgithub.com\u002Fcensys","https:\u002F\u002Fwww.censys.com","Censys is a platform that helps information security practitioners discover, monitor, and analyze devices that are accessible from the Internet. ","2026-10-30 20:49:31",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add censys\u002Fcensys-ai-skills --skill censys-search",{"tool":41,"command":42},"bunx","bunx skills add censys\u002Fcensys-ai-skills --skill censys-search",{"tool":44,"command":45},"pnpm","pnpm dlx skills add censys\u002Fcensys-ai-skills --skill censys-search","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcensys\u002Fcensys-ai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcensys-search\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fcli-globals.md","REFERENCE","参考文档",1977,"https:\u002F\u002Fgithub.com\u002Fcensys\u002Fcensys-ai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcensys-search\u002Freferences\u002Fcli-globals.md",[56,63,70,77,84,91],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7BJ9NW35DSAQF8YTHQPBAKR","censys-view","Use when the user wants detailed point-lookup data on a single asset via the Censys CLI — e.g. \"censys view,\" \"censys look up this IP,\" \"censys host details for,\" \"view this cert on censys,\" \"censys what services does X run,\" \"censys view this cert,\" \"look this host up on censys,\" \"censys pull the record for,\" \"what does censys show for this hostname,\" \"what's running on this IP,\" \"profile this host,\" or \"show me this host's services.\" Wraps `censys view` for hosts, certificates, and web properties. This is the right skill for any single-asset lookup — use censys-investigate only when the user explicitly asks for a multi-step investigation. Not for search-by-criteria (see censys-search) or time-series history (see censys-timeline).","https:\u002F\u002Fgithub.com\u002Fcensys\u002Fcensys-ai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcensys-view\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7BJ9FQKTDKNF0QF310AXCCK","censys-timeline","Use when the user wants temporal analysis of how a Censys-tracked asset changed over time — e.g. \"censys timeline,\" \"censys host history,\" \"censys what changed on this host,\" \"censys when did this service appear,\" \"censys change detection,\" \"censys temporal analysis,\" \"censys track cert rotations,\" or \"censys did this host change hands.\" Wraps `censys history` for hosts, web properties, and certificates. Not for current-state lookups (see censys-view) or criteria search (see censys-search).","https:\u002F\u002Fgithub.com\u002Fcensys\u002Fcensys-ai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcensys-timeline\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7BJ92MPX233B39VEGNYMQ10","censys-investigate","Use when the user explicitly requests a multi-step Censys investigation — e.g. \"censys investigate,\" \"censys deep dive into,\" \"trace this infrastructure with censys,\" \"censys pivot chain,\" \"full censys investigation,\" \"hunt for related infrastructure,\" or \"\u002Fcensys-investigate.\" This is a heavyweight methodology skill (typically 20–50+ API calls) — do NOT fire on simple lookups like \"what's running on this IP\" or \"profile this host\" (use censys-view for those). Structured as a baseline collection phase followed by decision trees that branch on what the baseline reveals. Prescribes a findings template and data preservation convention. Always confirms scope and estimated cost with the user before starting.","https:\u002F\u002Fgithub.com\u002Fcensys\u002Fcensys-ai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcensys-investigate\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7BJ8VZQEG7NH69FEJG35QBN","censys-enrich","Use when the user wants fast, credit-free IP context for SOC\u002Ftriage work via the Censys CLI — e.g. \"censys enrich,\" \"censys enrich this IP,\" \"censys bulk enrich,\" \"censys triage IP,\" \"censys SOC lookup,\" \"is this IP interesting per censys,\" \"censys check this IP for scanning activity,\" or \"censys reputation on this address.\" Wraps `censys enrich` for single\u002Fbulk IP enrichment (location, AS, WHOIS, DNS, labels, GreyNoise, reputation, network\u002Fprivacy classification, third-party verdicts). Not for full host records with all services and raw banners (see censys-view) or criteria-based search (see censys-search).","https:\u002F\u002Fgithub.com\u002Fcensys\u002Fcensys-ai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcensys-enrich\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7BJ8P27Y1W0S9APMBY5TDMX","censys-censeye","Use when the user wants to run censys censeye, censys pivot analysis, censys rarity analysis, censys find related infrastructure, or run censeye on a host. Wraps the `censys censeye` CLI subcommand to analyze a single host and generate pivotable threat-hunting queries bounded by rarity (how many other hosts share each attribute). Trigger phrases include \"censys censeye,\" \"censys pivot analysis,\" \"censys rarity analysis,\" \"censys find related infrastructure,\" and \"run censeye on.\" Requires Threat Hunting feature access on the organization. Not for criteria-based search (see censys-search) or single-record point lookups (see censys-view).","https:\u002F\u002Fgithub.com\u002Fcensys\u002Fcensys-ai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcensys-censeye\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7BJ8F7GX9AS741AVVP7QRKJ","censys-cenql","Use when the user needs help with CenQL syntax, censys query syntax, how to write a censys query, what censys fields are available, or censys query help — field paths, operators, quoting\u002Fescaping rules, or example queries for hosts, certificates, and web properties. Trigger phrases include \"CenQL syntax,\" \"censys query syntax,\" \"how do I write a censys query,\" \"what censys fields are available,\" and \"censys query help.\" Also fires when the user writes \"CQL,\" a frequent misspelling of CenQL. This is a reference skill, not a CLI wrapper — defer to censys-search, censys-aggregate, or censys-view to actually execute the query once it's constructed.","https:\u002F\u002Fgithub.com\u002Fcensys\u002Fcensys-ai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcensys-cenql\u002FSKILL.md",[],[]]