[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7861RR12RV89QWDGPBDRCNM":3,"skill-same:01M7861RR12RV89QWDGPBDRCNM":43},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":14,"categories":15,"keywords":16,"publishedAt":17,"linkOnly":18,"markdownContent":19,"markdownBody":19,"frontMatter":20,"refName":21,"commitSha":22,"skillDirectory":23,"forksCount":24,"repositoryHtmlUrl":25,"repositoryHomepageUrl":26,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M7861RR12RV89QWDGPBDRCNM","jaxonomy",null,"machinavitalis\u002Fjaxonomy","machinavitalis","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F213251099?v=4","01M7861NH6NC4YJFT0FF75467Z","01M7861NJ86G6RG2206XSEZFPJ",22,"MIT","https:\u002F\u002Fgithub.com\u002Fmachinavitalis\u002Fjaxonomy\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fjaxonomy\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# Jaxonomy Skill\n\nYou are using Jaxonomy, a JAX-native engine for modeling and simulating hybrid\ndynamical systems by block-diagram composition. This file is your operating\nmanual for *using* the library. Read it before suggesting any Jaxonomy code.\n(If you are *modifying* Jaxonomy itself, read `AGENTS.md` and the `AGENTS\u002F`\ndocs instead.)\n\n## What Jaxonomy does\n\nJaxonomy composes continuous physics, discrete control, and event-driven logic\ninto a single model, and runs it on JAX — JIT-compilable, `vmap`-batchable, and\n**differentiable end to end**. Its thesis: modeling and simulation is most\nuseful when it is optimization-ready, so every output, objective, and\nconstraint is differentiable w.r.t. parameters, initial conditions, and network\nweights by default.\n\nIt is the engine at the base of a larger stack (robotics and embedded\ndeployment layer on top of it). For the full architecture, design philosophy,\nand invariants, read `AGENTS\u002FCONTEXT.md` — don't restate it here.\n\n## When to use Jaxonomy\n\nUse it when the user is:\n\n- Building a block-diagram model of a dynamical system (continuous, discrete,\n  or hybrid) and simulating it.\n- Closing a control loop — LQR, MPC, PID, or a Kalman\u002FEKF\u002FUKF estimator around\n  a plant.\n- Differentiating *through* a simulation: parameter calibration against data,\n  trajectory optimization, controller tuning, neural ODE \u002F SINDy, digital-twin\n  updates.\n- Acausal \u002F multi-physics modeling (electrical, thermal, fluid, mechanical) via\n  `jaxonomy.acausal`.\n- Uncertainty quantification (Monte Carlo, Sobol, LHS, qMC) via `jaxonomy.uq`.\n- Batch\u002Fensemble simulation with `vmap`, or GPU\u002FTPU-accelerated runs.\n\n## When NOT to use Jaxonomy\n\n- **Just integrating an ODE.** Use Diffrax directly. Jaxonomy adds\n  block-diagram composition, hybrid dynamics, events, and state machines on top\n  of a solver — if none of that is needed, it's overhead.\n- **Robotics with joints\u002Factuators\u002Fcontacts\u002Fkinematic chains.** Use Jaxterity,\n  the robotics layer built on top of Jaxonomy. Don't re-implement URDF import,\n  articulated dynamics, or WBC here.\n- **Embedded codegen \u002F cross-compilation to silicon.** That's a downstream\n  deployment concern, out of scope for Jaxonomy.\n- **A hosted\u002Fcloud simulation platform, web UI, or collaborative editor.** Not\n  what this library is; see `AGENTS\u002FCONTEXT.md` (\"What Jaxonomy is NOT\").\n\n## Core API surface, in order of how often agents will use it\n\n### Build a diagram, create a context, simulate\n\n```python\nimport jaxonomy as jx\n\nbuilder = jx.DiagramBuilder()\nplant      = builder.add(jx.library.LTISystem(A, B, C, D))\ncontroller = builder.add(jx.library.LinearQuadraticRegulator(A, B, Q, R))\nbuilder.connect(plant.output_ports[0], controller.input_ports[0])\nbuilder.connect(controller.output_ports[0], plant.input_ports[0])\n\ndiagram = builder.build()\ncontext = diagram.create_context()          # holds state + parameters\nresults = jx.simulate(\n    diagram,\n    context,\n    (0.0, 5.0),                             # t_span, a (start, stop) tuple\n    recorded_signals={\"x\": plant.output_ports[0]},\n)\nprint(results.time.shape, results.outputs[\"x\"].shape)\n```\n\n- `DiagramBuilder.add(block)` returns a handle whose `.input_ports[i]` \u002F\n  `.output_ports[i]` you wire with `builder.connect(src_out, dst_in)`.\n- The `Context` is an immutable carrier of state and parameters — thread it\n  through; don't mutate it in place.\n- `jx.simulate(system, context, t_span, ...)` is the entry point; the whole call\n  is differentiable and `jit`\u002F`vmap`-friendly. The time span is a\n  `(start, stop)` tuple, passed positionally or as `t_span=` — there is no\n  `stop_time`, `start_time`, or `end_time` keyword.\n- **Nothing is recorded unless you ask for it.** Without `recorded_signals=`,\n  the run still succeeds but `results.time` and `results.outputs` are both\n  `None`. This is the most common reason a first Jaxonomy script appears to\n  produce nothing.\n\n### Library blocks\n\nStandard blocks live under `jx.library`, split by category (sources, math_ops,\nlogic, routing, dynamics, nonlinearities, tables); `jx.library.primitives`\nre-exports them for back-compat. Controls\u002Festimation blocks (LQR, MPC, PID,\nKalman\u002FEKF\u002FUKF) are library blocks too — prefer them over hand-rolling.\n\n### Analysis and optimization\n\n- `linearize(...)` → a `LinearizedSystem`; analytical helpers (`bode_data`,\n  `nyquist_data`, `step_response`, `frequency_response`, …) return plain dicts\n  of arrays (no matplotlib inside Jaxonomy — you plot).\n- `influence_graph(system, context)` → an `InfluenceGraph`: the model's\n  dependency structure with autodiff Jacobians on every edge. Use it to answer\n  \"what actually drives this signal\" quantitatively rather than structurally —\n  `.slice(target, threshold)` (vs `.structural_slice(target)` for the boolean\n  over-approximation), `.attribute(target, source)` (signed per-path chain\n  rule), `.dominant_paths`, `.dead_edges`, `.bottlenecks`. Read the module\n  docstring before reading a weight: weights are dimensionless elasticities by\n  default, edges into a continuous state are scaled by `tau` (which makes a\n  path's product its gain at ω = 1\u002F`tau`), and anything non-differentiable is\n  labelled `local_gradient=False` rather than silently zeroed.\n  `analysis.influence_subgraph(graph, focus, budget_tokens=…)`\n  serializes a bounded, citable neighbourhood when you need to reason about one\n  part of a model too large to read whole.\n- Because `simulate` is differentiable, parameter estimation, trajectory\n  optimization, and controller tuning are just gradient-based optimizations\n  over the simulation — use JAX autodiff \u002F the provided tuning helpers.\n\nFor exact signatures, see the docs at py.jaxonomy.com and the `examples\u002F`\nnotebooks — prefer those over guessing an API.\n\n## Key gotchas\n\n- **Backend-neutrality: `npa` vs `jnp` vs `np`.** Inside models, numeric code\n  goes through the `npa` abstraction, not `jnp` directly — it's a load-bearing\n  invariant. If you write library-style code, follow the pattern in\n  `AGENTS\u002FPATTERNS.md`; as a *user* composing existing blocks you rarely touch\n  it, but don't assume raw `jnp` everywhere.\n- **State is NamedTuple-shaped, not mutable objects.** Read state out of the\n  results \u002F context; don't try to assign into it.\n- **Differentiability is the default and the point.** If a construct would\n  break gradients (Python-side branching on traced values, in-place mutation),\n  reach for the block\u002Fpattern that preserves them.\n\n## Common pitfalls & idioms\n\nHard-won usage tips (harvested from prior consumer sessions):\n\n- **A diagram copy per sweep value is slow on large models.**\n  `diagram.with_parameters({\"block.p\": v})` in a Python loop reuses the compiled\n  kernel, but copies the diagram and creates a context for every value (44 ms at\n  159 blocks, against 3 ms through the context). For a long sweep change the\n  value through the context, or use `simulate_batch` \u002F `jax.vmap` from the start.\n  `scipy.optimize.minimize_scalar` pays the same cost per evaluation.\n- **Update sub-system parameters by dot-path on the *outer* diagram:**\n  `outer.with_parameters({\"inner.gain.gain\": jnp.array(5.0)})` — don't reach into\n  `outer[\"inner\"]` (you'll get a stale outer diagram). The dot-path form also\n  composes under `vmap`.\n- **`declare_periodic_update` needs an explicit `offset=0.0`.** Omitting it\n  constructs fine but crashes at the first step deep in the scheduler.\n- **Traced-mode guards:** gate host-side checks with\n  `isinstance(x, jax.core.Tracer)`, *not* `jax.core.is_concrete` — the latter is\n  `True` under `jax.grad`'s tracer and silently breaks gradients.\n- **`LookupTable1d.interp_1d` takes `method=`**, not `mode=` (the rest of the\n  library uses `mode=` on `Quantizer`\u002F`Saturate`, so the typo is natural).\n- **Symmetric saturation shorthand:** `Saturate(limit=L)` instead of\n  `upper_limit=+L, lower_limit=-L`.\n- **`simulate` specifics:** `context` is a required positional arg (no\n  context-less shortcut), the time span is one `(start, stop)` tuple rather than\n  two scalars, and `options` must be a `SimulatorOptions`, not a dict. Results\n  come back empty — `res.time is None` — unless you pass\n  `recorded_signals={name: port}`; with it, read `res.time` and\n  `res.outputs[name]`.\n- **Long \u002F stiff \u002F multi-rate runs:** bump `SimulatorOptions(buffer_length=...)`\n  (the recorder silently truncates to the *tail* when its ring buffer fills) and\n  use `ode_solver_method=\"bdf\"` for stiff fast+slow coupling (the explicit\n  default collapses its step size).\n- **Stateful feedback controller as a LeafSystem:** declare integrator state\n  with `declare_continuous_state(..., ode=cb, requires_inputs=True)` and the\n  command with `declare_output_port(..., requires_inputs=True,\n  prerequisites_of_calc=[DependencyTicket.xc])`. Wiring controller↔plant is *not*\n  an algebraic loop if the plant exposes state via\n  `declare_continuous_state_output` (a state output, not feedthrough).\n\n## When to escalate to the human\n\n- A model that won't `jit` or `vmap` cleanly and the cause isn't an obvious\n  Python-control-flow-over-traced-values mistake.\n- Numerical divergence or stiffness that looks like a solver\u002Ftolerance choice\n  rather than a modeling bug.\n- Any request that implies robotics-specific structure — redirect to Jaxterity\n  rather than bolting kinematics into a Jaxonomy model.\n\n## Where to find more\n\n- `AGENTS\u002FCONTEXT.md` — architecture, design philosophy, what it is and is NOT.\n- `AGENTS\u002FPATTERNS.md` — coding conventions (`npa`, `LeafSystem`, state).\n- `CLAIMS.md` \u002F `KNOWN_GAPS.md` — what Jaxonomy actually does vs. what it does\n  not (read both before relying on a surface).\n- `README.md` + `examples\u002F` — quick start and end-to-end notebooks.\n- Docs: py.jaxonomy.com.\n",{},"main","2db05cd052dbc7c44dc0e5423b82dc5b81a35445",".claude\u002Fskills\u002Fjaxonomy",0,"https:\u002F\u002Fgithub.com\u002Fmachinavitalis\u002Fjaxonomy","https:\u002F\u002Fpy.jaxonomy.com","https:\u002F\u002Fgithub.com\u002Fmachinavitalis","2026-10-29 04:57:52",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add machinavitalis\u002Fjaxonomy --skill jaxonomy",{"tool":35,"command":36},"bunx","bunx skills add machinavitalis\u002Fjaxonomy --skill jaxonomy",{"tool":38,"command":39},"pnpm","pnpm dlx skills add machinavitalis\u002Fjaxonomy --skill jaxonomy","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmachinavitalis\u002Fjaxonomy\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fjaxonomy\u002FSKILL.md",true,[],[44],{"skillNo":45,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":46,"sourceHtmlUrl":47,"categories":48,"keywords":49,"publishedAt":17},"01M7861VKHH1PAFHEQW09XAQ8G","https:\u002F\u002Fgithub.com\u002Fmachinavitalis\u002Fjaxonomy\u002Fblob\u002Fmain\u002FLICENSE.md","https:\u002F\u002Fgithub.com\u002Fmachinavitalis\u002Fjaxonomy\u002Fblob\u002Fmain\u002FSKILL.md",[],[]]