pex-cli
PEX CLI Skill
Purpose
Knowledge graph-based exam preparation for CICM/ANZCA Primary Exams. Provides semantic search, prerequisite chains, learning paths, and LLM-inferred higher-order connections.
Quick Start
# Semantic search for Learning Outcomes
pex search "shock physiology" --limit 10
# Show prerequisites for a topic
pex prereq "LO-cardio-001"
# Generate learning path for a concept
pex path "cardiovascular physiology"
# Find concepts that refine/specialize another
pex refine "hemodynamics"
# Graph statistics
pex stats
Commands
Search (Semantic)
# Search Learning Outcomes (default)
pex search "septic shock management" --limit 5
# Search specific node types
pex search "dobutamine" --label Concept
pex search "cardiovascular" --label Topic
pex search "shock" --label SAQ
Prerequisite Chains
# Show prerequisites for a Learning Outcome
pex prereq "LO-001"
# Get specific node by ID
pex get "LO-001"
Learning Paths
# Generate learning path for a topic
pex path "renal physiology"
# Find LOs that refine/specialize another
pex refine "fluid balance"
# Find concepts implied by this concept
pex imply "cellular respiration"
Data Ingestion
# Ingest from markdown files (LOs, SAQs)
pex ingest-md /path/to/markdown/
# Phase 6 LLM inference for higher-order connections
pex phase6-infer --model claude-3-5-sonnet
# Clear graph
pex clear
Graph Schema
(:LearningOutcome {id, name, description, domain, embedding})
(:SAQ {id, question, answer, topic, embedding})
(:Concept {id, name, category, embedding})
(:Topic {id, name, description, embedding})
(:LearningOutcome)-[:PREREQUISITE_OF]->(:LearningOutcome)
(:LearningOutcome)-[:COVERS]->(:Concept)
(:SAQ)-[:TESTS]->(:LearningOutcome)
(:Concept)-[:IMPLIES]->(:Concept)
(:LearningOutcome)-[:REFINES]->(:LearningOutcome)
Integration with Grounding Router
The PEX CLI integrates with the grounding-router as the Σₚₑₓ primitive:
Σₚₑₓ — Primary Exam Source
Sub-Primitives:
| Σₚ₁ | LO Search | 0.95 | pex search "topic" --label LearningOutcome |
| Σₚ₂ | SAQ Search | 0.90 | pex search "topic" --label SAQ |
| Σₚ₃ | Prerequisites| 0.85 | pex prereq "LO-id" |
| Σₚ₄ | Learning Path| 0.80 | pex path "concept" |
Dependencies
| Service | Port | Required |
|---|---|---|
| FalkorDB | 6379 | Yes |
| Ollama | 11434 | For embeddings |
Configuration
Location: ~/.pex/config.toml
[graph]
host = "localhost"
port = 6379
graph_name = "pex"
[embeddings]
model = "qwen3:4b"
dimension = 4096
Related Skills
limitless-cli- Personal context (correlate study sessions)grounding-router- Medical education grounding primitivessaq- SAQ practice workflows
More from zpankz/mcp-skillset
network-meta-analysis-appraisal
Systematically appraise network meta-analysis papers using integrated 200-point checklist (PRISMA-NMA, NICE DSU TSD 7, ISPOR-AMCP-NPC, CINeMA) with triple-validation methodology, automated PDF extraction, semantic evidence matching, and concordance analysis. Use when evaluating NMA quality for peer review, guideline development, HTA, or reimbursement decisions.
16software-architecture
Guide for quality focused software architecture. This skill should be used when users want to write code, design architecture, analyze code, in any case that relates to software development.
13cursor-skills
Cursor is an AI-powered code editor and development environment that combines intelligent coding assistance with enterprise-grade features and workflow automation. It extends beyond basic AI code comp...
13textbook-grounding
Orthogonally-integrated Hegelian syntopical analysis for SAQ/VIVA/concept grounding with systematic textbook citations. Implements thesis extraction → antithesis identification → abductive synthesis across multiple authoritative sources. Tensor-integrated with /m command: activates S×T×L synergies (textbook-grounding × pdf-search × qmd = 0.95). Triggers on requests for model SAQ responses, VIVA preparation, concept explanations requiring textbook evidence, or any PEX exam content needing systematic cross-reference validation.
12obsidian-process
This skill should be used when batch processing Obsidian markdown vaults. Handles wikilink extraction, tag normalization, frontmatter CRUD operations, and vault analysis. Use for vault-wide transformations, link auditing, tag standardization, metadata management, and migration workflows. Integrates with obsidian-markdown for syntax validation and obsidian-data-importer for structured imports.
12terminal-ui-design
Create distinctive, production-grade terminal user interfaces with high design quality. Use this skill when the user asks to build CLI tools, TUI applications, or terminal-based interfaces. Generates creative, polished code that avoids generic terminal aesthetics.
10