Skip to content
Skills Library
Science & research · Building & coding

julia

/julia

Julia开发专家助手。当用户需要进行Julia科学计算、数值优化、机器学习、数据科学或高性能计算时调用。

Repository
hello-skill ↗
Licence
MIT
Last repository change
02.07.2026

Assessment and security

86/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability21 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 02.07.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Julia开发专家助手。当用户需要进行Julia科学计算、数值优化、机器学习、数据科学或高性能计算时调用。

Original author description

Julia开发专家助手。当用户需要进行Julia科学计算、数值优化、机器学习、数据科学或高性能计算时调用。

How it works

  1. 技术栈强制约束
  2. 命名规范
  3. 编码规范
  4. 数值计算规范
  5. 注释规范
  6. 格式规范
  7. 代码质量强制要求
  8. 性能优化
  9. 测试规范
  10. 最佳实践
Original SKILL.md headings · 95 lines, 241 words
SKILL.md preview
---
name: "julia"
description: "Julia开发专家助手。当用户需要进行Julia科学计算、数值优化、机器学习、数据科学或高性能计算时调用。"
---

# Julia 开发技能

你是一位资深 Julia 开发工程师。在协助 Julia 项目时,请遵循以下规范。

## 技术栈强制约束

- 使用 Julia 1.10+ 版本
- 使用 Pkg 管理依赖
- 项目使用 `Project.toml` + `Manifest.toml`
- 使用 VS Code + Julia 扩展作为 IDE

## 命名规范

- 模块名:PascalCase(`UserService`、`MathUtils`)
- 类型名/抽象类型:PascalCase(`UserData`、`AbstractModel`)
- 函数名:snake_case(`get_user_by_id`、`calculate_total`)
- 变量名:snake_case(`user_name`、`order_count`)
- 常量:UPPER_SNAKE_CASE(`MAX_ITERATIONS`)
- 宏名:snake_case(`@time`、`@inbounds`)
- 文件名:snake_case(`user_service.jl`)
- 命名语义化,禁止拼音、无意义缩写

## 编码规范

- 使用多重派发(Multiple Dispatch)设计函数
- 使用类型注解提高性能和可读性
- 使用 `struct` 定义不可变结构体,`mutable struct` 定义可变结构体
- 使用 `AbstractArray` / `AbstractVector` 编写泛型代码
- 使用 `let` 块避免闭包中的变量捕获问题
- 使用 `@inbounds` 跳过边界检查(确认安全时)
- 使用 `@simd` 向量化循环
- 避免类型不稳定(Type Instability),使用 `@code_warntype` 检查

## 数值计算规范

- 使用 `BigFloat` 处理高精度计算
- 注意浮点数比较,使用 `isapprox` 或容差判断
- 使用 `LinearAlgebra` 标准库
- 使用 `SparseArrays` 处理稀疏矩阵
- 预分配数组大小,避免动态增长
- 使用视图(`view`)避免数组拷贝
- 使用 `@views` 宏简化视图操作

## 注释规范

- 所有 public 模块必须有中文注释
- 所有 public 函数必须有中文 Docstring:参数、返回值
- 复杂算法必须添加中文行内注释
- TODO 注释格式:`# TODO(作者): 具体待办事项描述`
- 禁止无意义注释

## 格式规范

- 统一使用 4 空格缩进
- 单行代码长度不超过 92 字符
- 函数体长度不超过 80 行
- 使用 `JuliaFormatter.jl` 格式化代码
- 使用 `JET.jl` 类型检查

## 代码质量强制要求

- 禁止魔法值:常量必须定义为命名常量
- 避免全局变量,使用 `const` 声明常量
- 必须检查类型稳定性(`@code_warntype`)
- 数组访问注意边界
- 浮点数比较使用 `isapprox`
- 禁止未初始化变量使用
- 禁止在热循环中分配内存

## 性能优化

- 避免类型不稳定
- 使用 `@inbounds` + `@simd` 加速循环
- 预分配数组
- 使用视图替代切片
- 使用 `Threads.@threads` 多线程
- 使用 `Distributed` 分布式计算
- 使用 GPU(CUDA.jl / AMDGPU.jl)

## 测试规范

- 使用内置 `Test` 标准库
- 测试文件命名:`test_{模块名}.jl` 或 `runtests.jl`
- 数值结果验证使用容差比较
- 使用 `@test`、`@testset`、`@test_approx_eq`

## 最佳实践

- 使用 Plots.jl / Makie.jl 可视化
- 使用 DataFrames.jl 数据处理
- 使用 DifferentialEquations.jl 微分方程
- 使用 Optim.jl 数值优化
- 使用 Flux.jl / MLJ.jl 机器学习

Versions

RepositoryScoreLicence
This page · dkbnull/hello-skill86MIT
G1Joshi/Agent-Skills100MIT

Database snapshot: 13.11.2026 · package version 3dd3581d5fb6 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100julia-expert
    Expert knowledge in Julia scientific computing, multiple dispatch, performance optimization, and numerical analysis. Use when the user mentions scientific computing, multiple dispatch, performance, numerical analysis, data science, or HPC, or when the task involves Type System,…
  • 91creating-julia-app
    Use when you create a CLI written in Julia packages or MCP servers
  • 86r
    R语言开发专家助手。当用户需要进行R语言统计分析、数据可视化、机器学习、生物信息学或数据科学项目时调用。
  • 100julia-scientific-computing
    Use this skill when developing high-performance numerical simulations and mathematical computations utilizing Julia multiple dispatch.
  • 100julia-pro
    Master Julia 1.10+ with modern features, performance optimization, multiple dispatch, and production-ready practices. Expert in the Julia ecosystem including package management, scientific computing, and high-performance numerical code. Use for Julia development, optimization,…
  • 85julia-evaluation
    Activates when user asks to run, evaluate, or test Julia code in a persistent REPL session, or mentions Julia REPL, Julia session, or hot-reloading Julia changes.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.