Skill definition
hi-cortex
Set up and operate Cortex Harness for project code/doc ingestion, config updates, sync workflows, and MCP server lifecycle.
SKILL.md
Cortex Harness
Use this skill when a task needs Cortex Harness from https://github.com/baka3k/cortex-harness: environment installation, project config, source-code sync, documentation sync, and MCP server startup for use with other skills.
Operating Rules
- Gather project context first using the root search directive:
mind_mcp, thengraph_mcp.semantic_search, then Serena, thenrg. - Prefer the installed
devcommand. If it is not onPATH, use the repository-local fallback atC:\ai\cortex-harness\.venv\Scripts\dev.exewhen present. - Do not invent config paths, database names, or project folders. Run
dev statusor inspect the Cortex Harness config before changing it. - For interactive commands, explain what they will ask for and stay with the user until config, sync, and MCP status are verified.
- Keep Cortex Harness as the retrieval and MCP infrastructure layer. Pair it with
hi-repo-search,hi-plan,hi-craft,hi-fix,hi-debug,hi-scenario, orhi-securityfor the actual engineering workflow.
Common Tasks
| Task | Use |
|---|---|
| Install or repair the local environment | Environment Setup |
| Add source code to config and sync it | Project Ingestion |
| Add documentation to config and sync it | Project Ingestion |
| Start, stop, or validate MCP servers | MCP Lifecycle |
Default Workflow
- Confirm Cortex Harness is installed and current.
- Start database infrastructure if needed.
- Run
dev statusto inspect active config. - Add code folders with
dev sync code add, then rundev sync codeordev sync code all. - Add doc folders with
dev sync doc add, then rundev sync docordev sync doc all. - Start MCP servers with
make startfrom the Cortex Harness repo ordev mcpwhen the installed CLI exposes the MCP subcommands. - Run
make doctoror the equivalent health check and report ports, services, and any failed checks.
Verification
A Cortex Harness task is complete only when:
dev statusshows the intended config.- Code sync and doc sync finish successfully or report only documented skips.
- Database services are reachable.
- MCP servers for code and docs are running on their configured ports.
- The next skill can use
mind_mcpand/orgraph_mcpwithout connection errors.
Continue exploring
Related skills
hi-knowsUnified knowledge retrieval skill. Build traceable answers from git, MCP, and memory files.hi-project-organizationOrganize project files, directories, output paths, names, and Markdown structure. Use when creating files, choosing where outputs belong, reorganizing existing assets, or standardizing a project layout.hi-craftALWAYS activate before implementing ANY feature, plan, or fix.