coding-julia
Julia: multiple dispatch, type system, metaprogramming, Pkg, scientific computing, GPU CUDA.jl
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o coding-julia.zip https://jpskill.com/download/22084.zip && unzip -o coding-julia.zip && rm coding-julia.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22084.zip -OutFile "$d\coding-julia.zip"; Expand-Archive "$d\coding-julia.zip" -DestinationPath $d -Force; ri "$d\coding-julia.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
coding-julia.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
coding-juliaフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Claude が読む原文 SKILL.md(中身を展開)
この本文は AI(Claude)が読むための原文(英語または中国語)です。日本語訳は順次追加中。
coding-julia
Purpose
This skill equips the AI to handle Julia programming tasks, focusing on high-performance scientific computing, data analysis, and GPU acceleration using features like multiple dispatch and metaprogramming.
When to Use
Use this skill for numerical simulations, data science workflows, GPU-accelerated computations, or when you need efficient type systems and package management. Apply it in scenarios requiring fast prototyping, such as machine learning models or large-scale data processing, especially with libraries like CUDA.jl.
Key Capabilities
- Multiple dispatch: Define functions that behave differently based on argument types, e.g., for optimized numerical operations.
- Type system: Leverage parametric types and unions for type-safe code, reducing errors in scientific applications.
- Metaprogramming: Use macros to generate code at runtime, like @time for performance profiling.
- Pkg: Manage dependencies with a built-in package manager for easy installation and versioning.
- Scientific computing: Integrate with libraries for linear algebra (e.g., LinearAlgebra.jl) and optimization.
- GPU support: Utilize CUDA.jl for parallel computing on NVIDIA GPUs, enabling high-throughput tasks.
Usage Patterns
To accomplish tasks, invoke Julia via the REPL or scripts. For interactive sessions, start with julia in the terminal. Use project environments for isolation: create one with julia --project=. and activate via using Pkg; Pkg.activate("."). For metaprogramming, define macros to automate repetitive code. When handling data, load packages first, e.g., using DataFrames for tabular data, then perform operations in a loop or function. Always specify types for performance, like function compute(x::Float64) ... end.
Common Commands/API
- Package management: Use
using Pkg; Pkg.add("CUDA")to install CUDA.jl; remove withPkg.rm("CUDA"). - REPL commands: Enter interactive mode with
julia, then use?function_namefor help; exit with Ctrl+D. - CLI flags: Run scripts with
julia --project=env_name script.jlto use a specific environment; add-O3for optimization. - API examples: For multiple dispatch, write:
function add(a::Int, b::Int) return a + b end; add(1, 2) # Returns 3. - Code snippets: Matrix operations:
using LinearAlgebra; A = rand(3,3); eigenvalues = eigen(A).values. - Config formats: Edit Project.toml for dependencies, e.g., add
[deps] CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"; use Manifest.toml for exact versions.
Integration Notes
Integrate Julia into projects by embedding it in Jupyter notebooks via IJulia.jl: first, install with using Pkg; Pkg.add("IJulia"), then launch with julia -i -e 'using IJulia; notebook()' from the terminal. For external tools, link Julia with C libraries using ccall, e.g., ccall((:function_name, "libname"), ReturnType, (ArgTypes,), args...). If using GPU, ensure CUDA drivers are installed and set the environment variable for paths, like $CUDA_PATH=/usr/local/cuda. For web services, pass API keys via env vars, e.g., ENV["API_KEY"] = $SERVICE_API_KEY before making requests with HTTP.jl.
Error Handling
To handle errors, use try-catch blocks: try; risky_operation(); catch e; println("Error: ", e) end. Check assertions with @assert condition "Message", which throws an error if false. For package issues, run Pkg.status() to verify dependencies; resolve conflicts by updating with Pkg.update(). In GPU code, check CUDA errors via CUDA.device_synchronize() after kernel launches. Always log errors for debugging, e.g., use Logging.jl: using Logging; @info "Starting computation".
Usage Examples
- Matrix Multiplication with Multiple Dispatch: To compute matrix products efficiently, use:
function multiply(A::Matrix, B::Matrix) return A * B end; A = rand(1000,1000); result = multiply(A, A) # Handles large arrays via dispatch. - GPU-Accelerated Computation: For parallel summing on GPU, first add CUDA.jl:
using Pkg; Pkg.add("CUDA"); using CUDA; d_a = CuArray([1,2,3]); result = sum(d_a) # Offloads to GPU for speed.
Graph Relationships
- Related to: coding-python (shares scientific computing tools like NumPy equivalents), coding-r (common in data science pipelines).
- Linked via tags: julia (direct match), scientific (connects to data-science skills), data-science (overlaps with coding-r and coding-python), coding (cluster relation to all coding-* skills).