s/shellScripts (0.25.2)
Execute useful shell scripts via an uvx-compatible CLI interface.
shellscripts is a Linux-first command collection for project automation, AI CLI launchers,
PDF/DICOM utilities, development helpers, and editor integrations, exposed through a single command.
Quick Start | Feature Highlights | Upgrading or Removing | Shell Scripts
🚧 DRAFT: Proof-of-Concept (PoC) Version 📝 - Work in Progress 🏗️ 🚧
⚠️ IMPORTANT NOTICE: Created with PI-useReq/pi-usereq 🤖✨ ⚠️
Feature Highlights
- Single CLI entrypoint with command dispatch and grouped built-in help (
shellscriptsand aliass). - Project-context launchers for AI CLIs (
agy,claude,codex,copilot,gemini,kiro,opencode,pi) and IDEs (vscode,vsinsider). - PDF workflow commands for crop, merge, split, TOC cleanup, and tiling.
- DICOM helpers (
dicom2jpg,dicomviewer) and video transcoders (video2h264,video2h265). - Project maintenance and automation commands (
req,clean,venv,tests,doxygen,ubuntu-dark-theme). - Startup update notification with rate-limited checks against the PyPI registry.
Requirements
- Python
>=3.11. - Astral
uvis required for install and runtime flows (uv tool install,uvx,uv run). - Git is required for commands that enforce repository-root execution (
agy,claude,codex,copilot,gemini,kiro,opencode,pi,clean,venv,tests,doxygen,vscode,vsinsider). - Command-specific external tools are required only for related commands:
reqfor thereqcommand.doxygen(plus optionalmakeandpdflatex) fordoxygen.gs,pdfinfo,qpdf,pdftk,plakativfor PDF commands.ffmpegforvideo2h264andvideo2h265.- Java runtime + PixelMed jars (+
java-wrappers) for DICOM commands.
Quick Start
Prerequisites
Install / Upgrade
Install from PyPI (primary distribution channel):
uv tool install shellscripts
Upgrade to the latest published PyPI release:
s --upgrade
Force a complete re-download and reinstallation by appending the forced-reinstall options (--force --reinstall --refresh) to the configured upgrade command:
s --upgrade --force
Run Without Installing (uvx)
uvx shellscripts <command> [args...]
Run From a Local Clone
./scripts/s.sh <command> [args...]
or
uv run --project . python -m shell_scripts <command> [args...]
Install from GitHub (Alternative)
PyPI is the primary distribution channel. As an alternative, the package can be installed from GitHub Releases, which also hosts intermediate and test releases that are not published on PyPI:
uv tool install shellscripts --force --from git+https://github.com/Ogekuri/shellScripts.git@vX.Y.Z
Intermediate and test releases are available at: https://github.com/Ogekuri/shellScripts/releases.
To upgrade to the newest tagged GitHub release, regardless of the branch that carries the tag, use the --dev (alias --develop) flag together with --upgrade:
s --upgrade --dev
# or
s --upgrade --develop
Add --force to force a complete re-download and reinstallation of the tagged release:
s --upgrade --develop --force
Management Commands
Global syntax:
shellscripts [command] [options]
# or
s [command] [options]
Built-in management flags:
--help: show full help or command help (shellscripts --help <command>).--version/--ver: print the installed version plus the latest versions available on PyPI and GitHub.--upgrade: run the configured upgrade command automatically on Linux (installs the latest PyPI release by default), otherwise print the manual command.--upgrade --force: force download and complete reinstallation by appending--force --reinstall --refreshto the--upgradeor--upgrade --dev/--upgrade --developcommand.--upgrade --dev/--upgrade --develop: upgrade from the latest tagged GitHub release instead of PyPI, regardless of its source branch.--uninstall: run configured uninstall command automatically on Linux, otherwise print the manual command.--write-config: write the default runtime configuration file.
Runtime Configuration
Generate a default config file:
s --write-config
Default location:
~/.config/shellScripts/config.json
Top-level configuration keys:
managementupgrade: command string executed by--upgrade(PyPI install by default).upgrade_develop: command template executed by--upgrade --dev; the{tag}placeholder is replaced with the latest GitHub release tag.uninstall: command string executed by--uninstall.
dispatchdiff,edit,view: each command supportscategoriesandfallbackcommand vectors.
reqproviders: provider list forwarded to externalreq.static_checks: static-check entries forwarded to externalreq.
Shell Scripts
Command List
| Command | Purpose |
|---|---|
agy |
Launch Antigravity CLI in project context (YOLO mode, pass-through args). |
claude |
Launch Claude CLI in project context. |
codex |
Launch Codex CLI in project context with auth sync and CODEX_HOME. |
copilot |
Launch Copilot CLI in project context. |
gemini |
Launch Gemini CLI in project context. |
kiro |
Launch Kiro CLI in project context. |
opencode |
Launch OpenCode CLI in project context. |
pi |
Launch pi.dev CLI in project context (forwards all arguments unchanged). |
clean |
Find and delete cache directories under the project root (or a passed directory). |
req |
Run useReq bootstrap on current directory, first-level dirs, or recursively. |
venv |
Recreate .venv and install requirements.txt if present. |
tests |
Ensure/create .venv and run pytest (arguments passed through). |
doxygen |
Generate HTML/XML/Markdown docs and optional PDF output. |
vscode |
Open project in VS Code with CODEX_HOME set. |
vsinsider |
Open project in VS Code Insiders with CODEX_HOME set. |
diff |
Dispatch file differ by MIME/category. |
edit |
Dispatch file editor by MIME/category. |
view |
Dispatch file viewer by MIME/category. |
pdf-crop |
Crop PDF pages with auto or manual bounding boxes. |
pdf-merge |
Merge multiple PDFs preserving/rebuilding bookmarks. |
pdf-split-by-format |
Split PDFs into parts when page format changes. |
pdf-split-by-toc |
Split PDF into chapter files from level-1 TOC entries. |
pdf-tiler-090 |
Tile PDF to A4 at 90% scale. |
pdf-tiler-100 |
Tile PDF to A4 at original A1 size. |
pdf-toc-clean |
Remove out-of-range TOC entries and write cleaned outputs. |
dicom2jpg |
Convert DICOM images to JPEG (PixelMed). |
dicomviewer |
Launch PixelMed DICOM viewer. |
video2h264 |
Convert one video to H.264 MP4 via ffmpeg. |
video2h265 |
Convert one video to H.265 MP4 via ffmpeg. |
ubuntu-dark-theme |
Apply GNOME and Qt dark-theme settings. |
Selected Usage Examples
Launch Antigravity CLI in YOLO mode (command help lists the available AI CLIs in alphabetical order):
s agy
Run pi.dev CLI forwarding all arguments unchanged (no implicit option injection):
s pi --tools read,bash,grep,find
Run useReq bootstrap on first-level child directories:
s req --dirs
Clean caches without interactive confirmation:
s clean --yes
Crop PDF with automatic bbox over a page window:
s pdf-crop --in input.pdf --out cropped.pdf --analyze-pages 1-10 --pages 1-
Merge PDFs and choose output file:
s pdf-merge -o merged.pdf a.pdf b.pdf c.pdf
Split PDF by TOC chapters:
s pdf-split-by-toc document.pdf
Convert a video to H.264 MP4:
s video2h264 input.mov
Run tests and pass pytest options:
s tests -q -k "pdf"
Open current git project in VS Code / Insiders:
s vscode
s vsinsider
Acknowledgments
Metadata
Release files for shellscripts 0.25.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| shellscripts-0.25.2.tar.gz | 95.0 kB | With provenance | Details for shellscripts-0.25.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shellscripts-0.25.2-py3-none-any.whl | Python 3 | none | any | Details for shellscripts-0.25.2-py3-none-any.whl |
Total release size: 182.1 kB
Release files / shellscripts-0.25.2.tar.gz
| Download URL | shellscripts-0.25.2.tar.gz |
|---|---|
| Size | 95.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e72c453f346d20fa005335b5d34968b382ecb0f72602944e14da6183ed569f3d
|
|
BLAKE2b-256 checksum How to use checksums |
10469368f8d412d32836cc259642cba12ca91c38eb660f12cce1ff8249660e03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logRelease files / shellscripts-0.25.2-py3-none-any.whl
| Download URL | shellscripts-0.25.2-py3-none-any.whl |
|---|---|
| Size | 87.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1770d1d40f3e56ea41b3a914d9223d5f21aae61a72c9fe1d20d7a8475d2624fc
|
|
BLAKE2b-256 checksum How to use checksums |
91ccd780c27148401ea4ddbc0c8075331693cad83a155cae5a1600db6ed015c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logSecurity for shellscripts 0.25.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for shellscripts-0.25.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.