Skip to content
Back to skills

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
developmentgoapibackend

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill functional-transforms --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Functional Transforms?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Functional Transforms
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-functional-transforms/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-functional-transforms)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.md1.7 KB
  • references/api-reference.md1.5 KB
  • references/troubleshooting.md1 KB
  • references/workflows.md1.2 KB
  • scripts/sonnet_functional_transform_smoke.py1.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.