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.zip

Installs 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.
164 chars✓ has a “when” trigger
Beginner

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

You give it
Request to generate a report, log, or tracking file
You get back
File path in the system temporary directory

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.

SkillInstallsUpdatedSafetyDifficulty
temp-files (this skill)17moReviewBeginner
resolve-conflicts818moReviewIntermediate
claude-automation-recommender472moReviewBeginner
codex-skill125moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

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.

81334

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.

47140

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.

12110

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.

1197

subagent-driven-development

davila7

Use when executing implementation plans with independent tasks in the current session

1493

validate-openapi-specs

epieczko

Validates and registers hook manifest files (YAML) in the Hook Registry for versioned hook management.

594

Search skills

Search the agent skills registry