Censys AI Skills
AI-assisted Censys internet intelligence via the
Censys CLI. Ships as a
Claude Code plugin and
works with other AI coding tools — see
Usage with other AI tools.
Install (Claude Code)
claude plugin marketplace add censys/censys-ai-skills
claude plugin install censys
Prerequisites
The plugin requires cencli ≥ 1.0:
# Homebrew (macOS/Linux)
brew install --cask censys/tap/cencli
# Or download the release binary directly
# https://github.com/censys/cencli/releases/latest
Verify the install:
censys version # should print JSON with a 1.x version
Note: pip install censys installs censys-python
(the legacy Search API wrapper), not cencli. The two are different tools with
different CLIs. There is no pip package for cencli.
Authenticate
censys auth login # OAuth (interactive)
# or
censys config auth add # PAT (non-interactive)
Additional config
- For enrich:
censys config org-id
- For censeye / cert history: Threat Hunting module access required
Usage with other AI tools
The skills are standalone markdown files that work with any AI coding
assistant that supports custom instructions. The Claude Code plugin
system handles skill loading and path resolution automatically; other
tools require manual setup.
Cursor / Windsurf / other AI editors
Clone the repo and reference the skills from your project instructions:
git clone https://github.com/censys/censys-ai-skills.git
Then include individual skill files in your editor's instruction system:
| Editor | Instruction file | Include syntax |
|---|
| Cursor | .cursorrules or .cursor/rules/*.md | Paste skill content or reference the file path |
| Windsurf | .windsurfrules | Paste skill content |
| Cline | .clinerules | Paste skill content |
Pick the skills relevant to your workflow. For most users:
skills/censys-search/SKILL.md and skills/censys-view/SKILL.md for basic queries
skills/censys-cenql/SKILL.md for query syntax reference
skills/censys-investigate/SKILL.md for full investigation methodology
Codex / agents without a plugin system
Clone the repo into your project or reference it from your agent's
system prompt. Each skill folder (skills/<name>/) is self-contained
with its own SKILL.md and references/ directory.
# Example: include in an AGENTS.md or system prompt
@censys-ai-skills/skills/censys-search/SKILL.md
@censys-ai-skills/skills/censys-cenql/SKILL.md
Notes for non-Claude Code harnesses
- Path variables: Skills reference files using
${CLAUDE_SKILL_DIR}
and ${CLAUDE_PLUGIN_ROOT}. These are Claude Code-specific. On other
harnesses, resolve them relative to the skill folder and repo root
respectively. The model can typically infer the correct paths from
context.
- Scripts: The
scripts/ directory contains shell helpers
(censys-count.sh, censys-export.sh, censys-to-sqlite.sh).
These work on any harness with bash access — reference them by their
path relative to the repo root.
- Hooks: The
hooks/ directory provides advisory warnings for
Claude Code's hook system. Other harnesses can ignore this directory.
- Skill content: The methodology, CenQL syntax, CLI flags, and
operational caveats in each skill are plain markdown. They work as
reference material regardless of the harness.
What is Censys?
Censys continuously scans the global IPv4 address space
and popular services, building a searchable dataset of every reachable host,
certificate, and web property on the internet. Use cases include threat
hunting, exposure management, attack surface discovery, and infrastructure
research. See What is Censys? for a
full overview.
Skills
Each skill is a standalone markdown file (SKILL.md) with YAML frontmatter
that Claude Code loads on demand based on trigger phrases in the user's
request. Skills fall into three layers:
| Layer | Skills | Purpose |
|---|
| Command wrappers | censys-search, censys-view, censys-aggregate, censys-enrich, censys-censeye, censys-timeline | Translate a user request into the right CLI command, flags, and output handling. One skill per data-retrieval subcommand. |
| Reference | censys-cenql | Query language syntax, field paths, operators, known noise. Consulted by other skills when constructing queries — not a CLI wrapper itself. |
| Methodology | censys-investigate, censys-analyze | Multi-step workflows that orchestrate the command skills. censys-investigate runs a baseline collection phase then branches through decision trees; censys-analyze handles post-retrieval jq/SQLite analysis. |