src/setup/SKILL.md
GNN environment setup and dependency management. Use when configuring the development environment, installing dependencies, managing virtual environments, or troubleshooting dependency issues for the GNN pipeline.
npx skillsauth add activeinferenceinstitute/generalizednotationnotation gnn-environment-setupInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Manages environment configuration, virtual environment creation, and dependency installation for the GNN pipeline. Supports both core and optional dependency groups via uv or pip.
# Run setup step
python src/1_setup.py --target-dir input/gnn_files --output-dir output --verbose
# As part of pipeline
python src/main.py --only-steps 1 --verbose
# Using uv (recommended)
uv sync # Core dependencies (includes Step 12 Python backends: jax, numpyro, torch, discopy)
uv sync --extra dev # Development tools
uv sync --all-extras # Everything
These groups match [project.optional-dependencies] in pyproject.toml:
| Group | Key Packages | Purpose |
| ----- | ------------ | ------- |
| active-inference | jax, jaxlib, flax, optax | JAX stack (pymdp is a core dep) |
| execution-frameworks | jax, numpyro, torch, discopy | Same pins as core Step 12 stack (explicit uv sync --extra) |
| visualization | plotly, altair, seaborn, bokeh, holoviews | Visualization |
| llm | openai, anthropic, cohere, ollama | LLM integration |
| audio | librosa, soundfile, pedalboard, pydub | Audio generation |
| gui | gradio, streamlit | GUI interface |
| ml-ai | torch, transformers, datasets | Machine learning |
| graphs | igraph, graphviz, discopy | Graph libraries |
| dev | pytest-*, mypy, ruff | Development tools |
| database | sqlalchemy, alembic | Database integration |
| research | jupyterlab, sympy, numba, cython | Research tools |
| scaling | dask, distributed, joblib | Parallel processing |
| all | Everything above | Full installation |
| Issue | Solution |
| ----- | ------- |
| uv: command not found | curl -LsSf https://astral.sh/uv/install.sh \| sh |
| PyMDP import fails | uv sync --extra active-inference |
| matplotlib missing | uv sync --extra visualization |
| CUDA not detected | Check torch.cuda.is_available() after uv sync --extra ml-ai |
This module registers tools with the GNN MCP server (see mcp.py):
ensure_directory_existsfind_project_gnn_filesget_standard_output_pathsdevelopment
GNN static HTML website generation from pipeline artifacts. Use when generating browsable documentation websites, creating HTML galleries of model visualizations, or publishing pipeline results as a static site.
data-ai
GNN graph and matrix visualization generation. Use when creating network graph plots, matrix heatmaps, state space diagrams, or other visual representations of GNN models.
testing
GNN advanced validation and consistency checking. Use when performing deep validation of GNN models, checking cross-model consistency, verifying structural integrity, or running validation reports.
tools
GNN shared utility functions and helper modules. Use when working with common pipeline utilities, logging helpers, file I/O wrappers, path management, or pipeline template infrastructure.