feat(module): add bpytop, gpustat, thefuck pipx tool modules - #385
Merged
Conversation
Three custom-archetype (archetype D) tool modules for the small-tools
modularization program, mirroring the tmuxp / claude-monitor pipx pattern.
Each DEPENDS_ON=("pipx") and installs as the invoking user via
`pipx install <name>` (no inline pipx bootstrap — the engine installs the
pipx module first), with `pipx upgrade` / `pipx uninstall` for the rest of
the lifecycle:
- bpytop — terminal resource monitor; tags monitoring cli;
doctor: bpytop --version.
- gpustat — compact per-GPU status monitor; tags monitoring gpu;
doctor: gpustat --version.
- thefuck — corrects the previous mistyped console command; tags shell cli;
doctor: command -v thefuck (a --version check needs the shell
alias, so presence on PATH is the reliable signal); its
POST_INSTALL_MESSAGE explains the required
eval "$(thefuck --alias)" shell-rc setup.
Each hand-defines all 10 mandatory lifecycle functions with a real doctor()
(ADR-0002, #305 contract-conformance), declares en + zh-TW DESCRIPTION,
SUPPORTED_UBUNTU=(22.04 24.04 26.04), VERSION_PROVIDED="pipx-managed", and a
TEST_VERIFY_CMD matching its doctor probe, plus the dual-mode
standalone/engine entry convention. Adds a per-module unit spec each
(metadata sanity, is_installed via pipx ownership, dry-run no-ops,
idempotency, sidecar lifecycle ADR-0001, standalone CLI, verify/doctor with
a real-binary probe). Regenerates doc/module/INDEX.md (67 modules) and
records a CHANGELOG entry.
Gates green in Docker: test-unit (incl. contract_conformance / #305),
test-integration, coverage, lint.
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 14:35
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
Three custom-archetype (archetype D) tool modules for the small-tools
modularization program, mirroring the existing
tmuxp/claude-monitorpipx pattern. Each
DEPENDS_ON=("pipx")and installs as the invoking uservia
pipx install <name>(no inline pipx bootstrap — the engine installsthe
pipxmodule first), withpipx upgrade/pipx uninstallfor therest of the lifecycle.
bpytoppipx install bpytopbpytop --versiongpustatpipx install gpustatgpustat --versionthefuckpipx install thefuckcommand -v thefuckthefuckusescommand -v thefuckfor its doctor/verify probe becausethefuck --versionneeds the shell alias to behave, so presence on PATH isthe reliable signal. Its
POST_INSTALL_MESSAGEexplains the requiredeval "$(thefuck --alias)"shell-rc setup (fish:thefuck --alias | source).Contract conformance
Each module hand-defines all 10 mandatory lifecycle functions with a real
doctor()(ADR-0002, enforced bytest/unit/module/contract_conformance_spec.bats,the #305 contract-conformance meta-test). Each declares an en + zh-TW
DESCRIPTION,SUPPORTED_UBUNTU=("22.04" "24.04" "26.04"),VERSION_PROVIDED="pipx-managed",SUPPORTS_USER_HOME=true,INSTALL_TARGET_DEFAULT="user-home", and aTEST_VERIFY_CMDmatching itsdoctor probe, plus the dual-mode standalone/engine entry convention.
Tests
Each module ships a per-module unit spec (metadata sanity,
is_installedvia pipx ownership, dry-run no-ops, no-side-effects, idempotency, sidecar
lifecycle ADR-0001, standalone CLI, and
verify/doctorwith areal-binary probe).
doc/module/INDEX.mdregenerated (67 modules) and a[Unreleased]CHANGELOG entry added.Test plan
All gates run green in Docker on this branch:
just -f justfile.ci test-unit(includescontract_conformance/ test(module): module-iterating contract conformance meta-test #305) — exit 0just -f justfile.ci test-integration— 24/24 okjust -f justfile.ci coverage— 1401 ok, 0 failures, report generatedjust -f justfile.ci lint— ShellCheck / fish / Hadolint OKGenerated with Claude Code
https://claude.ai/code/session_01NX5H2vuMTv4mBmjpPYoS3s