feat(module): add tig, git-lfs, tree, ncdu, net-tools, sshfs apt modules - #380
Merged
Conversation
Six 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, and a REAL doctor() that verifies the tool runs: - tig — apt tig; DEPENDS_ON=(git); doctor: tig --version - git-lfs — apt git-lfs; DEPENDS_ON=(git); install() runs the one-time `git lfs install` post-step; doctor: git lfs version - tree — apt tree; doctor: tree --version - ncdu — apt ncdu; doctor: ncdu -v - net-tools — apt net-tools; doctor: command -v ifconfig - sshfs — apt sshfs; doctor: command -v sshfs Each ships a full unit spec (metadata, is_installed clean-state, dry-run no-ops, idempotency, sidecar lifecycle, standalone CLI, lifecycle incl. doctor). doc/module/INDEX.md regenerated (54 modules); CHANGELOG [Unreleased] Added entry. Gates (Docker, blocking foreground): lint OK, test-unit 0 failures, test-integration 24/24, #305 contract-conformance 5/5. Claude-Session: https://claude.ai/code/session_01NX5H2vuMTv4mBmjpPYoS3s Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
ycpss91255
enabled auto-merge (squash)
July 11, 2026 11:28
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 apt-archetype CLI/utility modules for the small-tools modularization
program. Each is an
optionalapt-archetype module (module_use_apt_archetype)that satisfies the 10-function module contract (ADR-0002, enforced by the #305
contract-conformance meta-test), carries en + zh-TW i18n descriptions,
SUPPORTED_UBUNTU=("22.04" "24.04" "26.04"), the dual-mode standalone/engineentry convention, and a REAL
doctor()that verifies the tool actually runs.Modules
tigtig("git")tig --versiongit-lfsgit-lfs("git")git lfs versiontreetree()tree --versionncduncdu()ncdu -vnet-toolsnet-tools()command -v ifconfigsshfssshfs()command -v sshfsgit-lfsoverridesinstall()to run the one-timegit lfs install(globalsmudge/clean filter registration) as the apt post-step; the step is dry-run
safe and skipped when git is not on PATH (warns, never aborts).
Files
module/<name>.module.shx6test/unit/module/<name>_spec.batsx6 (metadata sanity, is_installedclean-state, dry-run no-ops, idempotency, sidecar lifecycle per ADR-0001,
standalone CLI exit-code contract, lifecycle including
doctor())doc/module/INDEX.mdregenerated (54 modules)doc/changelog/CHANGELOG.md[Unreleased] > AddedentryTest plan
All gates run inside Docker (blocking foreground):
just -f justfile.ci lint— ShellCheck / fish / Hadolint OK (285 scripts)just -f justfile.ci test-unit— 0 failuresjust -f justfile.ci test-integration— 24/24#305contract-conformance meta-test — 5/5 (discovers all 54 modules)Generated with Claude Code.
https://claude.ai/code/session_01NX5H2vuMTv4mBmjpPYoS3s