temp-files
Standardizes temporary file creation in /tmp to prevent repository clutter.
Install
mkdir -p .claude/skills/temp-files && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/5508" && unzip -o skill.zip -d .claude/skills/temp-files && rm skill.zipInstalls to .claude/skills/temp-files
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Guidelines for creating temporary files in system temp directory. Use when agents need to create reports, logs, or progress files without cluttering the repository.Key capabilities
- →Generate temporary files for logs and reports
- →Sanitize directory paths for system-wide compatibility
- →Create timestamped filenames for unique identification
- →Manage temporary storage outside the repository root
How it works
It maps the current working directory to a sanitized path in /tmp/claude/ and generates unique, timestamped files to avoid repository clutter.
Inputs & outputs
When to use temp-files
- →Save code review reports
- →Store temporary analysis logs
- →Create progress tracking files
About this skill
Temporary Files Skill
When you need to create files to track progress, generate reports, or store temporary data, use the system's temporary directory instead of the repository root.
Directory Structure
Use this base path for all temporary files (aligns with Claude Code's existing task output convention):
/tmp/claude/{sanitized-cwd}/
Where {sanitized-cwd} is the current working directory path with / replaced by - (leading slash stripped first to avoid a leading dash).
Example: Working in /Users/bobby/workspace/pivot/llamafarm → /tmp/claude/Users-bobby-workspace-pivot-llamafarm/
Creating a Temp File
Step 1: Create the directory
SANITIZED_PATH=$(echo "$PWD" | sed 's|^/||' | tr '/' '-')
REPORT_DIR="/tmp/claude/${SANITIZED_PATH}/reviews"
mkdir -p "$REPORT_DIR"
Step 2: Generate a unique filename
Use this pattern: {descriptor}-{YYYYMMDD-HHMMSS}.{ext}
TIMESTAMP=$(date +%Y%m%d-%H%M%S)
FILENAME="code-review-${TIMESTAMP}.md"
FILEPATH="${REPORT_DIR}/${FILENAME}"
Step 3: Write the file
Use the Write tool with the full temp path.
Step 4: Inform the user
Always tell the user where the file was created:
Report saved to:
/tmp/claude/Users-bobby-workspace-pivot-llamafarm/reviews/code-review-20260108-143052.md
When to Use This Pattern
- Code review reports
- Analysis outputs
- Progress tracking files
- Test result summaries
- Any generated documentation not explicitly requested in a specific location
When NOT to Use This Pattern
- User explicitly specifies a file path
- Creating files that should be committed (e.g., README, config files)
- Editing existing files
Cleanup Note
Files in /tmp/ are cleared on system restart. If the user needs to preserve a file, suggest they copy it to a permanent location.
When not to use it
- →When the user specifies a target file path
- →When the file is intended for repository commit
- →When editing existing project files
Limitations
- →Files are automatically cleared on system restart
How it compares
It enforces a standardized, non-destructive location for ephemeral data instead of creating files directly in the user's project workspace.
Compared to similar skills
temp-files side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| temp-files (this skill) | 1 | 7mo | Review | Beginner |
| resolve-conflicts | 81 | 8mo | Review | Intermediate |
| claude-automation-recommender | 47 | 2mo | Review | Beginner |
| codex-skill | 12 | 5mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by llama-farm
View all by llama-farm →You might also like
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
claude-automation-recommender
anthropics
Analyze a codebase and recommend Claude Code automations (hooks, subagents, skills, plugins, MCP servers). Use when user asks for automation recommendations, wants to optimize their Claude Code setup, mentions improving Claude Code workflows, asks how to first set up Claude Code for a project, or wants to know what Claude Code features they should use.
codex-skill
feiskyer
Use when user asks to leverage codex, gpt-5, or gpt-5.1 to implement something (usually implement a plan or feature designed by Claude). Provides non-interactive automation mode for hands-off task execution without approval prompts.
git-advanced-workflows
wshobson
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.
subagent-driven-development
davila7
Use when executing implementation plans with independent tasks in the current session
validate-openapi-specs
epieczko
Validates and registers hook manifest files (YAML) in the Hook Registry for versioned hook management.