Install
$ agentstack add skill-swell-agents-coding-skills-shell-discipline ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
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. 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.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: swell-agents
- Source: swell-agents/coding-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.