clankerguru/opsx/no-temp-scripts
Claude Code and agent skill by clankerguru/opsx
- community
Checking that the SKILL.md file is still in the repository.
Absolute prohibition on writing scripts, helpers, or intermediate files outside the workspace. Everything lives in-repo where the user can read, diff, and review it.
Install
npx vskill@latest install clankerguru/opsx/no-temp-scriptsSKILL.md
The same SKILL.md was published earlier as clankerguru/opsx/no-temp-scripts.
/no-temp-scripts
Related:/git-workflow·/no-python
Rule
Every script, helper, one-off, or intermediate file lives inside the workspace. No /tmp, no /var/tmp, no $TMPDIR, no ~/.cache, no agent-only hidden dirs. If you create it, the user can see it.
Why
Hidden scratch files:
- cannot be code-reviewed,
- silently disappear across sessions (lost work),
- let agents take actions the user never sees,
- break reproducibility for the next contributor.
The user has explicitly forbidden this pattern.
Where things go instead
| Kind of file | Workspace location | |
|---|---|---|
| Throwaway shell helper | scripts/<name>.sh (or delete it when done) | |
| CLI wrapper / hook body | .claude/hooks/<name>.sh, .opsx/bin/<name>, etc. | |
| Build/test intermediates | build/ (already git-ignored by Gradle) | |
| Gradle scratch output | build/tmp/ — stays in-repo, inspectable | |
| Test fixtures | src/test/resources/ | |
| Diff/patch staging | commit it, or keep it under scratch/ in the repo root |
When you think you need temp
- "I just need to pipe this somewhere" → pipe to a file in
build/scratch/ or inline with tee.
- "The tool insists on a temp path" → let it write there, then
immediately move the output into the workspace and tell the user.
- "It's just for my own thinking" → use a comment, or a file under
notes/ in the repo.
Unit-test scaffolding is the one exception
File.createTempFile(...).apply { deleteOnExit() } inside a JVM test is acceptable — it is a testing idiom, scoped to a single test run, cleaned up automatically. This exception does NOT extend to shell scripts, hook bodies, or interactive tool plumbing.
Enforcement
When reviewing an agent's work, reject any diff that creates files outside the workspace. When an agent proposes a solution that uses temp dirs, redirect them to a workspace path before implementation begins.
Scope
Applies to every agent, every CLI, every project under the clanker workspace. No exceptions without explicit user approval.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcli/src/main/resources/content/skills/no-temp-scripts/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/clankerguru/opsx/no-temp-scripts)