swell-agents/coding-skills / skills/shell-discipline
shell-discipline
VerifiedShell discipline — one command per call, no inline env vars, gh auth login.
Shell Commands
- One command per call — keep commands small, readable, and atomic. Don't chain with
&&,;, orcd dir && command. Use separate calls — firstcd, then the command. - No inline env vars — don't use
VAR=value command. Set env separately or use proper auth tools.
Git Auth
- Use
gh auth login/gh auth switchto switch GitHub accounts — never prefix withGH_TOKEN=....
Why
Each chained command is one opaque action to the permission layer; splitting them gives one auditable tool call per intent. Inline env vars hide configuration in the command line and leak secrets into shell history; explicit auth tools (gh auth login) keep credentials in the keyring where they belong.
Prerequisites
- A POSIX shell (bash or zsh).
- For the Git Auth rule:
ghCLI installed and authenticated.
Failure modes
gh auth loginfails or token expired. Re-rungh auth login -h github.cominteractively, thengh auth statusto verify. Don't paste the token into a shell command.- Account switch needed.
gh auth switch -u <user>. If that user's token is invalid, re-auth that account before switching. - Command needs elevated privileges. Set up the privilege out-of-band (sudoers entry, group membership) rather than prefixing the command with
sudoinline; an unattended agent shouldn't be entering passwords. - Shell aliases that hide what runs. Avoid invoking aliases in agent procedures; spell out the real command so it's auditable.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |