executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
differentiation-coreRoutes scalar and array differentiation, higher-order derivatives, and gradient checking for Autograd's core AD operators.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a task is about Autograd's core differentiation operators: scalar gradients, Jacobians, directional derivatives, Hessians, VJP/JVP pullbacks, generalized Gauss-Newton products, complex holomorphic derivatives, checkpointing, or numerical gradient checks.
grad or value_and_grad for a scalar loss."jacobian or elementwise_grad for a vector-valued output."make_vjp, or make_jvp."check_grads."if/while branches and I want to know whether Autograd can still differentiate it."references/api-reference.md for operator selection, return conventions, and mode relationships.references/workflows.md for scalar-loss, vector-output, higher-order, complex, and gradient-checking recipes.references/troubleshooting.md for scalar-output errors, argnum confusion, shape mismatches, holomorphic warnings, and checkpoint tradeoffs.scripts/differentiation_smoke.py for a runnable smoke that exercises the core operators without plotting.A.dot(B) / in-place / container pitfalls, and optional dependency questions belong in ../numpy-scipy-primitives/SKILL.md.primitive, defvjp, defjvp, and custom VJP/JVP mechanics belong in ../extend-primitives/SKILL.md.fixed_point belong in ../optimization-workflows/SKILL.md.grad, value_and_grad, or make_vjp.deriv or make_jvp.jacobian when you need the full output-to-input sensitivity tensor.elementwise_grad when the function is real-valued and elementwise so the Jacobian is diagonal or column-summed.hessian, hessian_tensor_product, hessian_vector_product, or make_ggnvp when you need curvature without writing the matrix explicitly.holomorphic_grad only for complex-holomorphic functions.checkpoint when the function is deep and memory is the bottleneck.grad_and_aux when the function returns a scalar loss plus extra side information.grad and value_and_grad require a real scalar output.jacobian works on scalar or array outputs and returns a tensor with output shape first and input shape last.elementwise_grad is not a general Jacobian helper; it returns the column-sum/diagonal behavior used for elementwise real functions.make_vjp exposes the reverse-mode pullback; make_jvp exposes the forward-mode pushforward.grad_and_aux differentiates only the first output and returns the auxiliary payload unchanged.checkpoint recomputes forward intermediates during the backward pass to trade time for memory.grad for a scalar loss.jacobian or elementwise_grad.value_and_grad.deriv or make_jvp.make_vjp.hessian or a Hessian-vector product helper.holomorphic_grad.checkpoint.check_grads before trusting a new workflow.check_grads for a single function and combo_check when you want the same assertion to cover several positional or keyword combinations.../extend-primitives/SKILL.md instead of trying to solve it here.../numpy-scipy-primitives/SKILL.md.../extend-primitives/SKILL.md.../optimization-workflows/SKILL.md.Run scripts/differentiation_smoke.py when you need a quick end-to-end check that the bundled differentiation guidance still matches the installed package.