package-development-workflow
Skill0 starsChanged 2 days agoMITView on GitHub
Build a Julia package to community standard: PkgTemplates layout, Project.toml, exports, Documenter, compat bounds, CI, and the release procedure. Use when starting a package, publishing a version, or fixing package structure.
In this repository55 other files it gives its agents.
- advanced-optimizationSkill
- bayesian-inferenceSkill
- bayesian-pinnSkill
- bayesian-ude-workflowSkill
- catalyst-reactionsSkill
- continuum-mechanics-and-rheologySkill
- control-theorySkill
- creating-julia-appSkill
- debugging-toolkitSkill
- differential-equationsSkill
- differentiationSkill
- equation-discoverySkill
- experiment-trackingSkill
- fem-feaSkill
- julia-graph-neural-networksSkill
- julia-languageSkill
- julia-ml-and-dlSkill
- julia-model-deploymentSkill
- julia-paper-implementationSkill
- julia-pro-helpSkill
- julia-pro-modeSkill
- julia-reinforcement-learningSkill
- modeling-toolkitSkill
- neural-pdeSkill
- nonlinear-dynamicsSkill
- numerical-methods-implementationSkill
- performance-tuningSkill
- physical-learning-systemsSkill
- playbook-debugSkill
- playbook-model-validateSkill
- playbook-package-releaseSkill
- playbook-paper-implementSkill
- playbook-perfSkill
- playbook-test-specSkill
- principle-both-sidesSkill
- principle-breakingSkill
- principle-file-is-truthSkill
- principle-gateSkill
- principle-limitsSkill
- principle-loud-failureSkill
- principle-one-stepSkill
- principle-proof-listSkill
- principle-rebuttalSkill
- principle-runtime-surfaceSkill
- principle-three-boundsSkill
- principle-three-clocksSkill
- scientific-visualizationSkill
- sciml-and-diffeqSkill
- setup-julia-proSkill
- signal-processingSkill
- simulation-and-hpcSkill
- statistical-physicsSkill
- symbolic-mathSkill
- web-development-juliaSkill
- zarr-cloud-arraysSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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 69
Tests that pass only in the dev environment: Run Pkg.test(), not include("test/runtests.jl"): the former uses the [targets] environment.
≈ “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 package development
A registered Julia package is a set of five files with conventions the General registry and Pkg both check. Get those right and registration is mechanical.
| File | Holds | Rule |
Project.toml | name, UUID, version, [deps], [compat], [extras], [targets] | every dep has a compat entry; julia too |
src/MyPackage.jl | module, exports, implementation | exports are the public API and nothing else |
test/runtests.jl | @testset tree | plus Aqua.jl for ambiguity, piracy, and stale deps |
docs/make.jl | makedocs + deploydocs | builds in CI, deploys on tag |
.github/workflows/ | CI, TagBot, CompatHelper | matrix over Julia LTS and stable |
using PkgTemplates
Template(; user="you", plugins=[Git(), License(name="MIT"),
GitHubActions(), Documenter{GitHubActions}()])("MyPackage")Project.toml minimum
name = "MyPackage"
uuid = "12345678-1234-1234-1234-123456789abc"
version = "0.1.0"
[compat]
DifferentialEquations = "7"
julia = "1.10"
[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
[targets]
test = ["Test", "Aqua"]Release order
- Tests green locally and in CI on both LTS and stable.
- Docs build with
julia --project=docs docs/make.jl; a broken docstring fails the build, not the deploy. - Bump
versioninProject.tomlin its own commit; nothing else in that commit. - Comment
@JuliaRegistrator registeron the commit. Registrator opens a PR to General; the wait is three days for a new package, minutes for a patch. - TagBot creates the GitHub release from the tag. CompatHelper then opens PRs as your dependencies move.
Depth
| Topic | Where |
| scaffolding a package from scratch | generating-julia-package |
| day-to-day structure and conventions | developing-julia-package |
| test layout, fixtures, CI integration | testing-julia-package, julia-testing-patterns |
| Aqua and JET quality gates | using-juliacheck |
| exports, API surface, breaking changes | fixing-julia-exports |
| docstrings, Documenter pages, deploys | documenting-julia-package |
| dependency handling, environments, registries | package-management |
| GitHub Actions for Julia | ci-cd-patterns |
| auditing an existing package against the ecosystem | auditing-julia-package-practices |
Traps
- A dependency without a compat entry blocks registration and breaks downstream resolvers. Write the bound when you add the dep.
- Exporting an internal helper freezes it into the API forever. Export only what the docs document.
- Tests that pass only in the dev environment. Run
Pkg.test(), notinclude("test/runtests.jl"): the former uses the[targets]environment. - Aqua found a method ambiguity and nobody looked. It is an error for registration review, not a warning.
- Version bumped inside a feature commit. Registrator read the previous tag; the release points at the wrong tree.
- Docs deployed from a branch other than the dev branch silently overwrites stable.
Done when
Pkg.test() passes from a clean environment, Aqua is green, docs build locally, every dependency has a compat bound, and the version bump is its own commit.
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.

