release
Releases one program the suckless way: bumps its single version source, runs make test, dl-budget, dl-size and a groff man-page lint, commits the bump, tags NAME-VERSION and builds the make dist tarball with a sha256 file. Use when the user asks to release, tag, version or package a program.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- release
- description
- Releases one program the suckless way: bumps its single version source, runs make test, dl-budget, dl-size and a groff man-page lint, commits the bump, tags NAME-VERSION and builds the make dist tarball with a sha256 file. Use when the user asks to release, tag, version or package a program.
- argument-hint
- <program dir> <version>
03 SKILL.md 正文
Release
One program per run. The version, tag, tarball and checksum rules are in
${CLAUDE_SKILL_DIR}/../suckless-code/references/conventions.md (## Versioning and release). Releasing is an explicit user request; it covers the bump commit and the tag.
Never push.
Procedure
-
Arguments. DIR (default
.) and VERSION. VERSION must match^\d+\.\d+(\.\d+)?$and be greater than the current version (compare the numbers field by field, a missing field counts as 0). VERSION missing → ask, offering the next patch and the next minor version. -
Identify.
- NAME = basename of the single
*.1file in DIR (ls DIR/*.1); zero or several → stop and report. git status --porcelain -- DIRmust print nothing; else stop and list the files.git tag -l NAME-VERSIONmust print nothing; else stop: the version is taken.
- NAME = basename of the single
-
Bump the one version source, nothing else:
Language Source Edit C DIR/config.mkVERSION = VERSIONRust DIR/Cargo.toml[package]version = "VERSION"sh DIR/NAMEVERSION=VERSIONnear the topother the file the Makefile reads VERSIONfrom— No version source found → stop and point to
conventions.md. -
Checks. Run each; any failure →
git checkout -- <version file>, report the output and stop.make -C DIR test— output allowed; exit 0 required.${CLAUDE_SKILL_DIR}/../suckless-code/scripts/dl-budget DIR— exit 0, no output.${CLAUDE_SKILL_DIR}/../suckless-code/scripts/dl-size DIR— exit 0, no stdout.groff -man -ww -z DIR/NAME.1— must print nothing. groff exits 0 even on warnings, so judge by the empty output.
-
Commit with the
commitskill: the version file, plusDIR/Cargo.lockif it changed; messagechore(NAME): release VERSION. -
Tag:
git tag -a NAME-VERSION -m "NAME VERSION". -
Dist.
make -C DIR dist→DIR/NAME-VERSION.tar.gz.(cd DIR && sha256sum NAME-VERSION.tar.gz > NAME-VERSION.tar.gz.sha256)(shasum -a 256wheresha256sumis missing).tar -tzf DIR/NAME-VERSION.tar.gzlists onlyNAME-VERSION/entries, includingNAME.1,LICENSE,READMEandMakefile. Anything else → report it; the tag stays, fix thedisttarget and rebuild the tarball.
-
Report.
RELEASE: NAME-VERSION tag: NAME-VERSION (<commit hash>) tarball: DIR/NAME-VERSION.tar.gz sha256: <line from the .sha256 file> push: git push && git push origin NAME-VERSION
Rules
- The tarball and
.sha256are build outputs; they stay untracked (the templates'.gitignorecoversNAME-*.tar.gz*). - Never edit
CHANGELOG-style files, version strings in code or the man page by hand:make installsubstitutes VERSION from the one source. - Never move or delete an existing tag; a bad release gets the next version.
04 同仓库更多 Skills
write-plan
Turns approved product/design/architecture artifacts or a clear request into plan.md: small ordered tasks, each with exact files, a test written first and a verification command. Use before implementing anything larger than a one-file change.
workflow
Runs the deadlion pipeline (product → design → decompose → architecture → plan → build → review → verify) through plain-text artifacts in .dev-docs/. Use when the user starts a new product, system, feature or multi-step change, or asks what to do next.
verify
Evidence before claims: before saying work is done, fixed or passing, run the proving command fresh, read its output and the git diff, and report VERIFIED and NOT VERIFIED items separately. Use before declaring any task complete and after any subagent reports success.
ux-design
Designs the user interface of a program at the lowest rung that serves the job — CLI, filter (dmenu/fzf style), terminal UI, native GUI or web — with flows, states, a key map, design tokens kept in config.def and numeric gates per rung, so every UI works alone and embeds; avoids generic AI-looking UI. Includes the dl-contrast checker. Writes design.md. Use when building or changing any user interface, screen, TUI, GUI, component or visual style.
unix-design
Designs the internals of one program or sub-project as small single-purpose modules with plain-text interfaces, separated mechanism and policy, and one build/run command each, following the Unix philosophy. Writes arch.md. Use when designing a new feature's architecture inside a program, a CLI, module or data flow; for splitting a system into several programs use decompose.
ui-verify
Verifies a running UI against the gates in design.md — web pages in a real browser via the Playwright MCP (screenshots at 375/768/1280 px, console errors, axe scan, touch targets), terminal programs through dl-tui in a headless tmux (screens at 80×24, 40×12 and 20×5, NO_COLOR, key scripts per state, terminal restore, stdout purity), and token contrast with dl-contrast. Use after implementing or changing any UI, or when the user asks to check how a screen looks or works.