cortex-query
Search and query your Knowledge Cortex (~/.cortex/). Use when asked to "cortex stats", "cortex search", "cortex client", "cortex contacts", "cortex export", "cortex prune", "search my knowledge base", or "what do I know about COMPANY". Queries portable JSONL/JSON files for contacts, clients, communications, and facts.
How do I install this agent skill?
npx skills add https://github.com/jezweb/claude-skills --skill cortex-queryIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill is safe and functions as a local knowledge management tool. It queries flat files in a dedicated local directory and does not utilize network access or execute external code.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerwarn
3/3 files flagged
What does this agent skill do?
Knowledge Cortex — Query
Search, browse, and export your Knowledge Cortex flat files.
When invoked
Read {skill_path}/references/file-schema.md for the storage format.
Commands
| What user says | Action |
|---|---|
| "cortex stats" | Show knowledge base stats |
| "cortex search QUERY" | Search across all records |
| "cortex client DOMAIN" | Full dossier for a client |
| "cortex contacts [filter]" | List contacts |
| "cortex export TYPE" | Export contacts, clients, knowledge, or comms |
| "cortex prune" | Remove low-value records |
Usage
python3 {skill_path}/scripts/cortex-query.py stats
python3 {skill_path}/scripts/cortex-query.py search "QUERY"
python3 {skill_path}/scripts/cortex-query.py client domain.com
python3 {skill_path}/scripts/cortex-query.py contacts [filter]
python3 {skill_path}/scripts/cortex-query.py export contacts --format csv
python3 {skill_path}/scripts/cortex-query.py export knowledge --format json
python3 {skill_path}/scripts/cortex-query.py prune --dry-run
python3 {skill_path}/scripts/cortex-query.py prune
Print output directly to the user.
Environment
| Variable | Default | Purpose |
|---|---|---|
CORTEX_DIR | ~/.cortex | Storage root |
References
- File schemas:
{skill_path}/references/file-schema.md
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/jezweb/claude-skills/cortex-query">View cortex-query on skillZs</a>