Skip to main content
skill CX Codex

julia — Claude Code skill: Julia development guidelines

Turns the agent into a Julia-aware pair programmer: multiple dispatch, type stability, docstrings and tests. Useful for numerical and scientific code.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add Mindrally/skills --skill julia -a claude-code
Open on GitHub

What julia does

The skill loads a set of Julia conventions into your assistant. Multiple dispatch and the type system come first, with immutable structs preferred over mutable state unless you actually need mutation.

Naming is pinned down: snake_case for functions and variables, PascalCase for structs and abstract types, lowercase file names like src/data_processing.jl. Every function needs a docstring with its signature and return value. Domain errors get their own exception types, and preconditions are checked with guard clauses such as x <= 0 && throw(InvalidInputError("Input must be positive")).

The performance section is the practical part. Type annotations guard against instability, @views avoids needless copies, SArray covers fixed-size collections, and @threads with @distributed handles parallelism. BenchmarkTools.jl is the suggested profiler before you touch anything, and globals stay out of performance-critical paths. Tests use the Test module with one top-level @testset per file and @test_throws for expected failures.

What it helps with

  • write Julia code around multiple dispatch instead of branching chains
  • track down type instability in hot functions
  • add docstrings with signatures and return values
  • lay out a module across src/, test/ and docs/ with a clean export list
  • cover edge cases and type stability in the test suite

Example prompts for the agent

  • add a custom exception type for input validation errors
  • rewrite this function so it is type-stable
  • set up a @testset for the data processing module

How to install julia

1Skills CLI (Vercel)

npx skills add Mindrally/skills --skill julia -a claude-code

2Manually: put the files in place

~/.claude/skills/julia/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/julia/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about julia

How do I install the julia skill in Claude?

Run npx skills add Mindrally/skills --skill julia -a claude-code. The skill file lands at ~/.claude/skills/julia/SKILL.md.

What does the julia skill do?

It gives the agent Julia development rules: multiple dispatch, the type system, docstrings, error handling, testing structure and performance work.

Does it work outside Claude?

Yes. The same skill installs into Codex, Cursor, GitHub Copilot, Gemini CLI and OpenCode with their own commands.

Source text

SKILL.md · Apache-2.0
---
name: julia
description: Julia development guidelines covering multiple dispatch, type system, performance optimization, and scientific computing best practices.
metadata:
  maintainer: Mindrally
  source: https://github.com/Mindrally/skills
---

# Julia Development

You are an expert in Julia programming with deep knowledge of multiple dispatch, the type system, and high-performance computing.

## Core Principles

- Write concise, technical responses with accurate Julia examples
- Leverage multiple dispatch and the type system for performant code
- Prefer immutable structs and functions over mutable state
- Use Julia's built-in features for parallelism and performance

## Naming Conventions

- **Functions/variables**: snake_case (e.g., `process_data`, `is_active`)
- **Types**: PascalCase for structs and abstract types
- **Files/directories**: lowercase with underscores (e.g., `src/data_processing.jl`)

## Function Guidelines

All functions require docstrings with signatures and return value descriptions:

```julia
"""
    process_data(data::Vector{Float64}, threshold::Float64) -> Vector{Float64}

Process input data by applying a threshold filter.
"""
function process_data(data::Vector{Float64}, threshold::Float64)
    # implementation
end
```

## Struct Definitions

- Use `@kwdef` macro for keyword constructors
- Include comprehensive docstrings for each field
- Implement custom `show` methods using `dump`
- Prefer immutable structs unless mutation is required

## Error Handling

- Create custom exception types for domain-specific errors
- Use guard clauses for preconditions
- Example: `x <= 0 && throw(InvalidInputError("Input must be positive"))`
- Provide informative error messages

## Performance Optimization

- Use type annotations to prevent type instability
- Prefer statically sized arrays (SArray) for fixed collections
- Use `@views` macro to avoid unnecessary copying
- Leverage built-in parallelism with `@threads` and `@distributed`
- Profile with BenchmarkTools.jl before optimizing
- Avoid global variables in performance-critical code

## Testing Structure

- Use the `Test` module with one top-level `@testset` per file
- Individual `@test` calls assess basic functionality
- Test edge cases and type stability separately
- Use `@test_throws` for expected errors

## Code Organization

- Organize functionality through modules
- Use abstract types with multiple dispatch for separation
- Maintain consistent project structure (src/, test/, docs/)
- Export only public API functions
- Use `include` for organizing large modules

© Mindrally · Apache-2.0 · Mindrally/skills

Similar skills

All skills for Programming languages →

From the same set168

cloudflare-development A skill that hands your agent Cloudflare edge practices: Workers, Pages, KV, D1, R2 and Durable Objects. Useful when the agent writes worker code or edits wrangler.toml. CX Codex +1 689installs remix A skill that turns your coding agent into a Remix and TypeScript helper, with ready patterns for data loading, mutations and nested routes. CX Codex +1 686installs salesforce-dx A skill that makes your coding agent follow Salesforce DX conventions: Apex, triggers, LWC, scratch orgs and SFDX CLI workflows. CX Codex +1 688installs micronaut Tells the agent how to write Micronaut code: compile-time DI, GraalVM native builds, reactive services. Useful when your Java project should follow the framework instead of generic advice. CX Codex +1 687installs clerk-authentication Rules for wiring Clerk into Next.js: middleware, hooks, protected server actions and API routes. Useful once your app already runs on Clerk. CX Codex +1 683installs nx A skill that tells the agent how to work inside an Nx workspace: apps and libs layout, tags, module boundaries, generators, caching. Useful once your repo runs on Nx. CX Codex +1 682installs langchain-development Gives your agent a rulebook for LangChain and LangGraph work in Python: chain composition, agents, memory, RAG. Useful once a Python LLM project outgrows one file. CX Codex +1 681installs apollo-graphql A skill that gives the agent rules for Apollo Client work: queries, mutations, fragments, caching and optimistic updates in React GraphQL apps. CX Codex +1 677installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor