flow-stdlib
Skill1 starsChanged 3 months agoMITView on GitHub
Find existing Flow standard library and example code before writing new code. Use whenever you are about to write a helper function, need to know whether Flow already has something, or want to know which module covers a domain.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- flow-audioSkill
- flow-autodiffSkill
- flow-basicsSkill
- flow-compiler-devSkill
- flow-debugSkill
- flow-dynamicsSkill
- flow-effectsSkill
- flow-graphicsSkill
- flow-perfSkill
- flow-setupSkill
- flow-verifySkill
- flow-wasmSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 78
Write the smallest helper that solves the case at hand, put it next to the code that uses it, and say in your report that you searched and …
- Distinctive: line 83
Do not add a language construct to remove one repeated line.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Search before you write
Flow ships around seventy standard library modules and several hundred worked examples. The project's own record is that its most useful changes replaced private helpers with shared ones. Look first.
The three searches
# 1. Does a function like this exist?
grep -rn --include='*.flow' "function name_you_want" lib/stdlib/ examples/
# 2. What does this module offer?
grep -n "^export function\|^function\|^struct\|^const" lib/stdlib/math.flow
# 3. Who already does this thing?
grep -rln --include='*.flow' "evolves as" examples/Or use the packaged tool, which does all three:
flow-find sample_rate
flow-find "evolves as"The map
| Domain | Modules |
| Core | math, array, string, text, slice, vec, collections, option, result |
| Numerics | blas, tensor, bigint, checked_arith, fmm2d, psychstats, units_si |
| Evolution | dynamics.flow and dynamics/ (state space, GA, WFC, solvers) |
| Learning | autodiff, autodiff_reverse, nn, ml_nn, ml_opt, nn_autogen |
| Graphics | gfx, text, font, gif, render3d, ui, ui2d, ui_layout, sdl2, vulkan* |
| Audio | audio.flow, audio/ (24 modules), dsp |
| GPU | gpu_kernels, gpu_memory, gpu_sim, gpu_gradients |
| Systems | memory, posix, process, sys_info, time, concurrent, async, net |
| Domain | circuit, spice, rf, planet, procgen, automata, srir, crypto |
| Interop | python_embed, logpkg, experiment, ai |
ls lib/stdlib/ for the current list. This table goes stale; the directory does
not.
Import syntax
import "stdlib/math.flow"
import "stdlib/audio/oscillators.flow"
import "stdlib/dynamics/state_space.flow"Quoted paths rooted at stdlib/, which resolves to lib/stdlib/ in the
checkout. Functions a module means to expose are marked export function.
Examples are the second library
ls examples/basics, evolution, dynamics, effects, games, graphics, audio,
dsp, ml, ai, neuro, morphogenesis, evoleco, planet, procgen,
circuits, rf, physics, numerical, linalg, stats, crypto, net,
concurrency, systems, interop, wasm, gpu, threed, ui, data,
compilers, verify, book, bench, demos.
Most shipped examples end with self-checks that return a distinct code per failure. Copy that habit; it turns an example into a test.
When nothing exists
Write the smallest helper that solves the case at hand, put it next to the code
that uses it, and say in your report that you searched and found nothing. If
the same helper shows up a second time, that is the moment to propose moving it
into lib/stdlib/.
Do not add a language construct to remove one repeated line.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

