write-tmp

Manage workspace-local temporary file storage with setup and cleanup workflows.

9|2|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/kindomLee/openclaw-workspace-template --skill write-tmp
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: write-tmp
Source: https://github.com/kindomLee/openclaw-workspace-template/tree/main/templates/.claude/skills/write-tmp
Command: npx skills add https://github.com/kindomLee/openclaw-workspace-template --skill write-tmp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing temporary files inside a workspace can be error-prone if you try to write to system-wide /tmp. This Skill promotes using a workspace-local tmp/ directory to keep ephemeral data contained and compliant with workspace rules.

Core Features & Use Cases

  • Enforces use of workspace-local tmp/ for temporary storage to prevent path escapes.
  • Resolves tmp paths relative to CLAUDE_PROJECT_DIR (or OPENCLAW_WORKSPACE in OpenClaw mode) to maintain portability.
  • Provides a simple workflow for setup and cleanup of temporary files during tasks such as builds, tests, and data processing.

Quick Start

Create the workspace-local tmp directory and save your temporary file there using a path relative to CLAUDE_PROJECT_DIR (or OPENCLAW_WORKSPACE in OpenClaw mode).

Frequently Asked Questions about write-tmp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I store temporary files inside a workspace instead of system /tmp?▼

To store temporary files inside a workspace, use a workspace-local tmp/ directory and resolve paths relative to CLAUDE_PROJECT_DIR or OPENCLAW_WORKSPACE. This isolates ephemeral data from system roots during builds and tests.

Why should I use a workspace-local tmp directory over system /tmp for builds?▼

Using a workspace-local tmp directory prevents path escapes and keeps ephemeral build data compliant with workspace rules. System /tmp is shared and isolated from your project, risking data loss or access violations.

How do I resolve temporary file paths relative to CLAUDE_PROJECT_DIR?▼

Resolve temporary file paths relative to CLAUDE_PROJECT_DIR by creating a tmp/ folder inside your workspace root. In OpenClaw mode, use OPENCLAW_WORKSPACE to maintain portability across different environments.

Does this workspace temporary file approach work with OpenClaw environments?▼

Yes, this workspace temporary file approach works with OpenClaw environments by resolving paths relative to OPENCLAW_WORKSPACE. It ensures ephemeral files remain contained within the workspace during data processing tasks.

What is the best way to set up and clean up temporary files during bash testing?▼

The best way to manage temporary files during bash testing is using a workspace-local tmp/ directory with a dedicated setup and cleanup workflow. This ensures ephemeral test data is contained and removed properly.