Back to skills
SKILL.md
Functional Transforms
ASecurity"Use Sonnet's functional transform API for stateless-style modules,
- 247 stars
- 0 votes
- 0 copies
- 1 view
- Added September 9, 2026
Works with
Security analysis
100/100Pro scans all 5 files and shows the line behind each finding
npx -y skills add VectorSpaceLab/AREX-Skill --skill functional-transforms --agent claude-codeAre you the author of Functional Transforms?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vectorspacelab-functional-transforms)---
name: functional-transforms
description: "Use Sonnet's functional transform API for stateless-style modules,
gradients, jit/device helpers, and functional optimizers."
disable-model-invocation: true
metadata:
disco-role: operating
license: Apache 2.0
---
# Functional Transforms
Use this sub-skill for `snt.functional.variables`, `transform`, `transform_with_state`, `without_state`, `grad`, `value_and_grad`, `jit`, `device_put`, `device_get`, TensorVariable behavior, parameter/state dictionaries, and functional optimizers.
## Start here
- [references/api-reference.md](references/api-reference.md): signatures, returned objects, TensorVariable semantics, and optimizer state.
- [references/workflows.md](references/workflows.md): transform init/apply, state threading, gradients, and one-step functional optimizer recipes.
- [references/troubleshooting.md](references/troubleshooting.md): no-value TensorVariable errors, forgotten init, params/state confusion, and device surprises.
- [scripts/sonnet_functional_transform_smoke.py](scripts/sonnet_functional_transform_smoke.py): synthetic functional MLP + Adam smoke.
## Boundaries
- Object-oriented modules: [../module-authoring/SKILL.md](../module-authoring/SKILL.md).
- Object-oriented optimizer loops: [../training-and-optimization/SKILL.md](../training-and-optimization/SKILL.md).
- Backend/device verification: [../serialization-and-distribution/SKILL.md](../serialization-and-distribution/SKILL.md).
## Minimal protocol
Create modules inside `fn.variables()`, wrap a function with `fn.transform` or `fn.transform_with_state`, call `init` before `apply`, carry returned `params` and `state` explicitly, and use `fn.value_and_grad` plus a functional optimizer when the task wants stateless-style updates.
Files in this skill
- SKILL.md
- references/api-reference.md
- references/troubleshooting.md
- references/workflows.md
- scripts/sonnet_functional_transform_smoke.py
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.