julia
Skill15 starsChanged 2 months agoMITView on GitHub
Expert Julia assistance covering numerical computing, multiple dispatch, broadcasting, and parallel computing. Use when developing scientific models, machine learning, physics simulations, or differential equations.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Mindrally/skillstheir own version, first seen Oct 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Mindrally/skills★ 275same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- geminiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- mlflowSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-drivenSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 85
Ensure return types can be inferred purely from argument types:
- Distinctive: line 103
Write Type-Stable Functions: Ensure functions return values of predictable types regardless of input branch values to maintain LLVM speed.
- Very specific: line 110
Use untyped global variables in performance-critical code: Untyped globals prevent compiler optimization.
- Very specific: line 111
Create abstract type fields in structs: Specify concrete type parameters (struct Container{T} data::T end) to avoid boxing.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Julia
Julia is a high-performance dynamic programming language designed for scientific computing, data analysis, and numerical algorithms with speed approaching C.
When to Use
- High-Performance Scientific Computing & Numerical Math: Solving differential equations, linear algebra, and scientific simulations at C-like speeds.
- Machine Learning & Differentiable Programming: Training deep learning architectures using native automatic differentiation (Flux.jl / Zygote.jl).
- Solving the "Two-Language Problem": Writing both high-level mathematical prototypes and high-speed production algorithms in the same language.
- Multi-Threaded & Distributed Parallelism: Utilizing CPU multi-threading, GPU acceleration (CUDA.jl), and distributed cluster memory.
Quick Start
# Vectorized matrix math with broadcasting syntax (.)
function compute_loss(y_true, y_pred)
return sum((y_true .- y_pred) .^ 2) / length(y_true)
end
y_true = [1.0, 2.0, 3.0]
y_pred = [1.1, 1.9, 3.2]
println("Mean Squared Error: ", compute_loss(y_true, y_pred))Core Concepts
Multiple Dispatch Paradigm
Functions choose execution methods based on the runtime types of all arguments, not just the first receiver:
# Defining multi-dispatch methods
abstract type Shape end
struct Circle <: Shape radius::Float64 end
struct Rectangle <: Shape width::Float64; height::Float64 end
# Dispatches dynamically to exact matching method
area(c::Circle) = π * c.radius^2
area(r::Rectangle) = r.width * r.height
println("Circle Area: ", area(Circle(5.0)))
println("Rectangle Area: ", area(Rectangle(4.0, 6.0)))JIT Compilation (LLVM) & Type Specialization
The Julia compiler specializes machine code for the exact types encountered at runtime:
function compute_mandelbrot(max_iter::Int, c::Complex{Float64})
z = c
for i in 1:max_iter
if abs2(z) > 4.0
return i
end
z = z^2 + c
end
return max_iter
end
# Compiles to optimized SIMD machine code upon first execution!Composable Package Ecosystem (Broadcast & Metaprogramming)
The dot syntax (.) vectorizes any function over arrays automatically:
numbers = [1.0, 4.0, 9.0, 16.0]
# Broadcast sqrt over entire array
square_roots = sqrt.(numbers) # [1.0, 2.0, 3.0, 4.0]Common Patterns
High-Performance Type-Stable Functions
Problem: Type instability causes Julia to fall back to slow dynamic dispatch inside inner loops.
Solution: Ensure return types can be inferred purely from argument types:
function sum_positive(arr::Vector{Float64})::Float64
acc = 0.0 # Float literal ensures type stability
@inbounds for x in arr
if x > 0.0
acc += x
end
end
return acc
endBest Practices
Do:
- Write Type-Stable Functions: Ensure functions return values of predictable types regardless of input branch values to maintain LLVM speed.
- Inspect Code Performance with
@benchmarkand@code_warntype: Use BenchmarkTools.jl and@code_warntypeto detect type instabilities. - Pre-Allocate Memory for Inner Loops: Avoid reallocating arrays inside tight numerical loops; mutate in place using
.!syntax. - Leverage Built-In Multithreading: Run with
julia --threads autoand parallelize loops usingThreads.@threads for ....
Don't:
- Use untyped global variables in performance-critical code: Untyped globals prevent compiler optimization; declare them with
const. - Create abstract type fields in structs: Specify concrete type parameters (
struct Container{T} data::T end) to avoid boxing. - Benchmark functions with global inputs: Always benchmark inside functions or interpolate globals (
@btime my_func($global_val)).
Troubleshooting
| Error | Cause | Solution |
MethodError: no method matching ...(::Type) | No matching method overload exists for the provided argument types. | Inspect available methods using methods(func_name) and check type annotations. |
Slow execution in inner loops | Type instability or global variable access in loop body. | Use @code_warntype func(...) to identify type instabilities (red flags). |
BoundsError: attempt to access ... at index [0] | Julia uses 1-based indexing by default. | Access first element with index 1 instead of 0. |
References
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.

