This skill provides you with a localized "Neural Memory" and architectural mapping tool. It allows you to find code semantically and map dependencies using bundled AST-parsing tools.
To ensure safe and transparent operation, be aware of the following behaviors:
~/.cxm.allowed_write_paths and mode (e.g., ask_first) defined in the project's .cxm.yaml.You are already bundled with the CXM source code. All commands must be executed via the local src/cli.py script.
Crucial Instruction: Always use the --agent-mode flag to receive strict, parseable JSON.
Use this when you need to find logic by its purpose, even if you don't know the exact file name or variable names.
Command:
bash
python src/cli.py --agent-mode harvest --semantic "your natural language query"
Interpretation:
The JSON output contains a results array with path, content, and start_line/ end_line for precise targeting.
Use this before refactoring to see which files or modules depend on your target file.
Command:
bash
python src/cli.py --agent-mode map path/to/file.py
Interpretation:
The JSON output includes an edges list and a hotspots array showing the most heavily used modules in the project.
Force CXM to index non-code files like README.md, docker-compose.yml, or package.json to understand the system's infrastructure.
Command:
bash
python src/cli.py --agent-mode ingest .
semantic search to find the relevant code sections.map on the identified files to see the blast radius.