terminal-exec
Skill1 starsChanged 12 days agoApache-2.0View on GitHub
Use whenever a terminal command needs to be run (build, test, lint, git, package manager, scripts, etc.). The orchestrator must not use Bash directly; it delegates every command to the `terminal-exec` subagent.
- Commits and pushes
In this repository5 other files it gives its agents.
- validatingSkill
- code-editingSkill
- commentingSkill
- learnSkill
- mayoSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
All shell commands are delegated to the terminal-exec subagent (Agent tool, subagent_type: "terminal-exec").
- Distinctive: line 13
Follow the user's approval rules for risky work (e.g.
- Distinctive: line 17
Write a self-contained prompt.
- Distinctive: line 28
When it reports one:
- Distinctive: line 30
Do not run it yourself and do not work around it.
- Distinctive: line 35
Check the report. If it failed, diagnose from the reported error and re-delegate a corrected command if safe.
- Distinctive: line 40
Never delete files. Tell the user the target file and the reason, and ask them to delete it.
- Distinctive: line 41
Never bypass a sandbox restriction on the subagent's behalf.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Terminal Execution via Subagent
All shell commands are delegated to the terminal-exec subagent (Agent tool, subagent_type: "terminal-exec"). Do not call Bash yourself.
Before delegating
- Decide the exact commands first. The subagent runs only what it is given.
- Follow the user's approval rules for risky work (e.g. git branch merge): present the plan and get approval before delegating.
What to hand down
Write a self-contained prompt. The subagent has no conversation context.
- Exact command(s), in order
- Working directory
- Purpose, and what output matters (exit code, failing test names, etc.)
- Expected report: commands run, exit code and key output, commands not executed, failure cause
Dangerous commands
The subagent refuses to run dangerous commands (file deletion, sudo, git push, hard reset, merge/rebase, deployment, destructive DB/cloud operations, etc.) and reports them instead.
When it reports one:
- Do not run it yourself and do not work around it.
- Relay the command and the reason to the user, and let the user run it (suggest the
! <command>prefix in the prompt).
After delegating
- Check the report. If it failed, diagnose from the reported error and re-delegate a corrected command if safe.
- Summarize the outcome for the user.
Never
- Never delete files. Tell the user the target file and the reason, and ask them to delete it.
- Never bypass a sandbox restriction on the subagent's behalf; report it to the user.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

