From cortex
Bootstraps Cortex for a new project by verifying PostgreSQL, building methodology profiles, and seeding codebase memories. Use when starting Cortex on an existing codebase.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cortex:cortex-setup-projectThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Execute all four phases sequentially without asking the user any questions. If a phase fails, attempt automatic recovery before reporting the error. Never ask the user to run commands manually or choose between options.
Execute all four phases sequentially without asking the user any questions. If a phase fails, attempt automatic recovery before reporting the error. Never ask the user to run commands manually or choose between options.
pg_isready via bash to check if PostgreSQL is running.cortex:memory_stats({}) to verify database connectivity.bash "${CLAUDE_PLUGIN_ROOT}/scripts/setup.sh" automatically. Do not ask for permission.cortex:memory_stats({}) again to verify.cortex:rebuild_profiles({"force": true}) to scan all session history and build cognitive profiles per domain.cortex:seed_project({"directory": "<cwd>"}) where <cwd> is the current working directory.The ai-automatised-pipeline MCP server provides structured codebase analysis (symbol graph, processes, communities, cross-file impact). It is optional — Cortex core memory/recall works without it. Enable only if the user asks for "deeper code understanding", "symbol-level memory", or the codebase is large (>5k files) where substring-based hooks underperform.
cortex:ingest_codebase({"project_path": "<cwd>"}). If it succeeds, record the counts (wiki pages, memory entities, KG edges) for the summary and skip to Phase 4.ingest_codebase fails with McpConnectionError (pipeline not installed/configured):
../anthropic/ai-automatised-pipeline/Cargo.toml (or equivalent). If so, run bash -c 'cd ../anthropic/ai-automatised-pipeline && cargo install --path . 2>&1 | tail -20' (accepts ~1-2 min compile) and re-run the ingest.pipeline_discovery, so once the binary exists on PATH (or sibling source is built), future sessions pick it up automatically. No manual mcp-connections.json editing needed.cortex:backfill_memories({"dry_run": true, "max_files": 500}) to preview available session files.cortex:backfill_memories({"max_files": 500, "min_importance": 0.35}) to import.cortex:consolidate({}) to run decay, compression, CLS, and causal discovery on all memories.cortex:memory_stats({}) to get the final system state.cortex:detect_gaps({}) to identify knowledge gaps.After all phases complete, print a single summary block:
Cortex Setup Complete
---------------------
Domains: <count from rebuild_profiles>
Memories stored: <total from memory_stats>
Entities: <count from memory_stats>
Relationships: <count from memory_stats>
Pipeline: <"active — N wiki pages, M memories" | "skipped (not installed)">
Gaps found: <count and brief description from detect_gaps>
Do not print intermediate status updates between phases beyond what the tool calls themselves return. One summary at the end.
npx claudepluginhub cdeust/cortex --plugin cortexInitializes Cortex plugin for first-time use: runs setup command to create dirs/DB, prompts for config preset (full/balanced/silent), applies it, and advises restart.
ONLY load this skill when the user explicitly types $cortex-run or /cortex-run. NEVER load this skill from auto-routing hooks or keyword matching. For auto-routed prompts, use cortex-code:cortex-router instead.