Skip to main content

Script launcher and parameter manager: all your scripts in one menu, their flags, input() calls, and constants auto-extracted into a run form — no more opening an IDE just to tweak a value.

Project description

skit — script launcher and parameter manager

CI codecov Mutation tested: mutmut PyPI Python 3.12+ Ruff Types: ty License: MIT

English | 繁體中文 | 简体中文

skit is a launcher and a home for your Python scripts.

skit stores your Python scripts in one place and makes them painless to launch.

AI writes the scripts. skit gives them a home.

And it's a home you share with your agent: the library you drive from a menu, AI agents drive through a deterministic CLI — checking it before writing yet another one-off script, and (with your OK) saving the good ones back, so they outlive the chat.

What it does

  • One home for your scripts. skit add collects scattered scripts into a searchable library — keep a copy in the library, or reference the original file.
  • Parameters without the pain. Flags, input() calls, and the constants you tick become form fields (choices → pickers, booleans → checkboxes, types enforced).
  • It remembers. Last-used values come back automatically; save favorites as named presets. Parameters marked secret never touch disk. Tokens like {cwd} and {today} keep presets portable.
  • No environment mess. skit declares each script's dependencies in the script itself (PEP 723) and runs it through uv in an isolated, cached environment — no venvs to manage, nothing installed globally.
  • Mouse or keyboard. Plain skit opens the full TUI; every key hint on screen is also a clickable button.
  • Automation-ready. Every TUI action is also a CLI command with --json output and meaningful exit codes — for shell scripts, CI, and AI agents.
  • Your agent's script library too. The official Agent Skill teaches Claude Code, Codex, Cursor, Gemini CLI, and friends the whole drill: discover scripts with skit list, read a parameter schema with skit show, run with skit run --set … --no-input. One skit agent install away — see Works with your AI agent.
  • Speaks your language. English, 繁體中文, and 简体中文, with more to come. See Languages.
Problem What skit does
Scripts scattered all over the place One central menu, with search
Scripts with weird external dependencies An isolated environment per script — dependencies declared in the file (PEP 723), resolved by uv
CLI flags you forget ten minutes later, input() prompts, hard-coded constants meant to be edited by hand Static analysis extracts them all into an interactive form — no code changes. Last-used values come prefilled; favorites save as presets.
The weird script an AI wrote for you dies with the chat session Agents check the library first, reuse what's there, and save the keepers — one-off scripts become permanent, parameterized tools

Nothing to set up per script — no refactoring, no config to maintain. The script an AI wrote last week and the one you barely remember from last year launch the same way.

The library menu The run form
The library — every action on screen, mouse or keyboard The run form — generated from the script's own parameters
Adding a script Script settings
Adding a script — parameters detected statically, tick to manage Script settings — parameters, secrets, presets, dependencies

Driving skit with the mouse alone — every control on screen is a click target
Fully mouse operable — every key hint on screen is also a button.

Install

skit is built on uv (tested against 0.11.26). Don't have it? skit asks first, then downloads a pinned uv into its own private directory — your PATH and global environment stay untouched. A system-wide install is still preferred.

# Install skit with uv tool from PyPI (the package is named skit-cli; the command is skit)
uv tool install skit-cli

In mainland China? Set the mirror by hand for this one command (details in Mainland China (中国大陆)):

export UV_DEFAULT_INDEX=https://pypi.tuna.tsinghua.edu.cn/simple
uv tool install skit-cli

Or install the latest dev version from the main branch.

uv tool install git+https://github.com/t41372/skit          # latest development version
uvx --from git+https://github.com/t41372/skit skit --help   # try it without installing

Update

uv tool upgrade skit-cli   # update to the latest release — also how you "check": it says up to date if you are
skit --version             # the version you're on

uv tool upgrade follows whatever source you installed from: PyPI installs track PyPI releases, git+… installs re-fetch the main branch.

Uninstall

uv tool uninstall skit-cli

That removes skit and its PATH shim. Your library and settings live outside the package, so they survive on purpose — reinstall and you're right back where you left off. To erase those too, delete skit's own directories:

OS Directories
macOS ~/Library/Application Support/skit
Linux ~/.local/share/skit · ~/.local/state/skit · ~/.config/skit
Windows %LOCALAPPDATA%\skit

They hold your script library, config, presets, and last-used values — plus, if skit ever bootstrapped its own uv, the private uv binary (in …/skit/bin, deleted along with the rest).

# macOS
rm -rf ~/Library/Application\ Support/skit

# Linux — honors XDG_DATA_HOME / XDG_STATE_HOME / XDG_CONFIG_HOME if you've set them
rm -rf ~/.local/share/skit ~/.local/state/skit ~/.config/skit
# Windows (PowerShell)
Remove-Item -Recurse -Force $env:LOCALAPPDATA\skit

Not sure where yours landed? skit doctor prints the resolved library path (and respects any SKIT_DATA_DIR / SKIT_STATE_DIR / SKIT_CONFIG_DIR overrides). That's everything skit owns — it never writes to your PATH, shell, or global uv config, so nothing else needs undoing. The uv download cache and any Python builds uv fetched are shared with the rest of your uv setup, not skit's to remove; if you don't use uv elsewhere and want the space back, uv cache clean clears the cache.

Usage

Two commands are the whole interface:

skit add my_script.py   # add a script
skit                    # open the menu, pick it, fill in the form, run

Everything else happens inside the TUI — on screen, mouse or keyboard, nothing to memorize.

The rest of the CLI exists for automation and AI agents — every TUI action, scriptable:

skit run my_script -p fast    # run with a saved preset
skit run my_script --dry-run  # print the exact command, don't run it
skit run my_script --set width=800 --no-input   # set values explicitly, never prompt
skit show my_script --json    # one script's full parameter schema, machine-readable
skit params my_script         # show managed parameters and last-used values
skit list --json              # machine-readable listing
skit config                   # settings: language, editor, mirror, form style
skit --help                   # everything else

Works with your AI agent

skit is a script repository for humans and AI agents: one library — you get the forms, agents get a deterministic CLI. The official Agent Skill teaches compatible agents (Claude Code, Codex, Cursor, Gemini CLI, and many more) to check your library before writing yet another one-off script, to inspect and run what's already there, and to offer to save the useful scripts they write — so they outlive the session that created them.

skit agent install            # pick one of the agent directories found on your machine
skit agent install claude     # or name it: claude / codex / agents (--project for this repo only)
npx skills add t41372/skit    # or install through skills.sh into 70+ agents

Languages

Language Status
English ✅ 100%, human-reviewed
繁體中文 (zh-TW) ✅ 100%, human-reviewed
简体中文 (zh-CN) ✅ 100%, human-reviewed

skit follows your system language; switch it in the TUI preferences (for automation: skit config lang zh-TW, or SKIT_LANG=zh-CN skit for one run).

Mainland China (中国大陆)

Three downloads tend to fail in mainland China: PyPI packages, the Python builds uv fetches from GitHub, and skit's own uv bootstrap. skit can route all three through domestic mirrors.

Mirror settings live inside skit only: your global uv config is never touched, and existing mirror settings (UV_DEFAULT_INDEX, uv.toml, …) are respected.

  • First run: if PyPI/GitHub look unreachable, skit offers to turn mirrors on — just press Enter.
  • Any time: TUI Preferences → mirror, or:
skit config mirror tsinghua   # or: aliyun / ustc / custom / off

Defaults: PyPI via Tsinghua / Aliyun / USTC; Python builds and the uv binary via NJU. Pick custom to swap any URL.

Why skit exists

skit began as an answer to a linux.do forum thread (in Chinese).

Development

Development runs entirely on uv — see CONTRIBUTING.md for the full workflow and quality gates (ruff, ty strict, 100% test coverage, mutation testing with mutmut, zizmor-audited workflows).

uv sync --dev
uv run pytest -q
uv run python scripts/serve_preview.py   # TUI web preview (textual-serve, localhost:8000)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

skit_cli-0.2.0.tar.gz (222.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

skit_cli-0.2.0-py3-none-any.whl (198.9 kB view details)

Uploaded Python 3

File details

Details for the file skit_cli-0.2.0.tar.gz.

File metadata

  • Download URL: skit_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 222.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for skit_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f196e2cd17492ef1cd0647295284a2c9b39ee7d78820beb5923935e5be61f64f
MD5 95298da22d562cb252214109c55be4fd
BLAKE2b-256 df2853fe5f0124fe8797f51481faca01aa444b73d4eba99a04039c0bd73a4a19

See more details on using hashes here.

Provenance

The following attestation bundles were made for skit_cli-0.2.0.tar.gz:

Publisher: release.yml on t41372/skit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file skit_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: skit_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 198.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for skit_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5547a4888f6fc413597a9641ba27cfb6c4402c1abf3740d1ca0a83370276b7d
MD5 88ca8c8d9f3fb0bc6df7d89a0c951629
BLAKE2b-256 57616d172d5a8475ed7eb7f4e07a2c3f8bb77e600579980a345bd1bfecd2aebe

See more details on using hashes here.

Provenance

The following attestation bundles were made for skit_cli-0.2.0-py3-none-any.whl:

Publisher: release.yml on t41372/skit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page