mcpField
C
cortex-query

cortex-query

github.com/jezwebProductivity1.1k54 installsUpdated 3w ago
Repository

About cortex-query

cortex-query is a skill for searching, browsing, and exporting Knowledge Cortex flat files. It helps users inspect contact, client, and knowledge records, view statistics, and prune low-value entries.

Key features

  1. 01Search all records
  2. 02View client dossiers and contacts
  3. 03Export contacts, clients, knowledge, or communications
  4. 04Show knowledge base statistics
  5. 05Prune low-value records

Use cases

  1. 01Find knowledge records about a topic
  2. 02Review a client's full dossier
  3. 03Filter and export contact data
  4. 04Check storage statistics or preview pruning

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/jezweb/claude-skills --skill cortex-query

After installing, type/cortex-queryin Claude Code to confirm it loaded.

Bundled filesreferences/file-schema.mdscripts/cortex-query.py

Details

From the project README

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 saysAction
"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

VariableDefaultPurpose
CORTEX_DIR~/.cortexStorage root

References

  • File schemas: {skill_path}/references/file-schema.md

Comments

Markdown supported