BrainX Skill documentation
==========================

`BrainX Skill <https://github.com/chaobrain/BrainX-skill>`_ is a portable instruction and workflow layer that installs on general coding agents. Describe a neuroscience question in natural language; the skill routes it to the BrainX packages that own the model scale, state, units, events, and execution.

The agent translates the research question. Explicit BrainX code controls the dynamics and produces the evidence.

----

Features
^^^^^^^^

.. grid::

   .. grid-item::
      :columns: 12 12 12 6

      .. card:: Intuitive and automatic
         :class-title: sd-fs-6

         .. div:: sd-font-normal

            Turn a natural-language research question into a clear experiment at the correct modeling scale.

   .. grid-item::
      :columns: 12 12 12 6

      .. card:: Accurate
         :class-title: sd-fs-6

         .. div:: sd-font-normal

            Use explicit BrainX models, units, state transitions, solvers, and connectivity to control the dynamics in code.

   .. grid-item::
      :columns: 12 12 12 6

      .. card:: Creative
         :class-title: sd-fs-6

         .. div:: sd-font-normal

            Convert a hypothesis into perturbations, controls, sweeps, and observable results with one prompt.

   .. grid-item::
      :columns: 12 12 12 6

      .. card:: Efficient
         :class-title: sd-fs-6

         .. div:: sd-font-normal

            Apply state-aware ``jit``, ``vmap``, and ``for_loop`` transforms to compile simulation and batch experiments.

----

Installation
^^^^^^^^^^^^

Install BrainX Skill with the guided installer. It requires Node.js 18 or newer and works on macOS, Linux, and Windows.

.. code-block:: bash

   npx brainx-skill install

Select one or more supported coding agents, then choose a project or global installation. See :doc:`Installation <installation>` for direct agent-specific commands, updates, and installation locations.

----

Learn more
^^^^^^^^^^

.. grid::
   :gutter: 2
   :class-container: learn-more-grid

   .. grid-item::
      :columns: 12 12 6 6

      .. card:: :material-regular:`download;2em` Installation
         :class-card: learn-more-card learn-more-card-primary
         :link: installation
         :link-type: doc

   .. grid-item::
      :columns: 12 12 6 6

      .. card:: :material-regular:`rocket_launch;2em` Quickstart
         :class-card: learn-more-card learn-more-card-primary
         :link: quickstart
         :link-type: doc

   .. grid-item::
      :columns: 12 12 6 6

      .. card:: :material-regular:`science;2em` Creative experiment verification
         :class-card: learn-more-card
         :link: creative-experiment-verification
         :link-type: doc

   .. grid-item::
      :columns: 12 12 6 6

      .. card:: :material-regular:`speed;2em` Speed and performance
         :class-card: learn-more-card
         :link: speed-and-performance
         :link-type: doc

   .. grid-item::
      :columns: 12 12 6 6

      .. card:: :material-regular:`model_training;2em` Use the skill for training
         :class-card: learn-more-card
         :link: use-the-skill-for-training
         :link-type: doc

   .. grid-item::
      :columns: 12 12 6 6

      .. card:: :material-regular:`library_books;2em` Paper reproductions
         :class-card: learn-more-card
         :link: paper-reproduction
         :link-type: doc

----

See also the ecosystem
^^^^^^^^^^^^^^^^^^^^^^

BrainX Skill is part of the `BrainX brain simulation ecosystem <https://brainx.chaobrain.com/>`_.

----

.. toctree::
   :hidden:
   :maxdepth: 1
   :caption: Quickstart

   installation
   Quickstart <quickstart>

.. toctree::
   :hidden:
   :maxdepth: 2
   :caption: Examples

   creative-experiment-verification
   speed-and-performance
   use-the-skill-for-training
   paper-reproduction
