AGENT SKILL

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

  1. 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.

  2. Identify.

    • NAME = basename of the single *.1 file in DIR (ls DIR/*.1); zero or several → stop and report.
    • git status --porcelain -- DIR must print nothing; else stop and list the files.
    • git tag -l NAME-VERSION must print nothing; else stop: the version is taken.
  3. Bump the one version source, nothing else:

    Language Source Edit
    C DIR/config.mk VERSION = VERSION
    Rust DIR/Cargo.toml [package] version = "VERSION"
    sh DIR/NAME VERSION=VERSION near the top
    other the file the Makefile reads VERSION from —

    No version source found → stop and point to conventions.md.

  4. 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.
  5. Commit with the commit skill: the version file, plus DIR/Cargo.lock if it changed; message chore(NAME): release VERSION.

  6. Tag: git tag -a NAME-VERSION -m "NAME VERSION".

  7. Dist.

    • make -C DIR dist → DIR/NAME-VERSION.tar.gz.
    • (cd DIR && sha256sum NAME-VERSION.tar.gz > NAME-VERSION.tar.gz.sha256) (shasum -a 256 where sha256sum is missing).
    • tar -tzf DIR/NAME-VERSION.tar.gz lists only NAME-VERSION/ entries, including NAME.1, LICENSE, README and Makefile. Anything else → report it; the tag stays, fix the dist target and rebuild the tarball.
  8. 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 .sha256 are build outputs; they stay untracked (the templates' .gitignore covers NAME-*.tar.gz*).
  • Never edit CHANGELOG-style files, version strings in code or the man page by hand: make install substitutes VERSION from the one source.
  • Never move or delete an existing tag; a bad release gets the next version.

04 同仓库更多 Skills

VolkovIlia
VolkovIlia/deadlion-studio

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.

★ 0
VolkovIlia
VolkovIlia/deadlion-studio

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.

★ 0
VolkovIlia
VolkovIlia/deadlion-studio

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.

★ 0
VolkovIlia
VolkovIlia/deadlion-studio

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.

★ 0
VolkovIlia
VolkovIlia/deadlion-studio

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.

★ 0
VolkovIlia
VolkovIlia/deadlion-studio

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.

★ 0