agentleFS
90184479018447/julia-pro-p/skills/package-development-workflow/SKILL.md

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.

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
  1. Very specific:

    Tests that pass only in the dev environment: Run Pkg.test(), not include("test/runtests.jl"): the former uses the [targets] environment.

    line 69

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

FileHoldsRule
Project.tomlname, UUID, version, [deps], [compat], [extras], [targets]every dep has a compat entry; julia too
src/MyPackage.jlmodule, exports, implementationexports are the public API and nothing else
test/runtests.jl@testset treeplus Aqua.jl for ambiguity, piracy, and stale deps
docs/make.jlmakedocs + deploydocsbuilds in CI, deploys on tag
.github/workflows/CI, TagBot, CompatHelpermatrix 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

  1. Tests green locally and in CI on both LTS and stable.
  2. Docs build with julia --project=docs docs/make.jl; a broken docstring fails the build, not the deploy.
  3. Bump version in Project.toml in its own commit; nothing else in that commit.
  4. Comment @JuliaRegistrator register on the commit. Registrator opens a PR to General; the wait is three days for a new package, minutes for a patch.
  5. TagBot creates the GitHub release from the tag. CompatHelper then opens PRs as your dependencies move.

Depth

TopicWhere
scaffolding a package from scratchgenerating-julia-package
day-to-day structure and conventionsdeveloping-julia-package
test layout, fixtures, CI integrationtesting-julia-package, julia-testing-patterns
Aqua and JET quality gatesusing-juliacheck
exports, API surface, breaking changesfixing-julia-exports
docstrings, Documenter pages, deploysdocumenting-julia-package
dependency handling, environments, registriespackage-management
GitHub Actions for Juliaci-cd-patterns
auditing an existing package against the ecosystemauditing-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(), not include("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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.