sculkr
A companion CLI application for packwiz that parses its output data to deliver advanced utility commands and extended features for Minecraft modpack development.
Current Features
-
Creates a Minecraft modlist from packwiz.
The format of the modlist can be customized to your choosing, based on a collection of available placeholder/template strings, and it's output stored in a file or piped into other programs.
See the Formatting section for more information.
Installation
Requires Rust 1.88 or newer (edition 2024).
From crates.io
Prebuilt binaries
Every tagged release ships archives for Linux, macOS, and Windows on the
releases page — x86_64 and
aarch64 for Linux and macOS, x86_64 for Windows. Download the archive for your
platform, extract it, and put sculkr somewhere on your PATH.
Each release also carries SHA256SUMS.txt and a build provenance attestation:
# Checksums
# Provenance — proves the archive came from this repo's release workflow
From source
Configuration
.sculk Config Files
Flags you would otherwise retype on every run can live in a .sculk file, which
is plain TOML. Every key is optional and matches a long flag by name:
# .sculk
= "." # packwiz root, same as --path
= "modlist.md" # same as --output; omit for stdout
= '- [{NAME}]({URL}) - {DESC}\n' # same as --format
= 1 # 0-3, same as -v/-vv/-vvv
= false # same as --quiet
[] # read the Secrets section below first
= '$2a$10$...' # same as CF_API_KEY
Two files are read, and then merged, in descending order. Anything passed on the command line takes priority:
| Location | Applies to |
|---|---|
~/.config/sculkr/.sculk (or the OS equivalent) |
every pack on the machine |
<pack root>/.sculk |
that pack, overriding the global |
sculkr config prints which files were found. Keep in mind:
- Relative paths resolve against the file they are written in, not the
working directory, so a
pathin the global config means the same thing from anywhere. - Use single quotes for
format. TOML resolves\ninside double quotes; a literal string hands the escape through to the formatter, which is where the formatting notes apply. - An unknown key is a warning, not an error. If the key does not exist, or does not parse due to a typo, then it will not be read.
- .sculk files should be pushed to Git and bundled with modpacks, .env should not. This allows modpack maintainers to create configurations that are shared between users. That is also exactly why the
[secrets]table below needs care.
Secrets in .sculk
A .sculk may carry a CurseForge key, or potentially future secrets, so one file can serve every pack on the machine instead of a .env per pack:
# ~/.config/sculkr/.sculk
[]
= '$2a$10$...'
[!WARNING] Put it in the global file, not in a pack's. A pack's
.sculkis meant to be committed and shipped with the modpack, so a key written into one is a key handed to everybody who downloads it.sculkrwarns on every run when it finds one there — it still uses the key, because a private pack repo is a real thing, but the warning does not go away.
Three places are checked, and the first one with a value wins:
| Order | Source |
|---|---|
| 1 | ↓ CF_API_KEY in the environment, .env included |
| 2 | ↓ [secrets] in <pack root>/.sculk |
| 3 | _ [secrets] in the global .sculk |
The environment takes precedence over both files. sculkr config prints which of the three the key in
effect came from, alongside its fingerprint.
Quote the key with SINGLE quotes, the same as format, so nothing inside it is read as a TOML escape.
Environment Vars (.env)
sculkr reads its secrets from the environment at run time, and loads a .env from the working directory, if one is present. Copy .env.example, modify it's contents, and rename to .env to get started.
| Variable | Required | Value |
|---|---|---|
CF_API_KEY |
For CurseForge mods | A CurseForge API key. Only requested when the pack actually contains CurseForge mods — a Modrinth-only pack never needs one. Overrides secrets.cf-api-key in either .sculk. |
Same as the above .sculk [secrets] formatting, quote CF_API_KEY with single quotes. CurseForge keys are bcrypt-shaped
($2a$10$...) and dotenv expands $VAR inside double quotes, which silently
truncates the key and earns you a 403 with an empty body.
Nothing is read at compile time — build.rs fails the build if anything under
src/ tries — so no key can be baked into a published binary.
Usage
# Print the modlist to stdout (default Markdown list format)
# Change the path to something relative or absolute
# Write it to a file instead of stdout
# Apply a custom template, one mod per line
# Debug logging on stderr, modlist still outputs cleanly to file
# Just the mod names, nothing else
# Version, authors, repository
# View runtime information about sculkr and the modpack
-p defaults to the current directory, so point it at wherever your *.pw.toml
files live. Logs go to stderr, so a redirected or piped modlist stays clean.
Formatting
--format / -f takes a string literal with {PLACEHOLDER} holes in it, one
per field the cache holds.
The default modpack output is (Markdown List format):
- [{NAME}]({URL}) - {DESCRIPTION}\n
# Markdown table rows
# HTML list-item anchor tags with a newline
# Perhaps something a bit more complicated (see image below)

Backslash escapes (\n, \t, \r, \0, \\, \{, \}) are resolved by
sculkr rather than by the shell, so quote the template and write \n
wherever you want a line break — nothing is appended for you. Placeholder names
are case-insensitive, and a bad template is rejected before any API calls are
made.
| Placeholder | Value |
|---|---|
{ID} |
Project id (Modrinth base62, CurseForge numeric) |
{SLUG} |
URL slug, e.g. sodium |
{NAME}, {TITLE} |
Project title |
{DESCRIPTION}, {DESC} |
Short description / summary |
{URL} |
Project page on Modrinth/CurseForge |
{ICON_URL} |
Project icon image |
{SOURCE_URL} |
Source repository |
{ISSUES_URL} |
Issue tracker |
{WIKI_URL} |
Wiki / documentation |
{LICENSE} |
License name |
{LICENSE_ID} |
License id, e.g. MIT |
{LICENSE_URL} |
License text |
{AUTHORS} |
Author names, or the owning organization, comma separated |
{AUTHOR_URLS} |
Author pages, comma separated |
{AUTHORS_MD} |
Authors as markdown links |
{INDEX} |
This mod's position in the list, starting at 1 |
A placeholder with no value for a given mod renders as an empty string.
Formatting Notes
-
Line breaks inside a value are collapsed to single spaces before substitution. Both Modrinth and CurseForge allow them in a description, and one arriving mid-entry would otherwise split a list item or table row across lines — so the only line breaks in the output are the ones custom format's request.
-
CurseForge exposes no license anywhere in its public API, even though it is shown on the project page.
{LICENSE*}is therefore empty for CurseForge mods. -
Modrinth author names cost extra lookups, because a project is credited to a Team rather than to a list of users:
- Team members come from a bulk
/v2/teamscall, sorted owner-first so the credit line is stable between runs. - A project owned by an organization has an empty team, and the site credits
the organization — so
{AUTHORS}gets the organization (Forgified Fabric API :: Sinytra). This is the one placesculkrtouches Modrinth's/v3API, which is documented as unstable, so a failure there logs a warning and leaves those authors empty rather than failing the run... perhaps it'll be stable later.
- Team members come from a bulk
Neither API lookup runs when every mod is already cached.
If you are getting rate-limited by an API, it is advisible to update the cache only once all mod changes are finished.
sculkr --help prints the same table, generated from the same source.
Todo
Just a small list of things I'd like to implement that would probably elevate this app just a little bit more:
- Cache, list, query dependencies for each mod.
- Ability to have inline notifications regarding when a new update for a specific Minecraft version is available.
- Display info regarding: (+ # of New Mods) or (- # Deleted mods), and their names, since last cache state.
- Extend the cache db to include information about when mod was added (may help troubleshoot terrible mod issues!)
- Bulk Edit / Bulk Modify mods based on regular expressions
- (Idk if this can be done???) Ability to hook into log files and determine what mods/deps caused previous crashes.
Issues & Contributions
If you encounter any bugs, have questions, or notice areas for improvement, your feedback is highly welcome! Please feel free to open an issue to report problems or suggest enhancements. If you'd like to contribute directly, you can also submit a PR with your proposed fixes or updates, and I'll get to it when I can.
See CONTRIBUTING.md for how to set up a development environment, what CI checks against, and how releases are cut.
sculkr began as a fork of packwiz-modlist by Ricky12Awesome, rewritten and renamed with their consent (discussion). Large portions and functionality have been rewritten from the ground-up, with more and more features being added monthly.
I am currently going through the original packwiz-modlist args and attempting to port those over, changing functionality where it makes most sense, adding things here or there. If you have an idea, or would like something yourself, let me know!
Licensed under Apache-2.0; see NOTICE.