shellkitshellkit
Guide
API reference
Examples
Changelog
Releases
llms.txt
GitHub
  • 简体中文
  • English
Guide
API reference
Examples
Changelog
Releases
llms.txt
GitHub
  • 简体中文
  • English
  • Getting started

    • Guide
    • Install and upgrade
    • Thirty seconds
  • Core concepts

    • Five hard rules
    • Bash 3.2 compatibility
    • Module map
    • POSIX subset
  • Common tasks

    • Cookbook
    • CLI framework
    • Machine-readable output
    • Security boundaries
    • Internationalisation
    • Testing and gates
    • Working with AI
  • Going further

    • Example projects
    • Man pages
    • Migration guide
    • Compatibility policy
    • Releasing
    • Contributing
    • Changelog
  • Troubleshooting

    • Troubleshooting
    • FAQ

Guide

This documentation is organised by what you need to solve right now, not by feature directory. Every page stands on its own; the cross-links tell you where to go next.

Three common paths

Your situationThese three pages are enough
First contact, deciding whether it is worth usingThirty seconds → Five hard rules → Cookbook
Scripts already in production, want the library without a rewriteInstall → Five-step migration → Testing and gates
Need the exact signature of one functionAPI reference, one page per module

Getting started

  • Install and upgrade -- one command, pinned versions, internal mirrors, offline archives, update and uninstall.
  • Thirty seconds -- generate a project, read its layout, add your first subcommand.

Core concepts

  • Five hard rules -- why stdout carries data only, and why out-parameters use printf -v.
  • Bash 3.2 compatibility -- the syntax that crashes on the bash macOS ships, and why.
  • Module map -- the 27 modules, what each one owns, and when to reach for it.

Common tasks

  • Cookbook -- 27 scenarios, each one scenario / code / why.
  • CLI framework -- registered commands, generated help, option parsing.
  • Internationalisation -- English msgids, pot/po/mo, and degrading gracefully without gettext.
  • Testing and gates -- the assertion library, the per-file runner, what each make check step blocks.
  • Working with AI -- three artefacts from one source, plus a prompt you can paste.

Advanced

  • Example projects -- two projects you can run right now; the topic is assembly.
  • Five-step migration -- kill stdout pollution first, then configuration, prompts, CLI, tests.
  • Compatibility policy -- what counts as a breaking change, the deprecation window, and the functions that carry no promise.
  • Releasing -- one command bumps the version, and why it is built that way.
  • Contributing -- adding a module means four edits; miss one and the gate goes red.

When things break

  • Troubleshooting -- exit code → symptom → fix.
  • FAQ -- twelve questions that were actually asked.
Last updated: 11/22/26, 7:50 PM
Next
Install and upgrade
给 AI 直读:llms.txt 一个文件读完整个站点的地图