feat(module): add ag, asciidoctor, xclip, xsel, ansifilter, tealdeer apt modules - #383
Merged
Conversation
…apt modules Six more apt-archetype CLI/utility modules for the small-tools modularization program. Each is an `optional` apt-archetype module (module_use_apt_archetype) satisfying the 10-function contract (ADR-0002, #305 conformance) with en + zh-TW i18n, SUPPORTED_UBUNTU 22.04/24.04/26.04, dual-mode standalone/engine entry, a matching TEST_VERIFY_CMD, and a REAL doctor() that verifies the tool runs: - ag — apt silversearcher-ag (binary ag); doctor: ag --version - asciidoctor — apt asciidoctor; doctor: asciidoctor --version - xclip — apt xclip; SUPPORTED_PLATFORMS=(desktop); doctor: command -v xclip - xsel — apt xsel; SUPPORTED_PLATFORMS=(desktop); doctor: command -v xsel - ansifilter — apt ansifilter; doctor: ansifilter --version - tealdeer — apt tealdeer (binary tldr); doctor: tldr --version. install() overrides to seed the page cache with `tldr --update` as a best-effort post-step that only warns (never aborts) on no network (mirrors the small-tools fix, issue #263), plus a POST_INSTALL_MESSAGE telling the user to re-run tldr --update. xclip/xsel are desktop-only (need an X display). Each ships a full unit spec (metadata, is_installed clean-state, dry-run no-ops, idempotency, sidecar lifecycle, standalone CLI, lifecycle incl. doctor); tealdeer additionally covers the best-effort cache seed + POST_INSTALL_MESSAGE. doc/module/INDEX.md regenerated (60 modules); CHANGELOG [Unreleased] Added entry. Gates (Docker, blocking foreground): lint OK, test-unit 0 failures (6 new specs 51-54 tests each), test-integration 24/24, #305 contract-conformance 5/5, coverage recipe OK. Claude-Session: https://claude.ai/code/session_01NX5H2vuMTv4mBmjpPYoS3s Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
# Conflicts: # doc/module/INDEX.md
ycpss91255
enabled auto-merge (squash)
July 11, 2026 13:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds six more apt-archetype CLI/utility modules for the small-tools
modularization program, each with a matching unit spec:
agsilversearcher-agagag --versionasciidoctorasciidoctorasciidoctorasciidoctor --versionxclipxclipxclipcommand -v xclipSUPPORTED_PLATFORMS=(desktop)xselxselxselcommand -v xselSUPPORTED_PLATFORMS=(desktop)ansifilteransifilteransifilteransifilter --versiontealdeertealdeertldrtldr --versionAll six are
optionalapt-archetype modules (module_use_apt_archetype) thatsatisfy the 10-function module contract (ADR-0002, enforced by the #305
contract-conformance meta-test), with en + zh-TW
DESCRIPTION,SUPPORTED_UBUNTU=("22.04" "24.04" "26.04"), dual-mode standalone/engineentry, a
TEST_VERIFY_CMDmatching the module's realdoctor()probe, and areal
doctor()that verifies the tool actually runs (not justis_installed).xclip/xselare desktop-only because they need a live X display.tealdeeroverridesinstall()to seed the tldr page cache withtldr --updateas a best-effort post-step: a failed cache refresh only warnsand never aborts the install (mirrors the small-tools tealdeer fix, issue
#263). A
POST_INSTALL_MESSAGEtells the user to re-runtldr --updateifthere was no network at install time.
doc/module/INDEX.mdregenerated (60 modules);CHANGELOG [Unreleased]Added entry.
Test plan
just -f justfile.ci lint— ShellCheck / fish / hadolint OKjust -f justfile.ci test-unit— 0 failures (each new spec 51-54 tests)#305contract-conformance meta-test — 5/5just -f justfile.ci test-integration— 24/24just -f justfile.ci coverage— OK🤖 Generated with Claude Code
https://claude.ai/code/session_01NX5H2vuMTv4mBmjpPYoS3s